1 12 package org.eclipse.swt.internal.gtk; 13 14 15 import org.eclipse.swt.internal.*; 16 17 public class OS extends Platform { 18 static { 19 Library.loadLibrary("swt-pi"); 20 } 21 22 23 public static final boolean IsAIX, IsSunOS, IsLinux, IsHPUX; 24 static { 25 26 27 String osName = System.getProperty ("os.name"); 28 boolean isAIX = false, isSunOS = false, isLinux = false, isHPUX = false; 29 if (osName.equals ("Linux")) isLinux = true; 30 if (osName.equals ("AIX")) isAIX = true; 31 if (osName.equals ("Solaris")) isSunOS = true; 32 if (osName.equals ("SunOS")) isSunOS = true; 33 if (osName.equals ("HP-UX")) isHPUX = true; 34 IsAIX = isAIX; IsSunOS = isSunOS; IsLinux = isLinux; IsHPUX = isHPUX; 35 } 36 37 38 public static final int G_SIGNAL_MATCH_DATA = 1 << 4; 39 public static final int G_SIGNAL_MATCH_ID = 1 << 0; 40 public static final int GDK_2BUTTON_PRESS = 0x5; 41 public static final int GDK_3BUTTON_PRESS = 0x6; 42 public static final int GDK_ACTION_COPY = 1 << 1; 43 public static final int GDK_ACTION_MOVE = 1 << 2; 44 public static final int GDK_ACTION_LINK = 1 << 3; 45 public static final int GDK_Alt_L = 0xffe9; 46 public static final int GDK_Alt_R = 0xffea; 47 public static final int GDK_AND = 4; 48 public static final int GDK_BackSpace = 0xff08; 49 public static final int GDK_BOTTOM_LEFT_CORNER = 0xc; 50 public static final int GDK_BOTTOM_RIGHT_CORNER = 0xe; 51 public static final int GDK_BOTTOM_SIDE = 0x10; 52 public static final int GDK_BUTTON1_MASK = 0x100; 53 public static final int GDK_BUTTON2_MASK = 0x200; 54 public static final int GDK_BUTTON3_MASK = 0x400; 55 public static final int GDK_BUTTON_MOTION_MASK = 1 << 4; 56 public static final int GDK_BUTTON1_MOTION_MASK = 1 << 5; 57 public static final int GDK_BUTTON2_MOTION_MASK = 1 << 6; 58 public static final int GDK_BUTTON3_MOTION_MASK = 1 << 7; 59 public static final int GDK_BUTTON_PRESS = 0x4; 60 public static final int GDK_BUTTON_PRESS_MASK = 0x100; 61 public static final int GDK_BUTTON_RELEASE = 0x7; 62 public static final int GDK_BUTTON_RELEASE_MASK = 0x200; 63 public static final int GDK_CAP_BUTT = 0x1; 64 public static final int GDK_CAP_PROJECTING = 3; 65 public static final int GDK_CAP_ROUND = 0x2; 66 public static final int GDK_COLORSPACE_RGB = 0; 67 public static final int GDK_CONFIGURE = 13; 68 public static final int GDK_CONTROL_MASK = 0x4; 69 public static final int GDK_COPY = 0x0; 70 public static final int GDK_CROSS = 0x1e; 71 public static final int GDK_CROSSING_NORMAL = 0; 72 public static final int GDK_CROSSING_GRAB = 1; 73 public static final int GDK_CROSSING_UNGRAB = 2; 74 public static final int GDK_Break = 0xff6b; 75 public static final int GDK_Cancel = 0xff69; 76 public static final int GDK_Caps_Lock = 0xffE5; 77 public static final int GDK_Clear = 0xff0B; 78 public static final int GDK_Control_L = 0xffe3; 79 public static final int GDK_Control_R = 0xffe4; 80 public static final int GDK_CURRENT_TIME = 0x0; 81 public static final int GDK_DECOR_BORDER = 0x2; 82 public static final int GDK_DECOR_MAXIMIZE = 0x40; 83 public static final int GDK_DECOR_MENU = 0x10; 84 public static final int GDK_DECOR_MINIMIZE = 0x20; 85 public static final int GDK_DECOR_RESIZEH = 0x4; 86 public static final int GDK_DECOR_TITLE = 0x8; 87 public static final int GDK_DOUBLE_ARROW = 0x2a; 88 public static final int GDK_Delete = 0xffff; 89 public static final int GDK_Down = 0xff54; 90 public static final int GDK_ENTER_NOTIFY_MASK = 0x1000; 91 public static final int GDK_ENTER_NOTIFY = 10; 92 public static final int GDK_EVEN_ODD_RULE = 0; 93 public static final int GDK_EXPOSE = 2; 94 public static final int GDK_EXPOSURE_MASK = 0x2; 95 public static final int GDK_End = 0xff57; 96 public static final int GDK_Escape = 0xff1b; 97 public static final int GDK_F1 = 0xffbe; 98 public static final int GDK_F10 = 0xffc7; 99 public static final int GDK_F11 = 0xffc8; 100 public static final int GDK_F12 = 0xffc9; 101 public static final int GDK_F13 = 0xffca; 102 public static final int GDK_F14 = 0xffcb; 103 public static final int GDK_F15 = 0xffcc; 104 public static final int GDK_F2 = 0xffbf; 105 public static final int GDK_F3 = 0xffc0; 106 public static final int GDK_F4 = 0xffc1; 107 public static final int GDK_F5 = 0xffc2; 108 public static final int GDK_F6 = 0xffc3; 109 public static final int GDK_F7 = 0xffc4; 110 public static final int GDK_F8 = 0xffc5; 111 public static final int GDK_F9 = 0xffc6; 112 public static final int GDK_FLEUR = 0x34; 113 public static final int GDK_FOCUS_CHANGE = 0xc; 114 public static final int GDK_FOCUS_CHANGE_MASK = 0x4000; 115 public static final int GDK_GC_CLIP_MASK = 0x80; 116 public static final int GDK_GC_CLIP_X_ORIGIN = 0x800; 117 public static final int GDK_GC_CLIP_Y_ORIGIN = 0x1000; 118 public static final int GDK_GRAB_SUCCESS = 0x0; 119 public static final int GDK_HAND2 = 0x3c; 120 public static final int GDK_Help = 0xFF6A; 121 public static final int GDK_HINT_MIN_SIZE = 1 << 1; 122 public static final int GDK_Home = 0xff50; 123 public static final int GDK_INCLUDE_INFERIORS = 0x1; 124 public static final int GDK_INPUT_ONLY = 1; 125 public static final int GDK_INTERP_BILINEAR = 0x2; 126 public static final int GDK_Insert = 0xff63; 127 public static final int GDK_ISO_Left_Tab = 0xfe20; 128 public static final int GDK_JOIN_MITER = 0x0; 129 public static final int GDK_JOIN_ROUND = 0x1; 130 public static final int GDK_JOIN_BEVEL = 0x2; 131 public static final int GDK_KEY_PRESS = 0x8; 132 public static final int GDK_KEY_PRESS_MASK = 0x400; 133 public static final int GDK_KEY_RELEASE = 0x9; 134 public static final int GDK_KEY_RELEASE_MASK = 0x800; 135 public static final int GDK_KP_0 = 0xffb0; 136 public static final int GDK_KP_1 = 0xffb1; 137 public static final int GDK_KP_2 = 0xffb2; 138 public static final int GDK_KP_3 = 0xffb3; 139 public static final int GDK_KP_4 = 0xffb4; 140 public static final int GDK_KP_5 = 0xffb5; 141 public static final int GDK_KP_6 = 0xffb6; 142 public static final int GDK_KP_7 = 0xffb7; 143 public static final int GDK_KP_8 = 0xffb8; 144 public static final int GDK_KP_9 = 0xffb9; 145 public static final int GDK_KP_Add = 0xffab; 146 public static final int GDK_KP_Decimal = 0xffae; 147 public static final int GDK_KP_Delete = 0xFF9F; 148 public static final int GDK_KP_Divide = 0xffaf; 149 public static final int GDK_KP_Down = 0xFF99; 150 public static final int GDK_KP_End = 0xFF9C; 151 public static final int GDK_KP_Enter = 0xff8d; 152 public static final int GDK_KP_Equal = 0xffbd; 153 public static final int GDK_KP_Home = 0xFF95; 154 public static final int GDK_KP_Insert = 0xFF9E; 155 public static final int GDK_KP_Left = 0xFF96; 156 public static final int GDK_KP_Multiply = 0xffaa; 157 public static final int GDK_KP_Page_Down = 0xFF9B; 158 public static final int GDK_KP_Page_Up = 0xFF9A; 159 public static final int GDK_KP_Right = 0xFF98; 160 public static final int GDK_KP_Subtract = 0xffad; 161 public static final int GDK_KP_Up = 0xFF97; 162 public static final int GDK_LEAVE_NOTIFY = 11; 163 public static final int GDK_LEAVE_NOTIFY_MASK = 0x2000; 164 public static final int GDK_LEFT_PTR = 0x44; 165 public static final int GDK_LEFT_SIDE = 0x46; 166 public static final int GDK_LINE_ON_OFF_DASH = 0x1; 167 public static final int GDK_LINE_SOLID = 0x0; 168 public static final int GDK_Linefeed = 0xff0A; 169 public static final int GDK_LSB_FIRST = 0x0; 170 public static final int GDK_Left = 0xff51; 171 public static final int GDK_Meta_L = 0xFFE7; 172 public static final int GDK_Meta_R = 0xFFE8; 173 public static final int GDK_MAP = 14; 174 public static final int GDK_MOD1_MASK = 0x8; 175 public static final int GDK_MOTION_NOTIFY = 0x3; 176 public static final int GDK_NO_EXPOSE = 30; 177 public static final int GDK_NONE = 0; 178 public static final int GDK_NOTIFY_INFERIOR = 2; 179 public static final int GDK_Num_Lock = 0xFF7F; 180 public static final int GDK_OVERLAP_RECTANGLE_OUT = 0x1; 181 public static final int GDK_PIXBUF_ALPHA_BILEVEL = 0x0; 182 public static final int GDK_POINTER_MOTION_HINT_MASK = 0x8; 183 public static final int GDK_POINTER_MOTION_MASK = 0x4; 184 public static final int GDK_PROPERTY_NOTIFY = 16; 185 public static final int GDK_Page_Down = 0xff56; 186 public static final int GDK_Page_Up = 0xff55; 187 public static final int GDK_Pause = 0xff13; 188 public static final int GDK_Print = 0xff61; 189 public static final int GDK_QUESTION_ARROW = 0x5c; 190 public static final int GDK_RGB_DITHER_NORMAL = 0x1; 191 public static final int GDK_RIGHT_SIDE = 0x60; 192 public static final int GDK_Return = 0xff0d; 193 public static final int GDK_Right = 0xff53; 194 public static final int GDK_space = 0x20; 195 public static final int GDK_SB_H_DOUBLE_ARROW = 0x6c; 196 public static final int GDK_SB_UP_ARROW = 0x72; 197 public static final int GDK_SB_V_DOUBLE_ARROW = 0x74; 198 public static final int GDK_SCROLL_UP = 0; 199 public static final int GDK_SCROLL_DOWN = 1; 200 public static final int GDK_SCROLL_LEFT = 2; 201 public static final int GDK_SCROLL_RIGHT = 3; 202 public static final int GDK_SELECTION_CLEAR = 17; 203 public static final int GDK_SELECTION_NOTIFY = 19; 204 public static final int GDK_SELECTION_REQUEST = 18; 205 public static final int GDK_SHIFT_MASK = 0x1; 206 public static final int GDK_SIZING = 0x78; 207 public static final int GDK_STIPPLED = 0x2; 208 public static final int GDK_Shift_L = 0xffe1; 209 public static final int GDK_Shift_R = 0xffe2; 210 public static final int GDK_SCROLL = 31; 211 public static final int GDK_Scroll_Lock = 0xff14; 212 public static final int GDK_TOP_LEFT_CORNER = 0x86; 213 public static final int GDK_TOP_RIGHT_CORNER = 0x88; 214 public static final int GDK_TOP_SIDE = 0x8a; 215 public static final int GDK_Tab = 0xff09; 216 public static final int GDK_Up = 0xff52; 217 public static final int GDK_WATCH = 0x96; 218 public static final int GDK_XOR = 0x2; 219 public static final int GDK_XTERM = 0x98; 220 public static final int GDK_X_CURSOR = 0x0; 221 public static final int GDK_VISIBILITY_FULLY_OBSCURED = 2; 222 public static final int GDK_VISIBILITY_NOTIFY_MASK = 1 << 17; 223 public static final int GDK_WINDOW_CHILD = 2; 224 public static final int GDK_WINDOW_STATE_ICONIFIED = 1 << 1; 225 public static final int GDK_WINDOW_STATE_MAXIMIZED = 1 << 2; 226 public static final int GTK_ACCEL_VISIBLE = 0x1; 227 public static final int GTK_ARROW_DOWN = 0x1; 228 public static final int GTK_ARROW_LEFT = 0x2; 229 public static final int GTK_ARROW_RIGHT = 0x3; 230 public static final int GTK_ARROW_UP = 0x0; 231 public static final int GTK_CAN_DEFAULT = 0x2000; 232 public static final int GTK_CAN_FOCUS = 0x800; 233 public static final int GTK_CELL_RENDERER_MODE_ACTIVATABLE = 1; 234 public static final int GTK_CLIST_SHOW_TITLES = 0x4; 235 public static final int GTK_CORNER_TOP_LEFT = 0x0; 236 public static final int GTK_CORNER_TOP_RIGHT = 0x2; 237 public static final int GTK_DIALOG_DESTROY_WITH_PARENT = 1 << 1; 238 public static final int GTK_DIALOG_MODAL = 1 << 0; 239 public static final int GTK_DIR_TAB_FORWARD = 0; 240 public static final int GTK_DIR_TAB_BACKWARD = 1; 241 public static final int GTK_FILE_CHOOSER_ACTION_OPEN = 0; 242 public static final int GTK_FILE_CHOOSER_ACTION_SAVE = 1; 243 public static final int GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER = 2; 244 public static final int GTK_HAS_FOCUS = 1 << 12; 245 public static final int GTK_ICON_SIZE_DIALOG = 6; 246 public static final int GTK_JUSTIFY_CENTER = 0x2; 247 public static final int GTK_JUSTIFY_LEFT = 0x0; 248 public static final int GTK_JUSTIFY_RIGHT = 0x1; 249 public static final int GTK_MAPPED = 1 << 7; 250 public static final int GTK_MESSAGE_INFO = 0; 251 public static final int GTK_MESSAGE_WARNING = 1; 252 public static final int GTK_MESSAGE_QUESTION = 2; 253 public static final int GTK_MESSAGE_ERROR = 3; 254 public static final int GTK_NO_WINDOW = 1 << 5; 255 public static final int GTK_ORIENTATION_HORIZONTAL = 0x0; 256 public static final int GTK_ORIENTATION_VERTICAL = 0x1; 257 public static final int GTK_PACK_START = 0; 258 public static final int GTK_POLICY_ALWAYS = 0x0; 259 public static final int GTK_POLICY_AUTOMATIC = 0x1; 260 public static final int GTK_POLICY_NEVER = 0x2; 261 public static final int GTK_POS_BOTTOM = 0x3; 262 public static final int GTK_PROGRESS_CONTINUOUS = 0x0; 263 public static final int GTK_PROGRESS_DISCRETE = 0x1; 264 public static final int GTK_PROGRESS_LEFT_TO_RIGHT = 0x0; 265 public static final int GTK_PROGRESS_BOTTOM_TO_TOP = 0x2; 266 public static final int GTK_REALIZED = 1 << 6; 267 public static final int GTK_RELIEF_NONE = 0x2; 268 public static final int GTK_RC_BG = 1 << 1; 269 public static final int GTK_RC_FG = 1 << 0; 270 public static final int GTK_RESPONSE_CANCEL = 0xfffffffa; 271 public static final int GTK_RESPONSE_OK = 0xfffffffb; 272 public static final int GTK_SCROLL_NONE = 0; 273 public static final int GTK_SCROLL_JUMP = 1; 274 public static final int GTK_SCROLL_STEP_BACKWARD = 2; 275 public static final int GTK_SCROLL_STEP_FORWARD = 3; 276 public static final int GTK_SCROLL_PAGE_BACKWARD = 4; 277 public static final int GTK_SCROLL_PAGE_FORWARD = 5; 278 public static final int GTK_SCROLL_STEP_UP = 6; 279 public static final int GTK_SCROLL_STEP_DOWN = 7; 280 public static final int GTK_SCROLL_PAGE_UP = 8; 281 public static final int GTK_SCROLL_PAGE_DOWN = 9; 282 public static final int GTK_SCROLL_STEP_LEFT = 10; 283 public static final int GTK_SCROLL_STEP_RIGHT = 11; 284 public static final int GTK_SCROLL_PAGE_LEFT = 12; 285 public static final int GTK_SCROLL_PAGE_RIGHT = 13; 286 public static final int GTK_SCROLL_START = 14; 287 public static final int GTK_SCROLL_END = 15; 288 public static final int GTK_SELECTION_BROWSE = 0x2; 289 public static final int GTK_SELECTION_MULTIPLE = 0x3; 290 public static final int GTK_SENSITIVE = 0x200; 291 public static final int GTK_SHADOW_ETCHED_IN = 0x3; 292 public static final int GTK_SHADOW_ETCHED_OUT = 0x4; 293 public static final int GTK_SHADOW_IN = 0x1; 294 public static final int GTK_SHADOW_NONE = 0x0; 295 public static final int GTK_SHADOW_OUT = 0x2; 296 public static final int GTK_STATE_ACTIVE = 0x1; 297 public static final int GTK_STATE_INSENSITIVE = 0x4; 298 public static final int GTK_STATE_NORMAL = 0x0; 299 public static final int GTK_STATE_PRELIGHT = 0x2; 300 public static final int GTK_STATE_SELECTED = 0x3; 301 public static final int GTK_TEXT_DIR_LTR = 1; 302 public static final int GTK_TEXT_DIR_NONE = 0 ; 303 public static final int GTK_TEXT_DIR_RTL = 2; 304 public static final int GTK_TEXT_WINDOW_TEXT = 2; 305 public static final int GTK_TOOLBAR_CHILD_BUTTON = 0x1; 306 public static final int GTK_TOOLBAR_CHILD_RADIOBUTTON = 0x3; 307 public static final int GTK_TOOLBAR_CHILD_TOGGLEBUTTON = 0x2; 308 public static final int GTK_TREE_VIEW_COLUMN_GROW_ONLY = 0; 309 public static final int GTK_TREE_VIEW_COLUMN_AUTOSIZE = 1; 310 public static final int GTK_TREE_VIEW_COLUMN_FIXED = 2; 311 public static final int GTK_TREE_VIEW_DROP_BEFORE = 0; 312 public static final int GTK_TREE_VIEW_DROP_AFTER = 1; 313 public static final int GTK_TREE_VIEW_DROP_INTO_OR_BEFORE = 2; 314 public static final int GTK_TREE_VIEW_DROP_INTO_OR_AFTER = 3; 315 public static final int GDK_UNMAP = 15; 316 public static final int GTK_VISIBILITY_FULL = 0x2; 317 public static final int GTK_VISIBILITY_NONE = 0x0; 318 public static final int GTK_VISIBLE = 0x100; 319 public static final int GDK_WA_X = 1 << 2; 320 public static final int GDK_WA_Y = 1 << 3; 321 public static final int GTK_WINDOW_POPUP = 0x1; 322 public static final int GTK_WINDOW_TOPLEVEL = 0x0; 323 public static final int GDK_WINDOW_TYPE_HINT_DIALOG = 1; 324 public static final int GTK_WRAP_NONE = 0; 325 public static final int GTK_WRAP_WORD = 2; 326 public static final int G_LOG_FLAG_FATAL = 0x2; 327 public static final int G_LOG_FLAG_RECURSION = 0x1; 328 public static final int G_LOG_LEVEL_MASK = 0xfffffffc; 329 public static final int None = 0; 330 public static final int PANGO_ALIGN_LEFT = 0; 331 public static final int PANGO_ALIGN_CENTER = 1; 332 public static final int PANGO_ALIGN_RIGHT = 2; 333 public static final int PANGO_DIRECTION_LTR = 0; 334 public static final int PANGO_DIRECTION_RTL = 1; 335 public static final int PANGO_SCALE = 1024; 336 public static final int PANGO_STRETCH_NORMAL = 0x4; 337 public static final int PANGO_STYLE_ITALIC = 0x2; 338 public static final int PANGO_STYLE_NORMAL = 0x0; 339 public static final int PANGO_STYLE_OBLIQUE = 0x1; 340 public static final int PANGO_TAB_LEFT = 0; 341 public static final int PANGO_UNDERLINE_LOW = 3; 342 public static final int PANGO_UNDERLINE_SINGLE = 1; 343 public static final int PANGO_WEIGHT_BOLD = 0x2bc; 344 public static final int PANGO_WEIGHT_NORMAL = 0x190; 345 public static final int PANGO_WRAP_WORD = 0; 346 public static final int PANGO_WRAP_WORD_CHAR = 2; 347 public static final int XA_CARDINAL = 6; 348 public static final int XA_WINDOW = 33; 349 350 351 public static final byte[] activate = ascii("activate"); 352 public static final byte[] button_press_event = ascii("button-press-event"); 353 public static final byte[] button_release_event = ascii("button-release-event"); 354 public static final byte[] changed = ascii("changed"); 355 public static final byte[] change_current_page = ascii("change-current-page"); 356 public static final byte[] change_value = ascii("change-value"); 357 public static final byte[] clicked = ascii("clicked"); 358 public static final byte[] commit = ascii("commit"); 359 public static final byte[] configure_event = ascii("configure-event"); 360 public static final byte[] delete_event = ascii("delete-event"); 361 public static final byte[] delete_range = ascii("delete-range"); 362 public static final byte[] delete_text = ascii("delete-text"); 363 public static final byte[] drag_data_delete = ascii("drag_data_delete"); 364 public static final byte[] drag_data_get = ascii("drag_data_get"); 365 public static final byte[] drag_data_received = ascii("drag_data_received"); 366 public static final byte[] drag_drop = ascii("drag_drop"); 367 public static final byte[] drag_end = ascii("drag_end"); 368 public static final byte[] drag_leave = ascii("drag_leave"); 369 public static final byte[] drag_motion = ascii("drag_motion"); 370 public static final byte[] enter_notify_event = ascii("enter-notify-event"); 371 public static final byte[] event = ascii("event"); 372 public static final byte[] event_after = ascii("event-after"); 373 public static final byte[] expand_collapse_cursor_row = ascii("expand-collapse-cursor-row"); 374 public static final byte[] expose_event = ascii("expose-event"); 375 public static final byte[] focus = ascii("focus"); 376 public static final byte[] focus_in_event = ascii("focus-in-event"); 377 public static final byte[] focus_out_event = ascii("focus-out-event"); 378 public static final byte[] hide = ascii("hide"); 379 public static final byte[] input = ascii("input"); 380 public static final byte[] insert_text = ascii("insert-text"); 381 public static final byte[] key_press_event = ascii("key-press-event"); 382 public static final byte[] key_release_event = ascii("key-release-event"); 383 public static final byte[] leave_notify_event = ascii("leave-notify-event"); 384 public static final byte[] map = ascii("map"); 385 public static final byte[] map_event = ascii("map-event"); 386 public static final byte[] mnemonic_activate = ascii("mnemonic-activate"); 387 public static final byte[] motion_notify_event = ascii("motion-notify-event"); 388 public static final byte[] move_focus = ascii("move-focus"); 389 public static final byte[] output = ascii("output"); 390 public static final byte[] popup_menu = ascii("popup-menu"); 391 public static final byte[] preedit_changed = ascii("preedit-changed"); 392 public static final byte[] realize = ascii("realize"); 393 public static final byte[] row_activated = ascii("row-activated"); 394 public static final byte[] row_changed = ascii("row-changed"); 395 public static final byte[] scroll_child = ascii("scroll-child"); 396 public static final byte[] scroll_event = ascii("scroll-event"); 397 public static final byte[] select = ascii("select"); 398 public static final byte[] show = ascii("show"); 399 public static final byte[] show_help = ascii("show-help"); 400 public static final byte[] size_allocate = ascii("size-allocate"); 401 public static final byte[] style_set = ascii("style-set"); 402 public static final byte[] switch_page = ascii("switch-page"); 403 public static final byte[] test_collapse_row = ascii("test-collapse-row"); 404 public static final byte[] test_expand_row = ascii("test-expand-row"); 405 public static final byte[] toggled = ascii("toggled"); 406 public static final byte[] unmap = ascii("unmap"); 407 public static final byte[] unmap_event = ascii("unmap-event"); 408 public static final byte[] unrealize = ascii("unrealize"); 409 public static final byte[] value_changed = ascii("value-changed"); 410 public static final byte[] visibility_notify_event = ascii("visibility-notify-event"); 411 public static final byte[] window_state_event = ascii("window-state-event"); 412 413 414 public static final byte[] active = ascii("active"); 415 public static final byte[] background_gdk = ascii("background-gdk"); 416 public static final byte[] button_relief = ascii("button-relief"); 417 public static final byte[] cell_background_gdk = ascii("cell-background-gdk"); 418 public static final byte[] default_border = ascii("default-border"); 419 public static final byte[] expander_size = ascii("expander-size"); 420 public static final byte[] fixed_height_mode = ascii("fixed-height-mode"); 421 public static final byte[] focus_line_width = ascii("focus-line-width"); 422 public static final byte[] font_desc = ascii("font-desc"); 423 public static final byte[] foreground_gdk = ascii("foreground-gdk"); 424 public static final byte[] gtk_cursor_blink = ascii("gtk-cursor-blink"); 425 public static final byte[] gtk_cursor_blink_time = ascii("gtk-cursor-blink-time"); 426 public static final byte[] gtk_double_click_time = ascii("gtk-double-click-time"); 427 public static final byte[] horizontal_separator = ascii("horizontal-separator"); 428 public static final byte[] inconsistent = ascii("inconsistent"); 429 public static final byte[] interior_focus = ascii("interior-focus"); 430 public static final byte[] mode = ascii("mode"); 431 public static final byte[] pixbuf = ascii("pixbuf"); 432 public static final byte[] text = ascii("text"); 433 public static final byte[] xalign = ascii("xalign"); 434 435 public static final int GTK_VERSION = VERSION(gtk_major_version(), gtk_minor_version(), gtk_micro_version()); 436 437 protected static byte [] ascii (String name) { 438 int length = name.length (); 439 char [] chars = new char [length]; 440 name.getChars (0, length, chars, 0); 441 byte [] buffer = new byte [length + 1]; 442 for (int i=0; i<length; i++) { 443 buffer [i] = (byte) chars [i]; 444 } 445 return buffer; 446 } 447 448 public static int VERSION(int major, int minor, int micro) { 449 return (major << 16) + (minor << 8) + micro; 450 } 451 452 453 public static final int PTR_SIZEOF = PTR_sizeof(); 454 public static final native int PTR_sizeof(); 455 public static final native int GInterfaceInfo_sizeof (); 456 public static final native int GPollFD_sizeof (); 457 public static final native int GTypeInfo_sizeof (); 458 public static final native int GTypeQuery_sizeof (); 459 public static final native int GdkColor_sizeof(); 460 public static final native int GdkDragContext_sizeof(); 461 public static final native int GdkEvent_sizeof(); 462 public static final native int GdkEventAny_sizeof(); 463 public static final native int GdkEventButton_sizeof(); 464 public static final native int GdkEventCrossing_sizeof(); 465 public static final native int GdkEventExpose_sizeof(); 466 public static final native int GdkEventFocus_sizeof(); 467 public static final native int GdkEventKey_sizeof(); 468 public static final native int GdkEventMotion_sizeof(); 469 public static final native int GdkEventScroll_sizeof(); 470 public static final native int GdkEventVisibility_sizeof(); 471 public static final native int GdkEventWindowState_sizeof(); 472 public static final native int GdkGCValues_sizeof(); 473 public static final native int GdkGeometry_sizeof(); 474 public static final native int GdkImage_sizeof(); 475 public static final native int GdkRectangle_sizeof(); 476 public static final native int GdkVisual_sizeof(); 477 public static final native int GdkWindowAttr_sizeof(); 478 public static final native int GtkAdjustment_sizeof(); 479 public static final native int GtkAllocation_sizeof(); 480 public static final native int GtkBorder_sizeof(); 481 public static final native int GtkColorSelectionDialog_sizeof(); 482 public static final native int GtkCombo_sizeof(); 483 public static final native int GtkFileSelection_sizeof(); 484 public static final native int GtkFixed_sizeof(); 485 public static final native int GtkFixedClass_sizeof(); 486 public static final native int GtkRequisition_sizeof(); 487 public static final native int GtkSelectionData_sizeof(); 488 public static final native int GtkTargetEntry_sizeof(); 489 public static final native int GtkTargetPair_sizeof(); 490 public static final native int GtkTextIter_sizeof(); 491 public static final native int GtkTreeIter_sizeof(); 492 public static final native int PangoAttribute_sizeof(); 493 public static final native int PangoItem_sizeof(); 494 public static final native int PangoLayoutLine_sizeof(); 495 public static final native int PangoLayoutRun_sizeof(); 496 public static final native int PangoLogAttr_sizeof(); 497 public static final native int PangoRectangle_sizeof(); 498 public static final native int XAnyEvent_sizeof(); 499 public static final native int XButtonEvent_sizeof(); 500 public static final native int XClientMessageEvent_sizeof(); 501 public static final native int XEvent_sizeof(); 502 public static final native int XCrossingEvent_sizeof(); 503 public static final native int XExposeEvent_sizeof(); 504 public static final native int XFocusChangeEvent_sizeof(); 505 public static final native int XVisibilityEvent_sizeof(); 506 public static final native int XWindowChanges_sizeof(); 507 public static final native int getenv(byte[] name); 508 public static final native int localeconv_decimal_point(); 509 public static final native int strlen(int str); 510 511 512 public static final native int GTK_WIDGET_HEIGHT(int widget); 513 public static final native int GTK_WIDGET_WIDTH(int widget); 514 public static final native int GTK_WIDGET_WINDOW(int widget); 515 public static final native int GTK_WIDGET_X(int widget); 516 public static final native int GTK_WIDGET_Y(int widget); 517 public static final native int GTK_SCROLLED_WINDOW_HSCROLLBAR(int widget); 518 public static final native int GTK_SCROLLED_WINDOW_VSCROLLBAR(int widget); 519 public static final native int GTK_SCROLLED_WINDOW_SCROLLBAR_SPACING(int widget); 520 public static final native void GTK_ACCEL_LABEL_SET_ACCEL_STRING(int acce_label, int string); 521 public static final native int GTK_ACCEL_LABEL_GET_ACCEL_STRING(int acce_label); 522 public static final native int GTK_ENTRY_IM_CONTEXT(int widget); 523 public static final native int GTK_TEXTVIEW_IM_CONTEXT(int widget); 524 public static final native void GTK_WIDGET_SET_HEIGHT(int widget, int height); 525 public static final native void GTK_WIDGET_SET_WIDTH(int widget, int width); 526 public static final native void GTK_WIDGET_SET_X(int widget, int x); 527 public static final native void GTK_WIDGET_SET_Y(int widget, int y); 528 public static final native int GTK_WIDGET_REQUISITION_WIDTH(int widget); 529 public static final native int GTK_WIDGET_REQUISITION_HEIGHT(int widget); 530 531 532 public static final int Above = 0; 533 public static final int Below = 1; 534 public static final int ButtonRelease = 5; 535 public static final int ClientMessage = 33; 536 public static final int CurrentTime = 0; 537 public static final int CWSibling = 0x20; 538 public static final int CWStackMode = 0x40; 539 public static final int EnterNotify = 7; 540 public static final int Expose = 12; 541 public static final int FocusChangeMask = 1 << 21; 542 public static final int FocusIn = 9; 543 public static final int FocusOut = 10; 544 public static final int GraphicsExpose = 13; 545 public static final int NoExpose = 14; 546 public static final int ExposureMask = 1 << 15; 547 public static final int NoEventMask = 0; 548 public static final int NotifyNonlinear = 3; 549 public static final int NotifyPointer = 5; 550 public static final int RevertToParent = 2; 551 public static final int VisibilityChangeMask = 1 << 16; 552 public static final int VisibilityFullyObscured = 2; 553 public static final int VisibilityNotify = 15; 554 public static final int SYSTEM_TRAY_REQUEST_DOCK = 0; 555 public static final native int _Call(int proc, int arg1, int arg2); 556 public static final int Call(int proc, int arg1, int arg2) { 557 lock.lock(); 558 try { 559 return _Call(proc, arg1, arg2); 560 } finally { 561 lock.unlock(); 562 } 563 } 564 public static final native boolean GDK_WINDOWING_X11(); 565 public static final native int _GDK_PIXMAP_XID(int pixmap); 566 public static final int GDK_PIXMAP_XID(int pixmap) { 567 lock.lock(); 568 try { 569 return _GDK_PIXMAP_XID(pixmap); 570 } finally { 571 lock.unlock(); 572 } 573 } 574 public static final native boolean _XCheckMaskEvent(int display, int event_mask, int event_return); 575 public static final boolean XCheckMaskEvent(int display, int event_mask, int event_return) { 576 lock.lock(); 577 try { 578 return _XCheckMaskEvent(display, event_mask, event_return); 579 } finally { 580 lock.unlock(); 581 } 582 } 583 public static final native boolean _XCheckWindowEvent(int display, int window, int event_mask, int event_return); 584 public static final boolean XCheckWindowEvent(int display, int window, int event_mask, int event_return) { 585 lock.lock(); 586 try { 587 return _XCheckWindowEvent(display, window, event_mask, event_return); 588 } finally { 589 lock.unlock(); 590 } 591 } 592 public static final native boolean _XCheckIfEvent(int display, int event_return, int predicate, int arg); 593 public static final boolean XCheckIfEvent(int display, int event_return, int predicate, int arg) { 594 lock.lock(); 595 try { 596 return _XCheckIfEvent(display, event_return, predicate, arg); 597 } finally { 598 lock.unlock(); 599 } 600 } 601 public static final native int _XDefaultScreen(int display); 602 public static final int XDefaultScreen(int display) { 603 lock.lock(); 604 try { 605 return _XDefaultScreen(display); 606 } finally { 607 lock.unlock(); 608 } 609 } 610 public static final native int _XDefaultRootWindow(int display); 611 public static final int XDefaultRootWindow(int display) { 612 lock.lock(); 613 try { 614 return _XDefaultRootWindow(display); 615 } finally { 616 lock.unlock(); 617 } 618 } 619 public static final native void _XFlush(int display); 620 public static final void XFlush(int display) { 621 lock.lock(); 622 try { 623 _XFlush(display); 624 } finally { 625 lock.unlock(); 626 } 627 } 628 public static final native void _XFree(int address); 629 public static final void XFree(int address) { 630 lock.lock(); 631 try { 632 _XFree(address); 633 } finally { 634 lock.unlock(); 635 } 636 } 637 public static final native int _XGetSelectionOwner(int display, int selection); 638 public static final int XGetSelectionOwner(int display, int selection) { 639 lock.lock(); 640 try { 641 return _XGetSelectionOwner(display, selection); 642 } finally { 643 lock.unlock(); 644 } 645 } 646 public static final native int _XInternAtom(int display, byte[] name, boolean ifExists); 647 public static final int XInternAtom(int display, byte[] name, boolean ifExists) { 648 lock.lock(); 649 try { 650 return _XInternAtom(display, name, ifExists); 651 } finally { 652 lock.unlock(); 653 } 654 } 655 public static final native int _XQueryTree(int display, int w, int [] root_return, int [] parent_return, int [] children_return, int[] nchildren_return); 656 public static final int XQueryTree(int display, int w, int [] root_return, int [] parent_return, int [] children_return, int[] nchildren_return) { 657 lock.lock(); 658 try { 659 return _XQueryTree(display, w, root_return, parent_return, children_return, nchildren_return); 660 } finally { 661 lock.unlock(); 662 } 663 } 664 public static final native int _XKeysymToKeycode(int display, int keysym); 665 public static final int XKeysymToKeycode(int display, int keysym) { 666 lock.lock(); 667 try { 668 return _XKeysymToKeycode(display, keysym); 669 } finally { 670 lock.unlock(); 671 } 672 } 673 public static final native int _XListProperties(int display, int window, int[] num_prop_return); 674 public static final int XListProperties(int display, int window, int[] num_prop_return) { 675 lock.lock(); 676 try { 677 return _XListProperties(display, window, num_prop_return); 678 } finally { 679 lock.unlock(); 680 } 681 } 682 public static final native int _XReconfigureWMWindow(int display, int window, int screen, int valueMask, XWindowChanges values); 683 public static final int XReconfigureWMWindow(int display, int window, int screen, int valueMask, XWindowChanges values) { 684 lock.lock(); 685 try { 686 return _XReconfigureWMWindow(display, window, screen, valueMask, values); 687 } finally { 688 lock.unlock(); 689 } 690 } 691 public static final native int _XSendEvent(int display, int w, boolean propogate, int event_mask, int event_send); 692 public static final int XSendEvent(int display, int w, boolean propogate, int event_mask, int event_send) { 693 lock.lock(); 694 try { 695 return _XSendEvent(display, w, propogate, event_mask, event_send); 696 } finally { 697 lock.unlock(); 698 } 699 } 700 public static final native int _XSetIOErrorHandler(int handler); 701 public static final int XSetIOErrorHandler(int handler) { 702 lock.lock(); 703 try { 704 return _XSetIOErrorHandler(handler); 705 } finally { 706 lock.unlock(); 707 } 708 } 709 public static final native int _XSetErrorHandler(int handler); 710 public static final int XSetErrorHandler(int handler) { 711 lock.lock(); 712 try { 713 return _XSetErrorHandler(handler); 714 } finally { 715 lock.unlock(); 716 } 717 } 718 public static final native int _XSetInputFocus(int display, int window, int revert, int time); 719 public static final int XSetInputFocus(int display, int window, int revert, int time) { 720 lock.lock(); 721 try { 722 return _XSetInputFocus(display, window, revert, time); 723 } finally { 724 lock.unlock(); 725 } 726 } 727 public static final native int _XSynchronize(int display, boolean onoff); 728 public static final int XSynchronize(int display, boolean onoff) { 729 lock.lock(); 730 try { 731 return _XSynchronize(display, onoff); 732 } finally { 733 lock.unlock(); 734 } 735 } 736 public static final native void _XTestFakeButtonEvent(int display, int button, boolean is_press, int delay); 737 public static final void XTestFakeButtonEvent(int display, int button, boolean is_press, int delay) { 738 lock.lock(); 739 try { 740 _XTestFakeButtonEvent(display, button, is_press, delay); 741 } finally { 742 lock.unlock(); 743 } 744 } 745 public static final native void _XTestFakeKeyEvent(int display, int keycode, boolean is_press, int delay); 746 public static final void XTestFakeKeyEvent(int display, int keycode, boolean is_press, int delay) { 747 lock.lock(); 748 try { 749 _XTestFakeKeyEvent(display, keycode, is_press, delay); 750 } finally { 751 lock.unlock(); 752 } 753 } 754 public static final native void _XTestFakeMotionEvent(int display, int screen_number, int x, int y, int delay); 755 public static final void XTestFakeMotionEvent(int display, int screen_number, int x, int y, int delay) { 756 lock.lock(); 757 try { 758 _XTestFakeMotionEvent(display, screen_number, x, y, delay); 759 } finally { 760 lock.unlock(); 761 } 762 } 763 public static final native int _XWarpPointer(int display, int sourceWindow, int destWindow, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int destX, int destY); 764 public static final int XWarpPointer(int display, int sourceWindow, int destWindow, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int destX, int destY) { 765 lock.lock(); 766 try { 767 return _XWarpPointer(display, sourceWindow, destWindow, sourceX, sourceY, sourceWidth, sourceHeight, destX, destY); 768 } finally { 769 lock.unlock(); 770 } 771 } 772 public static final native int _gdk_x11_atom_to_xatom(int atom); 773 public static final int gdk_x11_atom_to_xatom(int atom) { 774 lock.lock(); 775 try { 776 return _gdk_x11_atom_to_xatom(atom); 777 } finally { 778 lock.unlock(); 779 } 780 } 781 public static final native int _gdk_x11_colormap_get_xcolormap(int colormap); 782 public static final int gdk_x11_colormap_get_xcolormap(int colormap) { 783 lock.lock(); 784 try { 785 return _gdk_x11_colormap_get_xcolormap(colormap); 786 } finally { 787 lock.unlock(); 788 } 789 } 790 public static final native int _gdk_x11_drawable_get_xdisplay(int drawable); 791 public static final int gdk_x11_drawable_get_xdisplay(int drawable) { 792 lock.lock(); 793 try { 794 return _gdk_x11_drawable_get_xdisplay(drawable); 795 } finally { 796 lock.unlock(); 797 } 798 } 799 public static final native int _gdk_x11_drawable_get_xid(int drawable); 800 public static final int gdk_x11_drawable_get_xid(int drawable) { 801 lock.lock(); 802 try { 803 return _gdk_x11_drawable_get_xid(drawable); 804 } finally { 805 lock.unlock(); 806 } 807 } 808 public static final native int _gdk_x11_screen_get_window_manager_name(int screen); 809 public static final int gdk_x11_screen_get_window_manager_name(int screen) { 810 lock.lock(); 811 try { 812 return _gdk_x11_screen_get_window_manager_name(screen); 813 } finally { 814 lock.unlock(); 815 } 816 } 817 public static final native int _gdk_x11_visual_get_xvisual(int visual); 818 public static final int gdk_x11_visual_get_xvisual(int visual) { 819 lock.lock(); 820 try { 821 return _gdk_x11_visual_get_xvisual(visual); 822 } finally { 823 lock.unlock(); 824 } 825 } 826 public static final native int _gdk_pixmap_foreign_new(int anid); 827 public static final int gdk_pixmap_foreign_new(int anid) { 828 lock.lock(); 829 try { 830 return _gdk_pixmap_foreign_new(anid); 831 } finally { 832 lock.unlock(); 833 } 834 } 835 public static final native int _gdk_window_lookup(int xid); 836 public static final int gdk_window_lookup(int xid) { 837 lock.lock(); 838 try { 839 return _gdk_window_lookup(xid); 840 } finally { 841 lock.unlock(); 842 } 843 } 844 public static final native void _gdk_window_add_filter(int window, int function, int data); 845 public static final void gdk_window_add_filter(int window, int function, int data) { 846 lock.lock(); 847 try { 848 _gdk_window_add_filter(window, function, data); 849 } finally { 850 lock.unlock(); 851 } 852 } 853 public static final native void _gdk_window_remove_filter(int window, int function, int data); 854 public static final void gdk_window_remove_filter(int window, int function, int data) { 855 lock.lock(); 856 try { 857 _gdk_window_remove_filter(window, function, data); 858 } finally { 859 lock.unlock(); 860 } 861 } 862 public static final native void memmove(int dest, XButtonEvent src, int size); 863 public static final native void memmove(int dest, XClientMessageEvent src, int size); 864 public static final native void memmove(int dest, XCrossingEvent src, int size); 865 public static final native void memmove(int dest, XExposeEvent src, int size); 866 public static final native void memmove(int dest, XFocusChangeEvent src, int size); 867 public static final native void memmove(XButtonEvent dest, int src, int size); 868 public static final native void memmove(XCrossingEvent dest, int src, int size); 869 public static final native void memmove(XExposeEvent dest, int src, int size); 870 public static final native void memmove(XFocusChangeEvent dest, int src, int size); 871 public static final native void memmove(XVisibilityEvent dest, int src, int size); 872 873 874 public static final native int Call (int func, int arg0, int arg1, int arg2); 875 public static final native int _GDK_DISPLAY(); 876 public static final int GDK_DISPLAY() { 877 lock.lock(); 878 try { 879 return _GDK_DISPLAY(); 880 } finally { 881 lock.unlock(); 882 } 883 } 884 public static final native int _GDK_ROOT_PARENT(); 885 public static final int GDK_ROOT_PARENT() { 886 lock.lock(); 887 try { 888 return _GDK_ROOT_PARENT(); 889 } finally { 890 lock.unlock(); 891 } 892 } 893 public static final native int _GDK_TYPE_COLOR(); 894 public static final int GDK_TYPE_COLOR() { 895 lock.lock(); 896 try { 897 return _GDK_TYPE_COLOR(); 898 } finally { 899 lock.unlock(); 900 } 901 } 902 public static final native int _GDK_TYPE_PIXBUF(); 903 public static final int GDK_TYPE_PIXBUF() { 904 lock.lock(); 905 try { 906 return _GDK_TYPE_PIXBUF(); 907 } finally { 908 lock.unlock(); 909 } 910 } 911 public static final native boolean _GTK_IS_BUTTON(int obj); 912 public static final boolean GTK_IS_BUTTON(int obj) { 913 lock.lock(); 914 try { 915 return _GTK_IS_BUTTON(obj); 916 } finally { 917 lock.unlock(); 918 } 919 } 920 public static final native boolean _GTK_IS_CELL_RENDERER_PIXBUF(int obj); 921 public static final boolean GTK_IS_CELL_RENDERER_PIXBUF(int obj) { 922 lock.lock(); 923 try { 924 return _GTK_IS_CELL_RENDERER_PIXBUF(obj); 925 } finally { 926 lock.unlock(); 927 } 928 } 929 public static final native boolean _GTK_IS_CELL_RENDERER_TEXT(int obj); 930 public static final boolean GTK_IS_CELL_RENDERER_TEXT(int obj) { 931 lock.lock(); 932 try { 933 return _GTK_IS_CELL_RENDERER_TEXT(obj); 934 } finally { 935 lock.unlock(); 936 } 937 } 938 public static final native boolean _GTK_IS_CONTAINER(int obj); 939 public static final boolean GTK_IS_CONTAINER(int obj) { 940 lock.lock(); 941 try { 942 return _GTK_IS_CONTAINER(obj); 943 } finally { 944 lock.unlock(); 945 } 946 } 947 public static final native boolean _GTK_IS_IMAGE_MENU_ITEM(int obj); 948 public static final boolean GTK_IS_IMAGE_MENU_ITEM(int obj) { 949 lock.lock(); 950 try { 951 return _GTK_IS_IMAGE_MENU_ITEM(obj); 952 } finally { 953 lock.unlock(); 954 } 955 } 956 public static final native int _GTK_STOCK_CANCEL(); 957 public static final int GTK_STOCK_CANCEL() { 958 lock.lock(); 959 try { 960 return _GTK_STOCK_CANCEL(); 961 } finally { 962 lock.unlock(); 963 } 964 } 965 public static final native int _GTK_STOCK_OK(); 966 public static final int GTK_STOCK_OK() { 967 lock.lock(); 968 try { 969 return _GTK_STOCK_OK(); 970 } finally { 971 lock.unlock(); 972 } 973 } 974 public static final native int _GTK_TYPE_FIXED(); 975 public static final int GTK_TYPE_FIXED() { 976 lock.lock(); 977 try { 978 return _GTK_TYPE_FIXED(); 979 } finally { 980 lock.unlock(); 981 } 982 } 983 public static final native int _GTK_WIDGET_FLAGS(int wid); 984 public static final int GTK_WIDGET_FLAGS(int wid) { 985 lock.lock(); 986 try { 987 return _GTK_WIDGET_FLAGS(wid); 988 } finally { 989 lock.unlock(); 990 } 991 } 992 public static final native int _GTK_WIDGET_STATE(int wid); 993 public static final int GTK_WIDGET_STATE(int wid) { 994 lock.lock(); 995 try { 996 return _GTK_WIDGET_STATE(wid); 997 } finally { 998 lock.unlock(); 999 } 1000} 1001public static final native boolean _GTK_WIDGET_HAS_DEFAULT(int wid); 1002public static final boolean GTK_WIDGET_HAS_DEFAULT(int wid) { 1003 lock.lock(); 1004 try { 1005 return _GTK_WIDGET_HAS_DEFAULT(wid); 1006 } finally { 1007 lock.unlock(); 1008 } 1009} 1010public static final native boolean _GTK_WIDGET_HAS_FOCUS(int wid); 1011public static final boolean GTK_WIDGET_HAS_FOCUS(int wid) { 1012 lock.lock(); 1013 try { 1014 return _GTK_WIDGET_HAS_FOCUS(wid); 1015 } finally { 1016 lock.unlock(); 1017 } 1018} 1019public static final native boolean _GTK_WIDGET_IS_SENSITIVE(int wid); 1020public static final boolean GTK_WIDGET_IS_SENSITIVE(int wid) { 1021 lock.lock(); 1022 try { 1023 return _GTK_WIDGET_IS_SENSITIVE(wid); 1024 } finally { 1025 lock.unlock(); 1026 } 1027} 1028public static final native boolean _GTK_WIDGET_MAPPED(int wid); 1029public static final boolean GTK_WIDGET_MAPPED(int wid) { 1030 lock.lock(); 1031 try { 1032 return _GTK_WIDGET_MAPPED(wid); 1033 } finally { 1034 lock.unlock(); 1035 } 1036} 1037public static final native boolean _GTK_WIDGET_SENSITIVE(int wid); 1038public static final boolean GTK_WIDGET_SENSITIVE(int wid) { 1039 lock.lock(); 1040 try { 1041 return _GTK_WIDGET_SENSITIVE(wid); 1042 } finally { 1043 lock.unlock(); 1044 } 1045} 1046public static final native void _GTK_WIDGET_SET_FLAGS(int wid, int flag); 1047public static final void GTK_WIDGET_SET_FLAGS(int wid, int flag) { 1048 lock.lock(); 1049 try { 1050 _GTK_WIDGET_SET_FLAGS(wid, flag); 1051 } finally { 1052 lock.unlock(); 1053 } 1054} 1055public static final native void _GTK_WIDGET_UNSET_FLAGS(int wid, int flag); 1056public static final void GTK_WIDGET_UNSET_FLAGS(int wid, int flag) { 1057 lock.lock(); 1058 try { 1059 _GTK_WIDGET_UNSET_FLAGS(wid, flag); 1060 } finally { 1061 lock.unlock(); 1062 } 1063} 1064public static final native boolean _GTK_WIDGET_VISIBLE(int wid); 1065public static final boolean GTK_WIDGET_VISIBLE(int wid) { 1066 lock.lock(); 1067 try { 1068 return _GTK_WIDGET_VISIBLE(wid); 1069 } finally { 1070 lock.unlock(); 1071 } 1072} 1073public static final native int _G_OBJECT_CLASS (int klass); 1074public static final int G_OBJECT_CLASS (int klass) { 1075 lock.lock(); 1076 try { 1077 return _G_OBJECT_CLASS(klass); 1078 } finally { 1079 lock.unlock(); 1080 } 1081} 1082public static final native int _G_OBJECT_GET_CLASS (int object); 1083public static final int G_OBJECT_GET_CLASS (int object) { 1084 lock.lock(); 1085 try { 1086 return _G_OBJECT_GET_CLASS(object); 1087 } finally { 1088 lock.unlock(); 1089 } 1090} 1091public static final native int _G_TYPE_BOOLEAN(); 1092public static final int G_TYPE_BOOLEAN() { 1093 lock.lock(); 1094 try { 1095 return _G_TYPE_BOOLEAN(); 1096 } finally { 1097 lock.unlock(); 1098 } 1099} 1100public static final native int _G_TYPE_INT(); 1101public static final int G_TYPE_INT() { 1102 lock.lock(); 1103 try { 1104 return _G_TYPE_INT(); 1105 } finally { 1106 lock.unlock(); 1107 } 1108} 1109public static final native int _G_OBJECT_TYPE (int instance); 1110public static final int G_OBJECT_TYPE (int instance) { 1111 lock.lock(); 1112 try { 1113 return _G_OBJECT_TYPE(instance); 1114 } finally { 1115 lock.unlock(); 1116 } 1117} 1118public static final native int _G_TYPE_STRING(); 1119public static final int G_TYPE_STRING() { 1120 lock.lock(); 1121 try { 1122 return _G_TYPE_STRING(); 1123 } finally { 1124 lock.unlock(); 1125 } 1126} 1127public static final native int _PANGO_PIXELS(int dimension); 1128public static final int PANGO_PIXELS(int dimension) { 1129 lock.lock(); 1130 try { 1131 return _PANGO_PIXELS(dimension); 1132 } finally { 1133 lock.unlock(); 1134 } 1135} 1136public static final native int _PANGO_TYPE_FONT_DESCRIPTION(); 1137public static final int PANGO_TYPE_FONT_DESCRIPTION() { 1138 lock.lock(); 1139 try { 1140 return _PANGO_TYPE_FONT_DESCRIPTION(); 1141 } finally { 1142 lock.unlock(); 1143 } 1144} 1145public static final native boolean _g_main_context_acquire(int context); 1146public static final boolean g_main_context_acquire(int context) { 1147 lock.lock(); 1148 try { 1149 return _g_main_context_acquire(context); 1150 } finally { 1151 lock.unlock(); 1152 } 1153} 1154public static final native int _g_main_context_check(int context, int max_priority, int fds, int n_fds); 1155public static final int g_main_context_check(int context, int max_priority, int fds, int n_fds) { 1156 lock.lock(); 1157 try { 1158 return _g_main_context_check(context, max_priority, fds, n_fds); 1159 } finally { 1160 lock.unlock(); 1161 } 1162} 1163public static final native int _g_main_context_default(); 1164public static final int g_main_context_default() { 1165 lock.lock(); 1166 try { 1167 return _g_main_context_default(); 1168 } finally { 1169 lock.unlock(); 1170 } 1171} 1172public static final native boolean _g_main_context_iteration(int context, boolean may_block); 1173public static final boolean g_main_context_iteration(int context, boolean may_block) { 1174 lock.lock(); 1175 try { 1176 return _g_main_context_iteration(context, may_block); 1177 } finally { 1178 lock.unlock(); 1179 } 1180} 1181public static final native boolean _g_main_context_pending(int context); 1182public static final boolean g_main_context_pending(int context) { 1183 lock.lock(); 1184 try { 1185 return _g_main_context_pending(context); 1186 } finally { 1187 lock.unlock(); 1188 } 1189} 1190public static final native int _g_main_context_get_poll_func(int context); 1191public static final int g_main_context_get_poll_func(int context) { 1192 lock.lock(); 1193 try { 1194 return _g_main_context_get_poll_func(context); 1195 } finally { 1196 lock.unlock(); 1197 } 1198} 1199public static final native boolean _g_main_context_prepare(int context, int[] priority); 1200public static final boolean g_main_context_prepare(int context, int[] priority) { 1201 lock.lock(); 1202 try { 1203 return _g_main_context_prepare(context, priority); 1204 } finally { 1205 lock.unlock(); 1206 } 1207} 1208public static final native int _g_main_context_query(int context, int max_priority, int[] timeout_, int fds, int n_fds); 1209public static final int g_main_context_query(int context, int max_priority, int[] timeout_, int fds, int n_fds) { 1210 lock.lock(); 1211 try { 1212 return _g_main_context_query(context, max_priority, timeout_, fds, n_fds); 1213 } finally { 1214 lock.unlock(); 1215 } 1216} 1217public static final native void _g_main_context_release(int context); 1218public static final void g_main_context_release(int context) { 1219 lock.lock(); 1220 try { 1221 _g_main_context_release(context); 1222 } finally { 1223 lock.unlock(); 1224 } 1225} 1226public static final native void g_main_context_wakeup(int context); 1227public static final native int _g_filename_to_utf8(int opsysstring, int len, int [] bytes_read, int [] bytes_written, int [] error); 1228public static final int g_filename_to_utf8(int opsysstring, int len, int [] bytes_read, int [] bytes_written, int [] error) { 1229 lock.lock(); 1230 try { 1231 return _g_filename_to_utf8(opsysstring, len, bytes_read, bytes_written, error); 1232 } finally { 1233 lock.unlock(); 1234 } 1235} 1236public static final native int _g_filename_to_uri(int filename, int hostname, int [] error); 1237public static final int g_filename_to_uri(int filename, int hostname, int [] error) { 1238 lock.lock(); 1239 try { 1240 return _g_filename_to_uri(filename, hostname, error); 1241 } finally { 1242 lock.unlock(); 1243 } 1244} 1245public static final native int _g_filename_from_utf8(int opsysstring, int len, int [] bytes_read, int [] bytes_written, int [] error); 1246public static final int g_filename_from_utf8(int opsysstring, int len, int [] bytes_read, int [] bytes_written, int [] error) { 1247 lock.lock(); 1248 try { 1249 return _g_filename_from_utf8(opsysstring, len, bytes_read, bytes_written, error); 1250 } finally { 1251 lock.unlock(); 1252 } 1253} 1254public static final native int _g_filename_from_uri(int uri, int [] hostname, int [] error); 1255public static final int g_filename_from_uri(int uri, int [] hostname, int [] error) { 1256 lock.lock(); 1257 try { 1258 return _g_filename_from_uri(uri, hostname, error); 1259 } finally { 1260 lock.unlock(); 1261 } 1262} 1263public static final native void _g_free(int mem); 1264public static final void g_free(int mem) { 1265 lock.lock(); 1266 try { 1267 _g_free(mem); 1268 } finally { 1269 lock.unlock(); 1270 } 1271} 1272public static final native int _g_list_append(int list, int data); 1273public static final int g_list_append(int list, int data) { 1274 lock.lock(); 1275 try { 1276 return _g_list_append(list, data); 1277 } finally { 1278 lock.unlock(); 1279 } 1280} 1281public static final native int _g_list_data(int list); 1282public static final int g_list_data(int list) { 1283 lock.lock(); 1284 try { 1285 return _g_list_data(list); 1286 } finally { 1287 lock.unlock(); 1288 } 1289} 1290public static final native void _g_list_free(int list); 1291public static final void g_list_free(int list) { 1292 lock.lock(); 1293 try { 1294 _g_list_free(list); 1295 } finally { 1296 lock.unlock(); 1297 } 1298} 1299public static final native void _g_list_free_1(int list); 1300public static final void g_list_free_1(int list) { 1301 lock.lock(); 1302 try { 1303 _g_list_free_1(list); 1304 } finally { 1305 lock.unlock(); 1306 } 1307} 1308public static final native int _g_list_length(int list); 1309public static final int g_list_length(int list) { 1310 lock.lock(); 1311 try { 1312 return _g_list_length(list); 1313 } finally { 1314 lock.unlock(); 1315 } 1316} 1317public static final native void _g_list_set_next(int list, int llist); 1318public static final void g_list_set_next(int list, int llist) { 1319 lock.lock(); 1320 try { 1321 _g_list_set_next(list, llist); 1322 } finally { 1323 lock.unlock(); 1324 } 1325} 1326public static final native int _g_list_next(int list); 1327public static final int g_list_next(int list) { 1328 lock.lock(); 1329 try { 1330 return _g_list_next(list); 1331 } finally { 1332 lock.unlock(); 1333 } 1334} 1335public static final native int _g_list_nth(int list, int n); 1336public static final int g_list_nth(int list, int n) { 1337 lock.lock(); 1338 try { 1339 return _g_list_nth(list, n); 1340 } finally { 1341 lock.unlock(); 1342 } 1343} 1344public static final native int _g_list_nth_data(int list, int n); 1345public static final int g_list_nth_data(int list, int n) { 1346 lock.lock(); 1347 try { 1348 return _g_list_nth_data(list, n); 1349 } finally { 1350 lock.unlock(); 1351 } 1352} 1353public static final native int _g_list_prepend(int list, int data); 1354public static final int g_list_prepend(int list, int data) { 1355 lock.lock(); 1356 try { 1357 return _g_list_prepend(list, data); 1358 } finally { 1359 lock.unlock(); 1360 } 1361} 1362public static final native void _g_list_set_previous(int list, int llist); 1363public static final void g_list_set_previous(int list, int llist) { 1364 lock.lock(); 1365 try { 1366 _g_list_set_previous(list, llist); 1367 } finally { 1368 lock.unlock(); 1369 } 1370} 1371public static final native int _g_list_previous(int list); 1372public static final int g_list_previous(int list) { 1373 lock.lock(); 1374 try { 1375 return _g_list_previous(list); 1376 } finally { 1377 lock.unlock(); 1378 } 1379} 1380public static final native int _g_list_remove_link(int list, int link); 1381public static final int g_list_remove_link(int list, int link) { 1382 lock.lock(); 1383 try { 1384 return _g_list_remove_link(list, link); 1385 } finally { 1386 lock.unlock(); 1387 } 1388} 1389public static final native int _g_list_reverse(int list); 1390public static final int g_list_reverse(int list) { 1391 lock.lock(); 1392 try { 1393 return _g_list_reverse(list); 1394 } finally { 1395 lock.unlock(); 1396 } 1397} 1398public static final native int _g_locale_from_utf8(int utf8string, int len, int [] bytes_read, int [] bytes_written, int [] error); 1399public static final int g_locale_from_utf8(int utf8string, int len, int [] bytes_read, int [] bytes_written, int [] error) { 1400 lock.lock(); 1401 try { 1402 return _g_locale_from_utf8(utf8string, len, bytes_read, bytes_written, error); 1403 } finally { 1404 lock.unlock(); 1405 } 1406} 1407public static final native int _g_locale_to_utf8(int opsysstring, int len, int [] bytes_read, int [] bytes_written, int [] error); 1408public static final int g_locale_to_utf8(int opsysstring, int len, int [] bytes_read, int [] bytes_written, int [] error) { 1409 lock.lock(); 1410 try { 1411 return _g_locale_to_utf8(opsysstring, len, bytes_read, bytes_written, error); 1412 } finally { 1413 lock.unlock(); 1414 } 1415} 1416public static final native void _g_log_default_handler(int log_domain, int log_levels, int message, int unused_data); 1417public static final void g_log_default_handler(int log_domain, int log_levels, int message, int unused_data) { 1418 lock.lock(); 1419 try { 1420 _g_log_default_handler(log_domain, log_levels, message, unused_data); 1421 } finally { 1422 lock.unlock(); 1423 } 1424} 1425public static final native void _g_log_remove_handler(byte[] log_domain, int handler_id); 1426public static final void g_log_remove_handler(byte[] log_domain, int handler_id) { 1427 lock.lock(); 1428 try { 1429 _g_log_remove_handler(log_domain, handler_id); 1430 } finally { 1431 lock.unlock(); 1432 } 1433} 1434public static final native int _g_log_set_handler(byte[] log_domain, int log_levels, int log_func, int user_data); 1435public static final int g_log_set_handler(byte[] log_domain, int log_levels, int log_func, int user_data) { 1436 lock.lock(); 1437 try { 1438 return _g_log_set_handler(log_domain, log_levels, log_func, user_data); 1439 } finally { 1440 lock.unlock(); 1441 } 1442} 1443public static final native int _g_malloc(int size); 1444public static final int g_malloc(int size) { 1445 lock.lock(); 1446 try { 1447 return _g_malloc(size); 1448 } finally { 1449 lock.unlock(); 1450 } 1451} 1452public static final native void _g_object_get(int object, byte[] first_property_name, int[] value, int terminator); 1453public static final void g_object_get(int object, byte[] first_property_name, int[] value, int terminator) { 1454 lock.lock(); 1455 try { 1456 _g_object_get(object, first_property_name, value, terminator); 1457 } finally { 1458 lock.unlock(); 1459 } 1460} 1461public static final native int _g_object_get_qdata(int object, int quark); 1462public static final int g_object_get_qdata(int object, int quark) { 1463 lock.lock(); 1464 try { 1465 return _g_object_get_qdata(object, quark); 1466 } finally { 1467 lock.unlock(); 1468 } 1469} 1470public static final native int _g_object_new (int type, int first_property_name); 1471public static final int g_object_new (int type, int first_property_name) { 1472 lock.lock(); 1473 try { 1474 return _g_object_new(type, first_property_name); 1475 } finally { 1476 lock.unlock(); 1477 } 1478} 1479public static final native int _g_object_ref(int object); 1480public static final int g_object_ref(int object) { 1481 lock.lock(); 1482 try { 1483 return _g_object_ref(object); 1484 } finally { 1485 lock.unlock(); 1486 } 1487} 1488public static final native void _g_object_set(int object, byte[] first_property_name, boolean data, int terminator); 1489public static final void g_object_set(int object, byte[] first_property_name, boolean data, int terminator) { 1490 lock.lock(); 1491 try { 1492 _g_object_set(object, first_property_name, data, terminator); 1493 } finally { 1494 lock.unlock(); 1495 } 1496} 1497public static final native void _g_object_set(int object, byte[] first_property_name, int data, int terminator); 1498public static final void g_object_set(int object, byte[] first_property_name, int data, int terminator) { 1499 lock.lock(); 1500 try { 1501 _g_object_set(object, first_property_name, data, terminator); 1502 } finally { 1503 lock.unlock(); 1504 } 1505} 1506public static final native void _g_object_set(int object, byte[] first_property_name, float data, int terminator); 1507public static final void g_object_set(int object, byte[] first_property_name, float data, int terminator) { 1508 lock.lock(); 1509 try { 1510 _g_object_set(object, first_property_name, data, terminator); 1511 } finally { 1512 lock.unlock(); 1513 } 1514} 1515public static final native void _g_object_set(int object, byte[] first_property_name, long data, int terminator); 1516public static final void g_object_set(int object, byte[] first_property_name, long data, int terminator) { 1517 lock.lock(); 1518 try { 1519 _g_object_set(object, first_property_name, data, terminator); 1520 } finally { 1521 lock.unlock(); 1522 } 1523} 1524public static final native void _g_object_set_qdata(int object, int quark, int data); 1525public static final void g_object_set_qdata(int object, int quark, int data) { 1526 lock.lock(); 1527 try { 1528 _g_object_set_qdata(object, quark, data); 1529 } finally { 1530 lock.unlock(); 1531 } 1532} 1533public static final native void _g_object_unref(int object); 1534public static final void g_object_unref(int object) { 1535 lock.lock(); 1536 try { 1537 _g_object_unref(object); 1538 } finally { 1539 lock.unlock(); 1540 } 1541} 1542public static final native int _g_quark_from_string(byte[] string); 1543public static final int g_quark_from_string(byte[] string) { 1544 lock.lock(); 1545 try { 1546 return _g_quark_from_string(string); 1547 } finally { 1548 lock.unlock(); 1549 } 1550} 1551public static final native void _g_set_prgname(byte[] prgname); 1552public static final void g_set_prgname(byte[] prgname) { 1553 lock.lock(); 1554 try { 1555 _g_set_prgname(prgname); 1556 } finally { 1557 lock.unlock(); 1558 } 1559} 1560public static final native int _g_signal_connect(int instance, byte[] detailed_signal, int proc, int data); 1561public static final int g_signal_connect(int instance, byte[] detailed_signal, int proc, int data) { 1562 lock.lock(); 1563 try { 1564 return _g_signal_connect(instance, detailed_signal, proc, data); 1565 } finally { 1566 lock.unlock(); 1567 } 1568} 1569public static final native int _g_signal_connect_after(int instance, byte[] detailed_signal, int proc, int data); 1570public static final int g_signal_connect_after(int instance, byte[] detailed_signal, int proc, int data) { 1571 lock.lock(); 1572 try { 1573 return _g_signal_connect_after(instance, detailed_signal, proc, data); 1574 } finally { 1575 lock.unlock(); 1576 } 1577} 1578public static final native void _g_signal_emit_by_name(int instance, byte[] detailed_signal); 1579public static final void g_signal_emit_by_name(int instance, byte[] detailed_signal) { 1580 lock.lock(); 1581 try { 1582 _g_signal_emit_by_name(instance, detailed_signal); 1583 } finally { 1584 lock.unlock(); 1585 } 1586} 1587public static final native void _g_signal_emit_by_name(int instance, byte[] detailed_signal, int data); 1588public static final void g_signal_emit_by_name(int instance, byte[] detailed_signal, int data) { 1589 lock.lock(); 1590 try { 1591 _g_signal_emit_by_name(instance, detailed_signal, data); 1592 } finally { 1593 lock.unlock(); 1594 } 1595} 1596public static final native void _g_signal_emit_by_name(int instance, byte[] detailed_signal, int data1, int data2); 1597public static final void g_signal_emit_by_name(int instance, byte[] detailed_signal, int data1, int data2) { 1598 lock.lock(); 1599 try { 1600 _g_signal_emit_by_name(instance, detailed_signal, data1, data2); 1601 } finally { 1602 lock.unlock(); 1603 } 1604} 1605public static final native void _g_signal_emit_by_name(int instance, byte[] detailed_signal, byte [] data); 1606public static final void g_signal_emit_by_name(int instance, byte[] detailed_signal, byte [] data) { 1607 lock.lock(); 1608 try { 1609 _g_signal_emit_by_name(instance, detailed_signal, data); 1610 } finally { 1611 lock.unlock(); 1612 } 1613} 1614public static final native void _g_signal_handler_disconnect(int instance, int handler_id); 1615public static final void g_signal_handler_disconnect(int instance, int handler_id) { 1616 lock.lock(); 1617 try { 1618 _g_signal_handler_disconnect(instance, handler_id); 1619 } finally { 1620 lock.unlock(); 1621 } 1622} 1623public static final native int _g_signal_handlers_block_matched(int instance, int mask, int signal_id, int detail, int closure, int func, int data); 1624public static final int g_signal_handlers_block_matched(int instance, int mask, int signal_id, int detail, int closure, int func, int data) { 1625 lock.lock(); 1626 try { 1627 return _g_signal_handlers_block_matched(instance, mask, signal_id, detail, closure, func, data); 1628 } finally { 1629 lock.unlock(); 1630 } 1631} 1632public static final native int _g_signal_handlers_disconnect_matched(int instance, int mask, int signal_id, int detail, int closure, int func, int data); 1633public static final int g_signal_handlers_disconnect_matched(int instance, int mask, int signal_id, int detail, int closure, int func, int data) { 1634 lock.lock(); 1635 try { 1636 return _g_signal_handlers_disconnect_matched(instance, mask, signal_id, detail, closure, func, data); 1637 } finally { 1638 lock.unlock(); 1639 } 1640} 1641public static final native int _g_signal_handlers_unblock_matched(int instance, int mask, int signal_id, int detail, int closure, int func, int data); 1642public static final int g_signal_handlers_unblock_matched(int instance, int mask, int signal_id, int detail, int closure, int func, int data) { 1643 lock.lock(); 1644 try { 1645 return _g_signal_handlers_unblock_matched(instance, mask, signal_id, detail, closure, func, data); 1646 } finally { 1647 lock.unlock(); 1648 } 1649} 1650public static final native int _g_signal_lookup (byte[] name, int itype); 1651public static final int g_signal_lookup (byte[] name, int itype) { 1652 lock.lock(); 1653 try { 1654 return _g_signal_lookup(name, itype); 1655 } finally { 1656 lock.unlock(); 1657 } 1658} 1659public static final native void _g_signal_stop_emission_by_name(int instance, byte[] detailed_signal); 1660public static final void g_signal_stop_emission_by_name(int instance, byte[] detailed_signal) { 1661 lock.lock(); 1662 try { 1663 _g_signal_stop_emission_by_name(instance, detailed_signal); 1664 } finally { 1665 lock.unlock(); 1666 } 1667} 1668public static final native int _g_slist_data (int list); 1669public static final int g_slist_data (int list) { 1670 lock.lock(); 1671 try { 1672 return _g_slist_data(list); 1673 } finally { 1674 lock.unlock(); 1675 } 1676} 1677public static final native void _g_slist_free (int list); 1678public static final void g_slist_free (int list) { 1679 lock.lock(); 1680 try { 1681 _g_slist_free(list); 1682 } finally { 1683 lock.unlock(); 1684 } 1685} 1686public static final native int _g_slist_next (int list); 1687public static final int g_slist_next (int list) { 1688 lock.lock(); 1689 try { 1690 return _g_slist_next(list); 1691 } finally { 1692 lock.unlock(); 1693 } 1694} 1695public static final native int _g_slist_length (int list); 1696public static final int g_slist_length (int list) { 1697 lock.lock(); 1698 try { 1699 return _g_slist_length(list); 1700 } finally { 1701 lock.unlock(); 1702 } 1703} 1704public static final native void _g_strfreev(int string_array); 1705public static final void g_strfreev(int string_array) { 1706 lock.lock(); 1707 try { 1708 _g_strfreev(string_array); 1709 } finally { 1710 lock.unlock(); 1711 } 1712} 1713public static final native void _g_type_add_interface_static (int instance_type, int interface_type, int info); 1714public static final void g_type_add_interface_static (int instance_type, int interface_type, int info) { 1715 lock.lock(); 1716 try { 1717 _g_type_add_interface_static(instance_type, interface_type, info); 1718 } finally { 1719 lock.unlock(); 1720 } 1721} 1722public static final native int _g_type_class_peek (int g_class); 1723public static final int g_type_class_peek (int g_class) { 1724 lock.lock(); 1725 try { 1726 return _g_type_class_peek(g_class); 1727 } finally { 1728 lock.unlock(); 1729 } 1730} 1731public static final native int _g_type_class_peek_parent (int g_class); 1732public static final int g_type_class_peek_parent (int g_class) { 1733 lock.lock(); 1734 try { 1735 return _g_type_class_peek_parent(g_class); 1736 } finally { 1737 lock.unlock(); 1738 } 1739} 1740public static final native int _g_type_from_name (byte[] name); 1741public static final int g_type_from_name (byte[] name) { 1742 lock.lock(); 1743 try { 1744 return _g_type_from_name(name); 1745 } finally { 1746 lock.unlock(); 1747 } 1748} 1749public static final native int _g_type_interface_peek_parent (int iface); 1750public static final int g_type_interface_peek_parent (int iface) { 1751 lock.lock(); 1752 try { 1753 return _g_type_interface_peek_parent(iface); 1754 } finally { 1755 lock.unlock(); 1756 } 1757} 1758public static final native boolean _g_type_is_a (int type, int is_a_type); 1759public static final boolean g_type_is_a (int type, int is_a_type) { 1760 lock.lock(); 1761 try { 1762 return _g_type_is_a(type, is_a_type); 1763 } finally { 1764 lock.unlock(); 1765 } 1766} 1767public static final native int _g_type_name (int handle); 1768public static final int g_type_name (int handle) { 1769 lock.lock(); 1770 try { 1771 return _g_type_name(handle); 1772 } finally { 1773 lock.unlock(); 1774 } 1775} 1776public static final native int _g_type_parent (int type); 1777public static final int g_type_parent (int type) { 1778 lock.lock(); 1779 try { 1780 return _g_type_parent(type); 1781 } finally { 1782 lock.unlock(); 1783 } 1784} 1785public static final native void _g_type_query (int type, int query); 1786public static final void g_type_query (int type, int query) { 1787 lock.lock(); 1788 try { 1789 _g_type_query(type, query); 1790 } finally { 1791 lock.unlock(); 1792 } 1793} 1794public static final native int _g_type_register_static (int parent_type, byte[] type_name, int info, int flags); 1795public static final int g_type_register_static (int parent_type, byte[] type_name, int info, int flags) { 1796 lock.lock(); 1797 try { 1798 return _g_type_register_static(parent_type, type_name, info, flags); 1799 } finally { 1800 lock.unlock(); 1801 } 1802} 1803public static final native void _g_thread_init(int vtable); 1804public static final void g_thread_init(int vtable) { 1805 lock.lock(); 1806 try { 1807 _g_thread_init(vtable); 1808 } finally { 1809 lock.unlock(); 1810 } 1811} 1812public static final native boolean _g_thread_supported(); 1813public static final boolean g_thread_supported() { 1814 lock.lock(); 1815 try { 1816 return _g_thread_supported(); 1817 } finally { 1818 lock.unlock(); 1819 } 1820} 1821public static final native int _g_utf16_to_utf8(char[] str, int len, int [] items_read, int [] items_written, int [] error); 1822public static final int g_utf16_to_utf8(char[] str, int len, int [] items_read, int [] items_written, int [] error) { 1823 lock.lock(); 1824 try { 1825 return _g_utf16_to_utf8(str, len, items_read, items_written, error); 1826 } finally { 1827 lock.unlock(); 1828 } 1829} 1830public static final native int _g_utf8_offset_to_pointer(int str, int offset); 1831public static final int g_utf8_offset_to_pointer(int str, int offset) { 1832 lock.lock(); 1833 try { 1834 return _g_utf8_offset_to_pointer(str, offset); 1835 } finally { 1836 lock.unlock(); 1837 } 1838} 1839public static final native int _g_utf8_pointer_to_offset(int str, int pos); 1840public static final int g_utf8_pointer_to_offset(int str, int pos) { 1841 lock.lock(); 1842 try { 1843 return _g_utf8_pointer_to_offset(str, pos); 1844 } finally { 1845 lock.unlock(); 1846 } 1847} 1848public static final native int _g_utf8_strlen(int str, int max); 1849public static final int g_utf8_strlen(int str, int max) { 1850 lock.lock(); 1851 try { 1852 return _g_utf8_strlen(str, max); 1853 } finally { 1854 lock.unlock(); 1855 } 1856} 1857public static final native int _g_utf8_to_utf16(byte[] str, int len, int [] items_read, int [] items_written, int [] error); 1858public static final int g_utf8_to_utf16(byte[] str, int len, int [] items_read, int [] items_written, int [] error) { 1859 lock.lock(); 1860 try { 1861 return _g_utf8_to_utf16(str, len, items_read, items_written, error); 1862 } finally { 1863 lock.unlock(); 1864 } 1865} 1866public static final native int _g_utf8_to_utf16(int str, int len, int [] items_read, int [] items_written, int [] error); 1867public static final int g_utf8_to_utf16(int str, int len, int [] items_read, int [] items_written, int [] error) { 1868 lock.lock(); 1869 try { 1870 return _g_utf8_to_utf16(str, len, items_read, items_written, error); 1871 } finally { 1872 lock.unlock(); 1873 } 1874} 1875public static final native int _gdk_atom_intern(byte[] atom_name, boolean only_if_exists); 1876public static final int gdk_atom_intern(byte[] atom_name, boolean only_if_exists) { 1877 lock.lock(); 1878 try { 1879 return _gdk_atom_intern(atom_name, only_if_exists); 1880 } finally { 1881 lock.unlock(); 1882 } 1883} 1884public static final native int _gdk_atom_name(int atom); 1885public static final int gdk_atom_name(int atom) { 1886 lock.lock(); 1887 try { 1888 return _gdk_atom_name(atom); 1889 } finally { 1890 lock.unlock(); 1891 } 1892} 1893public static final native void _gdk_beep(); 1894public static final void gdk_beep() { 1895 lock.lock(); 1896 try { 1897 _gdk_beep(); 1898 } finally { 1899 lock.unlock(); 1900 } 1901} 1902public static final native int _gdk_bitmap_create_from_data(int window, byte[] data, int width, int height); 1903public static final int gdk_bitmap_create_from_data(int window, byte[] data, int width, int height) { 1904 lock.lock(); 1905 try { 1906 return _gdk_bitmap_create_from_data(window, data, width, height); 1907 } finally { 1908 lock.unlock(); 1909 } 1910} 1911public static final native boolean _gdk_color_white(int colormap, GdkColor color); 1912public static final boolean gdk_color_white(int colormap, GdkColor color) { 1913 lock.lock(); 1914 try { 1915 return _gdk_color_white(colormap, color); 1916 } finally { 1917 lock.unlock(); 1918 } 1919} 1920public static final native boolean _gdk_colormap_alloc_color(int colormap, GdkColor color, boolean writeable, boolean best_match); 1921public static final boolean gdk_colormap_alloc_color(int colormap, GdkColor color, boolean writeable, boolean best_match) { 1922 lock.lock(); 1923 try { 1924 return _gdk_colormap_alloc_color(colormap, color, writeable, best_match); 1925 } finally { 1926 lock.unlock(); 1927 } 1928} 1929public static final native void _gdk_colormap_free_colors(int colormap, GdkColor colors, int ncolors); 1930public static final void gdk_colormap_free_colors(int colormap, GdkColor colors, int ncolors) { 1931 lock.lock(); 1932 try { 1933 _gdk_colormap_free_colors(colormap, colors, ncolors); 1934 } finally { 1935 lock.unlock(); 1936 } 1937} 1938public static final native int _gdk_colormap_get_system(); 1939public static final int gdk_colormap_get_system() { 1940 lock.lock(); 1941 try { 1942 return _gdk_colormap_get_system(); 1943 } finally { 1944 lock.unlock(); 1945 } 1946} 1947public static final native void _gdk_colormap_query_color(int colormap, int pixel, GdkColor result); 1948public static final void gdk_colormap_query_color(int colormap, int pixel, GdkColor result) { 1949 lock.lock(); 1950 try { 1951 _gdk_colormap_query_color(colormap, pixel, result); 1952 } finally { 1953 lock.unlock(); 1954 } 1955} 1956public static final native void _gdk_cursor_destroy(int cursor); 1957public static final void gdk_cursor_destroy(int cursor) { 1958 lock.lock(); 1959 try { 1960 _gdk_cursor_destroy(cursor); 1961 } finally { 1962 lock.unlock(); 1963 } 1964} 1965public static final native int _gdk_cursor_new(int cursor_type); 1966public static final int gdk_cursor_new(int cursor_type) { 1967 lock.lock(); 1968 try { 1969 return _gdk_cursor_new(cursor_type); 1970 } finally { 1971 lock.unlock(); 1972 } 1973} 1974public static final native int _gdk_cursor_new_from_pixmap(int source, int mask, GdkColor fg, GdkColor bg, int x, int y); 1975public static final int gdk_cursor_new_from_pixmap(int source, int mask, GdkColor fg, GdkColor bg, int x, int y) { 1976 lock.lock(); 1977 try { 1978 return _gdk_cursor_new_from_pixmap(source, mask, fg, bg, x, y); 1979 } finally { 1980 lock.unlock(); 1981 } 1982} 1983public static final native void _gdk_drag_status(int context, int action, int time); 1984public static final void gdk_drag_status(int context, int action, int time) { 1985 lock.lock(); 1986 try { 1987 _gdk_drag_status(context, action, time); 1988 } finally { 1989 lock.unlock(); 1990 } 1991} 1992public static final native void _gdk_draw_arc(int drawable, int gc, int filled, int x, int y, int width, int height, int angle1, int angle2); 1993public static final void gdk_draw_arc(int drawable, int gc, int filled, int x, int y, int width, int height, int angle1, int angle2) { 1994 lock.lock(); 1995 try { 1996 _gdk_draw_arc(drawable, gc, filled, x, y, width, height, angle1, angle2); 1997 } finally { 1998 lock.unlock(); 1999 } 2000} 2001public static final native void _gdk_draw_drawable(int drawable, int gc, int src, int xsrc, int ysrc, int xdest, int ydest, int width, int height); 2002public static final void gdk_draw_drawable(int drawable, int gc, int src, int xsrc, int ysrc, int xdest, int ydest, int width, int height) { 2003 lock.lock(); 2004 try { 2005 _gdk_draw_drawable(drawable, gc, src, xsrc, ysrc, xdest, ydest, width, height); 2006 } finally { 2007 lock.unlock(); 2008 } 2009} 2010public static final native void _gdk_draw_layout(int drawable, int gc, int x, int y, int layout); 2011public static final void gdk_draw_layout(int drawable, int gc, int x, int y, int layout) { 2012 lock.lock(); 2013 try { 2014 _gdk_draw_layout(drawable, gc, x, y, layout); 2015 } finally { 2016 lock.unlock(); 2017 } 2018} 2019public static final native void _gdk_draw_layout_with_colors(int drawable, int gc, int x, int y, int layout, GdkColor foreground, GdkColor background); 2020public static final void gdk_draw_layout_with_colors(int drawable, int gc, int x, int y, int layout, GdkColor foreground, GdkColor background) { 2021 lock.lock(); 2022 try { 2023 _gdk_draw_layout_with_colors(drawable, gc, x, y, layout, foreground, background); 2024 } finally { 2025 lock.unlock(); 2026 } 2027} 2028public static final native void _gdk_draw_line(int drawable, int gc, int x1, int y1, int x2, int y2); 2029public static final void gdk_draw_line(int drawable, int gc, int x1, int y1, int x2, int y2) { 2030 lock.lock(); 2031 try { 2032 _gdk_draw_line(drawable, gc, x1, y1, x2, y2); 2033 } finally { 2034 lock.unlock(); 2035 } 2036} 2037public static final native void _gdk_draw_lines(int drawable, int gc, int[] points, int npoints); 2038public static final void gdk_draw_lines(int drawable, int gc, int[] points, int npoints) { 2039 lock.lock(); 2040 try { 2041 _gdk_draw_lines(drawable, gc, points, npoints); 2042 } finally { 2043 lock.unlock(); 2044 } 2045} 2046public static final native void _gdk_draw_pixbuf(int drawable, int gc, int pixbuf, int xsrc, int ysrc, int xdest, int ydest, int width, int height, int dither, int x_dither, int y_dither); 2047public static final void gdk_draw_pixbuf(int drawable, int gc, int pixbuf, int xsrc, int ysrc, int xdest, int ydest, int width, int height, int dither, int x_dither, int y_dither) { 2048 lock.lock(); 2049 try { 2050 _gdk_draw_pixbuf(drawable, gc, pixbuf, xsrc, ysrc, xdest, ydest, width, height, dither, x_dither, y_dither); 2051 } finally { 2052 lock.unlock(); 2053 } 2054} 2055public static final native void _gdk_draw_point(int drawable, int gc, int x, int y); 2056public static final void gdk_draw_point(int drawable, int gc, int x, int y) { 2057 lock.lock(); 2058 try { 2059 _gdk_draw_point(drawable, gc, x, y); 2060 } finally { 2061 lock.unlock(); 2062 } 2063} 2064public static final native void _gdk_draw_polygon(int drawable, int gc, int filled, int[] points, int npoints); 2065public static final void gdk_draw_polygon(int drawable, int gc, int filled, int[] points, int npoints) { 2066 lock.lock(); 2067 try { 2068 _gdk_draw_polygon(drawable, gc, filled, points, npoints); 2069 } finally { 2070 lock.unlock(); 2071 } 2072} 2073public static final native void _gdk_draw_rectangle(int drawable, int gc, int filled, int x, int y, int width, int height); 2074public static final void gdk_draw_rectangle(int drawable, int gc, int filled, int x, int y, int width, int height) { 2075 lock.lock(); 2076 try { 2077 _gdk_draw_rectangle(drawable, gc, filled, x, y, width, height); 2078 } finally { 2079 lock.unlock(); 2080 } 2081} 2082public static final native int _gdk_drawable_get_image(int drawable, int x, int y, int width, int height); 2083public static final int gdk_drawable_get_image(int drawable, int x, int y, int width, int height) { 2084 lock.lock(); 2085 try { 2086 return _gdk_drawable_get_image(drawable, x, y, width, height); 2087 } finally { 2088 lock.unlock(); 2089 } 2090} 2091public static final native void _gdk_drawable_get_size(int drawable, int[] width, int[] height); 2092public static final void gdk_drawable_get_size(int drawable, int[] width, int[] height) { 2093 lock.lock(); 2094 try { 2095 _gdk_drawable_get_size(drawable, width, height); 2096 } finally { 2097 lock.unlock(); 2098 } 2099} 2100public static final native int _gdk_drawable_get_visible_region(int drawable); 2101public static final int gdk_drawable_get_visible_region(int drawable) { 2102 lock.lock(); 2103 try { 2104 return _gdk_drawable_get_visible_region(drawable); 2105 } finally { 2106 lock.unlock(); 2107 } 2108} 2109public static final native int _gdk_event_copy(int event); 2110public static final int gdk_event_copy(int event) { 2111 lock.lock(); 2112 try { 2113 return _gdk_event_copy(event); 2114 } finally { 2115 lock.unlock(); 2116 } 2117} 2118public static final native void _gdk_event_free(int event); 2119public static final void gdk_event_free(int event) { 2120 lock.lock(); 2121 try { 2122 _gdk_event_free(event); 2123 } finally { 2124 lock.unlock(); 2125 } 2126} 2127public static final native int _gdk_event_get(); 2128public static final int gdk_event_get() { 2129 lock.lock(); 2130 try { 2131 return _gdk_event_get(); 2132 } finally { 2133 lock.unlock(); 2134 } 2135} 2136public static final native boolean _gdk_event_get_root_coords(int event, double[] px, double[] py); 2137public static final boolean gdk_event_get_root_coords(int event, double[] px, double[] py) { 2138 lock.lock(); 2139 try { 2140 return _gdk_event_get_root_coords(event, px, py); 2141 } finally { 2142 lock.unlock(); 2143 } 2144} 2145public static final native boolean _gdk_event_get_coords(int event, double[] px, double[] py); 2146public static final boolean gdk_event_get_coords(int event, double[] px, double[] py) { 2147 lock.lock(); 2148 try { 2149 return _gdk_event_get_coords(event, px, py); 2150 } finally { 2151 lock.unlock(); 2152 } 2153} 2154public static final native int _gdk_event_get_graphics_expose(int window); 2155public static final int gdk_event_get_graphics_expose(int window) { 2156 lock.lock(); 2157 try { 2158 return _gdk_event_get_graphics_expose(window); 2159 } finally { 2160 lock.unlock(); 2161 } 2162} 2163public static final native boolean _gdk_event_get_state(int event, int[] pmod); 2164public static final boolean gdk_event_get_state(int event, int[] pmod) { 2165 lock.lock(); 2166 try { 2167 return _gdk_event_get_state(event, pmod); 2168 } finally { 2169 lock.unlock(); 2170 } 2171} 2172public static final native int _gdk_event_get_time(int event); 2173public static final int gdk_event_get_time(int event) { 2174 lock.lock(); 2175 try { 2176 return _gdk_event_get_time(event); 2177 } finally { 2178 lock.unlock(); 2179 } 2180} 2181public static final native void _gdk_event_handler_set(int func, int data, int notify); 2182public static final void gdk_event_handler_set(int func, int data, int notify) { 2183 lock.lock(); 2184 try { 2185 _gdk_event_handler_set(func, data, notify); 2186 } finally { 2187 lock.unlock(); 2188 } 2189} 2190public static final native void _gdk_event_put(int event); 2191public static final void gdk_event_put(int event) { 2192 lock.lock(); 2193 try { 2194 _gdk_event_put(event); 2195 } finally { 2196 lock.unlock(); 2197 } 2198} 2199public static final native void _gdk_error_trap_push(); 2200public static final void gdk_error_trap_push() { 2201 lock.lock(); 2202 try { 2203 _gdk_error_trap_push(); 2204 } finally { 2205 lock.unlock(); 2206 } 2207} 2208public static final native int _gdk_error_trap_pop(); 2209public static final int gdk_error_trap_pop() { 2210 lock.lock(); 2211 try { 2212 return _gdk_error_trap_pop(); 2213 } finally { 2214 lock.unlock(); 2215 } 2216} 2217public static final native void _gdk_flush(); 2218public static final void gdk_flush() { 2219 lock.lock(); 2220 try { 2221 _gdk_flush(); 2222 } finally { 2223 lock.unlock(); 2224 } 2225} 2226public static final native void _gdk_free_text_list(int list); 2227public static final void gdk_free_text_list(int list) { 2228 lock.lock(); 2229 try { 2230 _gdk_free_text_list(list); 2231 } finally { 2232 lock.unlock(); 2233 } 2234} 2235public static final native void _gdk_gc_get_values(int gc, GdkGCValues values); 2236public static final void gdk_gc_get_values(int gc, GdkGCValues values) { 2237 lock.lock(); 2238 try { 2239 _gdk_gc_get_values(gc, values); 2240 } finally { 2241 lock.unlock(); 2242 } 2243} 2244public static final native int _gdk_gc_new(int window); 2245public static final int gdk_gc_new(int window) { 2246 lock.lock(); 2247 try { 2248 return _gdk_gc_new(window); 2249 } finally { 2250 lock.unlock(); 2251 } 2252} 2253public static final native void _gdk_gc_set_background(int gc, GdkColor color); 2254public static final void gdk_gc_set_background(int gc, GdkColor color) { 2255 lock.lock(); 2256 try { 2257 _gdk_gc_set_background(gc, color); 2258 } finally { 2259 lock.unlock(); 2260 } 2261} 2262public static final native void _gdk_gc_set_clip_mask(int gc, int mask); 2263public static final void gdk_gc_set_clip_mask(int gc, int mask) { 2264 lock.lock(); 2265 try { 2266 _gdk_gc_set_clip_mask(gc, mask); 2267 } finally { 2268 lock.unlock(); 2269 } 2270} 2271public static final native void _gdk_gc_set_clip_origin(int gc, int x, int y); 2272public static final void gdk_gc_set_clip_origin(int gc, int x, int y) { 2273 lock.lock(); 2274 try { 2275 _gdk_gc_set_clip_origin(gc, x, y); 2276 } finally { 2277 lock.unlock(); 2278 } 2279} 2280public static final native void _gdk_gc_set_clip_rectangle(int gc, GdkRectangle rectangle); 2281public static final void gdk_gc_set_clip_rectangle(int gc, GdkRectangle rectangle) { 2282 lock.lock(); 2283 try { 2284 _gdk_gc_set_clip_rectangle(gc, rectangle); 2285 } finally { 2286 lock.unlock(); 2287 } 2288} 2289public static final native void _gdk_gc_set_clip_region(int gc, int region); 2290public static final void gdk_gc_set_clip_region(int gc, int region) { 2291 lock.lock(); 2292 try { 2293 _gdk_gc_set_clip_region(gc, region); 2294 } finally { 2295 lock.unlock(); 2296 } 2297} 2298public static final native void _gdk_gc_set_dashes(int gc, int dash_offset, byte[] dash_list, int n); 2299public static final void gdk_gc_set_dashes(int gc, int dash_offset, byte[] dash_list, int n) { 2300 lock.lock(); 2301 try { 2302 _gdk_gc_set_dashes(gc, dash_offset, dash_list, n); 2303 } finally { 2304 lock.unlock(); 2305 } 2306} 2307public static final native void _gdk_gc_set_exposures(int gc, boolean exposures); 2308public static final void gdk_gc_set_exposures(int gc, boolean exposures) { 2309 lock.lock(); 2310 try { 2311 _gdk_gc_set_exposures(gc, exposures); 2312 } finally { 2313 lock.unlock(); 2314 } 2315} 2316public static final native void _gdk_gc_set_fill(int gc, int fill); 2317public static final void gdk_gc_set_fill(int gc, int fill) { 2318 lock.lock(); 2319 try { 2320 _gdk_gc_set_fill(gc, fill); 2321 } finally { 2322 lock.unlock(); 2323 } 2324} 2325public static final native void _gdk_gc_set_foreground(int gc, GdkColor color); 2326public static final void gdk_gc_set_foreground(int gc, GdkColor color) { 2327 lock.lock(); 2328 try { 2329 _gdk_gc_set_foreground(gc, color); 2330 } finally { 2331 lock.unlock(); 2332 } 2333} 2334public static final native void _gdk_gc_set_function(int gc, int function); 2335public static final void gdk_gc_set_function(int gc, int function) { 2336 lock.lock(); 2337 try { 2338 _gdk_gc_set_function(gc, function); 2339 } finally { 2340 lock.unlock(); 2341 } 2342} 2343public static final native void _gdk_gc_set_line_attributes(int gc, int line_width, int line_style, int cap_style, int join_style); 2344public static final void gdk_gc_set_line_attributes(int gc, int line_width, int line_style, int cap_style, int join_style) { 2345 lock.lock(); 2346 try { 2347 _gdk_gc_set_line_attributes(gc, line_width, line_style, cap_style, join_style); 2348 } finally { 2349 lock.unlock(); 2350 } 2351} 2352public static final native void _gdk_gc_set_stipple(int gc, int stipple); 2353public static final void gdk_gc_set_stipple(int gc, int stipple) { 2354 lock.lock(); 2355 try { 2356 _gdk_gc_set_stipple(gc, stipple); 2357 } finally { 2358 lock.unlock(); 2359 } 2360} 2361public static final native void _gdk_gc_set_subwindow(int gc, int mode); 2362public static final void gdk_gc_set_subwindow(int gc, int mode) { 2363 lock.lock(); 2364 try { 2365 _gdk_gc_set_subwindow(gc, mode); 2366 } finally { 2367 lock.unlock(); 2368 } 2369} 2370public static final native void _gdk_gc_set_values(int gc, GdkGCValues values, int values_mask); 2371public static final void gdk_gc_set_values(int gc, GdkGCValues values, int values_mask) { 2372 lock.lock(); 2373 try { 2374 _gdk_gc_set_values(gc, values, values_mask); 2375 } finally { 2376 lock.unlock(); 2377 } 2378} 2379public static final native int _gdk_image_get(int window, int x, int y, int width, int height); 2380public static final int gdk_image_get(int window, int x, int y, int width, int height) { 2381 lock.lock(); 2382 try { 2383 return _gdk_image_get(window, x, y, width, height); 2384 } finally { 2385 lock.unlock(); 2386 } 2387} 2388public static final native int _gdk_image_get_pixel(int image, int x, int y); 2389public static final int gdk_image_get_pixel(int image, int x, int y) { 2390 lock.lock(); 2391 try { 2392 return _gdk_image_get_pixel(image, x, y); 2393 } finally { 2394 lock.unlock(); 2395 } 2396} 2397public static final native void _gdk_keyboard_ungrab(int time); 2398public static final void gdk_keyboard_ungrab(int time) { 2399 lock.lock(); 2400 try { 2401 _gdk_keyboard_ungrab(time); 2402 } finally { 2403 lock.unlock(); 2404 } 2405} 2406public static final native int _gdk_keymap_get_default(); 2407public static final int gdk_keymap_get_default() { 2408 lock.lock(); 2409 try { 2410 return _gdk_keymap_get_default(); 2411 } finally { 2412 lock.unlock(); 2413 } 2414} 2415public static final native boolean _gdk_keymap_translate_keyboard_state (int keymap, int hardware_keycode, int state, int group, int[] keyval, int[] effective_group, int[] level, int[] consumed_modifiers); 2416public static final boolean gdk_keymap_translate_keyboard_state (int keymap, int hardware_keycode, int state, int group, int[] keyval, int[] effective_group, int[] level, int[] consumed_modifiers) { 2417 lock.lock(); 2418 try { 2419 return _gdk_keymap_translate_keyboard_state(keymap, hardware_keycode, state, group, keyval, effective_group, level, consumed_modifiers); 2420 } finally { 2421 lock.unlock(); 2422 } 2423} 2424public static final native int _gdk_keyval_to_lower(int keyval); 2425public static final int gdk_keyval_to_lower(int keyval) { 2426 lock.lock(); 2427 try { 2428 return _gdk_keyval_to_lower(keyval); 2429 } finally { 2430 lock.unlock(); 2431 } 2432} 2433public static final native int _gdk_keyval_to_unicode(int keyval); 2434public static final int gdk_keyval_to_unicode(int keyval) { 2435 lock.lock(); 2436 try { 2437 return _gdk_keyval_to_unicode(keyval); 2438 } finally { 2439 lock.unlock(); 2440 } 2441} 2442public static final native int _gdk_pango_context_get(); 2443public static final int gdk_pango_context_get() { 2444 lock.lock(); 2445 try { 2446 return _gdk_pango_context_get(); 2447 } finally { 2448 lock.unlock(); 2449 } 2450} 2451public static final native void _gdk_pango_context_set_colormap(int context, int colormap); 2452public static final void gdk_pango_context_set_colormap(int context, int colormap) { 2453 lock.lock(); 2454 try { 2455 _gdk_pango_context_set_colormap(context, colormap); 2456 } finally { 2457 lock.unlock(); 2458 } 2459} 2460public static final native int _gdk_pango_layout_get_clip_region(int layout, int x_origin, int y_origin, int[] index_ranges, int n_ranges); 2461public static final int gdk_pango_layout_get_clip_region(int layout, int x_origin, int y_origin, int[] index_ranges, int n_ranges) { 2462 lock.lock(); 2463 try { 2464 return _gdk_pango_layout_get_clip_region(layout, x_origin, y_origin, index_ranges, n_ranges); 2465 } finally { 2466 lock.unlock(); 2467 } 2468} 2469public static final native void _gdk_pixbuf_copy_area(int src_pixbuf, int src_x, int src_y, int width, int height, int dest_pixbuf, int dest_x, int dest_y); 2470public static final void gdk_pixbuf_copy_area(int src_pixbuf, int src_x, int src_y, int width, int height, int dest_pixbuf, int dest_x, int dest_y) { 2471 lock.lock(); 2472 try { 2473 _gdk_pixbuf_copy_area(src_pixbuf, src_x, src_y, width, height, dest_pixbuf, dest_x, dest_y); 2474 } finally { 2475 lock.unlock(); 2476 } 2477} 2478public static final native int _gdk_pixbuf_get_from_drawable(int dest, int src, int cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height); 2479public static final int gdk_pixbuf_get_from_drawable(int dest, int src, int cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height) { 2480 lock.lock(); 2481 try { 2482 return _gdk_pixbuf_get_from_drawable(dest, src, cmap, src_x, src_y, dest_x, dest_y, width, height); 2483 } finally { 2484 lock.unlock(); 2485 } 2486} 2487public static final native boolean _gdk_pixbuf_get_has_alpha(int pixbuf); 2488public static final boolean gdk_pixbuf_get_has_alpha(int pixbuf) { 2489 lock.lock(); 2490 try { 2491 return _gdk_pixbuf_get_has_alpha(pixbuf); 2492 } finally { 2493 lock.unlock(); 2494 } 2495} 2496public static final native int _gdk_pixbuf_get_height(int pixbuf); 2497public static final int gdk_pixbuf_get_height(int pixbuf) { 2498 lock.lock(); 2499 try { 2500 return _gdk_pixbuf_get_height(pixbuf); 2501 } finally { 2502 lock.unlock(); 2503 } 2504} 2505public static final native int _gdk_pixbuf_get_pixels(int pixbuf); 2506public static final int gdk_pixbuf_get_pixels(int pixbuf) { 2507 lock.lock(); 2508 try { 2509 return _gdk_pixbuf_get_pixels(pixbuf); 2510 } finally { 2511 lock.unlock(); 2512 } 2513} 2514public static final native int _gdk_pixbuf_get_rowstride(int pixbuf); 2515public static final int gdk_pixbuf_get_rowstride(int pixbuf) { 2516 lock.lock(); 2517 try { 2518 return _gdk_pixbuf_get_rowstride(pixbuf); 2519 } finally { 2520 lock.unlock(); 2521 } 2522} 2523public static final native int _gdk_pixbuf_get_width(int pixbuf); 2524public static final int gdk_pixbuf_get_width(int pixbuf) { 2525 lock.lock(); 2526 try { 2527 return _gdk_pixbuf_get_width(pixbuf); 2528 } finally { 2529 lock.unlock(); 2530 } 2531} 2532public static final native int _gdk_pixbuf_new(int colorspace, boolean has_alpha, int bits_per_sample, int width, int height); 2533public static final int gdk_pixbuf_new(int colorspace, boolean has_alpha, int bits_per_sample, int width, int height) { 2534 lock.lock(); 2535 try { 2536 return _gdk_pixbuf_new(colorspace, has_alpha, bits_per_sample, width, height); 2537 } finally { 2538 lock.unlock(); 2539 } 2540} 2541public static final native void _gdk_pixbuf_render_to_drawable(int pixbuf, int drawable, int gc, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int dither, int x_dither, int y_dither); 2542public static final void gdk_pixbuf_render_to_drawable(int pixbuf, int drawable, int gc, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int dither, int x_dither, int y_dither) { 2543 lock.lock(); 2544 try { 2545 _gdk_pixbuf_render_to_drawable(pixbuf, drawable, gc, src_x, src_y, dest_x, dest_y, width, height, dither, x_dither, y_dither); 2546 } finally { 2547 lock.unlock(); 2548 } 2549} 2550public static final native void _gdk_pixbuf_render_to_drawable_alpha(int pixbuf, int drawable, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_mode, int alpha_threshold, int dither, int x_dither, int y_dither); 2551public static final void gdk_pixbuf_render_to_drawable_alpha(int pixbuf, int drawable, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_mode, int alpha_threshold, int dither, int x_dither, int y_dither) { 2552 lock.lock(); 2553 try { 2554 _gdk_pixbuf_render_to_drawable_alpha(pixbuf, drawable, src_x, src_y, dest_x, dest_y, width, height, alpha_mode, alpha_threshold, dither, x_dither, y_dither); 2555 } finally { 2556 lock.unlock(); 2557 } 2558} 2559public static final native void _gdk_pixbuf_render_pixmap_and_mask(int pixbuf, int [] pixmap_return, int [] mask_return, int alpha_threshold); 2560public static final void gdk_pixbuf_render_pixmap_and_mask(int pixbuf, int [] pixmap_return, int [] mask_return, int alpha_threshold) { 2561 lock.lock(); 2562 try { 2563 _gdk_pixbuf_render_pixmap_and_mask(pixbuf, pixmap_return, mask_return, alpha_threshold); 2564 } finally { 2565 lock.unlock(); 2566 } 2567} 2568public static final native void _gdk_pixbuf_scale(int src, int dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, int interp_type); 2569public static final void gdk_pixbuf_scale(int src, int dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, int interp_type) { 2570 lock.lock(); 2571 try { 2572 _gdk_pixbuf_scale(src, dest, dest_x, dest_y, dest_width, dest_height, offset_x, offset_y, scale_x, scale_y, interp_type); 2573 } finally { 2574 lock.unlock(); 2575 } 2576} 2577public static final native int _gdk_pixbuf_scale_simple(int src, int dest_width, int dest_height, int interp_type); 2578public static final int gdk_pixbuf_scale_simple(int src, int dest_width, int dest_height, int interp_type) { 2579 lock.lock(); 2580 try { 2581 return _gdk_pixbuf_scale_simple(src, dest_width, dest_height, interp_type); 2582 } finally { 2583 lock.unlock(); 2584 } 2585} 2586public static final native int _gdk_pixmap_new(int window, int width, int height, int depth); 2587public static final int gdk_pixmap_new(int window, int width, int height, int depth) { 2588 lock.lock(); 2589 try { 2590 return _gdk_pixmap_new(window, width, height, depth); 2591 } finally { 2592 lock.unlock(); 2593 } 2594} 2595public static final native int _gdk_pointer_grab(int window, boolean owner_events, int event_mask, int confine_to, int cursor, int time); 2596public static final int gdk_pointer_grab(int window, boolean owner_events, int event_mask, int confine_to, int cursor, int time) { 2597 lock.lock(); 2598 try { 2599 return _gdk_pointer_grab(window, owner_events, event_mask, confine_to, cursor, time); 2600 } finally { 2601 lock.unlock(); 2602 } 2603} 2604public static final native boolean _gdk_pointer_is_grabbed(); 2605public static final boolean gdk_pointer_is_grabbed() { 2606 lock.lock(); 2607 try { 2608 return _gdk_pointer_is_grabbed(); 2609 } finally { 2610 lock.unlock(); 2611 } 2612} 2613public static final native void _gdk_pointer_ungrab(int time); 2614public static final void gdk_pointer_ungrab(int time) { 2615 lock.lock(); 2616 try { 2617 _gdk_pointer_ungrab(time); 2618 } finally { 2619 lock.unlock(); 2620 } 2621} 2622public static final native boolean _gdk_property_get(int window, int property, int type, int offset, int length, int pdelete, int [] actual_property_type, int[] actual_format, int[] actual_length, int [] data); 2623public static final boolean gdk_property_get(int window, int property, int type, int offset, int length, int pdelete, int [] actual_property_type, int[] actual_format, int[] actual_length, int [] data) { 2624 lock.lock(); 2625 try { 2626 return _gdk_property_get(window, property, type, offset, length, pdelete, actual_property_type, actual_format, actual_length, data); 2627 } finally { 2628 lock.unlock(); 2629 } 2630} 2631public static final native void _gdk_region_destroy(int region); 2632public static final void gdk_region_destroy(int region) { 2633 lock.lock(); 2634 try { 2635 _gdk_region_destroy(region); 2636 } finally { 2637 lock.unlock(); 2638 } 2639} 2640public static final native boolean _gdk_region_empty(int region); 2641public static final boolean gdk_region_empty(int region) { 2642 lock.lock(); 2643 try { 2644 return _gdk_region_empty(region); 2645 } finally { 2646 lock.unlock(); 2647 } 2648} 2649public static final native void _gdk_region_get_clipbox(int region, GdkRectangle rectangle); 2650public static final void gdk_region_get_clipbox(int region, GdkRectangle rectangle) { 2651 lock.lock(); 2652 try { 2653 _gdk_region_get_clipbox(region, rectangle); 2654 } finally { 2655 lock.unlock(); 2656 } 2657} 2658public static final native void _gdk_region_get_rectangles(int region, int [] rectangles, int[] n_rectangles); 2659public static final void gdk_region_get_rectangles(int region, int [] rectangles, int[] n_rectangles) { 2660 lock.lock(); 2661 try { 2662 _gdk_region_get_rectangles(region, rectangles, n_rectangles); 2663 } finally { 2664 lock.unlock(); 2665 } 2666} 2667public static final native void _gdk_region_intersect(int source1, int source2); 2668public static final void gdk_region_intersect(int source1, int source2) { 2669 lock.lock(); 2670 try { 2671 _gdk_region_intersect(source1, source2); 2672 } finally { 2673 lock.unlock(); 2674 } 2675} 2676public static final native int _gdk_region_new(); 2677public static final int gdk_region_new() { 2678 lock.lock(); 2679 try { 2680 return _gdk_region_new(); 2681 } finally { 2682 lock.unlock(); 2683 } 2684} 2685public static final native void _gdk_region_offset(int region, int dx, int dy); 2686public static final void gdk_region_offset(int region, int dx, int dy) { 2687 lock.lock(); 2688 try { 2689 _gdk_region_offset(region, dx, dy); 2690 } finally { 2691 lock.unlock(); 2692 } 2693} 2694public static final native boolean _gdk_region_point_in(int region, int x, int y); 2695public static final boolean gdk_region_point_in(int region, int x, int y) { 2696 lock.lock(); 2697 try { 2698 return _gdk_region_point_in(region, x, y); 2699 } finally { 2700 lock.unlock(); 2701 } 2702} 2703public static final native int _gdk_region_polygon(int[] points, int npoints, int fill_rule); 2704public static final int gdk_region_polygon(int[] points, int npoints, int fill_rule) { 2705 lock.lock(); 2706 try { 2707 return _gdk_region_polygon(points, npoints, fill_rule); 2708 } finally { 2709 lock.unlock(); 2710 } 2711} 2712public static final native int _gdk_region_rectangle(GdkRectangle rectangle); 2713public static final int gdk_region_rectangle(GdkRectangle rectangle) { 2714 lock.lock(); 2715 try { 2716 return _gdk_region_rectangle(rectangle); 2717 } finally { 2718 lock.unlock(); 2719 } 2720} 2721public static final native int _gdk_region_rect_in(int region, GdkRectangle rect); 2722public static final int gdk_region_rect_in(int region, GdkRectangle rect) { 2723 lock.lock(); 2724 try { 2725 return _gdk_region_rect_in(region, rect); 2726 } finally { 2727 lock.unlock(); 2728 } 2729} 2730public static final native void _gdk_region_subtract(int source1, int source2); 2731public static final void gdk_region_subtract(int source1, int source2) { 2732 lock.lock(); 2733 try { 2734 _gdk_region_subtract(source1, source2); 2735 } finally { 2736 lock.unlock(); 2737 } 2738} 2739public static final native void _gdk_region_union(int source1, int source2); 2740public static final void gdk_region_union(int source1, int source2) { 2741 lock.lock(); 2742 try { 2743 _gdk_region_union(source1, source2); 2744 } finally { 2745 lock.unlock(); 2746 } 2747} 2748public static final native void _gdk_region_union_with_rect(int region, GdkRectangle rect); 2749public static final void gdk_region_union_with_rect(int region, GdkRectangle rect) { 2750 lock.lock(); 2751 try { 2752 _gdk_region_union_with_rect(region, rect); 2753 } finally { 2754 lock.unlock(); 2755 } 2756} 2757public static final native void _gdk_rgb_init(); 2758public static final void gdk_rgb_init() { 2759 lock.lock(); 2760 try { 2761 _gdk_rgb_init(); 2762 } finally { 2763 lock.unlock(); 2764 } 2765} 2766public static final native int _gdk_screen_get_default(); 2767public static final int gdk_screen_get_default() { 2768 lock.lock(); 2769 try { 2770 return _gdk_screen_get_default(); 2771 } finally { 2772 lock.unlock(); 2773 } 2774} 2775public static final native int _gdk_screen_get_monitor_at_window(int screen, int window); 2776public static final int gdk_screen_get_monitor_at_window(int screen, int window) { 2777 lock.lock(); 2778 try { 2779 return _gdk_screen_get_monitor_at_window(screen, window); 2780 } finally { 2781 lock.unlock(); 2782 } 2783} 2784public static final native void _gdk_screen_get_monitor_geometry (int screen, int monitor_num, GdkRectangle dest); 2785public static final void gdk_screen_get_monitor_geometry (int screen, int monitor_num, GdkRectangle dest) { 2786 lock.lock(); 2787 try { 2788 _gdk_screen_get_monitor_geometry(screen, monitor_num, dest); 2789 } finally { 2790 lock.unlock(); 2791 } 2792} 2793public static final native int _gdk_screen_get_n_monitors(int screen); 2794public static final int gdk_screen_get_n_monitors(int screen) { 2795 lock.lock(); 2796 try { 2797 return _gdk_screen_get_n_monitors(screen); 2798 } finally { 2799 lock.unlock(); 2800 } 2801} 2802public static final native int _gdk_screen_get_number(int screen); 2803public static final int gdk_screen_get_number(int screen) { 2804 lock.lock(); 2805 try { 2806 return _gdk_screen_get_number(screen); 2807 } finally { 2808 lock.unlock(); 2809 } 2810} 2811public static final native int _gdk_screen_height(); 2812public static final int gdk_screen_height() { 2813 lock.lock(); 2814 try { 2815 return _gdk_screen_height(); 2816 } finally { 2817 lock.unlock(); 2818 } 2819} 2820public static final native int _gdk_screen_width(); 2821public static final int gdk_screen_width() { 2822 lock.lock(); 2823 try { 2824 return _gdk_screen_width(); 2825 } finally { 2826 lock.unlock(); 2827 } 2828} 2829public static final native int _gdk_screen_width_mm(); 2830public static final int gdk_screen_width_mm() { 2831 lock.lock(); 2832 try { 2833 return _gdk_screen_width_mm(); 2834 } finally { 2835 lock.unlock(); 2836 } 2837} 2838public static final native void _gdk_set_program_class(byte[] program_class); 2839public static final void gdk_set_program_class(byte[] program_class) { 2840 lock.lock(); 2841 try { 2842 _gdk_set_program_class(program_class); 2843 } finally { 2844 lock.unlock(); 2845 } 2846} 2847public static final native boolean _gdk_utf8_to_compound_text(byte[] str, int [] encoding, int[] format, int [] ctext, int[] length); 2848public static final boolean gdk_utf8_to_compound_text(byte[] str, int [] encoding, int[] format, int [] ctext, int[] length) { 2849 lock.lock(); 2850 try { 2851 return _gdk_utf8_to_compound_text(str, encoding, format, ctext, length); 2852 } finally { 2853 lock.unlock(); 2854 } 2855} 2856public static final native int _gdk_text_property_to_utf8_list (int encoding, int format, int text, int length, int [] list); 2857public static final int gdk_text_property_to_utf8_list (int encoding, int format, int text, int length, int [] list) { 2858 lock.lock(); 2859 try { 2860 return _gdk_text_property_to_utf8_list(encoding, format, text, length, list); 2861 } finally { 2862 lock.unlock(); 2863 } 2864} 2865public static final native int _gdk_unicode_to_keyval(int wc); 2866public static final int gdk_unicode_to_keyval(int wc) { 2867 lock.lock(); 2868 try { 2869 return _gdk_unicode_to_keyval(wc); 2870 } finally { 2871 lock.unlock(); 2872 } 2873} 2874public static final native int _gdk_visual_get_system(); 2875public static final int gdk_visual_get_system() { 2876 lock.lock(); 2877 try { 2878 return _gdk_visual_get_system(); 2879 } finally { 2880 lock.unlock(); 2881 } 2882} 2883public static final native int _gdk_window_at_pointer(int[] win_x, int[] win_y); 2884public static final int gdk_window_at_pointer(int[] win_x, int[] win_y) { 2885 lock.lock(); 2886 try { 2887 return _gdk_window_at_pointer(win_x, win_y); 2888 } finally { 2889 lock.unlock(); 2890 } 2891} 2892public static final native void _gdk_window_begin_paint_rect(int window, GdkRectangle rectangle); 2893public static final void gdk_window_begin_paint_rect(int window, GdkRectangle rectangle) { 2894 lock.lock(); 2895 try { 2896 _gdk_window_begin_paint_rect(window, rectangle); 2897 } finally { 2898 lock.unlock(); 2899 } 2900} 2901public static final native void _gdk_window_destroy(int window); 2902public static final void gdk_window_destroy(int window) { 2903 lock.lock(); 2904 try { 2905 _gdk_window_destroy(window); 2906 } finally { 2907 lock.unlock(); 2908 } 2909} 2910public static final native void _gdk_window_end_paint(int window); 2911public static final void gdk_window_end_paint(int window) { 2912 lock.lock(); 2913 try { 2914 _gdk_window_end_paint(window); 2915 } finally { 2916 lock.unlock(); 2917 } 2918} 2919public static final native int _gdk_window_get_children(int window); 2920public static final int gdk_window_get_children(int window) { 2921 lock.lock(); 2922 try { 2923 return _gdk_window_get_children(window); 2924 } finally { 2925 lock.unlock(); 2926 } 2927} 2928public static final native int _gdk_window_get_events(int window); 2929public static final int gdk_window_get_events(int window) { 2930 lock.lock(); 2931 try { 2932 return _gdk_window_get_events(window); 2933 } finally { 2934 lock.unlock(); 2935 } 2936} 2937public static final native void _gdk_window_focus(int window, int timestamp); 2938public static final void gdk_window_focus(int window, int timestamp) { 2939 lock.lock(); 2940 try { 2941 _gdk_window_focus(window, timestamp); 2942 } finally { 2943 lock.unlock(); 2944 } 2945} 2946public static final native void _gdk_window_freeze_updates(int window); 2947public static final void gdk_window_freeze_updates(int window) { 2948 lock.lock(); 2949 try { 2950 _gdk_window_freeze_updates(window); 2951 } finally { 2952 lock.unlock(); 2953 } 2954} 2955public static final native void _gdk_window_get_frame_extents(int window, GdkRectangle rect); 2956public static final void gdk_window_get_frame_extents(int window, GdkRectangle rect) { 2957 lock.lock(); 2958 try { 2959 _gdk_window_get_frame_extents(window, rect); 2960 } finally { 2961 lock.unlock(); 2962 } 2963} 2964public static final native void _gdk_window_get_internal_paint_info(int window, int [] real_drawable, int[] x_offset, int[] y_offset); 2965public static final void gdk_window_get_internal_paint_info(int window, int [] real_drawable, int[] x_offset, int[] y_offset) { 2966 lock.lock(); 2967 try { 2968 _gdk_window_get_internal_paint_info(window, real_drawable, x_offset, y_offset); 2969 } finally { 2970 lock.unlock(); 2971 } 2972} 2973public static final native int _gdk_window_get_origin(int window, int[] x, int[] y); 2974public static final int gdk_window_get_origin(int window, int[] x, int[] y) { 2975 lock.lock(); 2976 try { 2977 return _gdk_window_get_origin(window, x, y); 2978 } finally { 2979 lock.unlock(); 2980 } 2981} 2982public static final native int _gdk_window_get_parent(int window); 2983public static final int gdk_window_get_parent(int window) { 2984 lock.lock(); 2985 try { 2986 return _gdk_window_get_parent(window); 2987 } finally { 2988 lock.unlock(); 2989 } 2990} 2991public static final native int _gdk_window_get_pointer(int window, int[] x, int[] y, int[] mask); 2992public static final int gdk_window_get_pointer(int window, int[] x, int[] y, int[] mask) { 2993 lock.lock(); 2994 try { 2995 return _gdk_window_get_pointer(window, x, y, mask); 2996 } finally { 2997 lock.unlock(); 2998 } 2999} 3000public static final native void _gdk_window_get_user_data(int window, int [] data); 3001public static final void gdk_window_get_user_data(int window, int [] data) { 3002 lock.lock(); 3003 try { 3004 _gdk_window_get_user_data(window, data); 3005 } finally { 3006 lock.unlock(); 3007 } 3008} 3009public static final native void _gdk_window_hide(int window); 3010public static final void gdk_window_hide(int window) { 3011 lock.lock(); 3012 try { 3013 _gdk_window_hide(window); 3014 } finally { 3015 lock.unlock(); 3016 } 3017} 3018public static final native void _gdk_window_invalidate_rect(int window, GdkRectangle rectangle, boolean invalidate_children); 3019public static final void gdk_window_invalidate_rect(int window, GdkRectangle rectangle, boolean invalidate_children) { 3020 lock.lock(); 3021 try { 3022 _gdk_window_invalidate_rect(window, rectangle, invalidate_children); 3023 } finally { 3024 lock.unlock(); 3025 } 3026} 3027public static final native void _gdk_window_invalidate_region(int window, int region, boolean invalidate_children); 3028public static final void gdk_window_invalidate_region(int window, int region, boolean invalidate_children) { 3029 lock.lock(); 3030 try { 3031 _gdk_window_invalidate_region(window, region, invalidate_children); 3032 } finally { 3033 lock.unlock(); 3034 } 3035} 3036public static final native void _gdk_window_move(int window, int x, int y); 3037public static final void gdk_window_move(int window, int x, int y) { 3038 lock.lock(); 3039 try { 3040 _gdk_window_move(window, x, y); 3041 } finally { 3042 lock.unlock(); 3043 } 3044} 3045public static final native int _gdk_window_new(int parent, GdkWindowAttr attributes, int attributes_mask); 3046public static final int gdk_window_new(int parent, GdkWindowAttr attributes, int attributes_mask) { 3047 lock.lock(); 3048 try { 3049 return _gdk_window_new(parent, attributes, attributes_mask); 3050 } finally { 3051 lock.unlock(); 3052 } 3053} 3054public static final native void _gdk_window_lower(int window); 3055public static final void gdk_window_lower(int window) { 3056 lock.lock(); 3057 try { 3058 _gdk_window_lower(window); 3059 } finally { 3060 lock.unlock(); 3061 } 3062} 3063public static final native void _gdk_window_process_all_updates(); 3064public static final void gdk_window_process_all_updates() { 3065 lock.lock(); 3066 try { 3067 _gdk_window_process_all_updates(); 3068 } finally { 3069 lock.unlock(); 3070 } 3071} 3072public static final native void _gdk_window_process_updates(int window, boolean update_children); 3073public static final void gdk_window_process_updates(int window, boolean update_children) { 3074 lock.lock(); 3075 try { 3076 _gdk_window_process_updates(window, update_children); 3077 } finally { 3078 lock.unlock(); 3079 } 3080} 3081public static final native void _gdk_window_raise(int window); 3082public static final void gdk_window_raise(int window) { 3083 lock.lock(); 3084 try { 3085 _gdk_window_raise(window); 3086 } finally { 3087 lock.unlock(); 3088 } 3089} 3090public static final native void _gdk_window_resize(int window, int width, int height); 3091public static final void gdk_window_resize(int window, int width, int height) { 3092 lock.lock(); 3093 try { 3094 _gdk_window_resize(window, width, height); 3095 } finally { 3096 lock.unlock(); 3097 } 3098} 3099public static final native void _gdk_window_scroll(int window, int dx, int dy); 3100public static final void gdk_window_scroll(int window, int dx, int dy) { 3101 lock.lock(); 3102 try { 3103 _gdk_window_scroll(window, dx, dy); 3104 } finally { 3105 lock.unlock(); 3106 } 3107} 3108public static final native void _gdk_window_set_accept_focus(int window, boolean accept_focus); 3109public static final void gdk_window_set_accept_focus(int window, boolean accept_focus) { 3110 lock.lock(); 3111 try { 3112 _gdk_window_set_accept_focus(window, accept_focus); 3113 } finally { 3114 lock.unlock(); 3115 } 3116} 3117public static final native void _gdk_window_set_back_pixmap(int window, int pixmap, boolean parent_relative); 3118public static final void gdk_window_set_back_pixmap(int window, int pixmap, boolean parent_relative) { 3119 lock.lock(); 3120 try { 3121 _gdk_window_set_back_pixmap(window, pixmap, parent_relative); 3122 } finally { 3123 lock.unlock(); 3124 } 3125} 3126public static final native void _gdk_window_set_cursor(int window, int cursor); 3127public static final void gdk_window_set_cursor(int window, int cursor) { 3128 lock.lock(); 3129 try { 3130 _gdk_window_set_cursor(window, cursor); 3131 } finally { 3132 lock.unlock(); 3133 } 3134} 3135public static final native void _gdk_window_set_decorations(int window, int decorations); 3136public static final void gdk_window_set_decorations(int window, int decorations) { 3137 lock.lock(); 3138 try { 3139 _gdk_window_set_decorations(window, decorations); 3140 } finally { 3141 lock.unlock(); 3142 } 3143} 3144public static final native void _gdk_window_set_events(int window, int event_mask); 3145public static final void gdk_window_set_events(int window, int event_mask) { 3146 lock.lock(); 3147 try { 3148 _gdk_window_set_events(window, event_mask); 3149 } finally { 3150 lock.unlock(); 3151 } 3152} 3153public static final native void _gdk_window_set_icon(int window, int icon_window, int pixmap, int mask); 3154public static final void gdk_window_set_icon(int window, int icon_window, int pixmap, int mask) { 3155 lock.lock(); 3156 try { 3157 _gdk_window_set_icon(window, icon_window, pixmap, mask); 3158 } finally { 3159 lock.unlock(); 3160 } 3161} 3162public static final native void _gdk_window_set_icon_list(int window, int pixbufs); 3163public static final void gdk_window_set_icon_list(int window, int pixbufs) { 3164 lock.lock(); 3165 try { 3166 _gdk_window_set_icon_list(window, pixbufs); 3167 } finally { 3168 lock.unlock(); 3169 } 3170} 3171public static final native void _gdk_window_set_keep_above(int window, boolean setting); 3172public static final void gdk_window_set_keep_above(int window, boolean setting) { 3173 lock.lock(); 3174 try { 3175 _gdk_window_set_keep_above(window, setting); 3176 } finally { 3177 lock.unlock(); 3178 } 3179} 3180public static final native void _gdk_window_set_override_redirect(int window, boolean override_redirect); 3181public static final void gdk_window_set_override_redirect(int window, boolean override_redirect) { 3182 lock.lock(); 3183 try { 3184 _gdk_window_set_override_redirect(window, override_redirect); 3185 } finally { 3186 lock.unlock(); 3187 } 3188} 3189public static final native void _gdk_window_set_user_data(int window, int user_data); 3190public static final void gdk_window_set_user_data(int window, int user_data) { 3191 lock.lock(); 3192 try { 3193 _gdk_window_set_user_data(window, user_data); 3194 } finally { 3195 lock.unlock(); 3196 } 3197} 3198public static final native void _gdk_window_shape_combine_region (int window, int shape_region, int offset_x, int offset_y); 3199public static final void gdk_window_shape_combine_region (int window, int shape_region, int offset_x, int offset_y) { 3200 lock.lock(); 3201 try { 3202 _gdk_window_shape_combine_region(window, shape_region, offset_x, offset_y); 3203 } finally { 3204 lock.unlock(); 3205 } 3206} 3207public static final native void _gdk_window_show(int window); 3208public static final void gdk_window_show(int window) { 3209 lock.lock(); 3210 try { 3211 _gdk_window_show(window); 3212 } finally { 3213 lock.unlock(); 3214 } 3215} 3216public static final native void _gdk_window_show_unraised(int window); 3217public static final void gdk_window_show_unraised(int window) { 3218 lock.lock(); 3219 try { 3220 _gdk_window_show_unraised(window); 3221 } finally { 3222 lock.unlock(); 3223 } 3224} 3225public static final native void _gdk_window_thaw_updates(int window); 3226public static final void gdk_window_thaw_updates(int window) { 3227 lock.lock(); 3228 try { 3229 _gdk_window_thaw_updates(window); 3230 } finally { 3231 lock.unlock(); 3232 } 3233} 3234public static final native int _gtk_accel_group_new(); 3235public static final int gtk_accel_group_new() { 3236 lock.lock(); 3237 try { 3238 return _gtk_accel_group_new(); 3239 } finally { 3240 lock.unlock(); 3241 } 3242} 3243public static final native boolean _gtk_accel_groups_activate(int accelGroup, int accelKey, int accelMods); 3244public static final boolean gtk_accel_groups_activate(int accelGroup, int accelKey, int accelMods) { 3245 lock.lock(); 3246 try { 3247 return _gtk_accel_groups_activate(accelGroup, accelKey, accelMods); 3248 } finally { 3249 lock.unlock(); 3250 } 3251} 3252public static final native void _gtk_accel_label_set_accel_widget(int accel_label, int accel_widget); 3253public static final void gtk_accel_label_set_accel_widget(int accel_label, int accel_widget) { 3254 lock.lock(); 3255 try { 3256 _gtk_accel_label_set_accel_widget(accel_label, accel_widget); 3257 } finally { 3258 lock.unlock(); 3259 } 3260} 3261public static final native void _gtk_adjustment_changed(int adjustment); 3262public static final void gtk_adjustment_changed(int adjustment) { 3263 lock.lock(); 3264 try { 3265 _gtk_adjustment_changed(adjustment); 3266 } finally { 3267 lock.unlock(); 3268 } 3269} 3270public static final native int _gtk_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size); 3271public static final int gtk_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size) { 3272 lock.lock(); 3273 try { 3274 return _gtk_adjustment_new(value, lower, upper, step_increment, page_increment, page_size); 3275 } finally { 3276 lock.unlock(); 3277 } 3278} 3279public static final native void _gtk_adjustment_set_value(int adjustment, double value); 3280public static final void gtk_adjustment_set_value(int adjustment, double value) { 3281 lock.lock(); 3282 try { 3283 _gtk_adjustment_set_value(adjustment, value); 3284 } finally { 3285 lock.unlock(); 3286 } 3287} 3288public static final native void _gtk_adjustment_value_changed(int adjustment); 3289public static final void gtk_adjustment_value_changed(int adjustment) { 3290 lock.lock(); 3291 try { 3292 _gtk_adjustment_value_changed(adjustment); 3293 } finally { 3294 lock.unlock(); 3295 } 3296} 3297public static final native int _gtk_arrow_new(int arrow_type, int shadow_type); 3298public static final int gtk_arrow_new(int arrow_type, int shadow_type) { 3299 lock.lock(); 3300 try { 3301 return _gtk_arrow_new(arrow_type, shadow_type); 3302 } finally { 3303 lock.unlock(); 3304 } 3305} 3306public static final native void _gtk_arrow_set(int arrow, int arrow_type, int shadow_type); 3307public static final void gtk_arrow_set(int arrow, int arrow_type, int shadow_type) { 3308 lock.lock(); 3309 try { 3310 _gtk_arrow_set(arrow, arrow_type, shadow_type); 3311 } finally { 3312 lock.unlock(); 3313 } 3314} 3315public static final native int _gtk_bin_get_child(int bin); 3316public static final int gtk_bin_get_child(int bin) { 3317 lock.lock(); 3318 try { 3319 return _gtk_bin_get_child(bin); 3320 } finally { 3321 lock.unlock(); 3322 } 3323} 3324public static final native void _gtk_box_set_child_packing(int box, int child, boolean expand, boolean fill, int padding, int pack_type); 3325public static final void gtk_box_set_child_packing(int box, int child, boolean expand, boolean fill, int padding, int pack_type) { 3326 lock.lock(); 3327 try { 3328 _gtk_box_set_child_packing(box, child, expand, fill, padding, pack_type); 3329 } finally { 3330 lock.unlock(); 3331 } 3332} 3333public static final native void _gtk_button_clicked(int button); 3334public static final void gtk_button_clicked(int button) { 3335 lock.lock(); 3336 try { 3337 _gtk_button_clicked(button); 3338 } finally { 3339 lock.unlock(); 3340 } 3341} 3342public static final native int _gtk_button_new(); 3343public static final int gtk_button_new() { 3344 lock.lock(); 3345 try { 3346 return _gtk_button_new(); 3347 } finally { 3348 lock.unlock(); 3349 } 3350} 3351public static final native void _gtk_button_set_relief(int button, int newstyle); 3352public static final void gtk_button_set_relief(int button, int newstyle) { 3353 lock.lock(); 3354 try { 3355 _gtk_button_set_relief(button, newstyle); 3356 } finally { 3357 lock.unlock(); 3358 } 3359} 3360public static final native void _gtk_cell_renderer_get_size(int cell, int widget, GdkRectangle area, int[] x_offset, int[] y_offset, int[] width, int[] height); 3361public static final void gtk_cell_renderer_get_size(int cell, int widget, GdkRectangle area, int[] x_offset, int[] y_offset, int[] width, int[] height) { 3362 lock.lock(); 3363 try { 3364 _gtk_cell_renderer_get_size(cell, widget, area, x_offset, y_offset, width, height); 3365 } finally { 3366 lock.unlock(); 3367 } 3368} 3369public static final native int _gtk_cell_renderer_pixbuf_new(); 3370public static final int gtk_cell_renderer_pixbuf_new() { 3371 lock.lock(); 3372 try { 3373 return _gtk_cell_renderer_pixbuf_new(); 3374 } finally { 3375 lock.unlock(); 3376 } 3377} 3378public static final native int _gtk_cell_renderer_text_new(); 3379public static final int gtk_cell_renderer_text_new() { 3380 lock.lock(); 3381 try { 3382 return _gtk_cell_renderer_text_new(); 3383 } finally { 3384 lock.unlock(); 3385 } 3386} 3387public static final native int _gtk_cell_renderer_toggle_new(); 3388public static final int gtk_cell_renderer_toggle_new() { 3389 lock.lock(); 3390 try { 3391 return _gtk_cell_renderer_toggle_new(); 3392 } finally { 3393 lock.unlock(); 3394 } 3395} 3396public static final native int _gtk_check_button_new(); 3397public static final int gtk_check_button_new() { 3398 lock.lock(); 3399 try { 3400 return _gtk_check_button_new(); 3401 } finally { 3402 lock.unlock(); 3403 } 3404} 3405public static final native boolean _gtk_check_menu_item_get_active(int check_menu_item); 3406public static final boolean gtk_check_menu_item_get_active(int check_menu_item) { 3407 lock.lock(); 3408 try { 3409 return _gtk_check_menu_item_get_active(check_menu_item); 3410 } finally { 3411 lock.unlock(); 3412 } 3413} 3414public static final native int _gtk_check_menu_item_new_with_label(byte[] label); 3415public static final int gtk_check_menu_item_new_with_label(byte[] label) { 3416 lock.lock(); 3417 try { 3418 return _gtk_check_menu_item_new_with_label(label); 3419 } finally { 3420 lock.unlock(); 3421 } 3422} 3423public static final native void _gtk_check_menu_item_set_active(int wid, boolean active); 3424public static final void gtk_check_menu_item_set_active(int wid, boolean active) { 3425 lock.lock(); 3426 try { 3427 _gtk_check_menu_item_set_active(wid, active); 3428 } finally { 3429 lock.unlock(); 3430 } 3431} 3432public static final native int _gtk_check_version(int required_major, int required_minor, int required_micro); 3433public static final int gtk_check_version(int required_major, int required_minor, int required_micro) { 3434 lock.lock(); 3435 try { 3436 return _gtk_check_version(required_major, required_minor, required_micro); 3437 } finally { 3438 lock.unlock(); 3439 } 3440} 3441public static final native void _gtk_clipboard_clear(int clipboard); 3442public static final void gtk_clipboard_clear(int clipboard) { 3443 lock.lock(); 3444 try { 3445 _gtk_clipboard_clear(clipboard); 3446 } finally { 3447 lock.unlock(); 3448 } 3449} 3450public static final native int _gtk_clipboard_get(int selection); 3451public static final int gtk_clipboard_get(int selection) { 3452 lock.lock(); 3453 try { 3454 return _gtk_clipboard_get(selection); 3455 } finally { 3456 lock.unlock(); 3457 } 3458} 3459public static final native boolean _gtk_clipboard_set_with_data(int clipboard, int target, int n_targets, int get_func, int clear_func, int user_data); 3460public static final boolean gtk_clipboard_set_with_data(int clipboard, int target, int n_targets, int get_func, int clear_func, int user_data) { 3461 lock.lock(); 3462 try { 3463 return _gtk_clipboard_set_with_data(clipboard, target, n_targets, get_func, clear_func, user_data); 3464 } finally { 3465 lock.unlock(); 3466 } 3467} 3468public static final native int _gtk_clipboard_wait_for_contents(int clipboard, int target); 3469public static final int gtk_clipboard_wait_for_contents(int clipboard, int target) { 3470 lock.lock(); 3471 try { 3472 return _gtk_clipboard_wait_for_contents(clipboard, target); 3473 } finally { 3474 lock.unlock(); 3475 } 3476} 3477public static final native int _gtk_color_selection_dialog_new(byte[] title); 3478public static final int gtk_color_selection_dialog_new(byte[] title) { 3479 lock.lock(); 3480 try { 3481 return _gtk_color_selection_dialog_new(title); 3482 } finally { 3483 lock.unlock(); 3484 } 3485} 3486public static final native void _gtk_color_selection_get_current_color(int colorsel, GdkColor color); 3487public static final void gtk_color_selection_get_current_color(int colorsel, GdkColor color) { 3488 lock.lock(); 3489 try { 3490 _gtk_color_selection_get_current_color(colorsel, color); 3491 } finally { 3492 lock.unlock(); 3493 } 3494} 3495public static final native void _gtk_color_selection_set_current_color(int colorsel, GdkColor color); 3496public static final void gtk_color_selection_set_current_color(int colorsel, GdkColor color) { 3497 lock.lock(); 3498 try { 3499 _gtk_color_selection_set_current_color(colorsel, color); 3500 } finally { 3501 lock.unlock(); 3502 } 3503} 3504public static final native void _gtk_color_selection_set_has_palette(int colorsel, boolean has_palette); 3505public static final void gtk_color_selection_set_has_palette(int colorsel, boolean has_palette) { 3506 lock.lock(); 3507 try { 3508 _gtk_color_selection_set_has_palette(colorsel, has_palette); 3509 } finally { 3510 lock.unlock(); 3511 } 3512} 3513public static final native void _gtk_combo_disable_activate(int combo); 3514public static final void gtk_combo_disable_activate(int combo) { 3515 lock.lock(); 3516 try { 3517 _gtk_combo_disable_activate(combo); 3518 } finally { 3519 lock.unlock(); 3520 } 3521} 3522public static final native int _gtk_combo_new(); 3523public static final int gtk_combo_new() { 3524 lock.lock(); 3525 try { 3526 return _gtk_combo_new(); 3527 } finally { 3528 lock.unlock(); 3529 } 3530} 3531public static final native void _gtk_combo_set_case_sensitive(int combo, boolean val); 3532public static final void gtk_combo_set_case_sensitive(int combo, boolean val) { 3533 lock.lock(); 3534 try { 3535 _gtk_combo_set_case_sensitive(combo, val); 3536 } finally { 3537 lock.unlock(); 3538 } 3539} 3540public static final native void _gtk_combo_set_popdown_strings(int combo, int strings); 3541public static final void gtk_combo_set_popdown_strings(int combo, int strings) { 3542 lock.lock(); 3543 try { 3544 _gtk_combo_set_popdown_strings(combo, strings); 3545 } finally { 3546 lock.unlock(); 3547 } 3548} 3549public static final native void _gtk_container_add(int container, int widget); 3550public static final void gtk_container_add(int container, int widget) { 3551 lock.lock(); 3552 try { 3553 _gtk_container_add(container, widget); 3554 } finally { 3555 lock.unlock(); 3556 } 3557} 3558public static final native void _gtk_container_forall(int container, int callback, int callback_data); 3559public static final void gtk_container_forall(int container, int callback, int callback_data) { 3560 lock.lock(); 3561 try { 3562 _gtk_container_forall(container, callback, callback_data); 3563 } finally { 3564 lock.unlock(); 3565 } 3566} 3567public static final native int _gtk_container_get_border_width(int container); 3568public static final int gtk_container_get_border_width(int container) { 3569 lock.lock(); 3570 try { 3571 return _gtk_container_get_border_width(container); 3572 } finally { 3573 lock.unlock(); 3574 } 3575} 3576public static final native int _gtk_container_get_children(int container); 3577public static final int gtk_container_get_children(int container) { 3578 lock.lock(); 3579 try { 3580 return _gtk_container_get_children(container); 3581 } finally { 3582 lock.unlock(); 3583 } 3584} 3585public static final native void _gtk_container_remove(int container, int widget); 3586public static final void gtk_container_remove(int container, int widget) { 3587 lock.lock(); 3588 try { 3589 _gtk_container_remove(container, widget); 3590 } finally { 3591 lock.unlock(); 3592 } 3593} 3594public static final native void _gtk_container_resize_children(int container); 3595public static final void gtk_container_resize_children(int container) { 3596 lock.lock(); 3597 try { 3598 _gtk_container_resize_children(container); 3599 } finally { 3600 lock.unlock(); 3601 } 3602} 3603public static final native void _gtk_container_set_border_width(int container, int border_width); 3604public static final void gtk_container_set_border_width(int container, int border_width) { 3605 lock.lock(); 3606 try { 3607 _gtk_container_set_border_width(container, border_width); 3608 } finally { 3609 lock.unlock(); 3610 } 3611} 3612public static final native int _gtk_dialog_add_button(int dialog, byte[] button_text, int response_id); 3613public static final int gtk_dialog_add_button(int dialog, byte[] button_text, int response_id) { 3614 lock.lock(); 3615 try { 3616 return _gtk_dialog_add_button(dialog, button_text, response_id); 3617 } finally { 3618 lock.unlock(); 3619 } 3620} 3621public static final native int _gtk_dialog_run(int dialog); 3622public static final int gtk_dialog_run(int dialog) { 3623 lock.lock(); 3624 try { 3625 return _gtk_dialog_run(dialog); 3626 } finally { 3627 lock.unlock(); 3628 } 3629} 3630public static final native int _gtk_drag_begin(int widget, int targets, int actions, int button, int event); 3631public static final int gtk_drag_begin(int widget, int targets, int actions, int button, int event) { 3632 lock.lock(); 3633 try { 3634 return _gtk_drag_begin(widget, targets, actions, button, event); 3635 } finally { 3636 lock.unlock(); 3637 } 3638} 3639public static final native boolean _gtk_drag_check_threshold(int widget, int start_x, int start_y, int current_x, int current_y); 3640public static final boolean gtk_drag_check_threshold(int widget, int start_x, int start_y, int current_x, int current_y) { 3641 lock.lock(); 3642 try { 3643 return _gtk_drag_check_threshold(widget, start_x, start_y, current_x, current_y); 3644 } finally { 3645 lock.unlock(); 3646 } 3647} 3648public static final native int _gtk_drag_dest_find_target(int widget, int context, int target_list); 3649public static final int gtk_drag_dest_find_target(int widget, int context, int target_list) { 3650 lock.lock(); 3651 try { 3652 return _gtk_drag_dest_find_target(widget, context, target_list); 3653 } finally { 3654 lock.unlock(); 3655 } 3656} 3657public static final native void _gtk_drag_dest_set(int widget, int flags, int targets, int n_targets, int actions); 3658public static final void gtk_drag_dest_set(int widget, int flags, int targets, int n_targets, int actions) { 3659 lock.lock(); 3660 try { 3661 _gtk_drag_dest_set(widget, flags, targets, n_targets, actions); 3662 } finally { 3663 lock.unlock(); 3664 } 3665} 3666public static final native void _gtk_drag_dest_unset(int widget); 3667public static final void gtk_drag_dest_unset(int widget) { 3668 lock.lock(); 3669 try { 3670 _gtk_drag_dest_unset(widget); 3671 } finally { 3672 lock.unlock(); 3673 } 3674} 3675public static final native void _gtk_drag_finish(int context, boolean success, boolean delete, int time); 3676public static final void gtk_drag_finish(int context, boolean success, boolean delete, int time) { 3677 lock.lock(); 3678 try { 3679 _gtk_drag_finish(context, success, delete, time); 3680 } finally { 3681 lock.unlock(); 3682 } 3683} 3684public static final native void _gtk_drag_get_data(int widget, int context, int target, int time); 3685public static final void gtk_drag_get_data(int widget, int context, int target, int time) { 3686 lock.lock(); 3687 try { 3688 _gtk_drag_get_data(widget, context, target, time); 3689 } finally { 3690 lock.unlock(); 3691 } 3692} 3693public static final native int _gtk_drawing_area_new(); 3694public static final int gtk_drawing_area_new() { 3695 lock.lock(); 3696 try { 3697 return _gtk_drawing_area_new(); 3698 } finally { 3699 lock.unlock(); 3700 } 3701} 3702public static final native void _gtk_editable_copy_clipboard(int editable); 3703public static final void gtk_editable_copy_clipboard(int editable) { 3704 lock.lock(); 3705 try { 3706 _gtk_editable_copy_clipboard(editable); 3707 } finally { 3708 lock.unlock(); 3709 } 3710} 3711public static final native void _gtk_editable_cut_clipboard(int editable); 3712public static final void gtk_editable_cut_clipboard(int editable) { 3713 lock.lock(); 3714 try { 3715 _gtk_editable_cut_clipboard(editable); 3716 } finally { 3717 lock.unlock(); 3718 } 3719} 3720public static final native void _gtk_editable_delete_selection(int editable); 3721public static final void gtk_editable_delete_selection(int editable) { 3722 lock.lock(); 3723 try { 3724 _gtk_editable_delete_selection(editable); 3725 } finally { 3726 lock.unlock(); 3727 } 3728} 3729public static final native void _gtk_editable_delete_text(int editable, int start_pos, int end_pos); 3730public static final void gtk_editable_delete_text(int editable, int start_pos, int end_pos) { 3731 lock.lock(); 3732 try { 3733 _gtk_editable_delete_text(editable, start_pos, end_pos); 3734 } finally { 3735 lock.unlock(); 3736 } 3737} 3738public static final native int _gtk_editable_get_chars(int editable, int start_pos, int end_pos); 3739public static final int gtk_editable_get_chars(int editable, int start_pos, int end_pos) { 3740 lock.lock(); 3741 try { 3742 return _gtk_editable_get_chars(editable, start_pos, end_pos); 3743 } finally { 3744 lock.unlock(); 3745 } 3746} 3747public static final native boolean _gtk_editable_get_editable(int editable); 3748public static final boolean gtk_editable_get_editable(int editable) { 3749 lock.lock(); 3750 try { 3751 return _gtk_editable_get_editable(editable); 3752 } finally { 3753 lock.unlock(); 3754 } 3755} 3756public static final native int _gtk_editable_get_position(int editable); 3757public static final int gtk_editable_get_position(int editable) { 3758 lock.lock(); 3759 try { 3760 return _gtk_editable_get_position(editable); 3761 } finally { 3762 lock.unlock(); 3763 } 3764} 3765public static final native boolean _gtk_editable_get_selection_bounds(int editable, int[] start, int[] end); 3766public static final boolean gtk_editable_get_selection_bounds(int editable, int[] start, int[] end) { 3767 lock.lock(); 3768 try { 3769 return _gtk_editable_get_selection_bounds(editable, start, end); 3770 } finally { 3771 lock.unlock(); 3772 } 3773} 3774public static final native void _gtk_editable_insert_text(int editable, byte[] new_text, int new_text_length, int[] position); 3775public static final void gtk_editable_insert_text(int editable, byte[] new_text, int new_text_length, int[] position) { 3776 lock.lock(); 3777 try { 3778 _gtk_editable_insert_text(editable, new_text, new_text_length, position); 3779 } finally { 3780 lock.unlock(); 3781 } 3782} 3783public static final native void _gtk_editable_paste_clipboard(int editable); 3784public static final void gtk_editable_paste_clipboard(int editable) { 3785 lock.lock(); 3786 try { 3787 _gtk_editable_paste_clipboard(editable); 3788 } finally { 3789 lock.unlock(); 3790 } 3791} 3792public static final native void _gtk_editable_select_region(int editable, int start, int end); 3793public static final void gtk_editable_select_region(int editable, int start, int end) { 3794 lock.lock(); 3795 try { 3796 _gtk_editable_select_region(editable, start, end); 3797 } finally { 3798 lock.unlock(); 3799 } 3800} 3801public static final native void _gtk_editable_set_editable(int entry, boolean editable); 3802public static final void gtk_editable_set_editable(int entry, boolean editable) { 3803 lock.lock(); 3804 try { 3805 _gtk_editable_set_editable(entry, editable); 3806 } finally { 3807 lock.unlock(); 3808 } 3809} 3810public static final native void _gtk_editable_set_position(int editable, int position); 3811public static final void gtk_editable_set_position(int editable, int position) { 3812 lock.lock(); 3813 try { 3814 _gtk_editable_set_position(editable, position); 3815 } finally { 3816 lock.unlock(); 3817 } 3818} 3819public static final native char _gtk_entry_get_invisible_char(int entry); 3820public static final char gtk_entry_get_invisible_char(int entry) { 3821 lock.lock(); 3822 try { 3823 return _gtk_entry_get_invisible_char(entry); 3824 } finally { 3825 lock.unlock(); 3826 } 3827} 3828public static final native int _gtk_entry_get_layout (int entry); 3829public static final int gtk_entry_get_layout (int entry) { 3830 lock.lock(); 3831 try { 3832 return _gtk_entry_get_layout(entry); 3833 } finally { 3834 lock.unlock(); 3835 } 3836} 3837public static final native int _gtk_entry_get_max_length(int entry); 3838public static final int gtk_entry_get_max_length(int entry) { 3839 lock.lock(); 3840 try { 3841 return _gtk_entry_get_max_length(entry); 3842 } finally { 3843 lock.unlock(); 3844 } 3845} 3846public static final native int _gtk_entry_get_text(int entry); 3847public static final int gtk_entry_get_text(int entry) { 3848 lock.lock(); 3849 try { 3850 return _gtk_entry_get_text(entry); 3851 } finally { 3852 lock.unlock(); 3853 } 3854} 3855public static final native boolean _gtk_entry_get_visibility(int entry); 3856public static final boolean gtk_entry_get_visibility(int entry) { 3857 lock.lock(); 3858 try { 3859 return _gtk_entry_get_visibility(entry); 3860 } finally { 3861 lock.unlock(); 3862 } 3863} 3864public static final native int _gtk_entry_new(); 3865public static final int gtk_entry_new() { 3866 lock.lock(); 3867 try { 3868 return _gtk_entry_new(); 3869 } finally { 3870 lock.unlock(); 3871 } 3872} 3873public static final native void _gtk_entry_set_activates_default(int entry, boolean setting); 3874public static final void gtk_entry_set_activates_default(int entry, boolean setting) { 3875 lock.lock(); 3876 try { 3877 _gtk_entry_set_activates_default(entry, setting); 3878 } finally { 3879 lock.unlock(); 3880 } 3881} 3882public static final native void _gtk_entry_set_alignment(int entry, float xalign); 3883public static final void gtk_entry_set_alignment(int entry, float xalign) { 3884 lock.lock(); 3885 try { 3886 _gtk_entry_set_alignment(entry, xalign); 3887 } finally { 3888 lock.unlock(); 3889 } 3890} 3891public static final native void _gtk_entry_set_has_frame(int entry, boolean setting); 3892public static final void gtk_entry_set_has_frame(int entry, boolean setting) { 3893 lock.lock(); 3894 try { 3895 _gtk_entry_set_has_frame(entry, setting); 3896 } finally { 3897 lock.unlock(); 3898 } 3899} 3900public static final native void _gtk_entry_set_invisible_char(int entry, char ch); 3901public static final void gtk_entry_set_invisible_char(int entry, char ch) { 3902 lock.lock(); 3903 try { 3904 _gtk_entry_set_invisible_char(entry, ch); 3905 } finally { 3906 lock.unlock(); 3907 } 3908} 3909public static final native void _gtk_entry_set_max_length(int entry, int max); 3910public static final void gtk_entry_set_max_length(int entry, int max) { 3911 lock.lock(); 3912 try { 3913 _gtk_entry_set_max_length(entry, max); 3914 } finally { 3915 lock.unlock(); 3916 } 3917} 3918public static final native void _gtk_entry_set_text(int entry, byte[] text); 3919public static final void gtk_entry_set_text(int entry, byte[] text) { 3920 lock.lock(); 3921 try { 3922 _gtk_entry_set_text(entry, text); 3923 } finally { 3924 lock.unlock(); 3925 } 3926} 3927public static final native void _gtk_entry_set_visibility(int entry, boolean visible); 3928public static final void gtk_entry_set_visibility(int entry, boolean visible) { 3929 lock.lock(); 3930 try { 3931 _gtk_entry_set_visibility(entry, visible); 3932 } finally { 3933 lock.unlock(); 3934 } 3935} 3936public static final native int _gtk_events_pending(); 3937public static final int gtk_events_pending() { 3938 lock.lock(); 3939 try { 3940 return _gtk_events_pending(); 3941 } finally { 3942 lock.unlock(); 3943 } 3944} 3945public static final native void _gtk_file_chooser_add_filter(int chooser, int filter); 3946public static final void gtk_file_chooser_add_filter(int chooser, int filter) { 3947 lock.lock(); 3948 try { 3949 _gtk_file_chooser_add_filter(chooser, filter); 3950 } finally { 3951 lock.unlock(); 3952 } 3953} 3954public static final native int _gtk_file_chooser_dialog_new(byte[] title, int parent, int action, int first_button_text, int first_button_id, int second_button_text, int second_button_id, int terminator); 3955public static final int gtk_file_chooser_dialog_new(byte[] title, int parent, int action, int first_button_text, int first_button_id, int second_button_text, int second_button_id, int terminator) { 3956 lock.lock(); 3957 try { 3958 return _gtk_file_chooser_dialog_new(title, parent, action, first_button_text, first_button_id, second_button_text, second_button_id, terminator); 3959 } finally { 3960 lock.unlock(); 3961 } 3962} 3963public static final native int _gtk_file_chooser_get_current_folder(int chooser); 3964public static final int gtk_file_chooser_get_current_folder(int chooser) { 3965 lock.lock(); 3966 try { 3967 return _gtk_file_chooser_get_current_folder(chooser); 3968 } finally { 3969 lock.unlock(); 3970 } 3971} 3972public static final native int _gtk_file_chooser_get_filename(int chooser); 3973public static final int gtk_file_chooser_get_filename(int chooser) { 3974 lock.lock(); 3975 try { 3976 return _gtk_file_chooser_get_filename(chooser); 3977 } finally { 3978 lock.unlock(); 3979 } 3980} 3981public static final native int _gtk_file_chooser_get_filenames(int chooser); 3982public static final int gtk_file_chooser_get_filenames(int chooser) { 3983 lock.lock(); 3984 try { 3985 return _gtk_file_chooser_get_filenames(chooser); 3986 } finally { 3987 lock.unlock(); 3988 } 3989} 3990public static final native void _gtk_file_chooser_set_current_folder(int chooser, byte[] filename); 3991public static final void gtk_file_chooser_set_current_folder(int chooser, byte[] filename) { 3992 lock.lock(); 3993 try { 3994 _gtk_file_chooser_set_current_folder(chooser, filename); 3995 } finally { 3996 lock.unlock(); 3997 } 3998} 3999public static final native void _gtk_file_chooser_set_current_name(int chooser, byte[] name); 4000public static final void gtk_file_chooser_set_current_name(int chooser, byte[] name) { 4001 lock.lock(); 4002 try { 4003 _gtk_file_chooser_set_current_name(chooser, name); 4004 } finally { 4005 lock.unlock(); 4006 } 4007} 4008public static final native void _gtk_file_chooser_set_extra_widget(int chooser, int extra_widget); 4009public static final void gtk_file_chooser_set_extra_widget(int chooser, int extra_widget) { 4010 lock.lock(); 4011 try { 4012 _gtk_file_chooser_set_extra_widget(chooser, extra_widget); 4013 } finally { 4014 lock.unlock(); 4015 } 4016} 4017public static final native void _gtk_file_chooser_set_filename(int chooser, byte[] name); 4018public static final void gtk_file_chooser_set_filename(int chooser, byte[] name) { 4019 lock.lock(); 4020 try { 4021 _gtk_file_chooser_set_filename(chooser, name); 4022 } finally { 4023 lock.unlock(); 4024 } 4025} 4026public static final native void _gtk_file_chooser_set_select_multiple(int chooser, boolean select_multiple); 4027public static final void gtk_file_chooser_set_select_multiple(int chooser, boolean select_multiple) { 4028 lock.lock(); 4029 try { 4030 _gtk_file_chooser_set_select_multiple(chooser, select_multiple); 4031 } finally { 4032 lock.unlock(); 4033 } 4034} 4035public static final native void _gtk_file_filter_add_pattern(int filter, byte[] pattern); 4036public static final void gtk_file_filter_add_pattern(int filter, byte[] pattern) { 4037 lock.lock(); 4038 try { 4039 _gtk_file_filter_add_pattern(filter, pattern); 4040 } finally { 4041 lock.unlock(); 4042 } 4043} 4044public static final native int _gtk_file_filter_new(); 4045public static final int gtk_file_filter_new() { 4046 lock.lock(); 4047 try { 4048 return _gtk_file_filter_new(); 4049 } finally { 4050 lock.unlock(); 4051 } 4052} 4053public static final native void _gtk_file_filter_set_name(int filter, byte[] name); 4054public static final void gtk_file_filter_set_name(int filter, byte[] name) { 4055 lock.lock(); 4056 try { 4057 _gtk_file_filter_set_name(filter, name); 4058 } finally { 4059 lock.unlock(); 4060 } 4061} 4062public static final native int _gtk_file_selection_get_filename(int filesel); 4063public static final int gtk_file_selection_get_filename(int filesel) { 4064 lock.lock(); 4065 try { 4066 return _gtk_file_selection_get_filename(filesel); 4067 } finally { 4068 lock.unlock(); 4069 } 4070} 4071public static final native int _gtk_file_selection_get_selections(int filesel); 4072public static final int gtk_file_selection_get_selections(int filesel) { 4073 lock.lock(); 4074 try { 4075 return _gtk_file_selection_get_selections(filesel); 4076 } finally { 4077 lock.unlock(); 4078 } 4079} 4080public static final native void _gtk_file_selection_hide_fileop_buttons(int filesel); 4081public static final void gtk_file_selection_hide_fileop_buttons(int filesel) { 4082 lock.lock(); 4083 try { 4084 _gtk_file_selection_hide_fileop_buttons(filesel); 4085 } finally { 4086 lock.unlock(); 4087 } 4088} 4089public static final native int _gtk_file_selection_new(byte[] title); 4090public static final int gtk_file_selection_new(byte[] title) { 4091 lock.lock(); 4092 try { 4093 return _gtk_file_selection_new(title); 4094 } finally { 4095 lock.unlock(); 4096 } 4097} 4098public static final native void _gtk_file_selection_set_filename(int filesel, int filename); 4099public static final void gtk_file_selection_set_filename(int filesel, int filename) { 4100 lock.lock(); 4101 try { 4102 _gtk_file_selection_set_filename(filesel, filename); 4103 } finally { 4104 lock.unlock(); 4105 } 4106} 4107public static final native void _gtk_file_selection_set_select_multiple(int filesel, boolean select_multiple); 4108public static final void gtk_file_selection_set_select_multiple(int filesel, boolean select_multiple) { 4109 lock.lock(); 4110 try { 4111 _gtk_file_selection_set_select_multiple(filesel, select_multiple); 4112 } finally { 4113 lock.unlock(); 4114 } 4115} 4116public static final native void _gtk_fixed_move(int fixed, int widget, int x, int y); 4117public static final void gtk_fixed_move(int fixed, int widget, int x, int y) { 4118 lock.lock(); 4119 try { 4120 _gtk_fixed_move(fixed, widget, x, y); 4121 } finally { 4122 lock.unlock(); 4123 } 4124} 4125public static final native int _gtk_fixed_new(); 4126public static final int gtk_fixed_new() { 4127 lock.lock(); 4128 try { 4129 return _gtk_fixed_new(); 4130 } finally { 4131 lock.unlock(); 4132 } 4133} 4134public static final native void _gtk_fixed_set_has_window(int fixed, boolean has_window); 4135public static final void gtk_fixed_set_has_window(int fixed, boolean has_window) { 4136 lock.lock(); 4137 try { 4138 _gtk_fixed_set_has_window(fixed, has_window); 4139 } finally { 4140 lock.unlock(); 4141 } 4142} 4143public static final native int _gtk_font_selection_dialog_get_font_name(int fsd); 4144public static final int gtk_font_selection_dialog_get_font_name(int fsd) { 4145 lock.lock(); 4146 try { 4147 return _gtk_font_selection_dialog_get_font_name(fsd); 4148 } finally { 4149 lock.unlock(); 4150 } 4151} 4152public static final native int _gtk_font_selection_dialog_new(byte[] title); 4153public static final int gtk_font_selection_dialog_new(byte[] title) { 4154 lock.lock(); 4155 try { 4156 return _gtk_font_selection_dialog_new(title); 4157 } finally { 4158 lock.unlock(); 4159 } 4160} 4161public static final native boolean _gtk_font_selection_dialog_set_font_name(int fsd, byte[] fontname); 4162public static final boolean gtk_font_selection_dialog_set_font_name(int fsd, byte[] fontname) { 4163 lock.lock(); 4164 try { 4165 return _gtk_font_selection_dialog_set_font_name(fsd, fontname); 4166 } finally { 4167 lock.unlock(); 4168 } 4169} 4170public static final native int _gtk_frame_new(byte[] label); 4171public static final int gtk_frame_new(byte[] label) { 4172 lock.lock(); 4173 try { 4174 return _gtk_frame_new(label); 4175 } finally { 4176 lock.unlock(); 4177 } 4178} 4179public static final native int _gtk_frame_get_label_widget(int frame); 4180public static final int gtk_frame_get_label_widget(int frame) { 4181 lock.lock(); 4182 try { 4183 return _gtk_frame_get_label_widget(frame); 4184 } finally { 4185 lock.unlock(); 4186 } 4187} 4188public static final native void _gtk_frame_set_label(int frame, byte[] label); 4189public static final void gtk_frame_set_label(int frame, byte[] label) { 4190 lock.lock(); 4191 try { 4192 _gtk_frame_set_label(frame, label); 4193 } finally { 4194 lock.unlock(); 4195 } 4196} 4197public static final native void _gtk_frame_set_label_widget(int frame, int label_widget); 4198public static final void gtk_frame_set_label_widget(int frame, int label_widget) { 4199 lock.lock(); 4200 try { 4201 _gtk_frame_set_label_widget(frame, label_widget); 4202 } finally { 4203 lock.unlock(); 4204 } 4205} 4206public static final native void _gtk_frame_set_shadow_type(int frame, int type); 4207public static final void gtk_frame_set_shadow_type(int frame, int type) { 4208 lock.lock(); 4209 try { 4210 _gtk_frame_set_shadow_type(frame, type); 4211 } finally { 4212 lock.unlock(); 4213 } 4214} 4215public static final native int _gtk_get_current_event(); 4216public static final int gtk_get_current_event() { 4217 lock.lock(); 4218 try { 4219 return _gtk_get_current_event(); 4220 } finally { 4221 lock.unlock(); 4222 } 4223} 4224public static final native boolean _gtk_get_current_event_state (int[] state); 4225public static final boolean gtk_get_current_event_state (int[] state) { 4226 lock.lock(); 4227 try { 4228 return _gtk_get_current_event_state(state); 4229 } finally { 4230 lock.unlock(); 4231 } 4232} 4233public static final native int _gtk_get_current_event_time(); 4234public static final int gtk_get_current_event_time() { 4235 lock.lock(); 4236 try { 4237 return _gtk_get_current_event_time(); 4238 } finally { 4239 lock.unlock(); 4240 } 4241} 4242public static final native int _gtk_get_default_language(); 4243public static final int gtk_get_default_language() { 4244 lock.lock(); 4245 try { 4246 return _gtk_get_default_language(); 4247 } finally { 4248 lock.unlock(); 4249 } 4250} 4251public static final native int _gtk_get_event_widget(int event); 4252public static final int gtk_get_event_widget(int event) { 4253 lock.lock(); 4254 try { 4255 return _gtk_get_event_widget(event); 4256 } finally { 4257 lock.unlock(); 4258 } 4259} 4260public static final native void _gtk_grab_add(int widget); 4261public static final void gtk_grab_add(int widget) { 4262 lock.lock(); 4263 try { 4264 _gtk_grab_add(widget); 4265 } finally { 4266 lock.unlock(); 4267 } 4268} 4269public static final native int _gtk_grab_get_current(); 4270public static final int gtk_grab_get_current() { 4271 lock.lock(); 4272 try { 4273 return _gtk_grab_get_current(); 4274 } finally { 4275 lock.unlock(); 4276 } 4277} 4278public static final native void _gtk_grab_remove(int widget); 4279public static final void gtk_grab_remove(int widget) { 4280 lock.lock(); 4281 try { 4282 _gtk_grab_remove(widget); 4283 } finally { 4284 lock.unlock(); 4285 } 4286} 4287public static final native int _gtk_hbox_new(boolean homogeneous, int spacing); 4288public static final int gtk_hbox_new(boolean homogeneous, int spacing) { 4289 lock.lock(); 4290 try { 4291 return _gtk_hbox_new(homogeneous, spacing); 4292 } finally { 4293 lock.unlock(); 4294 } 4295} 4296public static final native int _gtk_hscale_new(int adjustment); 4297public static final int gtk_hscale_new(int adjustment) { 4298 lock.lock(); 4299 try { 4300 return _gtk_hscale_new(adjustment); 4301 } finally { 4302 lock.unlock(); 4303 } 4304} 4305public static final native int _gtk_hscrollbar_new(int adjustment); 4306public static final int gtk_hscrollbar_new(int adjustment) { 4307 lock.lock(); 4308 try { 4309 return _gtk_hscrollbar_new(adjustment); 4310 } finally { 4311 lock.unlock(); 4312 } 4313} 4314public static final native int _gtk_hseparator_new(); 4315public static final int gtk_hseparator_new() { 4316 lock.lock(); 4317 try { 4318 return _gtk_hseparator_new(); 4319 } finally { 4320 lock.unlock(); 4321 } 4322} 4323public static final native int _gtk_icon_factory_lookup_default(byte[] stock_id); 4324public static final int gtk_icon_factory_lookup_default(byte[] stock_id) { 4325 lock.lock(); 4326 try { 4327 return _gtk_icon_factory_lookup_default(stock_id); 4328 } finally { 4329 lock.unlock(); 4330 } 4331} 4332public static final native int _gtk_icon_set_render_icon(int icon_set, int style, int direction, int state, int size, int widget, int detail); 4333public static final int gtk_icon_set_render_icon(int icon_set, int style, int direction, int state, int size, int widget, int detail) { 4334 lock.lock(); 4335 try { 4336 return _gtk_icon_set_render_icon(icon_set, style, direction, state, size, widget, detail); 4337 } finally { 4338 lock.unlock(); 4339 } 4340} 4341public static final native boolean _gtk_im_context_filter_keypress(int context, int event); 4342public static final boolean gtk_im_context_filter_keypress(int context, int event) { 4343 lock.lock(); 4344 try { 4345 return _gtk_im_context_filter_keypress(context, event); 4346 } finally { 4347 lock.unlock(); 4348 } 4349} 4350public static final native void _gtk_im_context_focus_in(int context); 4351public static final void gtk_im_context_focus_in(int context) { 4352 lock.lock(); 4353 try { 4354 _gtk_im_context_focus_in(context); 4355 } finally { 4356 lock.unlock(); 4357 } 4358} 4359public static final native void _gtk_im_context_focus_out(int context); 4360public static final void gtk_im_context_focus_out(int context) { 4361 lock.lock(); 4362 try { 4363 _gtk_im_context_focus_out(context); 4364 } finally { 4365 lock.unlock(); 4366 } 4367} 4368public static final native void _gtk_im_context_get_preedit_string(int context, int [] str, int [] attrs, int[] cursor_pos); 4369public static final void gtk_im_context_get_preedit_string(int context, int [] str, int [] attrs, int[] cursor_pos) { 4370 lock.lock(); 4371 try { 4372 _gtk_im_context_get_preedit_string(context, str, attrs, cursor_pos); 4373 } finally { 4374 lock.unlock(); 4375 } 4376} 4377public static final native int _gtk_im_context_get_type(); 4378public static final int gtk_im_context_get_type() { 4379 lock.lock(); 4380 try { 4381 return _gtk_im_context_get_type(); 4382 } finally { 4383 lock.unlock(); 4384 } 4385} 4386public static final native void _gtk_im_context_reset(int context); 4387public static final void gtk_im_context_reset(int context) { 4388 lock.lock(); 4389 try { 4390 _gtk_im_context_reset(context); 4391 } finally { 4392 lock.unlock(); 4393 } 4394} 4395public static final native void _gtk_im_context_set_client_window(int context, int window); 4396public static final void gtk_im_context_set_client_window(int context, int window) { 4397 lock.lock(); 4398 try { 4399 _gtk_im_context_set_client_window(context, window); 4400 } finally { 4401 lock.unlock(); 4402 } 4403} 4404public static final native void _gtk_im_context_set_cursor_location(int context, GdkRectangle area); 4405public static final void gtk_im_context_set_cursor_location(int context, GdkRectangle area) { 4406 lock.lock(); 4407 try { 4408 _gtk_im_context_set_cursor_location(context, area); 4409 } finally { 4410 lock.unlock(); 4411 } 4412} 4413public static final native void _gtk_im_multicontext_append_menuitems (int context, int menushell); 4414public static final void gtk_im_multicontext_append_menuitems (int context, int menushell) { 4415 lock.lock(); 4416 try { 4417 _gtk_im_multicontext_append_menuitems(context, menushell); 4418 } finally { 4419 lock.unlock(); 4420 } 4421} 4422public static final native int _gtk_im_multicontext_new(); 4423public static final int gtk_im_multicontext_new() { 4424 lock.lock(); 4425 try { 4426 return _gtk_im_multicontext_new(); 4427 } finally { 4428 lock.unlock(); 4429 } 4430} 4431public static final native int _gtk_image_menu_item_new_with_label(byte[] label); 4432public static final int gtk_image_menu_item_new_with_label(byte[] label) { 4433 lock.lock(); 4434 try { 4435 return _gtk_image_menu_item_new_with_label(label); 4436 } finally { 4437 lock.unlock(); 4438 } 4439} 4440public static final native void _gtk_image_menu_item_set_image(int menu_item, int image); 4441public static final void gtk_image_menu_item_set_image(int menu_item, int image) { 4442 lock.lock(); 4443 try { 4444 _gtk_image_menu_item_set_image(menu_item, image); 4445 } finally { 4446 lock.unlock(); 4447 } 4448} 4449public static final native int _gtk_image_new(); 4450public static final int gtk_image_new() { 4451 lock.lock(); 4452 try { 4453 return _gtk_image_new(); 4454 } finally { 4455 lock.unlock(); 4456 } 4457} 4458public static final native int _gtk_image_new_from_pixbuf(int pixbuf); 4459public static final int gtk_image_new_from_pixbuf(int pixbuf) { 4460 lock.lock(); 4461 try { 4462 return _gtk_image_new_from_pixbuf(pixbuf); 4463 } finally { 4464 lock.unlock(); 4465 } 4466} 4467public static final native int _gtk_image_new_from_pixmap(int pixmap, int mask); 4468public static final int gtk_image_new_from_pixmap(int pixmap, int mask) { 4469 lock.lock(); 4470 try { 4471 return _gtk_image_new_from_pixmap(pixmap, mask); 4472 } finally { 4473 lock.unlock(); 4474 } 4475} 4476public static final native void _gtk_image_set_from_pixbuf(int image, int pixbuf); 4477public static final void gtk_image_set_from_pixbuf(int image, int pixbuf) { 4478 lock.lock(); 4479 try { 4480 _gtk_image_set_from_pixbuf(image, pixbuf); 4481 } finally { 4482 lock.unlock(); 4483 } 4484} 4485public static final native void _gtk_image_set_from_pixmap(int image, int pixmap, int mask); 4486public static final void gtk_image_set_from_pixmap(int image, int pixmap, int mask) { 4487 lock.lock(); 4488 try { 4489 _gtk_image_set_from_pixmap(image, pixmap, mask); 4490 } finally { 4491 lock.unlock(); 4492 } 4493} 4494public static final native boolean _gtk_init_check(int [] argc, int [] argv); 4495public static final boolean gtk_init_check(int [] argc, int [] argv) { 4496 lock.lock(); 4497 try { 4498 return _gtk_init_check(argc, argv); 4499 } finally { 4500 lock.unlock(); 4501 } 4502} 4503public static final native int _gtk_label_get_mnemonic_keyval(int label); 4504public static final int gtk_label_get_mnemonic_keyval(int label) { 4505 lock.lock(); 4506 try { 4507 return _gtk_label_get_mnemonic_keyval(label); 4508 } finally { 4509 lock.unlock(); 4510 } 4511} 4512public static final native int _gtk_label_new(byte[] label); 4513public static final int gtk_label_new(byte[] label) { 4514 lock.lock(); 4515 try { 4516 return _gtk_label_new(label); 4517 } finally { 4518 lock.unlock(); 4519 } 4520} 4521public static final native int _gtk_label_new_with_mnemonic(byte[] str); 4522public static final int gtk_label_new_with_mnemonic(byte[] str) { 4523 lock.lock(); 4524 try { 4525 return _gtk_label_new_with_mnemonic(str); 4526 } finally { 4527 lock.unlock(); 4528 } 4529} 4530public static final native void _gtk_label_set_attributes(int label, int attrs); 4531public static final void gtk_label_set_attributes(int label, int attrs) { 4532 lock.lock(); 4533 try { 4534 _gtk_label_set_attributes(label, attrs); 4535 } finally { 4536 lock.unlock(); 4537 } 4538} 4539public static final native void _gtk_label_set_justify(int label, int jtype); 4540public static final void gtk_label_set_justify(int label, int jtype) { 4541 lock.lock(); 4542 try { 4543 _gtk_label_set_justify(label, jtype); 4544 } finally { 4545 lock.unlock(); 4546 } 4547} 4548public static final native void _gtk_label_set_line_wrap(int label, boolean wrap); 4549public static final void gtk_label_set_line_wrap(int label, boolean wrap) { 4550 lock.lock(); 4551 try { 4552 _gtk_label_set_line_wrap(label, wrap); 4553 } finally { 4554 lock.unlock(); 4555 } 4556} 4557public static final native void _gtk_label_set_text(int label, int str); 4558public static final void gtk_label_set_text(int label, int str) { 4559 lock.lock(); 4560 try { 4561 _gtk_label_set_text(label, str); 4562 } finally { 4563 lock.unlock(); 4564 } 4565} 4566public static final native void _gtk_label_set_text(int label, byte[] str); 4567public static final void gtk_label_set_text(int label, byte[] str) { 4568 lock.lock(); 4569 try { 4570 _gtk_label_set_text(label, str); 4571 } finally { 4572 lock.unlock(); 4573 } 4574} 4575public static final native void _gtk_label_set_text_with_mnemonic(int label, byte[] str); 4576public static final void gtk_label_set_text_with_mnemonic(int label, byte[] str) { 4577 lock.lock(); 4578 try { 4579 _gtk_label_set_text_with_mnemonic(label, str); 4580 } finally { 4581 lock.unlock(); 4582 } 4583} 4584public static final native void _gtk_list_append_items(int list, int items); 4585public static final void gtk_list_append_items(int list, int items) { 4586 lock.lock(); 4587 try { 4588 _gtk_list_append_items(list, items); 4589 } finally { 4590 lock.unlock(); 4591 } 4592} 4593public static final native void _gtk_list_clear_items(int list, int start, int end); 4594public static final void gtk_list_clear_items(int list, int start, int end) { 4595 lock.lock(); 4596 try { 4597 _gtk_list_clear_items(list, start, end); 4598 } finally { 4599 lock.unlock(); 4600 } 4601} 4602public static final native void _gtk_list_insert_items(int list, int items, int position); 4603public static final void gtk_list_insert_items(int list, int items, int position) { 4604 lock.lock(); 4605 try { 4606 _gtk_list_insert_items(list, items, position); 4607 } finally { 4608 lock.unlock(); 4609 } 4610} 4611public static final native int _gtk_list_item_new_with_label(byte[] label); 4612public static final int gtk_list_item_new_with_label(byte[] label) { 4613 lock.lock(); 4614 try { 4615 return _gtk_list_item_new_with_label(label); 4616 } finally { 4617 lock.unlock(); 4618 } 4619} 4620public static final native void _gtk_list_remove_items(int list, int items); 4621public static final void gtk_list_remove_items(int list, int items) { 4622 lock.lock(); 4623 try { 4624 _gtk_list_remove_items(list, items); 4625 } finally { 4626 lock.unlock(); 4627 } 4628} 4629public static final native void _gtk_list_select_item(int list, int item); 4630public static final void gtk_list_select_item(int list, int item) { 4631 lock.lock(); 4632 try { 4633 _gtk_list_select_item(list, item); 4634 } finally { 4635 lock.unlock(); 4636 } 4637} 4638public static final native void _gtk_list_unselect_all(int list); 4639public static final void gtk_list_unselect_all(int list) { 4640 lock.lock(); 4641 try { 4642 _gtk_list_unselect_all(list); 4643 } finally { 4644 lock.unlock(); 4645 } 4646} 4647public static final native void _gtk_list_unselect_item(int list, int item); 4648public static final void gtk_list_unselect_item(int list, int item) { 4649 lock.lock(); 4650 try { 4651 _gtk_list_unselect_item(list, item); 4652 } finally { 4653 lock.unlock(); 4654 } 4655} 4656public static final native void _gtk_list_store_append(int list_store, int iter); 4657public static final void gtk_list_store_append(int list_store, int iter) { 4658 lock.lock(); 4659 try { 4660 _gtk_list_store_append(list_store, iter); 4661 } finally { 4662 lock.unlock(); 4663 } 4664} 4665public static final native void _gtk_list_store_clear(int store); 4666public static final void gtk_list_store_clear(int store) { 4667 lock.lock(); 4668 try { 4669 _gtk_list_store_clear(store); 4670 } finally { 4671 lock.unlock(); 4672 } 4673} 4674public static final native void _gtk_list_store_insert(int list_store, int iter, int position); 4675public static final void gtk_list_store_insert(int list_store, int iter, int position) { 4676 lock.lock(); 4677 try { 4678 _gtk_list_store_insert(list_store, iter, position); 4679 } finally { 4680 lock.unlock(); 4681 } 4682} 4683public static final native int _gtk_list_store_newv(int numColumns, int [] types); 4684public static final int gtk_list_store_newv(int numColumns, int [] types) { 4685 lock.lock(); 4686 try { 4687 return _gtk_list_store_newv(numColumns, types); 4688 } finally { 4689 lock.unlock(); 4690 } 4691} 4692public static final native void _gtk_list_store_remove(int list_store, int iter); 4693public static final void gtk_list_store_remove(int list_store, int iter) { 4694 lock.lock(); 4695 try { 4696 _gtk_list_store_remove(list_store, iter); 4697 } finally { 4698 lock.unlock(); 4699 } 4700} 4701public static final native void _gtk_list_store_set(int store, int iter, int column, byte[] value, int terminator); 4702public static final void gtk_list_store_set(int store, int iter, int column, byte[] value, int terminator) { 4703 lock.lock(); 4704 try { 4705 _gtk_list_store_set(store, iter, column, value, terminator); 4706 } finally { 4707 lock.unlock(); 4708 } 4709} 4710public static final native void _gtk_list_store_set(int store, int iter, int column, int value, int terminator); 4711public static final void gtk_list_store_set(int store, int iter, int column, int value, int terminator) { 4712 lock.lock(); 4713 try { 4714 _gtk_list_store_set(store, iter, column, value, terminator); 4715 } finally { 4716 lock.unlock(); 4717 } 4718} 4719public static final native void _gtk_list_store_set(int store, int iter, int column, long value, int terminator); 4720public static final void gtk_list_store_set(int store, int iter, int column, long value, int terminator) { 4721 lock.lock(); 4722 try { 4723 _gtk_list_store_set(store, iter, column, value, terminator); 4724 } finally { 4725 lock.unlock(); 4726 } 4727} 4728public static final native void _gtk_list_store_set(int store, int iter, int column, GdkColor value, int terminator); 4729public static final void gtk_list_store_set(int store, int iter, int column, GdkColor value, int terminator) { 4730 lock.lock(); 4731 try { 4732 _gtk_list_store_set(store, iter, column, value, terminator); 4733 } finally { 4734 lock.unlock(); 4735 } 4736} 4737public static final native void _gtk_list_store_set(int store, int iter, int column, boolean value, int terminator); 4738public static final void gtk_list_store_set(int store, int iter, int column, boolean value, int terminator) { 4739 lock.lock(); 4740 try { 4741 _gtk_list_store_set(store, iter, column, value, terminator); 4742 } finally { 4743 lock.unlock(); 4744 } 4745} 4746public static final native int _gtk_major_version(); 4747public static final int gtk_major_version() { 4748 lock.lock(); 4749 try { 4750 return _gtk_major_version(); 4751 } finally { 4752 lock.unlock(); 4753 } 4754} 4755public static final native int _gtk_minor_version(); 4756public static final int gtk_minor_version() { 4757 lock.lock(); 4758 try { 4759 return _gtk_minor_version(); 4760 } finally { 4761 lock.unlock(); 4762 } 4763} 4764public static final native int _gtk_micro_version(); 4765public static final int gtk_micro_version() { 4766 lock.lock(); 4767 try { 4768 return _gtk_micro_version(); 4769 } finally { 4770 lock.unlock(); 4771 } 4772} 4773public static final native void _gtk_main(); 4774public static final void gtk_main() { 4775 lock.lock(); 4776 try { 4777 _gtk_main(); 4778 } finally { 4779 lock.unlock(); 4780 } 4781} 4782public static final native int _gtk_main_iteration(); 4783public static final int gtk_main_iteration() { 4784 lock.lock(); 4785 try { 4786 return _gtk_main_iteration(); 4787 } finally { 4788 lock.unlock(); 4789 } 4790} 4791public static final native void _gtk_main_do_event(int event); 4792public static final void gtk_main_do_event(int event) { 4793 lock.lock(); 4794 try { 4795 _gtk_main_do_event(event); 4796 } finally { 4797 lock.unlock(); 4798 } 4799} 4800public static final native int _gtk_menu_bar_new(); 4801public static final int gtk_menu_bar_new() { 4802 lock.lock(); 4803 try { 4804 return _gtk_menu_bar_new(); 4805 } finally { 4806 lock.unlock(); 4807 } 4808} 4809public static final native void _gtk_menu_item_remove_submenu(int menu_item); 4810public static final void gtk_menu_item_remove_submenu(int menu_item) { 4811 lock.lock(); 4812 try { 4813 _gtk_menu_item_remove_submenu(menu_item); 4814 } finally { 4815 lock.unlock(); 4816 } 4817} 4818public static final native void _gtk_menu_item_set_submenu(int menu_item, int submenu); 4819public static final void gtk_menu_item_set_submenu(int menu_item, int submenu) { 4820 lock.lock(); 4821 try { 4822 _gtk_menu_item_set_submenu(menu_item, submenu); 4823 } finally { 4824 lock.unlock(); 4825 } 4826} 4827public static final native int _gtk_menu_new(); 4828public static final int gtk_menu_new() { 4829 lock.lock(); 4830 try { 4831 return _gtk_menu_new(); 4832 } finally { 4833 lock.unlock(); 4834 } 4835} 4836public static final native void _gtk_menu_popdown(int menu); 4837public static final void gtk_menu_popdown(int menu) { 4838 lock.lock(); 4839 try { 4840 _gtk_menu_popdown(menu); 4841 } finally { 4842 lock.unlock(); 4843 } 4844} 4845public static final native void _gtk_menu_popup(int menu, int parent_menu_shell, int parent_menu_item, int func, int data, int button, int activate_time); 4846public static final void gtk_menu_popup(int menu, int parent_menu_shell, int parent_menu_item, int func, int data, int button, int activate_time) { 4847 lock.lock(); 4848 try { 4849 _gtk_menu_popup(menu, parent_menu_shell, parent_menu_item, func, data, button, activate_time); 4850 } finally { 4851 lock.unlock(); 4852 } 4853} 4854public static final native void _gtk_menu_shell_deactivate(int menu_shell); 4855public static final void gtk_menu_shell_deactivate(int menu_shell) { 4856 lock.lock(); 4857 try { 4858 _gtk_menu_shell_deactivate(menu_shell); 4859 } finally { 4860 lock.unlock(); 4861 } 4862} 4863public static final native void _gtk_menu_shell_insert(int menu_shell, int child, int position); 4864public static final void gtk_menu_shell_insert(int menu_shell, int child, int position) { 4865 lock.lock(); 4866 try { 4867 _gtk_menu_shell_insert(menu_shell, child, position); 4868 } finally { 4869 lock.unlock(); 4870 } 4871} 4872public static final native void _gtk_menu_shell_select_item(int menu_shell, int menu_item); 4873public static final void gtk_menu_shell_select_item(int menu_shell, int menu_item) { 4874 lock.lock(); 4875 try { 4876 _gtk_menu_shell_select_item(menu_shell, menu_item); 4877 } finally { 4878 lock.unlock(); 4879 } 4880} 4881public static final native int _gtk_message_dialog_new(int parent, int flags, int type, int buttons, byte[] message_format); 4882public static final int gtk_message_dialog_new(int parent, int flags, int type, int buttons, byte[] message_format) { 4883 lock.lock(); 4884 try { 4885 return _gtk_message_dialog_new(parent, flags, type, buttons, message_format); 4886 } finally { 4887 lock.unlock(); 4888 } 4889} 4890public static final native void _gtk_misc_set_alignment(int misc, float xalign, float yalign); 4891public static final void gtk_misc_set_alignment(int misc, float xalign, float yalign) { 4892 lock.lock(); 4893 try { 4894 _gtk_misc_set_alignment(misc, xalign, yalign); 4895 } finally { 4896 lock.unlock(); 4897 } 4898} 4899public static final native int _gtk_notebook_get_current_page(int notebook); 4900public static final int gtk_notebook_get_current_page(int notebook) { 4901 lock.lock(); 4902 try { 4903 return _gtk_notebook_get_current_page(notebook); 4904 } finally { 4905 lock.unlock(); 4906 } 4907} 4908public static final native boolean _gtk_notebook_get_scrollable(int notebook); 4909public static final boolean gtk_notebook_get_scrollable(int notebook) { 4910 lock.lock(); 4911 try { 4912 return _gtk_notebook_get_scrollable(notebook); 4913 } finally { 4914 lock.unlock(); 4915 } 4916} 4917public static final native void _gtk_notebook_insert_page(int notebook, int child, int tab_label, int position); 4918public static final void gtk_notebook_insert_page(int notebook, int child, int tab_label, int position) { 4919 lock.lock(); 4920 try { 4921 _gtk_notebook_insert_page(notebook, child, tab_label, position); 4922 } finally { 4923 lock.unlock(); 4924 } 4925} 4926public static final native int _gtk_notebook_new(); 4927public static final int gtk_notebook_new() { 4928 lock.lock(); 4929 try { 4930 return _gtk_notebook_new(); 4931 } finally { 4932 lock.unlock(); 4933 } 4934} 4935public static final native void _gtk_notebook_remove_page(int notebook, int page_num); 4936public static final void gtk_notebook_remove_page(int notebook, int page_num) { 4937 lock.lock(); 4938 try { 4939 _gtk_notebook_remove_page(notebook, page_num); 4940 } finally { 4941 lock.unlock(); 4942 } 4943} 4944public static final native void _gtk_notebook_set_current_page(int notebook, int page_num); 4945public static final void gtk_notebook_set_current_page(int notebook, int page_num) { 4946 lock.lock(); 4947 try { 4948 _gtk_notebook_set_current_page(notebook, page_num); 4949 } finally { 4950 lock.unlock(); 4951 } 4952} 4953public static final native void _gtk_notebook_set_scrollable(int notebook, boolean scrollable); 4954public static final void gtk_notebook_set_scrollable(int notebook, boolean scrollable) { 4955 lock.lock(); 4956 try { 4957 _gtk_notebook_set_scrollable(notebook, scrollable); 4958 } finally { 4959 lock.unlock(); 4960 } 4961} 4962public static final native void _gtk_notebook_set_show_tabs(int notebook, boolean show_tabs); 4963public static final void gtk_notebook_set_show_tabs(int notebook, boolean show_tabs) { 4964 lock.lock(); 4965 try { 4966 _gtk_notebook_set_show_tabs(notebook, show_tabs); 4967 } finally { 4968 lock.unlock(); 4969 } 4970} 4971public static final native void _gtk_notebook_set_tab_pos(int notebook, int pos); 4972public static final void gtk_notebook_set_tab_pos(int notebook, int pos) { 4973 lock.lock(); 4974 try { 4975 _gtk_notebook_set_tab_pos(notebook, pos); 4976 } finally { 4977 lock.unlock(); 4978 } 4979} 4980public static final native void _gtk_object_sink(int object); 4981public static final void gtk_object_sink(int object) { 4982 lock.lock(); 4983 try { 4984 _gtk_object_sink(object); 4985 } finally { 4986 lock.unlock(); 4987 } 4988} 4989public static final native void _gtk_paint_handle(int style, int window, int state_type, int shadow_type, GdkRectangle area, int widget, byte[] detail, int x , int y, int width, int height, int orientation); 4990public static final void gtk_paint_handle(int style, int window, int state_type, int shadow_type, GdkRectangle area, int widget, byte[] detail, int x , int y, int width, int height, int orientation) { 4991 lock.lock(); 4992 try { 4993 _gtk_paint_handle(style, window, state_type, shadow_type, area, widget, detail, x, y, width, height, orientation); 4994 } finally { 4995 lock.unlock(); 4996 } 4997} 4998public static final native void _gtk_paint_focus(int style, int window, int state_type, GdkRectangle area, int widget, byte[] detail, int x , int y, int width, int height); 4999public static final void gtk_paint_focus(int style, int window, int state_type, GdkRectangle area, int widget, byte[] detail, int x , int y, int width, int height) { 5000 lock.lock(); 5001 try { 5002 _gtk_paint_focus(style, window, state_type, area, widget, detail, x, y, width, height); 5003 } finally { 5004 lock.unlock(); 5005 } 5006} 5007public static final native int _gtk_plug_get_id(int plug); 5008public static final int gtk_plug_get_id(int plug) { 5009 lock.lock(); 5010 try { 5011 return _gtk_plug_get_id(plug); 5012 } finally { 5013 lock.unlock(); 5014 } 5015} 5016public static final native int _gtk_plug_new(int socket_id); 5017public static final int gtk_plug_new(int socket_id) { 5018 lock.lock(); 5019 try { 5020 return _gtk_plug_new(socket_id); 5021 } finally { 5022 lock.unlock(); 5023 } 5024} 5025public static final native int _gtk_progress_bar_new(); 5026public static final int gtk_progress_bar_new() { 5027 lock.lock(); 5028 try { 5029 return _gtk_progress_bar_new(); 5030 } finally { 5031 lock.unlock(); 5032 } 5033} 5034public static final native void _gtk_progress_bar_pulse(int pbar); 5035public static final void gtk_progress_bar_pulse(int pbar) { 5036 lock.lock(); 5037 try { 5038 _gtk_progress_bar_pulse(pbar); 5039 } finally { 5040 lock.unlock(); 5041 } 5042} 5043public static final native void _gtk_progress_bar_set_fraction(int pbar, double fraction); 5044public static final void gtk_progress_bar_set_fraction(int pbar, double fraction) { 5045 lock.lock(); 5046 try { 5047 _gtk_progress_bar_set_fraction(pbar, fraction); 5048 } finally { 5049 lock.unlock(); 5050 } 5051} 5052public static final native void _gtk_progress_bar_set_orientation(int pbar, int orientation); 5053public static final void gtk_progress_bar_set_orientation(int pbar, int orientation) { 5054 lock.lock(); 5055 try { 5056 _gtk_progress_bar_set_orientation(pbar, orientation); 5057 } finally { 5058 lock.unlock(); 5059 } 5060} 5061public static final native int _gtk_radio_button_get_group(int radio_button); 5062public static final int gtk_radio_button_get_group(int radio_button) { 5063 lock.lock(); 5064 try { 5065 return _gtk_radio_button_get_group(radio_button); 5066 } finally { 5067 lock.unlock(); 5068 } 5069} 5070public static final native int _gtk_radio_button_new(int group); 5071public static final int gtk_radio_button_new(int group) { 5072 lock.lock(); 5073 try { 5074 return _gtk_radio_button_new(group); 5075 } finally { 5076 lock.unlock(); 5077 } 5078} 5079public static final native int _gtk_radio_menu_item_get_group(int radio_menu_item); 5080public static final int gtk_radio_menu_item_get_group(int radio_menu_item) { 5081 lock.lock(); 5082 try { 5083 return _gtk_radio_menu_item_get_group(radio_menu_item); 5084 } finally { 5085 lock.unlock(); 5086 } 5087} 5088public static final native int _gtk_radio_menu_item_new(int group); 5089public static final int gtk_radio_menu_item_new(int group) { 5090 lock.lock(); 5091 try { 5092 return _gtk_radio_menu_item_new(group); 5093 } finally { 5094 lock.unlock(); 5095 } 5096} 5097public static final native int _gtk_radio_menu_item_new_with_label(int group, byte[] label); 5098public static final int gtk_radio_menu_item_new_with_label(int group, byte[] label) { 5099 lock.lock(); 5100 try { 5101 return _gtk_radio_menu_item_new_with_label(group, label); 5102 } finally { 5103 lock.unlock(); 5104 } 5105} 5106public static final native int _gtk_range_get_adjustment(int range); 5107public static final int gtk_range_get_adjustment(int range) { 5108 lock.lock(); 5109 try { 5110 return _gtk_range_get_adjustment(range); 5111 } finally { 5112 lock.unlock(); 5113 } 5114} 5115public static final native void _gtk_range_set_increments(int range, double step, double page); 5116public static final void gtk_range_set_increments(int range, double step, double page) { 5117 lock.lock(); 5118 try { 5119 _gtk_range_set_increments(range, step, page); 5120 } finally { 5121 lock.unlock(); 5122 } 5123} 5124public static final native void _gtk_range_set_inverted(int range, boolean setting); 5125public static final void gtk_range_set_inverted(int range, boolean setting) { 5126 lock.lock(); 5127 try { 5128 _gtk_range_set_inverted(range, setting); 5129 } finally { 5130 lock.unlock(); 5131 } 5132} 5133public static final native void _gtk_range_set_range(int range, double min, double max); 5134public static final void gtk_range_set_range(int range, double min, double max) { 5135 lock.lock(); 5136 try { 5137 _gtk_range_set_range(range, min, max); 5138 } finally { 5139 lock.unlock(); 5140 } 5141} 5142public static final native void _gtk_range_set_value(int range, double value); 5143public static final void gtk_range_set_value(int range, double value) { 5144 lock.lock(); 5145 try { 5146 _gtk_range_set_value(range, value); 5147 } finally { 5148 lock.unlock(); 5149 } 5150} 5151public static final native void _gtk_rc_parse_string(byte[] rc_string); 5152public static final void gtk_rc_parse_string(byte[] rc_string) { 5153 lock.lock(); 5154 try { 5155 _gtk_rc_parse_string(rc_string); 5156 } finally { 5157 lock.unlock(); 5158 } 5159} 5160public static final native int _gtk_rc_style_get_bg_pixmap_name(int style, int index); 5161public static final int gtk_rc_style_get_bg_pixmap_name(int style, int index) { 5162 lock.lock(); 5163 try { 5164 return _gtk_rc_style_get_bg_pixmap_name(style, index); 5165 } finally { 5166 lock.unlock(); 5167 } 5168} 5169public static final native int _gtk_rc_style_get_color_flags(int style, int index); 5170public static final int gtk_rc_style_get_color_flags(int style, int index) { 5171 lock.lock(); 5172 try { 5173 return _gtk_rc_style_get_color_flags(style, index); 5174 } finally { 5175 lock.unlock(); 5176 } 5177} 5178public static final native void _gtk_rc_style_set_bg(int style, int index, GdkColor color); 5179public static final void gtk_rc_style_set_bg(int style, int index, GdkColor color) { 5180 lock.lock(); 5181 try { 5182 _gtk_rc_style_set_bg(style, index, color); 5183 } finally { 5184 lock.unlock(); 5185 } 5186} 5187public static final native void _gtk_rc_style_set_bg_pixmap_name(int style, int index, int name); 5188public static final void gtk_rc_style_set_bg_pixmap_name(int style, int index, int name) { 5189 lock.lock(); 5190 try { 5191 _gtk_rc_style_set_bg_pixmap_name(style, index, name); 5192 } finally { 5193 lock.unlock(); 5194 } 5195} 5196public static final native void _gtk_rc_style_set_color_flags(int style, int index, int flag); 5197public static final void gtk_rc_style_set_color_flags(int style, int index, int flag) { 5198 lock.lock(); 5199 try { 5200 _gtk_rc_style_set_color_flags(style, index, flag); 5201 } finally { 5202 lock.unlock(); 5203 } 5204} 5205public static final native void _gtk_scale_set_digits(int scale, int digits); 5206public static final void gtk_scale_set_digits(int scale, int digits) { 5207 lock.lock(); 5208 try { 5209 _gtk_scale_set_digits(scale, digits); 5210 } finally { 5211 lock.unlock(); 5212 } 5213} 5214public static final native void _gtk_scale_set_draw_value(int scale, boolean draw_value); 5215public static final void gtk_scale_set_draw_value(int scale, boolean draw_value) { 5216 lock.lock(); 5217 try { 5218 _gtk_scale_set_draw_value(scale, draw_value); 5219 } finally { 5220 lock.unlock(); 5221 } 5222} 5223public static final native int _gtk_scrolled_window_get_hadjustment(int scrolled_window); 5224public static final int gtk_scrolled_window_get_hadjustment(int scrolled_window) { 5225 lock.lock(); 5226 try { 5227 return _gtk_scrolled_window_get_hadjustment(scrolled_window); 5228 } finally { 5229 lock.unlock(); 5230 } 5231} 5232public static final native void _gtk_scrolled_window_get_policy(int scrolled_window, int[] hscrollbar_policy, int[] vscrollbar_policy); 5233public static final void gtk_scrolled_window_get_policy(int scrolled_window, int[] hscrollbar_policy, int[] vscrollbar_policy) { 5234 lock.lock(); 5235 try { 5236 _gtk_scrolled_window_get_policy(scrolled_window, hscrollbar_policy, vscrollbar_policy); 5237 } finally { 5238 lock.unlock(); 5239 } 5240} 5241public static final native int _gtk_scrolled_window_get_shadow_type(int scrolled_window); 5242public static final int gtk_scrolled_window_get_shadow_type(int scrolled_window) { 5243 lock.lock(); 5244 try { 5245 return _gtk_scrolled_window_get_shadow_type(scrolled_window); 5246 } finally { 5247 lock.unlock(); 5248 } 5249} 5250public static final native int _gtk_scrolled_window_get_vadjustment(int scrolled_window); 5251public static final int gtk_scrolled_window_get_vadjustment(int scrolled_window) { 5252 lock.lock(); 5253 try { 5254 return _gtk_scrolled_window_get_vadjustment(scrolled_window); 5255 } finally { 5256 lock.unlock(); 5257 } 5258} 5259public static final native int _gtk_scrolled_window_new(int hadjustment, int vadjustment); 5260public static final int gtk_scrolled_window_new(int hadjustment, int vadjustment) { 5261 lock.lock(); 5262 try { 5263 return _gtk_scrolled_window_new(hadjustment, vadjustment); 5264 } finally { 5265 lock.unlock(); 5266 } 5267} 5268public static final native void _gtk_scrolled_window_set_placement(int scrolled_window, int placement); 5269public static final void gtk_scrolled_window_set_placement(int scrolled_window, int placement) { 5270 lock.lock(); 5271 try { 5272 _gtk_scrolled_window_set_placement(scrolled_window, placement); 5273 } finally { 5274 lock.unlock(); 5275 } 5276} 5277public static final native void _gtk_scrolled_window_set_policy(int scrolled_window, int hscrollbar_policy, int vscrollbar_policy); 5278public static final void gtk_scrolled_window_set_policy(int scrolled_window, int hscrollbar_policy, int vscrollbar_policy) { 5279 lock.lock(); 5280 try { 5281 _gtk_scrolled_window_set_policy(scrolled_window, hscrollbar_policy, vscrollbar_policy); 5282 } finally { 5283 lock.unlock(); 5284 } 5285} 5286public static final native void _gtk_scrolled_window_set_shadow_type(int scrolled_window, int type); 5287public static final void gtk_scrolled_window_set_shadow_type(int scrolled_window, int type) { 5288 lock.lock(); 5289 try { 5290 _gtk_scrolled_window_set_shadow_type(scrolled_window, type); 5291 } finally { 5292 lock.unlock(); 5293 } 5294} 5295public static final native int _gtk_settings_get_default(); 5296public static final int gtk_settings_get_default() { 5297 lock.lock(); 5298 try { 5299 return _gtk_settings_get_default(); 5300 } finally { 5301 lock.unlock(); 5302 } 5303} 5304public static final native void _gtk_selection_data_free(int selection_data); 5305public static final void gtk_selection_data_free(int selection_data) { 5306 lock.lock(); 5307 try { 5308 _gtk_selection_data_free(selection_data); 5309 } finally { 5310 lock.unlock(); 5311 } 5312} 5313public static final native void _gtk_selection_data_set(int selection_data, int type, int format, int data, int length); 5314public static final void gtk_selection_data_set(int selection_data, int type, int format, int data, int length) { 5315 lock.lock(); 5316 try { 5317 _gtk_selection_data_set(selection_data, type, format, data, length); 5318 } finally { 5319 lock.unlock(); 5320 } 5321} 5322public static final native int _gtk_separator_menu_item_new(); 5323public static final int gtk_separator_menu_item_new() { 5324 lock.lock(); 5325 try { 5326 return _gtk_separator_menu_item_new(); 5327 } finally { 5328 lock.unlock(); 5329 } 5330} 5331public static final native int _gtk_set_locale(); 5332public static final int gtk_set_locale() { 5333 lock.lock(); 5334 try { 5335 return _gtk_set_locale(); 5336 } finally { 5337 lock.unlock(); 5338 } 5339} 5340public static final native int _gtk_socket_get_id(int socket); 5341public static final int gtk_socket_get_id(int socket) { 5342 lock.lock(); 5343 try { 5344 return _gtk_socket_get_id(socket); 5345 } finally { 5346 lock.unlock(); 5347 } 5348} 5349public static final native int _gtk_socket_new(); 5350public static final int gtk_socket_new() { 5351 lock.lock(); 5352 try { 5353 return _gtk_socket_new(); 5354 } finally { 5355 lock.unlock(); 5356 } 5357} 5358public static final native int _gtk_spin_button_new(int adjustment, double climb_rate, int digits); 5359public static final int gtk_spin_button_new(int adjustment, double climb_rate, int digits) { 5360 lock.lock(); 5361 try { 5362 return _gtk_spin_button_new(adjustment, climb_rate, digits); 5363 } finally { 5364 lock.unlock(); 5365 } 5366} 5367public static final native int _gtk_spin_button_get_adjustment(int spin_button); 5368public static final int gtk_spin_button_get_adjustment(int spin_button) { 5369 lock.lock(); 5370 try { 5371 return _gtk_spin_button_get_adjustment(spin_button); 5372 } finally { 5373 lock.unlock(); 5374 } 5375} 5376 5377public static final native int _gtk_spin_button_get_digits(int spin_button); 5378public static final int gtk_spin_button_get_digits(int spin_button) { 5379 lock.lock(); 5380 try { 5381 return _gtk_spin_button_get_digits(spin_button); 5382 } finally { 5383 lock.unlock(); 5384 } 5385} 5386public static final native void _gtk_spin_button_set_digits(int spin_button, int digits); 5387public static final void gtk_spin_button_set_digits(int spin_button, int digits) { 5388 lock.lock(); 5389 try { 5390 _gtk_spin_button_set_digits(spin_button, digits); 5391 } finally { 5392 lock.unlock(); 5393 } 5394} 5395public static final native void _gtk_spin_button_set_increments(int spin_button, double step, double page); 5396public static final void gtk_spin_button_set_increments(int spin_button, double step, double page) { 5397 lock.lock(); 5398 try { 5399 _gtk_spin_button_set_increments(spin_button, step, page); 5400 } finally { 5401 lock.unlock(); 5402 } 5403} 5404public static final native void _gtk_spin_button_set_range(int spin_button, double max, double min); 5405public static final void gtk_spin_button_set_range(int spin_button, double max, double min) { 5406 lock.lock(); 5407 try { 5408 _gtk_spin_button_set_range(spin_button, max, min); 5409 } finally { 5410 lock.unlock(); 5411 } 5412} 5413public static final native void _gtk_spin_button_set_value(int spin_button, double value); 5414public static final void gtk_spin_button_set_value(int spin_button, double value) { 5415 lock.lock(); 5416 try { 5417 _gtk_spin_button_set_value(spin_button, value); 5418 } finally { 5419 lock.unlock(); 5420 } 5421} 5422public static final native void _gtk_spin_button_set_wrap(int spin_button, boolean wrap); 5423public static final void gtk_spin_button_set_wrap(int spin_button, boolean wrap) { 5424 lock.lock(); 5425 try { 5426 _gtk_spin_button_set_wrap(spin_button, wrap); 5427 } finally { 5428 lock.unlock(); 5429 } 5430} 5431public static final native void _gtk_style_get_base(int style, int index, GdkColor color); 5432public static final void gtk_style_get_base(int style, int index, GdkColor color) { 5433 lock.lock(); 5434 try { 5435 _gtk_style_get_base(style, index, color); 5436 } finally { 5437 lock.unlock(); 5438 } 5439} 5440public static final native void _gtk_style_get_black(int style, GdkColor color); 5441public static final void gtk_style_get_black(int style, GdkColor color) { 5442 lock.lock(); 5443 try { 5444 _gtk_style_get_black(style, color); 5445 } finally { 5446 lock.unlock(); 5447 } 5448} 5449public static final native void _gtk_style_get_bg(int style, int index, GdkColor color); 5450public static final void gtk_style_get_bg(int style, int index, GdkColor color) { 5451 lock.lock(); 5452 try { 5453 _gtk_style_get_bg(style, index, color); 5454 } finally { 5455 lock.unlock(); 5456 } 5457} 5458public static final native void _gtk_style_get_dark(int style, int index, GdkColor color); 5459public static final void gtk_style_get_dark(int style, int index, GdkColor color) { 5460 lock.lock(); 5461 try { 5462 _gtk_style_get_dark(style, index, color); 5463 } finally { 5464 lock.unlock(); 5465 } 5466} 5467public static final native void _gtk_style_get_fg(int style, int index, GdkColor color); 5468public static final void gtk_style_get_fg(int style, int index, GdkColor color) { 5469 lock.lock(); 5470 try { 5471 _gtk_style_get_fg(style, index, color); 5472 } finally { 5473 lock.unlock(); 5474 } 5475} 5476public static final native int _gtk_style_get_font_desc(int style); 5477public static final int gtk_style_get_font_desc(int style) { 5478 lock.lock(); 5479 try { 5480 return _gtk_style_get_font_desc(style); 5481 } finally { 5482 lock.unlock(); 5483 } 5484} 5485public static final native void _gtk_style_get_light(int style, int index, GdkColor color); 5486public static final void gtk_style_get_light(int style, int index, GdkColor color) { 5487 lock.lock(); 5488 try { 5489 _gtk_style_get_light(style, index, color); 5490 } finally { 5491 lock.unlock(); 5492 } 5493} 5494public static final native void _gtk_style_get_text(int style, int index, GdkColor color); 5495public static final void gtk_style_get_text(int style, int index, GdkColor color) { 5496 lock.lock(); 5497 try { 5498 _gtk_style_get_text(style, index, color); 5499 } finally { 5500 lock.unlock(); 5501 } 5502} 5503public static final native int _gtk_style_get_xthickness(int style); 5504public static final int gtk_style_get_xthickness(int style) { 5505 lock.lock(); 5506 try { 5507 return _gtk_style_get_xthickness(style); 5508 } finally { 5509 lock.unlock(); 5510 } 5511} 5512public static final native int _gtk_style_get_ythickness(int style); 5513public static final int gtk_style_get_ythickness(int style) { 5514 lock.lock(); 5515 try { 5516 return _gtk_style_get_ythickness(style); 5517 } finally { 5518 lock.unlock(); 5519 } 5520} 5521public static final native int _gtk_target_list_new(int targets, int ntargets); 5522public static final int gtk_target_list_new(int targets, int ntargets) { 5523 lock.lock(); 5524 try { 5525 return _gtk_target_list_new(targets, ntargets); 5526 } finally { 5527 lock.unlock(); 5528 } 5529} 5530public static final native void _gtk_target_list_unref(int list); 5531public static final void gtk_target_list_unref(int list) { 5532 lock.lock(); 5533 try { 5534 _gtk_target_list_unref(list); 5535 } finally { 5536 lock.unlock(); 5537 } 5538} 5539public static final native void _gtk_text_buffer_copy_clipboard(int buffer, int clipboard); 5540public static final void gtk_text_buffer_copy_clipboard(int buffer, int clipboard) { 5541 lock.lock(); 5542 try { 5543 _gtk_text_buffer_copy_clipboard(buffer, clipboard); 5544 } finally { 5545 lock.unlock(); 5546 } 5547} 5548public static final native void _gtk_text_buffer_cut_clipboard(int buffer, int clipboard, boolean default_editable); 5549public static final void gtk_text_buffer_cut_clipboard(int buffer, int clipboard, boolean default_editable) { 5550 lock.lock(); 5551 try { 5552 _gtk_text_buffer_cut_clipboard(buffer, clipboard, default_editable); 5553 } finally { 5554 lock.unlock(); 5555 } 5556} 5557public static final native void _gtk_text_buffer_delete(int buffer, byte[] start, byte[] end); 5558public static final void gtk_text_buffer_delete(int buffer, byte[] start, byte[] end) { 5559 lock.lock(); 5560 try { 5561 _gtk_text_buffer_delete(buffer, start, end); 5562 } finally { 5563 lock.unlock(); 5564 } 5565} 5566public static final native void _gtk_text_buffer_get_bounds(int buffer, byte[] start, byte[] end); 5567public static final void gtk_text_buffer_get_bounds(int buffer, byte[] start, byte[] end) { 5568 lock.lock(); 5569 try { 5570 _gtk_text_buffer_get_bounds(buffer, start, end); 5571 } finally { 5572 lock.unlock(); 5573 } 5574} 5575public static final native int _gtk_text_buffer_get_char_count(int buffer); 5576public static final int gtk_text_buffer_get_char_count(int buffer) { 5577 lock.lock(); 5578 try { 5579 return _gtk_text_buffer_get_char_count(buffer); 5580 } finally { 5581 lock.unlock(); 5582 } 5583} 5584public static final native void _gtk_text_buffer_get_end_iter(int buffer, byte[] iter); 5585public static final void gtk_text_buffer_get_end_iter(int buffer, byte[] iter) { 5586 lock.lock(); 5587 try { 5588 _gtk_text_buffer_get_end_iter(buffer, iter); 5589 } finally { 5590 lock.unlock(); 5591 } 5592} 5593public static final native int _gtk_text_buffer_get_insert(int buffer); 5594public static final int gtk_text_buffer_get_insert(int buffer) { 5595 lock.lock(); 5596 try { 5597 return _gtk_text_buffer_get_insert(buffer); 5598 } finally { 5599 lock.unlock(); 5600 } 5601} 5602public static final native void _gtk_text_buffer_get_iter_at_line(int buffer, byte[] iter, int line_number); 5603public static final void gtk_text_buffer_get_iter_at_line(int buffer, byte[] iter, int line_number) { 5604 lock.lock(); 5605 try { 5606 _gtk_text_buffer_get_iter_at_line(buffer, iter, line_number); 5607 } finally { 5608 lock.unlock(); 5609 } 5610} 5611public static final native void _gtk_text_buffer_get_iter_at_mark(int buffer, byte[] iter, int mark); 5612public static final void gtk_text_buffer_get_iter_at_mark(int buffer, byte[] iter, int mark) { 5613 lock.lock(); 5614 try { 5615 _gtk_text_buffer_get_iter_at_mark(buffer, iter, mark); 5616 } finally { 5617 lock.unlock(); 5618 } 5619} 5620public static final native void _gtk_text_buffer_get_iter_at_offset(int buffer, byte[] iter, int char_offset); 5621public static final void gtk_text_buffer_get_iter_at_offset(int buffer, byte[] iter, int char_offset) { 5622 lock.lock(); 5623 try { 5624 _gtk_text_buffer_get_iter_at_offset(buffer, iter, char_offset); 5625 } finally { 5626 lock.unlock(); 5627 } 5628} 5629public static final native int _gtk_text_buffer_get_line_count(int buffer); 5630public static final int gtk_text_buffer_get_line_count(int buffer) { 5631 lock.lock(); 5632 try { 5633 return _gtk_text_buffer_get_line_count(buffer); 5634 } finally { 5635 lock.unlock(); 5636 } 5637} 5638public static final native int _gtk_text_buffer_get_selection_bound(int buffer); 5639public static final int gtk_text_buffer_get_selection_bound(int buffer) { 5640 lock.lock(); 5641 try { 5642 return _gtk_text_buffer_get_selection_bound(buffer); 5643 } finally { 5644 lock.unlock(); 5645 } 5646} 5647public static final native boolean _gtk_text_buffer_get_selection_bounds(int buffer, byte[] start, byte[] end); 5648public static final boolean gtk_text_buffer_get_selection_bounds(int buffer, byte[] start, byte[] end) { 5649 lock.lock(); 5650 try { 5651 return _gtk_text_buffer_get_selection_bounds(buffer, start, end); 5652 } finally { 5653 lock.unlock(); 5654 } 5655} 5656public static final native int _gtk_text_buffer_get_text(int buffer, byte[] start, byte[] end, boolean include_hidden_chars); 5657public static final int gtk_text_buffer_get_text(int buffer, byte[] start, byte[] end, boolean include_hidden_chars) { 5658 lock.lock(); 5659 try { 5660 return _gtk_text_buffer_get_text(buffer, start, end, include_hidden_chars); 5661 } finally { 5662 lock.unlock(); 5663 } 5664} 5665public static final native void _gtk_text_buffer_insert(int buffer, byte[] iter, byte[] text, int len); 5666public static final void gtk_text_buffer_insert(int buffer, byte[] iter, byte[] text, int len) { 5667 lock.lock(); 5668 try { 5669 _gtk_text_buffer_insert(buffer, iter, text, len); 5670 } finally { 5671 lock.unlock(); 5672 } 5673} 5674public static final native void _gtk_text_buffer_insert(int buffer, int iter, byte[] text, int len); 5675public static final void gtk_text_buffer_insert(int buffer, int iter, byte[] text, int len) { 5676 lock.lock(); 5677 try { 5678 _gtk_text_buffer_insert(buffer, iter, text, len); 5679 } finally { 5680 lock.unlock(); 5681 } 5682} 5683public static final native void _gtk_text_buffer_move_mark(int buffer, int mark, byte[] where); 5684public static final void gtk_text_buffer_move_mark(int buffer, int mark, byte[] where) { 5685 lock.lock(); 5686 try { 5687 _gtk_text_buffer_move_mark(buffer, mark, where); 5688 } finally { 5689 lock.unlock(); 5690 } 5691} 5692public static final native void _gtk_text_buffer_paste_clipboard(int buffer, int clipboard, byte[] override_location, boolean default_editable); 5693public static final void gtk_text_buffer_paste_clipboard(int buffer, int clipboard, byte[] override_location, boolean default_editable) { 5694 lock.lock(); 5695 try { 5696 _gtk_text_buffer_paste_clipboard(buffer, clipboard, override_location, default_editable); 5697 } finally { 5698 lock.unlock(); 5699 } 5700} 5701public static final native void _gtk_text_buffer_place_cursor(int buffer, byte[] where); 5702public static final void gtk_text_buffer_place_cursor(int buffer, byte[] where) { 5703 lock.lock(); 5704 try { 5705 _gtk_text_buffer_place_cursor(buffer, where); 5706 } finally { 5707 lock.unlock(); 5708 } 5709} 5710public static final native void _gtk_text_buffer_set_text(int buffer, byte[] text, int len); 5711public static final void gtk_text_buffer_set_text(int buffer, byte[] text, int len) { 5712 lock.lock(); 5713 try { 5714 _gtk_text_buffer_set_text(buffer, text, len); 5715 } finally { 5716 lock.unlock(); 5717 } 5718} 5719public static final native int _gtk_text_iter_get_line(byte[] iter); 5720public static final int gtk_text_iter_get_line(byte[] iter) { 5721 lock.lock(); 5722 try { 5723 return _gtk_text_iter_get_line(iter); 5724 } finally { 5725 lock.unlock(); 5726 } 5727} 5728public static final native int _gtk_text_iter_get_offset(byte[] iter); 5729public static final int gtk_text_iter_get_offset(byte[] iter) { 5730 lock.lock(); 5731 try { 5732 return _gtk_text_iter_get_offset(iter); 5733 } finally { 5734 lock.unlock(); 5735 } 5736} 5737public static final native void _gtk_text_view_buffer_to_window_coords(int text_view, int win, int buffer_x, int buffer_y, int[] window_x, int[] window_y); 5738public static final void gtk_text_view_buffer_to_window_coords(int text_view, int win, int buffer_x, int buffer_y, int[] window_x, int[] window_y) { 5739 lock.lock(); 5740 try { 5741 _gtk_text_view_buffer_to_window_coords(text_view, win, buffer_x, buffer_y, window_x, window_y); 5742 } finally { 5743 lock.unlock(); 5744 } 5745} 5746public static final native int _gtk_text_view_get_buffer(int text_view); 5747public static final int gtk_text_view_get_buffer(int text_view) { 5748 lock.lock(); 5749 try { 5750 return _gtk_text_view_get_buffer(text_view); 5751 } finally { 5752 lock.unlock(); 5753 } 5754} 5755public static final native boolean _gtk_text_view_get_editable(int text_view); 5756public static final boolean gtk_text_view_get_editable(int text_view) { 5757 lock.lock(); 5758 try { 5759 return _gtk_text_view_get_editable(text_view); 5760 } finally { 5761 lock.unlock(); 5762 } 5763} 5764public static final native void _gtk_text_view_get_iter_at_location(int text_view, byte[] iter, int x, int y); 5765public static final void gtk_text_view_get_iter_at_location(int text_view, byte[] iter, int x, int y) { 5766 lock.lock(); 5767 try { 5768 _gtk_text_view_get_iter_at_location(text_view, iter, x, y); 5769 } finally { 5770 lock.unlock(); 5771 } 5772} 5773public static final native void _gtk_text_view_get_iter_location(int text_view, byte[] iter, GdkRectangle location); 5774public static final void gtk_text_view_get_iter_location(int text_view, byte[] iter, GdkRectangle location) { 5775 lock.lock(); 5776 try { 5777 _gtk_text_view_get_iter_location(text_view, iter, location); 5778 } finally { 5779 lock.unlock(); 5780 } 5781} 5782public static final native void _gtk_text_view_get_line_at_y(int text_view, byte[] target_iter, int y, int[] line_top); 5783public static final void gtk_text_view_get_line_at_y(int text_view, byte[] target_iter, int y, int[] line_top) { 5784 lock.lock(); 5785 try { 5786 _gtk_text_view_get_line_at_y(text_view, target_iter, y, line_top); 5787 } finally { 5788 lock.unlock(); 5789 } 5790} 5791public static final native void _gtk_text_view_get_visible_rect(int text_view, GdkRectangle visible_rect); 5792public static final void gtk_text_view_get_visible_rect(int text_view, GdkRectangle visible_rect) { 5793 lock.lock(); 5794 try { 5795 _gtk_text_view_get_visible_rect(text_view, visible_rect); 5796 } finally { 5797 lock.unlock(); 5798 } 5799} 5800public static final native int _gtk_text_view_get_window(int text_view, int win); 5801public static final int gtk_text_view_get_window(int text_view, int win) { 5802 lock.lock(); 5803 try { 5804 return _gtk_text_view_get_window(text_view, win); 5805 } finally { 5806 lock.unlock(); 5807 } 5808} 5809public static final native int _gtk_text_view_new(); 5810public static final int gtk_text_view_new() { 5811 lock.lock(); 5812 try { 5813 return _gtk_text_view_new(); 5814 } finally { 5815 lock.unlock(); 5816 } 5817} 5818public static final native void _gtk_text_view_scroll_mark_onscreen(int text_view, int mark); 5819public static final void gtk_text_view_scroll_mark_onscreen(int text_view, int mark) { 5820 lock.lock(); 5821 try { 5822 _gtk_text_view_scroll_mark_onscreen(text_view, mark); 5823 } finally { 5824 lock.unlock(); 5825 } 5826} 5827public static final native boolean _gtk_text_view_scroll_to_iter(int text_view, byte[] iter, double within_margin, boolean use_align, double xalign, double yalign); 5828public static final boolean gtk_text_view_scroll_to_iter(int text_view, byte[] iter, double within_margin, boolean use_align, double xalign, double yalign) { 5829 lock.lock(); 5830 try { 5831 return _gtk_text_view_scroll_to_iter(text_view, iter, within_margin, use_align, xalign, yalign); 5832 } finally { 5833 lock.unlock(); 5834 } 5835} 5836public static final native void _gtk_text_view_set_editable(int text_view, boolean setting); 5837public static final void gtk_text_view_set_editable(int text_view, boolean setting) { 5838 lock.lock(); 5839 try { 5840 _gtk_text_view_set_editable(text_view, setting); 5841 } finally { 5842 lock.unlock(); 5843 } 5844} 5845public static final native void _gtk_text_view_set_justification(int text_view, int justification); 5846public static final void gtk_text_view_set_justification(int text_view, int justification) { 5847 lock.lock(); 5848 try { 5849 _gtk_text_view_set_justification(text_view, justification); 5850 } finally { 5851 lock.unlock(); 5852 } 5853} 5854public static final native void _gtk_text_view_set_tabs(int text_view, int tabs); 5855public static final void gtk_text_view_set_tabs(int text_view, int tabs) { 5856 lock.lock(); 5857 try { 5858 _gtk_text_view_set_tabs(text_view, tabs); 5859 } finally { 5860 lock.unlock(); 5861 } 5862} 5863public static final native void _gtk_text_view_set_wrap_mode(int text_view, int wrap_mode); 5864public static final void gtk_text_view_set_wrap_mode(int text_view, int wrap_mode) { 5865 lock.lock(); 5866 try { 5867 _gtk_text_view_set_wrap_mode(text_view, wrap_mode); 5868 } finally { 5869 lock.unlock(); 5870 } 5871} 5872public static final native void _gtk_text_view_window_to_buffer_coords(int text_view, int win, int window_x, int window_y, int[] buffer_x, int[] buffer_y); 5873public static final void gtk_text_view_window_to_buffer_coords(int text_view, int win, int window_x, int window_y, int[] buffer_x, int[] buffer_y) { 5874 lock.lock(); 5875 try { 5876 _gtk_text_view_window_to_buffer_coords(text_view, win, window_x, window_y, buffer_x, buffer_y); 5877 } finally { 5878 lock.unlock(); 5879 } 5880} 5881public static final native int _gtk_timeout_add(int interval, int function, int data); 5882public static final int gtk_timeout_add(int interval, int function, int data) { 5883 lock.lock(); 5884 try { 5885 return _gtk_timeout_add(interval, function, data); 5886 } finally { 5887 lock.unlock(); 5888 } 5889} 5890public static final native void _gtk_timeout_remove(int timeout_handler_id); 5891public static final void gtk_timeout_remove(int timeout_handler_id) { 5892 lock.lock(); 5893 try { 5894 _gtk_timeout_remove(timeout_handler_id); 5895 } finally { 5896 lock.unlock(); 5897 } 5898} 5899public static final native boolean _gtk_toggle_button_get_active(int toggle_button); 5900public static final boolean gtk_toggle_button_get_active(int toggle_button) { 5901 lock.lock(); 5902 try { 5903 return _gtk_toggle_button_get_active(toggle_button); 5904 } finally { 5905 lock.unlock(); 5906 } 5907} 5908public static final native int _gtk_toggle_button_new(); 5909public static final int gtk_toggle_button_new() { 5910 lock.lock(); 5911 try { 5912 return _gtk_toggle_button_new(); 5913 } finally { 5914 lock.unlock(); 5915 } 5916} 5917public static final native void _gtk_toggle_button_set_active(int toggle_button, boolean is_active); 5918public static final void gtk_toggle_button_set_active(int toggle_button, boolean is_active) { 5919 lock.lock(); 5920 try { 5921 _gtk_toggle_button_set_active(toggle_button, is_active); 5922 } finally { 5923 lock.unlock(); 5924 } 5925} 5926public static final native void _gtk_toggle_button_set_mode(int toggle_button, boolean draw_indicator); 5927public static final void gtk_toggle_button_set_mode(int toggle_button, boolean draw_indicator) { 5928 lock.lock(); 5929 try { 5930 _gtk_toggle_button_set_mode(toggle_button, draw_indicator); 5931 } finally { 5932 lock.unlock(); 5933 } 5934} 5935public static final native void _gtk_toolbar_insert_widget(int toolbar, int widget, byte[] tooltip_text, byte[] tooltip_private_text, int position); 5936public static final void gtk_toolbar_insert_widget(int toolbar, int widget, byte[] tooltip_text, byte[] tooltip_private_text, int position) { 5937 lock.lock(); 5938 try { 5939 _gtk_toolbar_insert_widget(toolbar, widget, tooltip_text, tooltip_private_text, position); 5940 } finally { 5941 lock.unlock(); 5942 } 5943} 5944public static final native int _gtk_toolbar_new(); 5945public static final int gtk_toolbar_new() { 5946 lock.lock(); 5947 try { 5948 return _gtk_toolbar_new(); 5949 } finally { 5950 lock.unlock(); 5951 } 5952} 5953public static final native void _gtk_toolbar_set_orientation(int toolbar, int orientation); 5954public static final void gtk_toolbar_set_orientation(int toolbar, int orientation) { 5955 lock.lock(); 5956 try { 5957 _gtk_toolbar_set_orientation(toolbar, orientation); 5958 } finally { 5959 lock.unlock(); 5960 } 5961} 5962public static final native void _gtk_tooltips_disable(int tooltips); 5963public static final void gtk_tooltips_disable(int tooltips) { 5964 lock.lock(); 5965 try { 5966 _gtk_tooltips_disable(tooltips); 5967 } finally { 5968 lock.unlock(); 5969 } 5970} 5971public static final native void _gtk_tooltips_enable(int tooltips); 5972public static final void gtk_tooltips_enable(int tooltips) { 5973 lock.lock(); 5974 try { 5975 _gtk_tooltips_enable(tooltips); 5976 } finally { 5977 lock.unlock(); 5978 } 5979} 5980public static final native int _gtk_tooltips_new(); 5981public static final int gtk_tooltips_new() { 5982 lock.lock(); 5983 try { 5984 return _gtk_tooltips_new(); 5985 } finally { 5986 lock.unlock(); 5987 } 5988} 5989public static final native void _gtk_tooltips_set_tip(int tooltips, int widget, byte[] tip_text, byte[] tip_private); 5990public static final void gtk_tooltips_set_tip(int tooltips, int widget, byte[] tip_text, byte[] tip_private) { 5991 lock.lock(); 5992 try { 5993 _gtk_tooltips_set_tip(tooltips, widget, tip_text, tip_private); 5994 } finally { 5995 lock.unlock(); 5996 } 5997} 5998public static final native void _gtk_tree_model_get(int tree_model, int iter, int column, int[] value, int terminator); 5999public static final void gtk_tree_model_get(int tree_model, int iter, int column, int[] value, int terminator) { 6000 lock.lock(); 6001 try { 6002 _gtk_tree_model_get(tree_model, iter, column, value, terminator); 6003 } finally { 6004 lock.unlock(); 6005 } 6006} 6007public static final native void _gtk_tree_model_get(int tree_model, int iter, int column, long[] value, int terminator); 6008public static final void gtk_tree_model_get(int tree_model, int iter, int column, long[] value, int terminator) { 6009 lock.lock(); 6010 try { 6011 _gtk_tree_model_get(tree_model, iter, column, value, terminator); 6012 } finally { 6013 lock.unlock(); 6014 } 6015} 6016public static final native boolean _gtk_tree_model_get_iter(int tree_model, int iter, int path); 6017public static final boolean gtk_tree_model_get_iter(int tree_model, int iter, int path) { 6018 lock.lock(); 6019 try { 6020 return _gtk_tree_model_get_iter(tree_model, iter, path); 6021 } finally { 6022 lock.unlock(); 6023 } 6024} 6025public static final native boolean _gtk_tree_model_get_iter_first(int tree_model, int iter); 6026public static final boolean gtk_tree_model_get_iter_first(int tree_model, int iter) { 6027 lock.lock(); 6028 try { 6029 return _gtk_tree_model_get_iter_first(tree_model, iter); 6030 } finally { 6031 lock.unlock(); 6032 } 6033} 6034public static final native int _gtk_tree_model_get_n_columns(int tree_model); 6035public static final int gtk_tree_model_get_n_columns(int tree_model) { 6036 lock.lock(); 6037 try { 6038 return _gtk_tree_model_get_n_columns(tree_model); 6039 } finally { 6040 lock.unlock(); 6041 } 6042} 6043public static final native int _gtk_tree_model_get_path(int tree_model, int iter); 6044public static final int gtk_tree_model_get_path(int tree_model, int iter) { 6045 lock.lock(); 6046 try { 6047 return _gtk_tree_model_get_path(tree_model, iter); 6048 } finally { 6049 lock.unlock(); 6050 } 6051} 6052public static final native int _gtk_tree_model_get_type(); 6053public static final int gtk_tree_model_get_type() { 6054 lock.lock(); 6055 try { 6056 return _gtk_tree_model_get_type(); 6057 } finally { 6058 lock.unlock(); 6059 } 6060} 6061public static final native boolean _gtk_tree_model_iter_children(int model, int iter, int parent); 6062public static final boolean gtk_tree_model_iter_children(int model, int iter, int parent) { 6063 lock.lock(); 6064 try { 6065 return _gtk_tree_model_iter_children(model, iter, parent); 6066 } finally { 6067 lock.unlock(); 6068 } 6069} 6070public static final native int _gtk_tree_model_iter_n_children(int model, int iter); 6071public static final int gtk_tree_model_iter_n_children(int model, int iter) { 6072 lock.lock(); 6073 try { 6074 return _gtk_tree_model_iter_n_children(model, iter); 6075 } finally { 6076 lock.unlock(); 6077 } 6078} 6079public static final native boolean _gtk_tree_model_iter_next(int model, int iter); 6080public static final boolean gtk_tree_model_iter_next(int model, int iter) { 6081 lock.lock(); 6082 try { 6083 return _gtk_tree_model_iter_next(model, iter); 6084 } finally { 6085 lock.unlock(); 6086 } 6087} 6088public static final native boolean _gtk_tree_model_iter_nth_child(int tree_model, int iter, int parent, int n); 6089public static final boolean gtk_tree_model_iter_nth_child(int tree_model, int iter, int parent, int n) { 6090 lock.lock(); 6091 try { 6092 return _gtk_tree_model_iter_nth_child(tree_model, iter, parent, n); 6093 } finally { 6094 lock.unlock(); 6095 } 6096} 6097public static final native void _gtk_tree_path_append_index(int path, int index); 6098public static final void gtk_tree_path_append_index(int path, int index) { 6099 lock.lock(); 6100 try { 6101 _gtk_tree_path_append_index(path, index); 6102 } finally { 6103 lock.unlock(); 6104 } 6105} 6106public static final native int _gtk_tree_path_compare(int a, int b); 6107public static final int gtk_tree_path_compare(int a, int b) { 6108 lock.lock(); 6109 try { 6110 return _gtk_tree_path_compare(a, b); 6111 } finally { 6112 lock.unlock(); 6113 } 6114} 6115public static final native void _gtk_tree_path_down(int path); 6116public static final void gtk_tree_path_down(int path) { 6117 lock.lock(); 6118 try { 6119 _gtk_tree_path_down(path); 6120 } finally { 6121 lock.unlock(); 6122 } 6123} 6124public static final native void _gtk_tree_path_free(int path); 6125public static final void gtk_tree_path_free(int path) { 6126 lock.lock(); 6127 try { 6128 _gtk_tree_path_free(path); 6129 } finally { 6130 lock.unlock(); 6131 } 6132} 6133public static final native int _gtk_tree_path_get_depth(int path); 6134public static final int gtk_tree_path_get_depth(int path) { 6135 lock.lock(); 6136 try { 6137 return _gtk_tree_path_get_depth(path); 6138 } finally { 6139 lock.unlock(); 6140 } 6141} 6142public static final native int _gtk_tree_path_get_indices(int path); 6143public static final int gtk_tree_path_get_indices(int path) { 6144 lock.lock(); 6145 try { 6146 return _gtk_tree_path_get_indices(path); 6147 } finally { 6148 lock.unlock(); 6149 } 6150} 6151public static final native int _gtk_tree_path_new(); 6152public static final int gtk_tree_path_new() { 6153 lock.lock(); 6154 try { 6155 return _gtk_tree_path_new(); 6156 } finally { 6157 lock.unlock(); 6158 } 6159} 6160public static final native int _gtk_tree_path_new_first(); 6161public static final int gtk_tree_path_new_first() { 6162 lock.lock(); 6163 try { 6164 return _gtk_tree_path_new_first(); 6165 } finally { 6166 lock.unlock(); 6167 } 6168} 6169public static final native int _gtk_tree_path_new_from_string(byte[] path); 6170public static final int gtk_tree_path_new_from_string(byte[] path) { 6171 lock.lock(); 6172 try { 6173 return _gtk_tree_path_new_from_string(path); 6174 } finally { 6175 lock.unlock(); 6176 } 6177} 6178public static final native int _gtk_tree_path_new_from_string(int path); 6179public static final int gtk_tree_path_new_from_string(int path) { 6180 lock.lock(); 6181 try { 6182 return _gtk_tree_path_new_from_string(path); 6183 } finally { 6184 lock.unlock(); 6185 } 6186} 6187public static final native void _gtk_tree_path_next(int path); 6188public static final void gtk_tree_path_next(int path) { 6189 lock.lock(); 6190 try { 6191 _gtk_tree_path_next(path); 6192 } finally { 6193 lock.unlock(); 6194 } 6195} 6196public static final native boolean _gtk_tree_path_prev(int path); 6197public static final boolean gtk_tree_path_prev(int path) { 6198 lock.lock(); 6199 try { 6200 return _gtk_tree_path_prev(path); 6201 } finally { 6202 lock.unlock(); 6203 } 6204} 6205public static final native boolean _gtk_tree_path_up(int path); 6206public static final boolean gtk_tree_path_up(int path) { 6207 lock.lock(); 6208 try { 6209 return _gtk_tree_path_up(path); 6210 } finally { 6211 lock.unlock(); 6212 } 6213} 6214public static final native int _gtk_tree_selection_count_selected_rows(int selection); 6215public static final int gtk_tree_selection_count_selected_rows(int selection) { 6216 lock.lock(); 6217 try { 6218 return _gtk_tree_selection_count_selected_rows(selection); 6219 } finally { 6220 lock.unlock(); 6221 } 6222} 6223public static final native boolean _gtk_tree_selection_get_selected(int selection, int [] model, int iter); 6224public static final boolean gtk_tree_selection_get_selected(int selection, int [] model, int iter) { 6225 lock.lock(); 6226 try { 6227 return _gtk_tree_selection_get_selected(selection, model, iter); 6228 } finally { 6229 lock.unlock(); 6230 } 6231} 6232public static final native int _gtk_tree_selection_get_selected_rows(int selection, int [] model); 6233public static final int gtk_tree_selection_get_selected_rows(int selection, int [] model) { 6234 lock.lock(); 6235 try { 6236 return _gtk_tree_selection_get_selected_rows(selection, model); 6237 } finally { 6238 lock.unlock(); 6239 } 6240} 6241public static final native boolean _gtk_tree_selection_path_is_selected(int selection, int path); 6242public static final boolean gtk_tree_selection_path_is_selected(int selection, int path) { 6243 lock.lock(); 6244 try { 6245 return _gtk_tree_selection_path_is_selected(selection, path); 6246 } finally { 6247 lock.unlock(); 6248 } 6249} 6250public static final native void _gtk_tree_selection_select_all(int selection); 6251public static final void gtk_tree_selection_select_all(int selection) { 6252 lock.lock(); 6253 try { 6254 _gtk_tree_selection_select_all(selection); 6255 } finally { 6256 lock.unlock(); 6257 } 6258} 6259public static final native void _gtk_tree_selection_select_iter(int selection, int iter); 6260public static final void gtk_tree_selection_select_iter(int selection, int iter) { 6261 lock.lock(); 6262 try { 6263 _gtk_tree_selection_select_iter(selection, iter); 6264 } finally { 6265 lock.unlock(); 6266 } 6267} 6268public static final native void _gtk_tree_selection_selected_foreach(int selection, int func, int data); 6269public static final void gtk_tree_selection_selected_foreach(int selection, int func, int data) { 6270 lock.lock(); 6271 try { 6272 _gtk_tree_selection_selected_foreach(selection, func, data); 6273 } finally { 6274 lock.unlock(); 6275 } 6276} 6277public static final native void _gtk_tree_selection_set_mode(int selection, int mode); 6278public static final void gtk_tree_selection_set_mode(int selection, int mode) { 6279 lock.lock(); 6280 try { 6281 _gtk_tree_selection_set_mode(selection, mode); 6282 } finally { 6283 lock.unlock(); 6284 } 6285} 6286public static final native void _gtk_tree_selection_unselect_all(int selection); 6287public static final void gtk_tree_selection_unselect_all(int selection) { 6288 lock.lock(); 6289 try { 6290 _gtk_tree_selection_unselect_all(selection); 6291 } finally { 6292 lock.unlock(); 6293 } 6294} 6295public static final native void _gtk_tree_selection_unselect_iter(int selection, int iter); 6296public static final void gtk_tree_selection_unselect_iter(int selection, int iter) { 6297 lock.lock(); 6298 try { 6299 _gtk_tree_selection_unselect_iter(selection, iter); 6300 } finally { 6301 lock.unlock(); 6302 } 6303} 6304public static final native void _gtk_tree_store_append(int store, int iter, int parent); 6305public static final void gtk_tree_store_append(int store, int iter, int parent) { 6306 lock.lock(); 6307 try { 6308 _gtk_tree_store_append(store, iter, parent); 6309 } finally { 6310 lock.unlock(); 6311 } 6312} 6313public static final native void _gtk_tree_store_clear(int store); 6314public static final void gtk_tree_store_clear(int store) { 6315 lock.lock(); 6316 try { 6317 _gtk_tree_store_clear(store); 6318 } finally { 6319 lock.unlock(); 6320 } 6321} 6322public static final native void _gtk_tree_store_insert(int store, int iter, int parent, int position); 6323public static final void gtk_tree_store_insert(int store, int iter, int parent, int position) { 6324 lock.lock(); 6325 try { 6326 _gtk_tree_store_insert(store, iter, parent, position); 6327 } finally { 6328 lock.unlock(); 6329 } 6330} 6331public static final native int _gtk_tree_store_newv(int numColumns, int [] types); 6332public static final int gtk_tree_store_newv(int numColumns, int [] types) { 6333 lock.lock(); 6334 try { 6335 return _gtk_tree_store_newv(numColumns, types); 6336 } finally { 6337 lock.unlock(); 6338 } 6339} 6340public static final native void _gtk_tree_store_remove(int store, int iter); 6341public static final void gtk_tree_store_remove(int store, int iter) { 6342 lock.lock(); 6343 try { 6344 _gtk_tree_store_remove(store, iter); 6345 } finally { 6346 lock.unlock(); 6347 } 6348} 6349public static final native void _gtk_tree_store_set(int store, int iter, int column, byte[] value, int terminator); 6350public static final void gtk_tree_store_set(int store, int iter, int column, byte[] value, int terminator) { 6351 lock.lock(); 6352 try { 6353 _gtk_tree_store_set(store, iter, column, value, terminator); 6354 } finally { 6355 lock.unlock(); 6356 } 6357} 6358public static final native void _gtk_tree_store_set(int store, int iter, int column, int value, int terminator); 6359public static final void gtk_tree_store_set(int store, int iter, int column, int value, int terminator) { 6360 lock.lock(); 6361 try { 6362 _gtk_tree_store_set(store, iter, column, value, terminator); 6363 } finally { 6364 lock.unlock(); 6365 } 6366} 6367public static final native void _gtk_tree_store_set(int store, int iter, int column, long value, int terminator); 6368public static final void gtk_tree_store_set(int store, int iter, int column, long value, int terminator) { 6369 lock.lock(); 6370 try { 6371 _gtk_tree_store_set(store, iter, column, value, terminator); 6372 } finally { 6373 lock.unlock(); 6374 } 6375} 6376public static final native void _gtk_tree_store_set(int store, int iter, int column, GdkColor value, int terminator); 6377public static final void gtk_tree_store_set(int store, int iter, int column, GdkColor value, int terminator) { 6378 lock.lock(); 6379 try { 6380 _gtk_tree_store_set(store, iter, column, value, terminator); 6381 } finally { 6382 lock.unlock(); 6383 } 6384} 6385public static final native void _gtk_tree_store_set(int store, int iter, int column, boolean value, int terminator); 6386public static final void gtk_tree_store_set(int store, int iter, int column, boolean value, int terminator) { 6387 lock.lock(); 6388 try { 6389 _gtk_tree_store_set(store, iter, column, value, terminator); 6390 } finally { 6391 lock.unlock(); 6392 } 6393} 6394public static final native boolean _gtk_tree_view_collapse_row(int view, int path); 6395public static final boolean gtk_tree_view_collapse_row(int view, int path) { 6396 lock.lock(); 6397 try { 6398 return _gtk_tree_view_collapse_row(view, path); 6399 } finally { 6400 lock.unlock(); 6401 } 6402} 6403public static final native void _gtk_tree_view_column_add_attribute(int treeColumn, int cellRenderer, byte[] attribute, int column); 6404public static final void gtk_tree_view_column_add_attribute(int treeColumn, int cellRenderer, byte[] attribute, int column) { 6405 lock.lock(); 6406 try { 6407 _gtk_tree_view_column_add_attribute(treeColumn, cellRenderer, attribute, column); 6408 } finally { 6409 lock.unlock(); 6410 } 6411} 6412public static final native boolean _gtk_tree_view_column_cell_get_position(int tree_column, int cell_renderer, int[] start_pos, int[] width); 6413public static final boolean gtk_tree_view_column_cell_get_position(int tree_column, int cell_renderer, int[] start_pos, int[] width) { 6414 lock.lock(); 6415 try { 6416 return _gtk_tree_view_column_cell_get_position(tree_column, cell_renderer, start_pos, width); 6417 } finally { 6418 lock.unlock(); 6419 } 6420} 6421public static final native void _gtk_tree_view_column_cell_get_size(int tree_column, GdkRectangle cell_area, int[] x_offset, int[] y_offset, int[] width, int[] height); 6422public static final void gtk_tree_view_column_cell_get_size(int tree_column, GdkRectangle cell_area, int[] x_offset, int[] y_offset, int[] width, int[] height) { 6423 lock.lock(); 6424 try { 6425 _gtk_tree_view_column_cell_get_size(tree_column, cell_area, x_offset, y_offset, width, height); 6426 } finally { 6427 lock.unlock(); 6428 } 6429} 6430public static final native void _gtk_tree_view_column_cell_set_cell_data(int tree_column, int tree_model, int iter, boolean is_expander, boolean is_expanded); 6431public static final void gtk_tree_view_column_cell_set_cell_data(int tree_column, int tree_model, int iter, boolean is_expander, boolean is_expanded) { 6432 lock.lock(); 6433 try { 6434 _gtk_tree_view_column_cell_set_cell_data(tree_column, tree_model, iter, is_expander, is_expanded); 6435 } finally { 6436 lock.unlock(); 6437 } 6438} 6439public static final native void _gtk_tree_view_column_clear(int tree_column); 6440public static final void gtk_tree_view_column_clear(int tree_column) { 6441 lock.lock(); 6442 try { 6443 _gtk_tree_view_column_clear(tree_column); 6444 } finally { 6445 lock.unlock(); 6446 } 6447} 6448public static final native boolean _gtk_tree_view_column_get_reorderable(int column); 6449public static final boolean gtk_tree_view_column_get_reorderable(int column) { 6450 lock.lock(); 6451 try { 6452 return _gtk_tree_view_column_get_reorderable(column); 6453 } finally { 6454 lock.unlock(); 6455 } 6456} 6457public static final native int _gtk_tree_view_column_get_cell_renderers(int tree_column); 6458public static final int gtk_tree_view_column_get_cell_renderers(int tree_column) { 6459 lock.lock(); 6460 try { 6461 return _gtk_tree_view_column_get_cell_renderers(tree_column); 6462 } finally { 6463 lock.unlock(); 6464 } 6465} 6466public static final native int _gtk_tree_view_column_get_fixed_width(int column); 6467public static final int gtk_tree_view_column_get_fixed_width(int column) { 6468 lock.lock(); 6469 try { 6470 return _gtk_tree_view_column_get_fixed_width(column); 6471 } finally { 6472 lock.unlock(); 6473 } 6474} 6475public static final native boolean _gtk_tree_view_column_get_resizable(int column); 6476public static final boolean gtk_tree_view_column_get_resizable(int column) { 6477 lock.lock(); 6478 try { 6479 return _gtk_tree_view_column_get_resizable(column); 6480 } finally { 6481 lock.unlock(); 6482 } 6483} 6484public static final native int _gtk_tree_view_column_get_spacing(int tree_column); 6485public static final int gtk_tree_view_column_get_spacing(int tree_column) { 6486 lock.lock(); 6487 try { 6488 return _gtk_tree_view_column_get_spacing(tree_column); 6489 } finally { 6490 lock.unlock(); 6491 } 6492} 6493public static final native boolean _gtk_tree_view_column_get_visible(int column); 6494public static final boolean gtk_tree_view_column_get_visible(int column) { 6495 lock.lock(); 6496 try { 6497 return _gtk_tree_view_column_get_visible(column); 6498 } finally { 6499 lock.unlock(); 6500 } 6501} 6502public static final native boolean _gtk_tree_view_column_get_sort_indicator(int tree_column); 6503public static final boolean gtk_tree_view_column_get_sort_indicator(int tree_column) { 6504 lock.lock(); 6505 try { 6506 return _gtk_tree_view_column_get_sort_indicator(tree_column); 6507 } finally { 6508 lock.unlock(); 6509 } 6510} 6511public static final native int _gtk_tree_view_column_get_sort_order(int tree_column); 6512public static final int gtk_tree_view_column_get_sort_order(int tree_column) { 6513 lock.lock(); 6514 try { 6515 return _gtk_tree_view_column_get_sort_order(tree_column); 6516 } finally { 6517 lock.unlock(); 6518 } 6519} 6520public static final native int _gtk_tree_view_column_get_width(int column); 6521public static final int gtk_tree_view_column_get_width(int column) { 6522 lock.lock(); 6523 try { 6524 return _gtk_tree_view_column_get_width(column); 6525 } finally { 6526 lock.unlock(); 6527 } 6528} 6529public static final native int _gtk_tree_view_column_new(); 6530public static final int gtk_tree_view_column_new() { 6531 lock.lock(); 6532 try { 6533 return _gtk_tree_view_column_new(); 6534 } finally { 6535 lock.unlock(); 6536 } 6537} 6538public static final native void _gtk_tree_view_column_pack_start(int tree_column, int cell_renderer, boolean expand); 6539public static final void gtk_tree_view_column_pack_start(int tree_column, int cell_renderer, boolean expand) { 6540 lock.lock(); 6541 try { 6542 _gtk_tree_view_column_pack_start(tree_column, cell_renderer, expand); 6543 } finally { 6544 lock.unlock(); 6545 } 6546} 6547public static final native void _gtk_tree_view_column_pack_end(int tree_column, int cell_renderer, boolean expand); 6548public static final void gtk_tree_view_column_pack_end(int tree_column, int cell_renderer, boolean expand) { 6549 lock.lock(); 6550 try { 6551 _gtk_tree_view_column_pack_end(tree_column, cell_renderer, expand); 6552 } finally { 6553 lock.unlock(); 6554 } 6555} 6556public static final native void _gtk_tree_view_column_set_alignment(int tree_column, float xalign); 6557public static final void gtk_tree_view_column_set_alignment(int tree_column, float xalign) { 6558 lock.lock(); 6559 try { 6560 _gtk_tree_view_column_set_alignment(tree_column, xalign); 6561 } finally { 6562 lock.unlock(); 6563 } 6564} 6565public static final native void _gtk_tree_view_column_set_cell_data_func(int tree_column, int cell_renderer, int func, int func_data, int destroy); 6566public static final void gtk_tree_view_column_set_cell_data_func(int tree_column, int cell_renderer, int func, int func_data, int destroy) { 6567 lock.lock(); 6568 try { 6569 _gtk_tree_view_column_set_cell_data_func(tree_column, cell_renderer, func, func_data, destroy); 6570 } finally { 6571 lock.unlock(); 6572 } 6573} 6574public static final native void _gtk_tree_view_column_set_clickable(int column, boolean clickable); 6575public static final void gtk_tree_view_column_set_clickable(int column, boolean clickable) { 6576 lock.lock(); 6577 try { 6578 _gtk_tree_view_column_set_clickable(column, clickable); 6579 } finally { 6580 lock.unlock(); 6581 } 6582} 6583public static final native void _gtk_tree_view_column_set_fixed_width(int column, int fixed_width); 6584public static final void gtk_tree_view_column_set_fixed_width(int column, int fixed_width) { 6585 lock.lock(); 6586 try { 6587 _gtk_tree_view_column_set_fixed_width(column, fixed_width); 6588 } finally { 6589 lock.unlock(); 6590 } 6591} 6592public static final native void _gtk_tree_view_column_set_reorderable(int column, boolean reorderable); 6593public static final void gtk_tree_view_column_set_reorderable(int column, boolean reorderable) { 6594 lock.lock(); 6595 try { 6596 _gtk_tree_view_column_set_reorderable(column, reorderable); 6597 } finally { 6598 lock.unlock(); 6599 } 6600} 6601public static final native void _gtk_tree_view_column_set_resizable(int column, boolean resizable); 6602public static final void gtk_tree_view_column_set_resizable(int column, boolean resizable) { 6603 lock.lock(); 6604 try { 6605 _gtk_tree_view_column_set_resizable(column, resizable); 6606 } finally { 6607 lock.unlock(); 6608 } 6609} 6610public static final native void _gtk_tree_view_column_set_sizing(int column, int type); 6611public static final void gtk_tree_view_column_set_sizing(int column, int type) { 6612 lock.lock(); 6613 try { 6614 _gtk_tree_view_column_set_sizing(column, type); 6615 } finally { 6616 lock.unlock(); 6617 } 6618} 6619public static final native void _gtk_tree_view_column_set_sort_indicator(int tree_column, boolean setting); 6620public static final void gtk_tree_view_column_set_sort_indicator(int tree_column, boolean setting) { 6621 lock.lock(); 6622 try { 6623 _gtk_tree_view_column_set_sort_indicator(tree_column, setting); 6624 } finally { 6625 lock.unlock(); 6626 } 6627} 6628public static final native void _gtk_tree_view_column_set_sort_order(int tree_column, int order); 6629public static final void gtk_tree_view_column_set_sort_order(int tree_column, int order) { 6630 lock.lock(); 6631 try { 6632 _gtk_tree_view_column_set_sort_order(tree_column, order); 6633 } finally { 6634 lock.unlock(); 6635 } 6636} 6637public static final native void _gtk_tree_view_column_set_title(int tree_column, byte[] title); 6638public static final void gtk_tree_view_column_set_title(int tree_column, byte[] title) { 6639 lock.lock(); 6640 try { 6641 _gtk_tree_view_column_set_title(tree_column, title); 6642 } finally { 6643 lock.unlock(); 6644 } 6645} 6646public static final native void _gtk_tree_view_column_set_visible (int tree_column, boolean visible); 6647public static final void gtk_tree_view_column_set_visible (int tree_column, boolean visible) { 6648 lock.lock(); 6649 try { 6650 _gtk_tree_view_column_set_visible(tree_column, visible); 6651 } finally { 6652 lock.unlock(); 6653 } 6654} 6655public static final native void _gtk_tree_view_column_set_widget(int tree_column, int widget); 6656public static final void gtk_tree_view_column_set_widget(int tree_column, int widget) { 6657 lock.lock(); 6658 try { 6659 _gtk_tree_view_column_set_widget(tree_column, widget); 6660 } finally { 6661 lock.unlock(); 6662 } 6663} 6664public static final native void _gtk_tree_view_set_drag_dest_row(int view, int path, int pos); 6665public static final void gtk_tree_view_set_drag_dest_row(int view, int path, int pos) { 6666 lock.lock(); 6667 try { 6668 _gtk_tree_view_set_drag_dest_row(view, path, pos); 6669 } finally { 6670 lock.unlock(); 6671 } 6672} 6673public static final native boolean _gtk_tree_view_expand_row(int view, int path, boolean open_all); 6674public static final boolean gtk_tree_view_expand_row(int view, int path, boolean open_all) { 6675 lock.lock(); 6676 try { 6677 return _gtk_tree_view_expand_row(view, path, open_all); 6678 } finally { 6679 lock.unlock(); 6680 } 6681} 6682public static final native int _gtk_tree_view_get_bin_window(int tree_view); 6683public static final int gtk_tree_view_get_bin_window(int tree_view) { 6684 lock.lock(); 6685 try { 6686 return _gtk_tree_view_get_bin_window(tree_view); 6687 } finally { 6688 lock.unlock(); 6689 } 6690} 6691public static final native void _gtk_tree_view_get_cell_area(int tree_view, int path, int column, GdkRectangle rect); 6692public static final void gtk_tree_view_get_cell_area(int tree_view, int path, int column, GdkRectangle rect) { 6693 lock.lock(); 6694 try { 6695 _gtk_tree_view_get_cell_area(tree_view, path, column, rect); 6696 } finally { 6697 lock.unlock(); 6698 } 6699} 6700public static final native int _gtk_tree_view_get_expander_column(int tree_view); 6701public static final int gtk_tree_view_get_expander_column(int tree_view) { 6702 lock.lock(); 6703 try { 6704 return _gtk_tree_view_get_expander_column(tree_view); 6705 } finally { 6706 lock.unlock(); 6707 } 6708} 6709public static final native int _gtk_tree_view_get_column(int tree_view, int n); 6710public static final int gtk_tree_view_get_column(int tree_view, int n) { 6711 lock.lock(); 6712 try { 6713 return _gtk_tree_view_get_column(tree_view, n); 6714 } finally { 6715 lock.unlock(); 6716 } 6717} 6718public static final native int _gtk_tree_view_get_columns(int tree_view); 6719public static final int gtk_tree_view_get_columns(int tree_view) { 6720 lock.lock(); 6721 try { 6722 return _gtk_tree_view_get_columns(tree_view); 6723 } finally { 6724 lock.unlock(); 6725 } 6726} 6727public static final native void _gtk_tree_view_get_cursor(int tree_view, int [] path, int [] focus_column); 6728public static final void gtk_tree_view_get_cursor(int tree_view, int [] path, int [] focus_column) { 6729 lock.lock(); 6730 try { 6731 _gtk_tree_view_get_cursor(tree_view, path, focus_column); 6732 } finally { 6733 lock.unlock(); 6734 } 6735} 6736public static final native boolean _gtk_tree_view_get_headers_visible(int tree_view); 6737public static final boolean gtk_tree_view_get_headers_visible(int tree_view) { 6738 lock.lock(); 6739 try { 6740 return _gtk_tree_view_get_headers_visible(tree_view); 6741 } finally { 6742 lock.unlock(); 6743 } 6744} 6745public static final native boolean _gtk_tree_view_get_path_at_pos(int tree_view, int x, int y, int [] path, int [] column, int[] cell_x, int[] cell_y); 6746public static final boolean gtk_tree_view_get_path_at_pos(int tree_view, int x, int y, int [] path, int [] column, int[] cell_x, int[] cell_y) { 6747 lock.lock(); 6748 try { 6749 return _gtk_tree_view_get_path_at_pos(tree_view, x, y, path, column, cell_x, cell_y); 6750 } finally { 6751 lock.unlock(); 6752 } 6753} 6754public static final native boolean _gtk_tree_view_get_rules_hint(int tree_view); 6755public static final boolean gtk_tree_view_get_rules_hint(int tree_view) { 6756 lock.lock(); 6757 try { 6758 return _gtk_tree_view_get_rules_hint(tree_view); 6759 } finally { 6760 lock.unlock(); 6761 } 6762} 6763public static final native int _gtk_tree_view_get_selection(int tree_view); 6764public static final int gtk_tree_view_get_selection(int tree_view) { 6765 lock.lock(); 6766 try { 6767 return _gtk_tree_view_get_selection(tree_view); 6768 } finally { 6769 lock.unlock(); 6770 } 6771} 6772public static final native void _gtk_tree_view_get_visible_rect(int tree_view, GdkRectangle visible_rect); 6773public static final void gtk_tree_view_get_visible_rect(int tree_view, GdkRectangle visible_rect) { 6774 lock.lock(); 6775 try { 6776 _gtk_tree_view_get_visible_rect(tree_view, visible_rect); 6777 } finally { 6778 lock.unlock(); 6779 } 6780} 6781public static final native int _gtk_tree_view_insert_column(int tree_view, int column, int position); 6782public static final int gtk_tree_view_insert_column(int tree_view, int column, int position) { 6783 lock.lock(); 6784 try { 6785 return _gtk_tree_view_insert_column(tree_view, column, position); 6786 } finally { 6787 lock.unlock(); 6788 } 6789} 6790public static final native void _gtk_tree_view_move_column_after(int tree_view, int column, int base_column); 6791public static final void gtk_tree_view_move_column_after(int tree_view, int column, int base_column) { 6792 lock.lock(); 6793 try { 6794 _gtk_tree_view_move_column_after(tree_view, column, base_column); 6795 } finally { 6796 lock.unlock(); 6797 } 6798} 6799public static final native int _gtk_tree_view_new_with_model(int model); 6800public static final int gtk_tree_view_new_with_model(int model) { 6801 lock.lock(); 6802 try { 6803 return _gtk_tree_view_new_with_model(model); 6804 } finally { 6805 lock.unlock(); 6806 } 6807} 6808public static final native void _gtk_tree_view_remove_column(int tree_view, int column); 6809public static final void gtk_tree_view_remove_column(int tree_view, int column) { 6810 lock.lock(); 6811 try { 6812 _gtk_tree_view_remove_column(tree_view, column); 6813 } finally { 6814 lock.unlock(); 6815 } 6816} 6817public static final native boolean _gtk_tree_view_row_expanded(int view, int path); 6818public static final boolean gtk_tree_view_row_expanded(int view, int path) { 6819 lock.lock(); 6820 try { 6821 return _gtk_tree_view_row_expanded(view, path); 6822 } finally { 6823 lock.unlock(); 6824 } 6825} 6826public static final native void _gtk_tree_view_scroll_to_cell(int tree_view, int path, int column, boolean use_align, float row_aligh, float column_align); 6827public static final void gtk_tree_view_scroll_to_cell(int tree_view, int path, int column, boolean use_align, float row_aligh, float column_align) { 6828 lock.lock(); 6829 try { 6830 _gtk_tree_view_scroll_to_cell(tree_view, path, column, use_align, row_aligh, column_align); 6831 } finally { 6832 lock.unlock(); 6833 } 6834} 6835public static final native void _gtk_tree_view_scroll_to_point (int tree_view, int tree_x, int tree_y); 6836public static final void gtk_tree_view_scroll_to_point (int tree_view, int tree_x, int tree_y) { 6837 lock.lock(); 6838 try { 6839 _gtk_tree_view_scroll_to_point(tree_view, tree_x, tree_y); 6840 } finally { 6841 lock.unlock(); 6842 } 6843} 6844public static final native void _gtk_tree_view_set_cursor(int tree_view, int path, int focus_column, boolean start_editing); 6845public static final void gtk_tree_view_set_cursor(int tree_view, int path, int focus_column, boolean start_editing) { 6846 lock.lock(); 6847 try { 6848 _gtk_tree_view_set_cursor(tree_view, path, focus_column, start_editing); 6849 } finally { 6850 lock.unlock(); 6851 } 6852} 6853public static final native void _gtk_tree_view_set_headers_visible(int tree_view, boolean visible); 6854public static final void gtk_tree_view_set_headers_visible(int tree_view, boolean visible) { 6855 lock.lock(); 6856 try { 6857 _gtk_tree_view_set_headers_visible(tree_view, visible); 6858 } finally { 6859 lock.unlock(); 6860 } 6861} 6862public static final native void _gtk_tree_view_set_model(int tree_view, int model); 6863public static final void gtk_tree_view_set_model(int tree_view, int model) { 6864 lock.lock(); 6865 try { 6866 _gtk_tree_view_set_model(tree_view, model); 6867 } finally { 6868 lock.unlock(); 6869 } 6870} 6871public static final native void _gtk_tree_view_set_rules_hint(int tree_view, boolean setting); 6872public static final void gtk_tree_view_set_rules_hint(int tree_view, boolean setting) { 6873 lock.lock(); 6874 try { 6875 _gtk_tree_view_set_rules_hint(tree_view, setting); 6876 } finally { 6877 lock.unlock(); 6878 } 6879} 6880public static final native void _gtk_tree_view_set_search_column(int tree_view, int column); 6881public static final void gtk_tree_view_set_search_column(int tree_view, int column) { 6882 lock.lock(); 6883 try { 6884 _gtk_tree_view_set_search_column(tree_view, column); 6885 } finally { 6886 lock.unlock(); 6887 } 6888} 6889public static final native void _gtk_tree_view_tree_to_widget_coords(int tree_view, int tx, int ty, int[] wx, int[] wy); 6890public static final void gtk_tree_view_tree_to_widget_coords(int tree_view, int tx, int ty, int[] wx, int[] wy) { 6891 lock.lock(); 6892 try { 6893 _gtk_tree_view_tree_to_widget_coords(tree_view, tx, ty, wx, wy); 6894 } finally { 6895 lock.unlock(); 6896 } 6897} 6898public static final native void _gtk_tree_view_unset_rows_drag_dest(int tree_view); 6899public static final void gtk_tree_view_unset_rows_drag_dest(int tree_view) { 6900 lock.lock(); 6901 try { 6902 _gtk_tree_view_unset_rows_drag_dest(tree_view); 6903 } finally { 6904 lock.unlock(); 6905 } 6906} 6907public static final native void _gtk_tree_view_widget_to_tree_coords(int tree_view, int wx, int wy, int[] tx, int[] ty); 6908public static final void gtk_tree_view_widget_to_tree_coords(int tree_view, int wx, int wy, int[] tx, int[] ty) { 6909 lock.lock(); 6910 try { 6911 _gtk_tree_view_widget_to_tree_coords(tree_view, wx, wy, tx, ty); 6912 } finally { 6913 lock.unlock(); 6914 } 6915} 6916public static final native int _gtk_vbox_new(boolean homogeneous, int spacing); 6917public static final int gtk_vbox_new(boolean homogeneous, int spacing) { 6918 lock.lock(); 6919 try { 6920 return _gtk_vbox_new(homogeneous, spacing); 6921 } finally { 6922 lock.unlock(); 6923 } 6924} 6925public static final native int _gtk_vscale_new(int adjustment); 6926public static final int gtk_vscale_new(int adjustment) { 6927 lock.lock(); 6928 try { 6929 return _gtk_vscale_new(adjustment); 6930 } finally { 6931 lock.unlock(); 6932 } 6933} 6934public static final native int _gtk_vscrollbar_new(int adjustment); 6935public static final int gtk_vscrollbar_new(int adjustment) { 6936 lock.lock(); 6937 try { 6938 return _gtk_vscrollbar_new(adjustment); 6939 } finally { 6940 lock.unlock(); 6941 } 6942} 6943public static final native int _gtk_vseparator_new(); 6944public static final int gtk_vseparator_new() { 6945 lock.lock(); 6946 try { 6947 return _gtk_vseparator_new(); 6948 } finally { 6949 lock.unlock(); 6950 } 6951} 6952public static final native void _gtk_widget_add_accelerator(int widget, byte[] accel_signal, int accel_group, int accel_key, int accel_mods, int accel_flags); 6953public static final void gtk_widget_add_accelerator(int widget, byte[] accel_signal, int accel_group, int accel_key, int accel_mods, int accel_flags) { 6954 lock.lock(); 6955 try { 6956 _gtk_widget_add_accelerator(widget, accel_signal, accel_group, accel_key, accel_mods, accel_flags); 6957 } finally { 6958 lock.unlock(); 6959 } 6960} 6961public static final native void _gtk_widget_add_events(int widget, int events); 6962public static final void gtk_widget_add_events(int widget, int events) { 6963 lock.lock(); 6964 try { 6965 _gtk_widget_add_events(widget, events); 6966 } finally { 6967 lock.unlock(); 6968 } 6969} 6970public static final native boolean _gtk_widget_child_focus(int widget, int direction); 6971public static final boolean gtk_widget_child_focus(int widget, int direction) { 6972 lock.lock(); 6973 try { 6974 return _gtk_widget_child_focus(widget, direction); 6975 } finally { 6976 lock.unlock(); 6977 } 6978} 6979public static final native int _gtk_widget_create_pango_layout(int widget, byte[] text); 6980public static final int gtk_widget_create_pango_layout(int widget, byte[] text) { 6981 lock.lock(); 6982 try { 6983 return _gtk_widget_create_pango_layout(widget, text); 6984 } finally { 6985 lock.unlock(); 6986 } 6987} 6988public static final native int _gtk_widget_create_pango_layout(int widget, int text); 6989public static final int gtk_widget_create_pango_layout(int widget, int text) { 6990 lock.lock(); 6991 try { 6992 return _gtk_widget_create_pango_layout(widget, text); 6993 } finally { 6994 lock.unlock(); 6995 } 6996} 6997public static final native void _gtk_widget_destroy(int widget); 6998public static final void gtk_widget_destroy(int widget) { 6999 lock.lock(); 7000 try { 7001 _gtk_widget_destroy(widget); 7002 } finally { 7003 lock.unlock(); 7004 } 7005} 7006public static final native boolean _gtk_widget_event(int widget, int event); 7007public static final boolean gtk_widget_event(int widget, int event) { 7008 lock.lock(); 7009 try { 7010 return _gtk_widget_event(widget, event); 7011 } finally { 7012 lock.unlock(); 7013 } 7014} 7015public static final native boolean _gtk_widget_get_child_visible (int widget); 7016public static final boolean gtk_widget_get_child_visible (int widget) { 7017 lock.lock(); 7018 try { 7019 return _gtk_widget_get_child_visible(widget); 7020 } finally { 7021 lock.unlock(); 7022 } 7023} 7024public static final native int _gtk_widget_get_default_direction(); 7025public static final int gtk_widget_get_default_direction() { 7026 lock.lock(); 7027 try { 7028 return _gtk_widget_get_default_direction(); 7029 } finally { 7030 lock.unlock(); 7031 } 7032} 7033public static final native int _gtk_widget_get_default_style(); 7034public static final int gtk_widget_get_default_style() { 7035 lock.lock(); 7036 try { 7037 return _gtk_widget_get_default_style(); 7038 } finally { 7039 lock.unlock(); 7040 } 7041} 7042public static final native int _gtk_widget_get_direction(int widget); 7043public static final int gtk_widget_get_direction(int widget) { 7044 lock.lock(); 7045 try { 7046 return _gtk_widget_get_direction(widget); 7047 } finally { 7048 lock.unlock(); 7049 } 7050} 7051public static final native int _gtk_widget_get_events(int widget); 7052public static final int gtk_widget_get_events(int widget) { 7053 lock.lock(); 7054 try { 7055 return _gtk_widget_get_events(widget); 7056 } finally { 7057 lock.unlock(); 7058 } 7059} 7060public static final native int _gtk_widget_get_modifier_style(int widget); 7061public static final int gtk_widget_get_modifier_style(int widget) { 7062 lock.lock(); 7063 try { 7064 return _gtk_widget_get_modifier_style(widget); 7065 } finally { 7066 lock.unlock(); 7067 } 7068} 7069public static final native int _gtk_widget_get_pango_context(int widget); 7070public static final int gtk_widget_get_pango_context(int widget) { 7071 lock.lock(); 7072 try { 7073 return _gtk_widget_get_pango_context(widget); 7074 } finally { 7075 lock.unlock(); 7076 } 7077} 7078public static final native int _gtk_widget_get_parent(int widget); 7079public static final int gtk_widget_get_parent(int widget) { 7080 lock.lock(); 7081 try { 7082 return _gtk_widget_get_parent(widget); 7083 } finally { 7084 lock.unlock(); 7085 } 7086} 7087public static final native int _gtk_widget_get_style(int widget); 7088public static final int gtk_widget_get_style(int widget) { 7089 lock.lock(); 7090 try { 7091 return _gtk_widget_get_style(widget); 7092 } finally { 7093 lock.unlock(); 7094 } 7095} 7096public static final native void _gtk_widget_get_size_request(int widget, int [] width, int [] height); 7097public static final void gtk_widget_get_size_request(int widget, int [] width, int [] height) { 7098 lock.lock(); 7099 try { 7100 _gtk_widget_get_size_request(widget, width, height); 7101 } finally { 7102 lock.unlock(); 7103 } 7104} 7105public static final native int _gtk_widget_get_toplevel (int widget); 7106public static final int gtk_widget_get_toplevel (int widget) { 7107 lock.lock(); 7108 try { 7109 return _gtk_widget_get_toplevel(widget); 7110 } finally { 7111 lock.unlock(); 7112 } 7113} 7114public static final native void _gtk_widget_grab_focus(int widget); 7115public static final void gtk_widget_grab_focus(int widget) { 7116 lock.lock(); 7117 try { 7118 _gtk_widget_grab_focus(widget); 7119 } finally { 7120 lock.unlock(); 7121 } 7122} 7123public static final native void _gtk_widget_hide(int widget); 7124public static final void gtk_widget_hide(int widget) { 7125 lock.lock(); 7126 try { 7127 _gtk_widget_hide(widget); 7128 } finally { 7129 lock.unlock(); 7130 } 7131} 7132public static final native boolean _gtk_widget_is_focus(int widget); 7133public static final boolean gtk_widget_is_focus(int widget) { 7134 lock.lock(); 7135 try { 7136 return _gtk_widget_is_focus(widget); 7137 } finally { 7138 lock.unlock(); 7139 } 7140} 7141public static final native void _gtk_widget_map(int widget); 7142public static final void gtk_widget_map(int widget) { 7143 lock.lock(); 7144 try { 7145 _gtk_widget_map(widget); 7146 } finally { 7147 lock.unlock(); 7148 } 7149} 7150public static final native boolean _gtk_widget_mnemonic_activate(int widget, boolean group_cycling); 7151public static final boolean gtk_widget_mnemonic_activate(int widget, boolean group_cycling) { 7152 lock.lock(); 7153 try { 7154 return _gtk_widget_mnemonic_activate(widget, group_cycling); 7155 } finally { 7156 lock.unlock(); 7157 } 7158} 7159public static final native void _gtk_widget_modify_base(int widget, int state, GdkColor color); 7160public static final void gtk_widget_modify_base(int widget, int state, GdkColor color) { 7161 lock.lock(); 7162 try { 7163 _gtk_widget_modify_base(widget, state, color); 7164 } finally { 7165 lock.unlock(); 7166 } 7167} 7168public static final native void _gtk_widget_modify_bg(int widget, int state, GdkColor color); 7169public static final void gtk_widget_modify_bg(int widget, int state, GdkColor color) { 7170 lock.lock(); 7171 try { 7172 _gtk_widget_modify_bg(widget, state, color); 7173 } finally { 7174 lock.unlock(); 7175 } 7176} 7177public static final native void _gtk_widget_modify_fg(int widget, int state, GdkColor color); 7178public static final void gtk_widget_modify_fg(int widget, int state, GdkColor color) { 7179 lock.lock(); 7180 try { 7181 _gtk_widget_modify_fg(widget, state, color); 7182 } finally { 7183 lock.unlock(); 7184 } 7185} 7186public static final native void _gtk_widget_modify_font(int widget, int pango_font_descr); 7187public static final void gtk_widget_modify_font(int widget, int pango_font_descr) { 7188 lock.lock(); 7189 try { 7190 _gtk_widget_modify_font(widget, pango_font_descr); 7191 } finally { 7192 lock.unlock(); 7193 } 7194} 7195public static final native void _gtk_widget_modify_style(int widget, int style); 7196public static final void gtk_widget_modify_style(int widget, int style) { 7197 lock.lock(); 7198 try { 7199 _gtk_widget_modify_style(widget, style); 7200 } finally { 7201 lock.unlock(); 7202 } 7203} 7204public static final native void _gtk_widget_modify_text(int widget, int state, GdkColor color); 7205public static final void gtk_widget_modify_text(int widget, int state, GdkColor color) { 7206 lock.lock(); 7207 try { 7208 _gtk_widget_modify_text(widget, state, color); 7209 } finally { 7210 lock.unlock(); 7211 } 7212} 7213public static final native void _gtk_widget_realize(int widget); 7214public static final void gtk_widget_realize(int widget) { 7215 lock.lock(); 7216 try { 7217 _gtk_widget_realize(widget); 7218 } finally { 7219 lock.unlock(); 7220 } 7221} 7222public static final native void _gtk_widget_remove_accelerator(int widget, int accel_group, int accel_key, int accel_mods); 7223public static final void gtk_widget_remove_accelerator(int widget, int accel_group, int accel_key, int accel_mods) { 7224 lock.lock(); 7225 try { 7226 _gtk_widget_remove_accelerator(widget, accel_group, accel_key, accel_mods); 7227 } finally { 7228 lock.unlock(); 7229 } 7230} 7231public static final native void _gtk_widget_reparent(int widget, int new_parent); 7232public static final void gtk_widget_reparent(int widget, int new_parent) { 7233 lock.lock(); 7234 try { 7235 _gtk_widget_reparent(widget, new_parent); 7236 } finally { 7237 lock.unlock(); 7238 } 7239} 7240public static final native void _gtk_widget_set_default_direction(int dir); 7241public static final void gtk_widget_set_default_direction(int dir) { 7242 lock.lock(); 7243 try { 7244 _gtk_widget_set_default_direction(dir); 7245 } finally { 7246 lock.unlock(); 7247 } 7248} 7249public static final native void _gtk_widget_set_direction(int widget, int dir); 7250public static final void gtk_widget_set_direction(int widget, int dir) { 7251 lock.lock(); 7252 try { 7253 _gtk_widget_set_direction(widget, dir); 7254 } finally { 7255 lock.unlock(); 7256 } 7257} 7258public static final native void _gtk_widget_set_double_buffered(int widget, boolean double_buffered); 7259public static final void gtk_widget_set_double_buffered(int widget, boolean double_buffered) { 7260 lock.lock(); 7261 try { 7262 _gtk_widget_set_double_buffered(widget, double_buffered); 7263 } finally { 7264 lock.unlock(); 7265 } 7266} 7267public static final native void _gtk_widget_set_name(int widget, byte[] name); 7268public static final void gtk_widget_set_name(int widget, byte[] name) { 7269 lock.lock(); 7270 try { 7271 _gtk_widget_set_name(widget, name); 7272 } finally { 7273 lock.unlock(); 7274 } 7275} 7276public static final native void _gtk_widget_set_redraw_on_allocate(int widget, boolean redraw); 7277public static final void gtk_widget_set_redraw_on_allocate(int widget, boolean redraw) { 7278 lock.lock(); 7279 try { 7280 _gtk_widget_set_redraw_on_allocate(widget, redraw); 7281 } finally { 7282 lock.unlock(); 7283 } 7284} 7285public static final native void _gtk_widget_set_sensitive(int widget, boolean sensitive); 7286public static final void gtk_widget_set_sensitive(int widget, boolean sensitive) { 7287 lock.lock(); 7288 try { 7289 _gtk_widget_set_sensitive(widget, sensitive); 7290 } finally { 7291 lock.unlock(); 7292 } 7293} 7294public static final native void _gtk_widget_set_size_request(int widget, int width, int height); 7295public static final void gtk_widget_set_size_request(int widget, int width, int height) { 7296 lock.lock(); 7297 try { 7298 _gtk_widget_set_size_request(widget, width, height); 7299 } finally { 7300 lock.unlock(); 7301 } 7302} 7303public static final native void _gtk_widget_set_state(int widget, int state); 7304public static final void gtk_widget_set_state(int widget, int state) { 7305 lock.lock(); 7306 try { 7307 _gtk_widget_set_state(widget, state); 7308 } finally { 7309 lock.unlock(); 7310 } 7311} 7312public static final native void _gtk_widget_shape_combine_mask(int widget, int shape_mask, int offset_x, int offset_y); 7313public static final void gtk_widget_shape_combine_mask(int widget, int shape_mask, int offset_x, int offset_y) { 7314 lock.lock(); 7315 try { 7316 _gtk_widget_shape_combine_mask(widget, shape_mask, offset_x, offset_y); 7317 } finally { 7318 lock.unlock(); 7319 } 7320} 7321public static final native void _gtk_widget_show(int widget); 7322public static final void gtk_widget_show(int widget) { 7323 lock.lock(); 7324 try { 7325 _gtk_widget_show(widget); 7326 } finally { 7327 lock.unlock(); 7328 } 7329} 7330public static final native void _gtk_widget_show_now(int widget); 7331public static final void gtk_widget_show_now(int widget) { 7332 lock.lock(); 7333 try { 7334 _gtk_widget_show_now(widget); 7335 } finally { 7336 lock.unlock(); 7337 } 7338} 7339public static final native void _gtk_widget_size_allocate(int widget, GtkAllocation allocation); 7340public static final void gtk_widget_size_allocate(int widget, GtkAllocation allocation) { 7341 lock.lock(); 7342 try { 7343 _gtk_widget_size_allocate(widget, allocation); 7344 } finally { 7345 lock.unlock(); 7346 } 7347} 7348public static final native void _gtk_widget_size_request(int widget, GtkRequisition requisition); 7349public static final void gtk_widget_size_request(int widget, GtkRequisition requisition) { 7350 lock.lock(); 7351 try { 7352 _gtk_widget_size_request(widget, requisition); 7353 } finally { 7354 lock.unlock(); 7355 } 7356} 7357public static final native void _gtk_widget_style_get(int widget, byte[] property_name, int[] value, int terminator); 7358public static final void gtk_widget_style_get(int widget, byte[] property_name, int[] value, int terminator) { 7359 lock.lock(); 7360 try { 7361 _gtk_widget_style_get(widget, property_name, value, terminator); 7362 } finally { 7363 lock.unlock(); 7364 } 7365} 7366public static final native void _gtk_widget_style_get(int widget, byte[] property_name, long[] value, int terminator); 7367public static final void gtk_widget_style_get(int widget, byte[] property_name, long[] value, int terminator) { 7368 lock.lock(); 7369 try { 7370 _gtk_widget_style_get(widget, property_name, value, terminator); 7371 } finally { 7372 lock.unlock(); 7373 } 7374} 7375public static final native void _gtk_widget_unrealize(int widget); 7376public static final void gtk_widget_unrealize(int widget) { 7377 lock.lock(); 7378 try { 7379 _gtk_widget_unrealize(widget); 7380 } finally { 7381 lock.unlock(); 7382 } 7383} 7384public static final native boolean _gtk_window_activate_default(int window); 7385public static final boolean gtk_window_activate_default(int window) { 7386 lock.lock(); 7387 try { 7388 return _gtk_window_activate_default(window); 7389 } finally { 7390 lock.unlock(); 7391 } 7392} 7393public static final native void _gtk_window_add_accel_group(int window, int accel_group); 7394public static final void gtk_window_add_accel_group(int window, int accel_group) { 7395 lock.lock(); 7396 try { 7397 _gtk_window_add_accel_group(window, accel_group); 7398 } finally { 7399 lock.unlock(); 7400 } 7401} 7402public static final native void _gtk_window_deiconify(int handle); 7403public static final void gtk_window_deiconify(int handle) { 7404 lock.lock(); 7405 try { 7406 _gtk_window_deiconify(handle); 7407 } finally { 7408 lock.unlock(); 7409 } 7410} 7411public static final native int _gtk_window_get_focus(int window); 7412public static final int gtk_window_get_focus(int window) { 7413 lock.lock(); 7414 try { 7415 return _gtk_window_get_focus(window); 7416 } finally { 7417 lock.unlock(); 7418 } 7419} 7420public static final native int _gtk_window_get_icon_list(int window); 7421public static final int gtk_window_get_icon_list(int window) { 7422 lock.lock(); 7423 try { 7424 return _gtk_window_get_icon_list(window); 7425 } finally { 7426 lock.unlock(); 7427 } 7428} 7429public static final native int _gtk_window_get_mnemonic_modifier(int window); 7430public static final int gtk_window_get_mnemonic_modifier(int window) { 7431 lock.lock(); 7432 try { 7433 return _gtk_window_get_mnemonic_modifier(window); 7434 } finally { 7435 lock.unlock(); 7436 } 7437} 7438public static final native void _gtk_window_get_position(int handle, int[] x, int[] y); 7439public static final void gtk_window_get_position(int handle, int[] x, int[] y) { 7440 lock.lock(); 7441 try { 7442 _gtk_window_get_position(handle, x, y); 7443 } finally { 7444 lock.unlock(); 7445 } 7446} 7447public static final native void _gtk_window_get_size(int handle, int[] x, int[] y); 7448public static final void gtk_window_get_size(int handle, int[] x, int[] y) { 7449 lock.lock(); 7450 try { 7451 _gtk_window_get_size(handle, x, y); 7452 } finally { 7453 lock.unlock(); 7454 } 7455} 7456public static final native void _gtk_window_iconify(int handle); 7457public static final void gtk_window_iconify(int handle) { 7458 lock.lock(); 7459 try { 7460 _gtk_window_iconify(handle); 7461 } finally { 7462 lock.unlock(); 7463 } 7464} 7465public static final native void _gtk_window_maximize(int handle); 7466public static final void gtk_window_maximize(int handle) { 7467 lock.lock(); 7468 try { 7469 _gtk_window_maximize(handle); 7470 } finally { 7471 lock.unlock(); 7472 } 7473} 7474public static final native void _gtk_window_move(int handle, int x, int y); 7475public static final void gtk_window_move(int handle, int x, int y) { 7476 lock.lock(); 7477 try { 7478 _gtk_window_move(handle, x, y); 7479 } finally { 7480 lock.unlock(); 7481 } 7482} 7483public static final native int _gtk_window_new(int type); 7484public static final int gtk_window_new(int type) { 7485 lock.lock(); 7486 try { 7487 return _gtk_window_new(type); 7488 } finally { 7489 lock.unlock(); 7490 } 7491} 7492public static final native void _gtk_window_present(int window); 7493public static final void gtk_window_present(int window) { 7494 lock.lock(); 7495 try { 7496 _gtk_window_present(window); 7497 } finally { 7498 lock.unlock(); 7499 } 7500} 7501public static final native void _gtk_window_remove_accel_group(int window, int accel_group); 7502public static final void gtk_window_remove_accel_group(int window, int accel_group) { 7503 lock.lock(); 7504 try { 7505 _gtk_window_remove_accel_group(window, accel_group); 7506 } finally { 7507 lock.unlock(); 7508 } 7509} 7510public static final native void _gtk_window_resize(int handle, int x, int y); 7511public static final void gtk_window_resize(int handle, int x, int y) { 7512 lock.lock(); 7513 try { 7514 _gtk_window_resize(handle, x, y); 7515 } finally { 7516 lock.unlock(); 7517 } 7518} 7519public static final native void _gtk_window_set_default(int window, int widget); 7520public static final void gtk_window_set_default(int window, int widget) { 7521 lock.lock(); 7522 try { 7523 _gtk_window_set_default(window, widget); 7524 } finally { 7525 lock.unlock(); 7526 } 7527} 7528public static final native void _gtk_window_set_destroy_with_parent(int window, boolean setting); 7529public static final void gtk_window_set_destroy_with_parent(int window, boolean setting) { 7530 lock.lock(); 7531 try { 7532 _gtk_window_set_destroy_with_parent(window, setting); 7533 } finally { 7534 lock.unlock(); 7535 } 7536} 7537public static final native void _gtk_window_set_geometry_hints(int window, int geometry_widget, GdkGeometry geometry, int geom_mask); 7538public static final void gtk_window_set_geometry_hints(int window, int geometry_widget, GdkGeometry geometry, int geom_mask) { 7539 lock.lock(); 7540 try { 7541 _gtk_window_set_geometry_hints(window, geometry_widget, geometry, geom_mask); 7542 } finally { 7543 lock.unlock(); 7544 } 7545} 7546public static final native void _gtk_window_set_icon_list(int window, int list); 7547public static final void gtk_window_set_icon_list(int window, int list) { 7548 lock.lock(); 7549 try { 7550 _gtk_window_set_icon_list(window, list); 7551 } finally { 7552 lock.unlock(); 7553 } 7554} 7555public static final native void _gtk_window_set_modal(int window, boolean modal); 7556public static final void gtk_window_set_modal(int window, boolean modal) { 7557 lock.lock(); 7558 try { 7559 _gtk_window_set_modal(window, modal); 7560 } finally { 7561 lock.unlock(); 7562 } 7563} 7564public static final native void _gtk_window_set_resizable(int window, boolean resizable); 7565public static final void gtk_window_set_resizable(int window, boolean resizable) { 7566 lock.lock(); 7567 try { 7568 _gtk_window_set_resizable(window, resizable); 7569 } finally { 7570 lock.unlock(); 7571 } 7572} 7573public static final native void _gtk_window_set_title(int window, byte[] title); 7574public static final void gtk_window_set_title(int window, byte[] title) { 7575 lock.lock(); 7576 try { 7577 _gtk_window_set_title(window, title); 7578 } finally { 7579 lock.unlock(); 7580 } 7581} 7582public static final native void _gtk_window_set_type_hint(int window, int hint); 7583public static final void gtk_window_set_type_hint(int window, int hint) { 7584 lock.lock(); 7585 try { 7586 _gtk_window_set_type_hint(window, hint); 7587 } finally { 7588 lock.unlock(); 7589 } 7590} 7591public static final native void _gtk_window_set_transient_for(int window, int parent); 7592public static final void gtk_window_set_transient_for(int window, int parent) { 7593 lock.lock(); 7594 try { 7595 _gtk_window_set_transient_for(window, parent); 7596 } finally { 7597 lock.unlock(); 7598 } 7599} 7600public static final native void _gtk_window_unmaximize(int handle); 7601public static final void gtk_window_unmaximize(int handle) { 7602 lock.lock(); 7603 try { 7604 _gtk_window_unmaximize(handle); 7605 } finally { 7606 lock.unlock(); 7607 } 7608} 7609public static final native void memmove(int dest, GInterfaceInfo src, int size); 7610public static final native void memmove(int dest, GObjectClass src); 7611public static final native void memmove(int dest, GTypeInfo src, int size); 7612public static final native void memmove(int dest, GtkTargetEntry src, int size); 7613public static final native void memmove(int dest, GtkAdjustment src); 7614public static final native void memmove(int dest, GdkEventButton src, int size); 7615public static final native void memmove(int dest, GtkWidgetClass src); 7616public static final native void memmove(int dest, PangoAttribute src, int size); 7617public static final native void memmove(GObjectClass dest, int src); 7618public static final native void memmove(GTypeQuery dest, int src, int size); 7619public static final native void memmove(GtkColorSelectionDialog dest, int src); 7620public static final native void memmove(GtkFileSelection dest, int src); 7621public static final native void memmove(GdkDragContext dest, int src, int size); 7622public static final native void memmove(GtkSelectionData dest, int src, int size); 7623public static final native void memmove(GtkWidgetClass dest, int src); 7624public static final native void memmove(GtkTargetPair dest, int src, int size); 7625public static final native void memmove(GtkCombo dest, int src); 7626public static final native void memmove(GtkAdjustment dest, int src); 7627public static final native void memmove(GtkBorder dest, int src, int size); 7628public static final native void memmove(GdkColor dest, int src, int size); 7629public static final native void memmove(GdkEvent dest, int src, int size); 7630public static final native void memmove(GdkEventAny dest, int src, int size); 7631public static final native void memmove(GdkEventButton dest, int src, int size); 7632public static final native void memmove(GdkEventCrossing dest, int src, int size); 7633public static final native void memmove(GdkEventExpose dest, int src, int size); 7634public static final native void memmove(GdkEventFocus dest, int src, int size); 7635public static final native void memmove(GdkEventKey dest, int src, int size); 7636public static final native void memmove(GdkEventMotion dest, int src, int size); 7637public static final native void memmove(GdkEventScroll dest, int src, int size); 7638public static final native void memmove(GdkEventVisibility dest, int src, int size); 7639public static final native void memmove(GdkEventWindowState dest, int src, int size); 7640public static final native void memmove(GtkFixed dest, int src); 7641public static final native void memmove(int dest, GtkFixed src); 7642public static final native void memmove(GdkVisual dest, int src); 7643public static final native void memmove(GdkImage dest, int src); 7644public static final native void memmove(GdkRectangle dest, int src, int size); 7645public static final native void memmove(PangoAttribute dest, int src, int size); 7646public static final native void memmove(PangoItem dest, int src, int size); 7647public static final native void memmove(PangoLayoutLine dest, int src, int size); 7648public static final native void memmove(PangoLayoutRun dest, int src, int size); 7649public static final native void memmove(PangoLogAttr dest, int src, int size); 7650public static final native void memmove(int dest, int[] src, int size); 7651public static final native void memmove(int dest, long[] src, int size); 7652public static final native void memmove(int dest, byte[] src, int size); 7653public static final native void memmove(int dest, char[] src, int size); 7654public static final native void memmove(int dest, double[] src, int size); 7655public static final native void memmove(int[] dest, byte[] src, int size); 7656public static final native void memmove(byte[] dest, int src, int size); 7657public static final native void memmove(char[] dest, int src, int size); 7658public static final native void memmove(int[] dest, int src, int size); 7659public static final native void memmove(int dest, int src, int size); 7660public static final native void memmove(long[] dest, int src, int size); 7661public static final native void memset(int buffer, char c, int num); 7662public static final native int _pango_attr_background_new (short red, short green, short blue); 7663public static final int pango_attr_background_new (short red, short green, short blue) { 7664 lock.lock(); 7665 try { 7666 return _pango_attr_background_new(red, green, blue); 7667 } finally { 7668 lock.unlock(); 7669 } 7670} 7671public static final native int _pango_attr_font_desc_new(int desc); 7672public static final int pango_attr_font_desc_new(int desc) { 7673 lock.lock(); 7674 try { 7675 return _pango_attr_font_desc_new(desc); 7676 } finally { 7677 lock.unlock(); 7678 } 7679} 7680public static final native int _pango_attr_foreground_new (short red, short green, short blue); 7681public static final int pango_attr_foreground_new (short red, short green, short blue) { 7682 lock.lock(); 7683 try { 7684 return _pango_attr_foreground_new(red, green, blue); 7685 } finally { 7686 lock.unlock(); 7687 } 7688} 7689public static final native int _pango_attr_shape_new(PangoRectangle ink_rect, PangoRectangle logical_rect); 7690public static final int pango_attr_shape_new(PangoRectangle ink_rect, PangoRectangle logical_rect) { 7691 lock.lock(); 7692 try { 7693 return _pango_attr_shape_new(ink_rect, logical_rect); 7694 } finally { 7695 lock.unlock(); 7696 } 7697} 7698public static final native void _pango_attr_list_insert(int list, int attr); 7699public static final void pango_attr_list_insert(int list, int attr) { 7700 lock.lock(); 7701 try { 7702 _pango_attr_list_insert(list, attr); 7703 } finally { 7704 lock.unlock(); 7705 } 7706} 7707public static final native void _pango_attr_list_change(int list, int attr); 7708public static final void pango_attr_list_change(int list, int attr) { 7709 lock.lock(); 7710 try { 7711 _pango_attr_list_change(list, attr); 7712 } finally { 7713 lock.unlock(); 7714 } 7715} 7716public static final native int _pango_attr_list_new(); 7717public static final int pango_attr_list_new() { 7718 lock.lock(); 7719 try { 7720 return _pango_attr_list_new(); 7721 } finally { 7722 lock.unlock(); 7723 } 7724} 7725public static final native void _pango_attr_list_unref(int list); 7726public static final void pango_attr_list_unref(int list) { 7727 lock.lock(); 7728 try { 7729 _pango_attr_list_unref(list); 7730 } finally { 7731 lock.unlock(); 7732 } 7733} 7734public static final native int _pango_attr_strikethrough_new(boolean strikethrough); 7735public static final int pango_attr_strikethrough_new(boolean strikethrough) { 7736 lock.lock(); 7737 try { 7738 return _pango_attr_strikethrough_new(strikethrough); 7739 } finally { 7740 lock.unlock(); 7741 } 7742} 7743public static final native int _pango_attr_underline_new(int underline); 7744public static final int pango_attr_underline_new(int underline) { 7745 lock.lock(); 7746 try { 7747 return _pango_attr_underline_new(underline); 7748 } finally { 7749 lock.unlock(); 7750 } 7751} 7752public static final native int _pango_attr_weight_new(int weight); 7753public static final int pango_attr_weight_new(int weight) { 7754 lock.lock(); 7755 try { 7756 return _pango_attr_weight_new(weight); 7757 } finally { 7758 lock.unlock(); 7759 } 7760} 7761public static final native int _pango_context_get_base_dir(int context); 7762public static final int pango_context_get_base_dir(int context) { 7763 lock.lock(); 7764 try { 7765 return _pango_context_get_base_dir(context); 7766 } finally { 7767 lock.unlock(); 7768 } 7769} 7770public static final native int _pango_context_get_language(int context); 7771public static final int pango_context_get_language(int context) { 7772 lock.lock(); 7773 try { 7774 return _pango_context_get_language(context); 7775 } finally { 7776 lock.unlock(); 7777 } 7778} 7779public static final native int _pango_context_get_metrics(int context, int desc, int language); 7780public static final int pango_context_get_metrics(int context, int desc, int language) { 7781 lock.lock(); 7782 try { 7783 return _pango_context_get_metrics(context, desc, language); 7784 } finally { 7785 lock.unlock(); 7786 } 7787} 7788public static final native void _pango_context_list_families(int context, int [] families, int[] n_families); 7789public static final void pango_context_list_families(int context, int [] families, int[] n_families) { 7790 lock.lock(); 7791 try { 7792 _pango_context_list_families(context, families, n_families); 7793 } finally { 7794 lock.unlock(); 7795 } 7796} 7797public static final native void _pango_context_set_base_dir(int context, int direction); 7798public static final void pango_context_set_base_dir(int context, int direction) { 7799 lock.lock(); 7800 try { 7801 _pango_context_set_base_dir(context, direction); 7802 } finally { 7803 lock.unlock(); 7804 } 7805} 7806public static final native void _pango_context_set_language(int context, int language); 7807public static final void pango_context_set_language(int context, int language) { 7808 lock.lock(); 7809 try { 7810 _pango_context_set_language(context, language); 7811 } finally { 7812 lock.unlock(); 7813 } 7814} 7815public static final native int _pango_font_description_copy(int desc); 7816public static final int pango_font_description_copy(int desc) { 7817 lock.lock(); 7818 try { 7819 return _pango_font_description_copy(desc); 7820 } finally { 7821 lock.unlock(); 7822 } 7823} 7824public static final native void _pango_font_description_free(int desc); 7825public static final void pango_font_description_free(int desc) { 7826 lock.lock(); 7827 try { 7828 _pango_font_description_free(desc); 7829 } finally { 7830 lock.unlock(); 7831 } 7832} 7833public static final native int _pango_font_description_from_string(byte[] str); 7834public static final int pango_font_description_from_string(byte[] str) { 7835 lock.lock(); 7836 try { 7837 return _pango_font_description_from_string(str); 7838 } finally { 7839 lock.unlock(); 7840 } 7841} 7842public static final native int _pango_font_description_get_family(int desc); 7843public static final int pango_font_description_get_family(int desc) { 7844 lock.lock(); 7845 try { 7846 return _pango_font_description_get_family(desc); 7847 } finally { 7848 lock.unlock(); 7849 } 7850} 7851public static final native int _pango_font_description_get_size(int desc); 7852public static final int pango_font_description_get_size(int desc) { 7853 lock.lock(); 7854 try { 7855 return _pango_font_description_get_size(desc); 7856 } finally { 7857 lock.unlock(); 7858 } 7859} 7860public static final native int _pango_font_description_get_style(int desc); 7861public static final int pango_font_description_get_style(int desc) { 7862 lock.lock(); 7863 try { 7864 return _pango_font_description_get_style(desc); 7865 } finally { 7866 lock.unlock(); 7867 } 7868} 7869public static final native int _pango_font_description_get_weight(int desc); 7870public static final int pango_font_description_get_weight(int desc) { 7871 lock.lock(); 7872 try { 7873 return _pango_font_description_get_weight(desc); 7874 } finally { 7875 lock.unlock(); 7876 } 7877} 7878public static final native int _pango_font_description_new(); 7879public static final int pango_font_description_new() { 7880 lock.lock(); 7881 try { 7882 return _pango_font_description_new(); 7883 } finally { 7884 lock.unlock(); 7885 } 7886} 7887public static final native void _pango_font_description_set_family(int desc, byte[] family); 7888public static final void pango_font_description_set_family(int desc, byte[] family) { 7889 lock.lock(); 7890 try { 7891 _pango_font_description_set_family(desc, family); 7892 } finally { 7893 lock.unlock(); 7894 } 7895} 7896public static final native void _pango_font_description_set_size(int desc, int size); 7897public static final void pango_font_description_set_size(int desc, int size) { 7898 lock.lock(); 7899 try { 7900 _pango_font_description_set_size(desc, size); 7901 } finally { 7902 lock.unlock(); 7903 } 7904} 7905public static final native void _pango_font_description_set_stretch(int desc, int stretch); 7906public static final void pango_font_description_set_stretch(int desc, int stretch) { 7907 lock.lock(); 7908 try { 7909 _pango_font_description_set_stretch(desc, stretch); 7910 } finally { 7911 lock.unlock(); 7912 } 7913} 7914public static final native void _pango_font_description_set_style(int desc, int weight); 7915public static final void pango_font_description_set_style(int desc, int weight) { 7916 lock.lock(); 7917 try { 7918 _pango_font_description_set_style(desc, weight); 7919 } finally { 7920 lock.unlock(); 7921 } 7922} 7923public static final native void _pango_font_description_set_weight(int desc, int weight); 7924public static final void pango_font_description_set_weight(int desc, int weight) { 7925 lock.lock(); 7926 try { 7927 _pango_font_description_set_weight(desc, weight); 7928 } finally { 7929 lock.unlock(); 7930 } 7931} 7932public static final native int _pango_font_description_to_string(int desc); 7933public static final int pango_font_description_to_string(int desc) { 7934 lock.lock(); 7935 try { 7936 return _pango_font_description_to_string(desc); 7937 } finally { 7938 lock.unlock(); 7939 } 7940} 7941public static final native int _pango_font_face_describe(int face); 7942public static final int pango_font_face_describe(int face) { 7943 lock.lock(); 7944 try { 7945 return _pango_font_face_describe(face); 7946 } finally { 7947 lock.unlock(); 7948 } 7949} 7950public static final native int _pango_font_family_get_name(int family); 7951public static final int pango_font_family_get_name(int family) { 7952 lock.lock(); 7953 try { 7954 return _pango_font_family_get_name(family); 7955 } finally { 7956 lock.unlock(); 7957 } 7958} 7959public static final native void _pango_font_family_list_faces(int family, int [] faces, int[] n_faces); 7960public static final void pango_font_family_list_faces(int family, int [] faces, int[] n_faces) { 7961 lock.lock(); 7962 try { 7963 _pango_font_family_list_faces(family, faces, n_faces); 7964 } finally { 7965 lock.unlock(); 7966 } 7967} 7968public static final native int _pango_font_get_metrics(int font, int language); 7969public static final int pango_font_get_metrics(int font, int language) { 7970 lock.lock(); 7971 try { 7972 return _pango_font_get_metrics(font, language); 7973 } finally { 7974 lock.unlock(); 7975 } 7976} 7977public static final native int _pango_font_metrics_get_approximate_char_width(int metrics); 7978public static final int pango_font_metrics_get_approximate_char_width(int metrics) { 7979 lock.lock(); 7980 try { 7981 return _pango_font_metrics_get_approximate_char_width(metrics); 7982 } finally { 7983 lock.unlock(); 7984 } 7985} 7986public static final native int _pango_font_metrics_get_ascent(int metrics); 7987public static final int pango_font_metrics_get_ascent(int metrics) { 7988 lock.lock(); 7989 try { 7990 return _pango_font_metrics_get_ascent(metrics); 7991 } finally { 7992 lock.unlock(); 7993 } 7994} 7995public static final native int _pango_font_metrics_get_descent(int metrics); 7996public static final int pango_font_metrics_get_descent(int metrics) { 7997 lock.lock(); 7998 try { 7999 return _pango_font_metrics_get_descent(metrics); 8000 } finally { 8001 lock.unlock(); 8002 } 8003} 8004public static final native void _pango_font_metrics_unref(int metrics); 8005public static final void pango_font_metrics_unref(int metrics) { 8006 lock.lock(); 8007 try { 8008 _pango_font_metrics_unref(metrics); 8009 } finally { 8010 lock.unlock(); 8011 } 8012} 8013public static final native int _pango_language_from_string(byte[] language); 8014public static final int pango_language_from_string(byte[] language) { 8015 lock.lock(); 8016 try { 8017 return _pango_language_from_string(language); 8018 } finally { 8019 lock.unlock(); 8020 } 8021} 8022public static final native void _pango_layout_context_changed (int layout); 8023public static final void pango_layout_context_changed (int layout) { 8024 lock.lock(); 8025 try { 8026 _pango_layout_context_changed(layout); 8027 } finally { 8028 lock.unlock(); 8029 } 8030} 8031public static final native int _pango_layout_get_alignment(int layout); 8032public static final int pango_layout_get_alignment(int layout) { 8033 lock.lock(); 8034 try { 8035 return _pango_layout_get_alignment(layout); 8036 } finally { 8037 lock.unlock(); 8038 } 8039} 8040public static final native int _pango_layout_get_attributes(int layout); 8041public static final int pango_layout_get_attributes(int layout) { 8042 lock.lock(); 8043 try { 8044 return _pango_layout_get_attributes(layout); 8045 } finally { 8046 lock.unlock(); 8047 } 8048} 8049public static final native int _pango_layout_get_iter(int layout); 8050public static final int pango_layout_get_iter(int layout) { 8051 lock.lock(); 8052 try { 8053 return _pango_layout_get_iter(layout); 8054 } finally { 8055 lock.unlock(); 8056 } 8057} 8058public static final native int _pango_layout_get_line(int layout, int line); 8059public static final int pango_layout_get_line(int layout, int line) { 8060 lock.lock(); 8061 try { 8062 return _pango_layout_get_line(layout, line); 8063 } finally { 8064 lock.unlock(); 8065 } 8066} 8067public static final native int _pango_layout_get_line_count(int layout); 8068public static final int pango_layout_get_line_count(int layout) { 8069 lock.lock(); 8070 try { 8071 return _pango_layout_get_line_count(layout); 8072 } finally { 8073 lock.unlock(); 8074 } 8075} 8076public static final native void _pango_layout_get_log_attrs(int layout, int [] attrs, int[] n_attrs); 8077public static final void pango_layout_get_log_attrs(int layout, int [] attrs, int[] n_attrs) { 8078 lock.lock(); 8079 try { 8080 _pango_layout_get_log_attrs(layout, attrs, n_attrs); 8081 } finally { 8082 lock.unlock(); 8083 } 8084} 8085public static final native void _pango_layout_get_size(int layout, int[] width, int[] height); 8086public static final void pango_layout_get_size(int layout, int[] width, int[] height) { 8087 lock.lock(); 8088 try { 8089 _pango_layout_get_size(layout, width, height); 8090 } finally { 8091 lock.unlock(); 8092 } 8093} 8094public static final native int _pango_layout_get_spacing(int layout); 8095public static final int pango_layout_get_spacing(int layout) { 8096 lock.lock(); 8097 try { 8098 return _pango_layout_get_spacing(layout); 8099 } finally { 8100 lock.unlock(); 8101 } 8102} 8103public static final native int _pango_layout_get_tabs(int layout); 8104public static final int pango_layout_get_tabs(int layout) { 8105 lock.lock(); 8106 try { 8107 return _pango_layout_get_tabs(layout); 8108 } finally { 8109 lock.unlock(); 8110 } 8111} 8112public static final native int _pango_layout_get_text(int layout); 8113public static final int pango_layout_get_text(int layout) { 8114 lock.lock(); 8115 try { 8116 return _pango_layout_get_text(layout); 8117 } finally { 8118 lock.unlock(); 8119 } 8120} 8121public static final native int _pango_layout_get_width(int layout); 8122public static final int pango_layout_get_width(int layout) { 8123 lock.lock(); 8124 try { 8125 return _pango_layout_get_width(layout); 8126 } finally { 8127 lock.unlock(); 8128 } 8129} 8130public static final native void _pango_layout_index_to_pos(int layout, int index, PangoRectangle pos); 8131public static final void pango_layout_index_to_pos(int layout, int index, PangoRectangle pos) { 8132 lock.lock(); 8133 try { 8134 _pango_layout_index_to_pos(layout, index, pos); 8135 } finally { 8136 lock.unlock(); 8137 } 8138} 8139public static final native void _pango_layout_iter_free(int iter); 8140public static final void pango_layout_iter_free(int iter) { 8141 lock.lock(); 8142 try { 8143 _pango_layout_iter_free(iter); 8144 } finally { 8145 lock.unlock(); 8146 } 8147} 8148public static final native void _pango_layout_iter_get_line_extents(int iter, PangoRectangle ink_rect, PangoRectangle logical_rect); 8149public static final void pango_layout_iter_get_line_extents(int iter, PangoRectangle ink_rect, PangoRectangle logical_rect) { 8150 lock.lock(); 8151 try { 8152 _pango_layout_iter_get_line_extents(iter, ink_rect, logical_rect); 8153 } finally { 8154 lock.unlock(); 8155 } 8156} 8157public static final native int _pango_layout_iter_get_index(int iter); 8158public static final int pango_layout_iter_get_index(int iter) { 8159 lock.lock(); 8160 try { 8161 return _pango_layout_iter_get_index(iter); 8162 } finally { 8163 lock.unlock(); 8164 } 8165} 8166public static final native int _pango_layout_iter_get_run(int iter); 8167public static final int pango_layout_iter_get_run(int iter) { 8168 lock.lock(); 8169 try { 8170 return _pango_layout_iter_get_run(iter); 8171 } finally { 8172 lock.unlock(); 8173 } 8174} 8175public static final native boolean _pango_layout_iter_next_line(int iter); 8176public static final boolean pango_layout_iter_next_line(int iter) { 8177 lock.lock(); 8178 try { 8179 return _pango_layout_iter_next_line(iter); 8180 } finally { 8181 lock.unlock(); 8182 } 8183} 8184public static final native boolean _pango_layout_iter_next_run(int iter); 8185public static final boolean pango_layout_iter_next_run(int iter) { 8186 lock.lock(); 8187 try { 8188 return _pango_layout_iter_next_run(iter); 8189 } finally { 8190 lock.unlock(); 8191 } 8192} 8193public static final native void _pango_layout_line_get_extents(int line, PangoRectangle ink_rect, PangoRectangle logical_rect); 8194public static final void pango_layout_line_get_extents(int line, PangoRectangle ink_rect, PangoRectangle logical_rect) { 8195 lock.lock(); 8196 try { 8197 _pango_layout_line_get_extents(line, ink_rect, logical_rect); 8198 } finally { 8199 lock.unlock(); 8200 } 8201} 8202public static final native boolean _pango_layout_line_x_to_index(int line, int x_pos, int[] index_, int[] trailing); 8203public static final boolean pango_layout_line_x_to_index(int line, int x_pos, int[] index_, int[] trailing) { 8204 lock.lock(); 8205 try { 8206 return _pango_layout_line_x_to_index(line, x_pos, index_, trailing); 8207 } finally { 8208 lock.unlock(); 8209 } 8210} 8211public static final native int _pango_layout_new(int context); 8212public static final int pango_layout_new(int context) { 8213 lock.lock(); 8214 try { 8215 return _pango_layout_new(context); 8216 } finally { 8217 lock.unlock(); 8218 } 8219} 8220public static final native void _pango_layout_set_alignment (int layout, int alignment); 8221public static final void pango_layout_set_alignment (int layout, int alignment) { 8222 lock.lock(); 8223 try { 8224 _pango_layout_set_alignment(layout, alignment); 8225 } finally { 8226 lock.unlock(); 8227 } 8228} 8229public static final native void _pango_layout_set_attributes(int layout, int attrs); 8230public static final void pango_layout_set_attributes(int layout, int attrs) { 8231 lock.lock(); 8232 try { 8233 _pango_layout_set_attributes(layout, attrs); 8234 } finally { 8235 lock.unlock(); 8236 } 8237} 8238public static final native void _pango_layout_set_font_description(int context, int descr); 8239public static final void pango_layout_set_font_description(int context, int descr) { 8240 lock.lock(); 8241 try { 8242 _pango_layout_set_font_description(context, descr); 8243 } finally { 8244 lock.unlock(); 8245 } 8246} 8247public static final native void _pango_layout_set_single_paragraph_mode(int context, boolean setting); 8248public static final void pango_layout_set_single_paragraph_mode(int context, boolean setting) { 8249 lock.lock(); 8250 try { 8251 _pango_layout_set_single_paragraph_mode(context, setting); 8252 } finally { 8253 lock.unlock(); 8254 } 8255} 8256public static final native void _pango_layout_set_spacing(int layout, int spacing); 8257public static final void pango_layout_set_spacing(int layout, int spacing) { 8258 lock.lock(); 8259 try { 8260 _pango_layout_set_spacing(layout, spacing); 8261 } finally { 8262 lock.unlock(); 8263 } 8264} 8265public static final native void _pango_layout_set_tabs(int layout, int tabs); 8266public static final void pango_layout_set_tabs(int layout, int tabs) { 8267 lock.lock(); 8268 try { 8269 _pango_layout_set_tabs(layout, tabs); 8270 } finally { 8271 lock.unlock(); 8272 } 8273} 8274public static final native void _pango_layout_set_text(int layout, byte[] text, int length); 8275public static final void pango_layout_set_text(int layout, byte[] text, int length) { 8276 lock.lock(); 8277 try { 8278 _pango_layout_set_text(layout, text, length); 8279 } finally { 8280 lock.unlock(); 8281 } 8282} 8283public static final native void _pango_layout_set_width(int layout, int width); 8284public static final void pango_layout_set_width(int layout, int width) { 8285 lock.lock(); 8286 try { 8287 _pango_layout_set_width(layout, width); 8288 } finally { 8289 lock.unlock(); 8290 } 8291} 8292public static final native void _pango_layout_set_wrap (int layout, int wrap); 8293public static final void pango_layout_set_wrap (int layout, int wrap) { 8294 lock.lock(); 8295 try { 8296 _pango_layout_set_wrap(layout, wrap); 8297 } finally { 8298 lock.unlock(); 8299 } 8300} 8301public static final native boolean _pango_layout_xy_to_index(int layout, int x, int y, int[] index, int[] trailing); 8302public static final boolean pango_layout_xy_to_index(int layout, int x, int y, int[] index, int[] trailing) { 8303 lock.lock(); 8304 try { 8305 return _pango_layout_xy_to_index(layout, x, y, index, trailing); 8306 } finally { 8307 lock.unlock(); 8308 } 8309} 8310public static final native int _pango_tab_array_get_size(int tab_array); 8311public static final int pango_tab_array_get_size(int tab_array) { 8312 lock.lock(); 8313 try { 8314 return _pango_tab_array_get_size(tab_array); 8315 } finally { 8316 lock.unlock(); 8317 } 8318} 8319public static final native void _pango_tab_array_get_tabs(int tab_array, int [] alignments, int [] locations); 8320public static final void pango_tab_array_get_tabs(int tab_array, int [] alignments, int [] locations) { 8321 lock.lock(); 8322 try { 8323 _pango_tab_array_get_tabs(tab_array, alignments, locations); 8324 } finally { 8325 lock.unlock(); 8326 } 8327} 8328public static final native void _pango_tab_array_free(int tab_array); 8329public static final void pango_tab_array_free(int tab_array) { 8330 lock.lock(); 8331 try { 8332 _pango_tab_array_free(tab_array); 8333 } finally { 8334 lock.unlock(); 8335 } 8336} 8337public static final native int _pango_tab_array_new(int initial_size, boolean positions_in_pixels); 8338public static final int pango_tab_array_new(int initial_size, boolean positions_in_pixels) { 8339 lock.lock(); 8340 try { 8341 return _pango_tab_array_new(initial_size, positions_in_pixels); 8342 } finally { 8343 lock.unlock(); 8344 } 8345} 8346public static final native void _pango_tab_array_set_tab(int tab_array, int tab_index, int alignment, int location); 8347public static final void pango_tab_array_set_tab(int tab_array, int tab_index, int alignment, int location) { 8348 lock.lock(); 8349 try { 8350 _pango_tab_array_set_tab(tab_array, tab_index, alignment, location); 8351 } finally { 8352 lock.unlock(); 8353 } 8354} 8355} 8356 | Popular Tags |