| /******************************************************************************* |
| * Copyright (c) 2000, 2017 IBM Corporation and others. All rights reserved. |
| * The contents of this file are made available under the terms |
| * of the GNU Lesser General Public License (LGPL) Version 2.1 that |
| * accompanies this distribution (lgpl-v21.txt). The LGPL is also |
| * available at http://www.gnu.org/licenses/lgpl.html. If the version |
| * of the LGPL at http://www.gnu.org is different to the version of |
| * the LGPL accompanying this distribution and there is any conflict |
| * between the two license versions, the terms of the LGPL accompanying |
| * this distribution shall govern. |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.swt.internal.gtk; |
| |
| |
| import org.eclipse.swt.internal.*; |
| import org.eclipse.swt.internal.cairo.*; |
| |
| public class OS extends C { |
| /** OS Constants */ |
| public static final boolean IsAIX, IsSunOS, IsLinux, IsHPUX, IsWin32, BIG_ENDIAN; |
| static { |
| |
| /* Initialize the OS flags and locale constants */ |
| String osName = System.getProperty ("os.name"); |
| boolean isAIX = false, isSunOS = false, isLinux = false, isHPUX = false, isWin32 = false; |
| if (osName.equals ("Linux")) isLinux = true; |
| if (osName.equals ("AIX")) isAIX = true; |
| if (osName.equals ("Solaris")) isSunOS = true; |
| if (osName.equals ("SunOS")) isSunOS = true; |
| if (osName.equals ("HP-UX")) isHPUX = true; |
| if (osName.startsWith("Windows")) isWin32 = true; |
| IsAIX = isAIX; IsSunOS = isSunOS; IsLinux = isLinux; IsHPUX = isHPUX; IsWin32 = isWin32; |
| |
| byte[] buffer = new byte[4]; |
| long /*int*/ ptr = OS.malloc(4); |
| OS.memmove(ptr, new int[]{1}, 4); |
| OS.memmove(buffer, ptr, 1); |
| OS.free(ptr); |
| BIG_ENDIAN = buffer[0] == 0; |
| } |
| |
| /** Initialization; load native libraries */ |
| static { |
| if (!OS.IsWin32) { |
| // only applicable for X11 but OS.isX11() is not available yet |
| String scalingProperty = "GDK_SCALE"; |
| OS.setenv(ascii(scalingProperty), ascii("1"), 1); |
| } |
| String propertyName = "SWT_GTK3"; |
| String gtk3 = getEnvironmentalVariable (propertyName); |
| if (gtk3 != null && gtk3.equals("0")) { |
| try { |
| Library.loadLibrary("swt-pi"); |
| } catch (Throwable e) { |
| Library.loadLibrary("swt-pi3"); |
| } |
| } else { |
| try { |
| Library.loadLibrary("swt-pi3"); |
| } catch (Throwable e) { |
| Library.loadLibrary("swt-pi"); |
| } |
| } |
| } |
| |
| //Add ability to debug gtk warnings for SWT snippets via SWT_FATAL_WARNINGS=1 |
| // env variable. Please see Eclipse bug 471477 |
| static { |
| String propertyName = "SWT_FATAL_WARNINGS"; |
| String swt_fatal_warnings = getEnvironmentalVariable (propertyName); |
| |
| if (swt_fatal_warnings != null && swt_fatal_warnings.equals("1")) { |
| OS.swt_debug_on_fatal_warnings (); |
| } |
| } |
| |
| private static String getEnvironmentalVariable (String envVarName) { |
| String envVarValue = null; |
| long /*int*/ ptr = OS.getenv(ascii(envVarName)); |
| if (ptr != 0) { |
| int length = OS.strlen(ptr); |
| byte[] buffer = new byte[length]; |
| OS.memmove(buffer, ptr, length); |
| char[] convertedChar = new char[buffer.length]; |
| for (int i = 0; i < buffer.length; i++) { |
| convertedChar[i]=(char)buffer[i]; |
| } |
| envVarValue = new String(convertedChar); |
| } |
| return envVarValue; |
| } |
| |
| /** Constants */ |
| public static final long /*int*/ AnyPropertyType = 0; |
| public static final int G_FILE_TEST_IS_DIR = 1 << 2; |
| public static final int G_FILE_TEST_IS_EXECUTABLE = 1 << 3; |
| public static final int G_SIGNAL_MATCH_FUNC = 1 << 3; |
| public static final int G_SIGNAL_MATCH_DATA = 1 << 4; |
| public static final int G_SIGNAL_MATCH_ID = 1 << 0; |
| public static final int GDK_2BUTTON_PRESS = 0x5; |
| public static final int GDK_3BUTTON_PRESS = 0x6; |
| public static final int GDK_ACTION_COPY = 1 << 1; |
| public static final int GDK_ACTION_MOVE = 1 << 2; |
| public static final int GDK_ACTION_LINK = 1 << 3; |
| public static final int GDK_Alt_L = 0xffe9; |
| public static final int GDK_Alt_R = 0xffea; |
| public static final int GDK_AND = 4; |
| public static final int GDK_BackSpace = 0xff08; |
| public static final int GDK_BOTTOM_LEFT_CORNER = 0xc; |
| public static final int GDK_BOTTOM_RIGHT_CORNER = 0xe; |
| public static final int GDK_BOTTOM_SIDE = 0x10; |
| public static final int GDK_BUTTON1_MASK = 0x100; |
| public static final int GDK_BUTTON2_MASK = 0x200; |
| public static final int GDK_BUTTON3_MASK = 0x400; |
| public static final int GDK_BUTTON_MOTION_MASK = 1 << 4; |
| public static final int GDK_BUTTON1_MOTION_MASK = 1 << 5; |
| public static final int GDK_BUTTON2_MOTION_MASK = 1 << 6; |
| public static final int GDK_BUTTON3_MOTION_MASK = 1 << 7; |
| public static final int GDK_BUTTON_PRESS = 0x4; |
| public static final int GDK_BUTTON_PRESS_MASK = 0x100; |
| public static final int GDK_BUTTON_RELEASE = 0x7; |
| public static final int GDK_BUTTON_RELEASE_MASK = 0x200; |
| public static final int GDK_CAP_BUTT = 0x1; |
| public static final int GDK_CAP_PROJECTING = 3; |
| public static final int GDK_CAP_ROUND = 0x2; |
| public static final int GDK_COLORSPACE_RGB = 0; |
| public static final int GDK_CONFIGURE = 13; |
| public static final int GDK_CONTROL_MASK = 0x4; |
| public static final int GDK_COPY = 0x0; |
| public static final int GDK_CROSS = 0x1e; |
| public static final int GDK_CROSSING_NORMAL = 0; |
| public static final int GDK_CROSSING_GRAB = 1; |
| public static final int GDK_CROSSING_UNGRAB = 2; |
| public static final int GDK_Break = 0xff6b; |
| public static final int GDK_Cancel = 0xff69; |
| public static final int GDK_Caps_Lock = 0xffE5; |
| public static final int GDK_Clear = 0xff0B; |
| public static final int GDK_Control_L = 0xffe3; |
| public static final int GDK_Control_R = 0xffe4; |
| public static final int GDK_CURRENT_TIME = 0x0; |
| public static final int GDK_DECOR_BORDER = 0x2; |
| public static final int GDK_DECOR_MAXIMIZE = 0x40; |
| public static final int GDK_DECOR_MENU = 0x10; |
| public static final int GDK_DECOR_MINIMIZE = 0x20; |
| public static final int GDK_DECOR_RESIZEH = 0x4; |
| public static final int GDK_DECOR_TITLE = 0x8; |
| public static final int GDK_DOUBLE_ARROW = 0x2a; |
| public static final int GDK_Delete = 0xffff; |
| public static final int GDK_Down = 0xff54; |
| public static final int GDK_ENTER_NOTIFY_MASK = 0x1000; |
| public static final int GDK_ENTER_NOTIFY = 10; |
| public static final int GDK_EVEN_ODD_RULE = 0; |
| public static final int GTK_EXPANDER_COLAPSED = 0; |
| public static final int GTK_EXPANDER_SEMI_COLLAPSED = 1; |
| public static final int GTK_EXPANDER_SEMI_EXPANDED = 2; |
| public static final int GTK_EXPANDER_EXPANDED = 3; |
| public static final int GDK_EXPOSE = 2; |
| public static final int GDK_EXPOSURE_MASK = 0x2; |
| public static final int GDK_End = 0xff57; |
| public static final int GDK_Escape = 0xff1b; |
| public static final int GDK_ISO_Enter = 0xfe34; |
| public static final int GDK_F1 = 0xffbe; |
| public static final int GDK_F10 = 0xffc7; |
| public static final int GDK_F11 = 0xffc8; |
| public static final int GDK_F12 = 0xffc9; |
| public static final int GDK_F13 = 0xffca; |
| public static final int GDK_F14 = 0xffcb; |
| public static final int GDK_F15 = 0xffcc; |
| public static final int GDK_F16 = 0xffcd; |
| public static final int GDK_F17 = 0xffce; |
| public static final int GDK_F18 = 0xffcf; |
| public static final int GDK_F19 = 0xffd0; |
| public static final int GDK_F20 = 0xffd1; |
| public static final int GDK_F2 = 0xffbf; |
| public static final int GDK_F3 = 0xffc0; |
| public static final int GDK_F4 = 0xffc1; |
| public static final int GDK_F5 = 0xffc2; |
| public static final int GDK_F6 = 0xffc3; |
| public static final int GDK_F7 = 0xffc4; |
| public static final int GDK_F8 = 0xffc5; |
| public static final int GDK_F9 = 0xffc6; |
| public static final int GDK_FLEUR = 0x34; |
| public static final int GDK_FOCUS_CHANGE = 0xc; |
| public static final int GDK_FOCUS_CHANGE_MASK = 0x4000; |
| public static final int GDK_GC_FOREGROUND = 0x1; |
| public static final int GDK_FUNC_ALL = 1; |
| public static final int GDK_FUNC_RESIZE = 2; |
| public static final int GDK_FUNC_MOVE = 4; |
| public static final int GDK_FUNC_MINIMIZE = 8; |
| public static final int GDK_FUNC_MAXIMIZE = 16; |
| public static final int GDK_FUNC_CLOSE = 32; |
| public static final int GDK_GC_CLIP_MASK = 0x80; |
| public static final int GDK_GC_CLIP_X_ORIGIN = 0x800; |
| public static final int GDK_GC_CLIP_Y_ORIGIN = 0x1000; |
| public static final int GDK_GC_LINE_WIDTH = 0x4000; |
| public static final int GDK_GC_LINE_STYLE = 0x8000; |
| public static final int GDK_GC_CAP_STYLE = 0x10000; |
| public static final int GDK_GC_JOIN_STYLE = 0x20000; |
| public static final int GDK_GRAB_SUCCESS = 0x0; |
| public static final int GDK_HAND2 = 0x3c; |
| public static final int GDK_Help = 0xFF6A; |
| public static final int GDK_HINT_MIN_SIZE = 1 << 1; |
| public static final int GDK_Home = 0xff50; |
| public static final int GDK_INCLUDE_INFERIORS = 0x1; |
| public static final int GDK_INPUT_ONLY = 1; |
| public static final int GDK_INTERP_BILINEAR = 0x2; |
| public static final int GDK_Insert = 0xff63; |
| public static final int GDK_ISO_Left_Tab = 0xfe20; |
| public static final int GDK_JOIN_MITER = 0x0; |
| public static final int GDK_JOIN_ROUND = 0x1; |
| public static final int GDK_JOIN_BEVEL = 0x2; |
| public static final int GDK_KEY_PRESS = 0x8; |
| public static final int GDK_KEY_PRESS_MASK = 0x400; |
| public static final int GDK_KEY_RELEASE = 0x9; |
| public static final int GDK_KEY_RELEASE_MASK = 0x800; |
| public static final int GDK_KP_0 = 0xffb0; |
| public static final int GDK_KP_1 = 0xffb1; |
| public static final int GDK_KP_2 = 0xffb2; |
| public static final int GDK_KP_3 = 0xffb3; |
| public static final int GDK_KP_4 = 0xffb4; |
| public static final int GDK_KP_5 = 0xffb5; |
| public static final int GDK_KP_6 = 0xffb6; |
| public static final int GDK_KP_7 = 0xffb7; |
| public static final int GDK_KP_8 = 0xffb8; |
| public static final int GDK_KP_9 = 0xffb9; |
| public static final int GDK_KP_Add = 0xffab; |
| public static final int GDK_KP_Decimal = 0xffae; |
| public static final int GDK_KP_Delete = 0xFF9F; |
| public static final int GDK_KP_Divide = 0xffaf; |
| public static final int GDK_KP_Down = 0xFF99; |
| public static final int GDK_KP_End = 0xFF9C; |
| public static final int GDK_KP_Enter = 0xff8d; |
| public static final int GDK_KP_Equal = 0xffbd; |
| public static final int GDK_KP_Home = 0xFF95; |
| public static final int GDK_KP_Insert = 0xFF9E; |
| public static final int GDK_KP_Left = 0xFF96; |
| public static final int GDK_KP_Multiply = 0xffaa; |
| public static final int GDK_KP_Page_Down = 0xFF9B; |
| public static final int GDK_KP_Page_Up = 0xFF9A; |
| public static final int GDK_KP_Right = 0xFF98; |
| public static final int GDK_KP_Subtract = 0xffad; |
| public static final int GDK_KP_Up = 0xFF97; |
| public static final int GDK_LEAVE_NOTIFY = 11; |
| public static final int GDK_LEAVE_NOTIFY_MASK = 0x2000; |
| public static final int GDK_LEFT_PTR = 0x44; |
| public static final int GDK_LEFT_SIDE = 0x46; |
| public static final int GDK_LINE_ON_OFF_DASH = 0x1; |
| public static final int GDK_LINE_SOLID = 0x0; |
| public static final int GDK_Linefeed = 0xff0A; |
| public static final int GDK_LSB_FIRST = 0x0; |
| public static final int GDK_Left = 0xff51; |
| public static final int GDK_Meta_L = 0xFFE7; |
| public static final int GDK_Meta_R = 0xFFE8; |
| public static final int GDK_MAP = 14; |
| public static final int GDK_MOD1_MASK = 0x8; //usually 'alt' modifier. |
| public static final int GDK_SUPER_MASK = 0x4000000; |
| public static final int GDK_HYPER_MASK = 0x8000000; |
| public static final int GDK_META_MASK = 0x10000000; |
| public static final int GDK_MOTION_NOTIFY = 0x3; |
| public static final int GDK_NO_EXPOSE = 30; |
| public static final int GDK_NONE = 0; |
| public static final int GDK_NOTIFY_INFERIOR = 2; |
| public static final int GDK_Num_Lock = 0xFF7F; |
| public static final int GDK_OVERLAP_RECTANGLE_OUT = 0x1; |
| public static final int GDK_OWNERSHIP_NONE = 0; |
| public static final int GDK_PIXBUF_ALPHA_BILEVEL = 0x0; |
| public static final int GDK_POINTER_MOTION_HINT_MASK = 0x8; |
| public static final int GDK_POINTER_MOTION_MASK = 0x4; |
| public static final int GDK_PROPERTY_NOTIFY = 16; |
| public static final int GDK_PROPERTY_CHANGE_MASK = 1 << 16; |
| public static final int GDK_Page_Down = 0xff56; |
| public static final int GDK_Page_Up = 0xff55; |
| public static final int GDK_Pause = 0xff13; |
| public static final int GDK_Print = 0xff61; |
| public static final int GDK_QUESTION_ARROW = 0x5c; |
| public static final int GDK_RGB_DITHER_NORMAL = 0x1; |
| public static final int GDK_RIGHT_SIDE = 0x60; |
| public static final int GDK_Return = 0xff0d; |
| public static final int GDK_Right = 0xff53; |
| public static final int GDK_space = 0x20; |
| public static final int GDK_SB_H_DOUBLE_ARROW = 0x6c; |
| public static final int GDK_SB_UP_ARROW = 0x72; |
| public static final int GDK_SB_V_DOUBLE_ARROW = 0x74; |
| public static final int GDK_SCROLL_UP = 0; |
| public static final int GDK_SCROLL_DOWN = 1; |
| public static final int GDK_SCROLL_LEFT = 2; |
| public static final int GDK_SCROLL_RIGHT = 3; |
| public static final int GDK_SCROLL_SMOOTH = 4; |
| public static final int GDK_SCROLL_MASK = 1 << 21; |
| public static final int GDK_SMOOTH_SCROLL_MASK = 1 << 23; |
| public static final int GDK_SELECTION_CLEAR = 17; |
| public static final int GDK_SELECTION_NOTIFY = 19; |
| public static final int GDK_SELECTION_REQUEST = 18; |
| public static final int GDK_SHIFT_MASK = 0x1; |
| public static final int GDK_SIZING = 0x78; |
| public static final int GDK_STIPPLED = 0x2; |
| public static final int GDK_TILED = 0x1; |
| public static final int GDK_Shift_L = 0xffe1; |
| public static final int GDK_Shift_R = 0xffe2; |
| public static final int GDK_SCROLL = 31; |
| public static final int GDK_Scroll_Lock = 0xff14; |
| public static final int GDK_TOP_LEFT_CORNER = 0x86; |
| public static final int GDK_TOP_RIGHT_CORNER = 0x88; |
| public static final int GDK_TOP_SIDE = 0x8a; |
| public static final int GDK_Tab = 0xff09; |
| public static final int GDK_Up = 0xff52; |
| public static final int GDK_WATCH = 0x96; |
| public static final int GDK_XOR = 0x2; |
| public static final int GDK_XTERM = 0x98; |
| public static final int GDK_X_CURSOR = 0x0; |
| public static final int GDK_WINDOW_CHILD = 2; |
| public static final int GDK_WINDOW_STATE = 32; |
| public static final int GDK_WINDOW_STATE_ICONIFIED = 1 << 1; |
| public static final int GDK_WINDOW_STATE_MAXIMIZED = 1 << 2; |
| public static final int GDK_WINDOW_STATE_FULLSCREEN = 1 << 4; |
| public static final int GTK_ACCEL_VISIBLE = 0x1; |
| public static final int GTK_ARROW_DOWN = 0x1; //GtkArrowType Enum. In general, for gtk3 GtkAlign enum is favored. |
| public static final int GTK_ARROW_LEFT = 0x2; |
| public static final int GTK_ARROW_RIGHT = 0x3; |
| public static final int GTK_ARROW_UP = 0x0; |
| public static final int GTK_ALIGN_FILL = 0x0; //Gtk3 GtkAlign Enum |
| public static final int GTK_ALIGN_START = 0x1; |
| public static final int GTK_ALIGN_END = 0x2; |
| public static final int GTK_ALIGN_CENTER = 0x3; |
| public static final int GTK_ALIGN_BASELINE = 0x4; |
| public static final int GTK_CALENDAR_SHOW_HEADING = 1 << 0; |
| public static final int GTK_CALENDAR_SHOW_DAY_NAMES = 1 << 1; |
| public static final int GTK_CALENDAR_NO_MONTH_CHANGE = 1 << 2; |
| public static final int GTK_CALENDAR_SHOW_WEEK_NUMBERS = 1 << 3; |
| public static final int GTK_CALENDAR_WEEK_START_MONDAY = 1 << 4; |
| public static final int GTK_CAN_DEFAULT = 0x2000; |
| public static final int GTK_CAN_FOCUS = 0x800; |
| public static final int GTK_CELL_RENDERER_MODE_ACTIVATABLE = 1; |
| public static final int GTK_CELL_RENDERER_SELECTED = 1 << 0; |
| public static final int GTK_CELL_RENDERER_FOCUSED = 1 << 4; |
| public static final int GTK_CLIST_SHOW_TITLES = 0x4; |
| public static final int GTK_CORNER_TOP_LEFT = 0x0; |
| public static final int GTK_CORNER_TOP_RIGHT = 0x2; |
| public static final int GTK_DIALOG_DESTROY_WITH_PARENT = 1 << 1; |
| public static final int GTK_DIALOG_MODAL = 1 << 0; |
| public static final int GTK_DIR_TAB_FORWARD = 0; |
| public static final int GTK_DIR_TAB_BACKWARD = 1; |
| public static final int GTK_ENTRY_ICON_PRIMARY = 0; |
| public static final int GTK_ENTRY_ICON_SECONDARY = 1; |
| public static final int GTK_FILE_CHOOSER_ACTION_OPEN = 0; |
| public static final int GTK_FILE_CHOOSER_ACTION_SAVE = 1; |
| public static final int GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER = 2; |
| public static final int GTK_FRAME_LABEL_PAD = 1; |
| public static final int GTK_FRAME_LABEL_SIDE_PAD = 2; |
| public static final int GTK_HAS_FOCUS = 1 << 12; |
| public static final int GTK_ICON_SIZE_MENU = 1; |
| public static final int GTK_ICON_SIZE_SMALL_TOOLBAR = 2; |
| public static final int GTK_ICON_SIZE_LARGE_TOOLBAR = 3; |
| public static final int GTK_ICON_SIZE_DIALOG = 6; |
| public static final int GTK_ICON_LOOKUP_FORCE_SIZE = 4; |
| public static final int GTK_JUSTIFY_CENTER = 0x2; |
| public static final int GTK_JUSTIFY_LEFT = 0x0; |
| public static final int GTK_JUSTIFY_RIGHT = 0x1; |
| public static final int GTK_MAPPED = 1 << 7; |
| public static final int GTK_MESSAGE_INFO = 0; |
| public static final int GTK_MESSAGE_WARNING = 1; |
| public static final int GTK_MESSAGE_QUESTION = 2; |
| public static final int GTK_MESSAGE_ERROR = 3; |
| public static final int GTK_MOVEMENT_VISUAL_POSITIONS = 1; |
| public static final int GTK_NO_WINDOW = 1 << 5; |
| public static final int GTK_ORIENTATION_HORIZONTAL = 0x0; |
| public static final int GTK_ORIENTATION_VERTICAL = 0x1; |
| public static final int GTK_PACK_END = 1; |
| public static final int GTK_PACK_START = 0; |
| public static final int GTK_PAGE_ORIENTATION_PORTRAIT = 0; |
| public static final int GTK_PAGE_ORIENTATION_LANDSCAPE = 1; |
| public static final int GTK_POLICY_ALWAYS = 0x0; |
| public static final int GTK_POLICY_AUTOMATIC = 0x1; |
| public static final int GTK_POLICY_NEVER = 0x2; |
| public static final int GTK_POLICY_EXTERNAL = 0x3; |
| public static final int GTK_POS_TOP = 0x2; |
| public static final int GTK_POS_BOTTOM = 0x3; |
| public static final int GTK_PRINT_CAPABILITY_PAGE_SET = 1 << 0; |
| public static final int GTK_PRINT_CAPABILITY_COPIES = 1 << 1; |
| public static final int GTK_PRINT_CAPABILITY_COLLATE = 1 << 2; |
| public static final int GTK_PRINT_CAPABILITY_REVERSE = 1 << 3; |
| public static final int GTK_PRINT_CAPABILITY_SCALE = 1 << 4; |
| public static final int GTK_PRINT_CAPABILITY_GENERATE_PDF = 1 << 5; |
| public static final int GTK_PRINT_CAPABILITY_GENERATE_PS = 1 << 6; |
| public static final int GTK_PRINT_CAPABILITY_PREVIEW = 1 << 7; |
| public static final int GTK_PRINT_PAGES_ALL = 0; |
| public static final int GTK_PRINT_PAGES_CURRENT = 1; |
| public static final int GTK_PRINT_PAGES_RANGES = 2; |
| public static final int GTK_PRINT_DUPLEX_SIMPLEX = 0; |
| public static final int GTK_PRINT_DUPLEX_HORIZONTAL = 1; |
| public static final int GTK_PRINT_DUPLEX_VERTICAL = 2; |
| public static final int GTK_PROGRESS_CONTINUOUS = 0x0; |
| public static final int GTK_PROGRESS_DISCRETE = 0x1; |
| public static final int GTK_PROGRESS_LEFT_TO_RIGHT = 0x0; |
| public static final int GTK_PROGRESS_BOTTOM_TO_TOP = 0x2; |
| public static final int GTK_RECEIVES_DEFAULT = 1 << 20; |
| public static final int GTK_RELIEF_NONE = 0x2; |
| public static final int GTK_RELIEF_NORMAL = 0; |
| public static final int GTK_RC_BG = 1 << 1; |
| public static final int GTK_RC_FG = 1 << 0; |
| public static final int GTK_RC_TEXT = 1 << 2; |
| public static final int GTK_RC_BASE = 1 << 3; |
| public static final int GTK_RESPONSE_APPLY = 0xfffffff6; |
| public static final int GTK_RESPONSE_CANCEL = 0xfffffffa; |
| public static final int GTK_RESPONSE_OK = 0xfffffffb; |
| public static final int GTK_SCROLL_NONE = 0; |
| public static final int GTK_SCROLL_JUMP = 1; |
| public static final int GTK_SCROLL_STEP_BACKWARD = 2; |
| public static final int GTK_SCROLL_STEP_FORWARD = 3; |
| public static final int GTK_SCROLL_PAGE_BACKWARD = 4; |
| public static final int GTK_SCROLL_PAGE_FORWARD = 5; |
| public static final int GTK_SCROLL_STEP_UP = 6; |
| public static final int GTK_SCROLL_STEP_DOWN = 7; |
| public static final int GTK_SCROLL_PAGE_UP = 8; |
| public static final int GTK_SCROLL_PAGE_DOWN = 9; |
| public static final int GTK_SCROLL_STEP_LEFT = 10; |
| public static final int GTK_SCROLL_STEP_RIGHT = 11; |
| public static final int GTK_SCROLL_PAGE_LEFT = 12; |
| public static final int GTK_SCROLL_PAGE_RIGHT = 13; |
| public static final int GTK_SCROLL_START = 14; |
| public static final int GTK_SCROLL_END = 15; |
| public static final int GTK_SELECTION_BROWSE = 0x2; |
| public static final int GTK_SELECTION_MULTIPLE = 0x3; |
| public static final int GTK_SENSITIVE = 0x200; |
| public static final int GTK_SHADOW_ETCHED_IN = 0x3; |
| public static final int GTK_SHADOW_ETCHED_OUT = 0x4; |
| public static final int GTK_SHADOW_IN = 0x1; |
| public static final int GTK_SHADOW_NONE = 0x0; |
| public static final int GTK_SHADOW_OUT = 0x2; |
| public static final int GTK_STATE_ACTIVE = 0x1; |
| public static final int GTK_STATE_INSENSITIVE = 0x4; |
| public static final int GTK_STATE_NORMAL = 0x0; |
| public static final int GTK_STATE_PRELIGHT = 0x2; |
| public static final int GTK_STATE_SELECTED = 0x3; |
| public static final int GTK_STATE_FLAG_NORMAL = 0; |
| public static final int GTK_STATE_FLAG_ACTIVE = 1 << 0; |
| public static final int GTK_STATE_FLAG_PRELIGHT = 1 << 1; |
| public static final int GTK_STATE_FLAG_SELECTED = 1 << 2; |
| public static final int GTK_STATE_FLAG_INSENSITIVE = 1 << 3; |
| public static final int GTK_STATE_FLAG_INCONSISTENT = 1 << 4; |
| public static final int GTK_STATE_FLAG_FOCUSED = 1 << 5; |
| public static final int GTK_STATE_FLAG_BACKDROP = 1 << 6; |
| public static final int GTK_TEXT_DIR_LTR = 1; |
| public static final int GTK_TEXT_DIR_NONE = 0 ; |
| public static final int GTK_TEXT_DIR_RTL = 2; |
| public static final int GTK_TEXT_WINDOW_TEXT = 2; |
| public static final int GTK_TOOLBAR_CHILD_BUTTON = 0x1; |
| public static final int GTK_TOOLBAR_CHILD_RADIOBUTTON = 0x3; |
| public static final int GTK_TOOLBAR_CHILD_TOGGLEBUTTON = 0x2; |
| public static final int GTK_TOOLBAR_ICONS = 0; |
| public static final int GTK_TOOLBAR_TEXT = 1; |
| public static final int GTK_TOOLBAR_BOTH = 2; |
| public static final int GTK_TOOLBAR_BOTH_HORIZ = 3; |
| public static final int GTK_TREE_VIEW_COLUMN_GROW_ONLY = 0; |
| public static final int GTK_TREE_VIEW_COLUMN_AUTOSIZE = 1; |
| public static final int GTK_TREE_VIEW_COLUMN_FIXED = 2; |
| public static final int GTK_TREE_VIEW_DROP_BEFORE = 0; |
| public static final int GTK_TREE_VIEW_DROP_AFTER = 1; |
| public static final int GTK_TREE_VIEW_DROP_INTO_OR_BEFORE = 2; |
| public static final int GTK_TREE_VIEW_DROP_INTO_OR_AFTER = 3; |
| public static final int GTK_TREE_VIEW_GRID_LINES_NONE = 0; |
| public static final int GTK_TREE_VIEW_GRID_LINES_HORIZONTAL = 1; |
| public static final int GTK_TREE_VIEW_GRID_LINES_VERTICAL = 2; |
| public static final int GTK_TREE_VIEW_GRID_LINES_BOTH = 3; |
| public static final int GTK_STYLE_PROVIDER_PRIORITY_APPLICATION = 600; |
| public static final int GTK_STYLE_PROVIDER_PRIORITY_USER = 800; |
| public static final int GDK_UNMAP = 15; |
| public static final int GTK_UNIT_PIXEL = 0; |
| public static final int GTK_UNIT_POINTS = 1; |
| public static final int GTK_UNIT_INCH = 2; |
| public static final int GTK_UNIT_MM = 3; |
| public static final int GTK_VISIBLE = 0x100; |
| public static final int GDK_WA_X = 1 << 2; |
| public static final int GDK_WA_Y = 1 << 3; |
| public static final int GDK_WA_VISUAL = 1 << 6; |
| public static final int GTK_WINDOW_POPUP = 0x1; |
| public static final int GTK_WINDOW_TOPLEVEL = 0x0; |
| public static final int GDK_WINDOW_TYPE_HINT_DIALOG = 1; |
| public static final int GDK_WINDOW_TYPE_HINT_TOOLTIP = 10; |
| public static final int GTK_WRAP_NONE = 0; |
| public static final int GTK_WRAP_WORD = 2; |
| public static final int GTK_WRAP_WORD_CHAR = 3; |
| public static final int G_LOG_FLAG_FATAL = 0x2; |
| public static final int G_LOG_FLAG_RECURSION = 0x1; |
| public static final int G_LOG_LEVEL_MASK = 0xfffffffc; |
| public static final int G_APP_INFO_CREATE_NONE = 0; |
| public static final int G_APP_INFO_CREATE_NEEDS_TERMINAL = (1 << 0); |
| public static final int G_APP_INFO_CREATE_SUPPORTS_URIS = (1 << 1); |
| public static final int None = 0; |
| public static final int PANGO_ALIGN_LEFT = 0; |
| public static final int PANGO_ALIGN_CENTER = 1; |
| public static final int PANGO_ALIGN_RIGHT = 2; |
| public static final int PANGO_ATTR_FOREGROUND = 9; |
| public static final int PANGO_ATTR_BACKGROUND = 10; |
| public static final int PANGO_ATTR_UNDERLINE = 11; |
| public static final int PANGO_ATTR_UNDERLINE_COLOR = 18; |
| public static final int PANGO_DIRECTION_LTR = 0; |
| public static final int PANGO_DIRECTION_RTL = 1; |
| public static final int PANGO_SCALE = 1024; |
| public static final int PANGO_STRETCH_ULTRA_CONDENSED = 0x0; |
| public static final int PANGO_STRETCH_EXTRA_CONDENSED = 0x1; |
| public static final int PANGO_STRETCH_CONDENSED = 0x2; |
| public static final int PANGO_STRETCH_SEMI_CONDENSED = 0x3; |
| public static final int PANGO_STRETCH_NORMAL = 0x4; |
| public static final int PANGO_STRETCH_SEMI_EXPANDED = 0x5; |
| public static final int PANGO_STRETCH_EXPANDED = 0x6; |
| public static final int PANGO_STRETCH_EXTRA_EXPANDED = 0x7; |
| public static final int PANGO_STRETCH_ULTRA_EXPANDED = 0x8; |
| public static final int PANGO_STYLE_ITALIC = 0x2; |
| public static final int PANGO_STYLE_NORMAL = 0x0; |
| public static final int PANGO_STYLE_OBLIQUE = 0x1; |
| public static final int PANGO_TAB_LEFT = 0; |
| public static final int PANGO_UNDERLINE_NONE = 0; |
| public static final int PANGO_UNDERLINE_SINGLE = 1; |
| public static final int PANGO_UNDERLINE_DOUBLE = 2; |
| public static final int PANGO_UNDERLINE_LOW = 3; |
| public static final int PANGO_UNDERLINE_ERROR = 4; |
| public static final int PANGO_VARIANT_NORMAL = 0; |
| public static final int PANGO_VARIANT_SMALL_CAPS = 1; |
| public static final int PANGO_WEIGHT_BOLD = 0x2bc; |
| public static final int PANGO_WEIGHT_NORMAL = 0x190; |
| public static final int PANGO_WRAP_WORD = 0; |
| public static final int PANGO_WRAP_WORD_CHAR = 2; |
| public static final int RTLD_GLOBAL = OS.IsWin32 ? 0 : OS.RTLD_GLOBAL(); |
| public static final int RTLD_LAZY = OS.IsWin32 ? 0 : OS.RTLD_LAZY(); |
| public static final int RTLD_MEMBER = 0x00040000; |
| public static final int RTLD_NOW = OS.IsWin32 ? 0 : OS.RTLD_NOW(); |
| |
| /** Signals */ |
| public static final byte[] accel_closures_changed = ascii("accel-closures-changed"); |
| public static final byte[] activate = ascii("activate"); |
| public static final byte[] angle_changed = ascii("angle_changed"); |
| public static final byte[] backspace = ascii("backspace"); |
| public static final byte[] begin = ascii("begin"); |
| public static final byte[] button_press_event = ascii("button-press-event"); |
| public static final byte[] button_release_event = ascii("button-release-event"); |
| public static final byte[] changed = ascii("changed"); |
| public static final byte[] change_current_page = ascii("change-current-page"); |
| public static final byte[] change_value = ascii("change-value"); |
| public static final byte[] clicked = ascii("clicked"); |
| public static final byte[] commit = ascii("commit"); |
| public static final byte[] configure_event = ascii("configure-event"); |
| public static final byte[] copy_clipboard = ascii("copy-clipboard"); |
| public static final byte[] cut_clipboard = ascii("cut-clipboard"); |
| public static final byte[] create_menu_proxy = ascii("create-menu-proxy"); |
| public static final byte[] delete_event = ascii("delete-event"); |
| public static final byte[] delete_from_cursor = ascii("delete-from-cursor"); |
| public static final byte[] day_selected = ascii("day-selected"); |
| public static final byte[] day_selected_double_click = ascii("day-selected-double-click"); |
| public static final byte[] delete_range = ascii("delete-range"); |
| public static final byte[] delete_text = ascii("delete-text"); |
| public static final byte[] direction_changed = ascii("direction-changed"); |
| public static final byte[] drag_begin = ascii("drag_begin"); |
| public static final byte[] drag_data_delete = ascii("drag_data_delete"); |
| public static final byte[] drag_data_get = ascii("drag_data_get"); |
| public static final byte[] drag_data_received = ascii("drag_data_received"); |
| public static final byte[] drag_drop = ascii("drag_drop"); |
| public static final byte[] drag_end = ascii("drag_end"); |
| public static final byte[] drag_leave = ascii("drag_leave"); |
| public static final byte[] drag_motion = ascii("drag_motion"); |
| public static final byte[] draw = ascii("draw"); |
| public static final byte[] end = ascii("end"); |
| public static final byte[] enter_notify_event = ascii("enter-notify-event"); |
| public static final byte[] event = ascii("event"); |
| public static final byte[] event_after = ascii("event-after"); |
| public static final byte[] expand_collapse_cursor_row = ascii("expand-collapse-cursor-row"); |
| public static final byte[] expose_event = ascii("expose-event"); |
| public static final byte[] focus = ascii("focus"); |
| public static final byte[] focus_in_event = ascii("focus-in-event"); |
| public static final byte[] focus_out_event = ascii("focus-out-event"); |
| public static final byte[] grab_focus = ascii("grab-focus"); |
| public static final byte[] hide = ascii("hide"); |
| public static final byte[] icon_release = ascii("icon-release"); |
| public static final byte[] input = ascii("input"); |
| public static final byte[] insert_text = ascii("insert-text"); |
| public static final byte[] key_press_event = ascii("key-press-event"); |
| public static final byte[] key_release_event = ascii("key-release-event"); |
| public static final byte[] leave_notify_event = ascii("leave-notify-event"); |
| public static final byte[] link_color = ascii("link-color"); |
| public static final byte[] map = ascii("map"); |
| public static final byte[] map_event = ascii("map-event"); |
| public static final byte[] mnemonic_activate = ascii("mnemonic-activate"); |
| public static final byte[] month_changed = ascii("month-changed"); |
| public static final byte[] motion_notify_event = ascii("motion-notify-event"); |
| public static final byte[] move_cursor = ascii("move-cursor"); |
| public static final byte[] move_focus = ascii("move-focus"); |
| public static final byte[] output = ascii("output"); |
| public static final byte[] paste_clipboard = ascii("paste-clipboard"); |
| public static final byte[] popup_menu = ascii("popup-menu"); |
| public static final byte[] populate_popup = ascii("populate-popup"); |
| public static final byte[] preedit_changed = ascii("preedit-changed"); |
| public static final byte[] property_notify_event = ascii("property-notify-event"); |
| public static final byte[] realize = ascii("realize"); |
| public static final byte[] row_activated = ascii("row-activated"); |
| public static final byte[] row_changed = ascii("row-changed"); |
| public static final byte[] row_has_child_toggled = ascii("row-has-child-toggled"); |
| public static final byte[] row_inserted = ascii("row-inserted"); |
| public static final byte[] row_deleted = ascii("row-deleted"); |
| public static final byte[] scale_changed = ascii("scale-changed"); |
| public static final byte[] scroll_child = ascii("scroll-child"); |
| public static final byte[] scroll_event = ascii("scroll-event"); |
| public static final byte[] select = ascii("select"); |
| public static final byte[] selection_done = ascii("selection-done"); |
| public static final byte[] show = ascii("show"); |
| public static final byte[] show_help = ascii("show-help"); |
| public static final byte[] size_allocate = ascii("size-allocate"); |
| public static final byte[] size_request = ascii("size-request"); |
| public static final byte[] start_interactive_search = ascii("start-interactive-search"); |
| public static final byte[] style_set = ascii("style-set"); |
| public static final byte[] swipe = ascii("swipe"); |
| public static final byte[] switch_page = ascii("switch-page"); |
| public static final byte[] test_collapse_row = ascii("test-collapse-row"); |
| public static final byte[] test_expand_row = ascii("test-expand-row"); |
| public static final byte[] toggled = ascii("toggled"); |
| public static final byte[] unmap = ascii("unmap"); |
| public static final byte[] unmap_event = ascii("unmap-event"); |
| public static final byte[] unrealize = ascii("unrealize"); |
| public static final byte[] value_changed = ascii("value-changed"); |
| public static final byte[] window_state_event = ascii("window-state-event"); |
| |
| public static final byte[] GTK_STYLE_CLASS_TOOLTIP = ascii("tooltip"); |
| public static final byte[] GTK_STYLE_CLASS_VIEW = ascii("view"); |
| public static final byte[] GTK_STYLE_CLASS_CELL = ascii("cell"); |
| public static final byte[] GTK_STYLE_CLASS_PANE_SEPARATOR = ascii("pane-separator"); |
| public static final byte[] GTK_STYLE_CLASS_FRAME = ascii("frame"); |
| |
| /** Properties */ |
| public static final byte[] active = ascii("active"); |
| public static final byte[] background_gdk = ascii("background-gdk"); |
| public static final byte[] background_rgba = ascii("background-rgba"); |
| public static final byte[] button_relief = ascii("button-relief"); |
| public static final byte[] cell_background_gdk = ascii("cell-background-gdk"); |
| public static final byte[] default_border = ascii("default-border"); |
| public static final byte[] expander_size = ascii("expander-size"); |
| public static final byte[] fixed_height_mode = ascii("fixed-height-mode"); |
| public static final byte[] focus_line_width = ascii("focus-line-width"); |
| public static final byte[] focus_padding = ascii("focus-padding"); |
| public static final byte[] font_desc = ascii("font-desc"); |
| public static final byte[] foreground_gdk = ascii("foreground-gdk"); |
| public static final byte[] foreground_rgba = ascii("foreground-rgba"); |
| public static final byte[] grid_line_width = ascii("grid-line-width"); |
| public static final byte[] gtk_alternative_button_order = ascii("gtk-alternative-button-order"); |
| public static final byte[] gtk_color_palette = ascii("gtk-color-palette"); |
| public static final byte[] gtk_cursor_blink = ascii("gtk-cursor-blink"); |
| public static final byte[] gtk_cursor_blink_time = ascii("gtk-cursor-blink-time"); |
| public static final byte[] gtk_double_click_time = ascii("gtk-double-click-time"); |
| public static final byte[] gtk_entry_select_on_focus = ascii("gtk-entry-select-on-focus"); |
| public static final byte[] gtk_show_input_method_menu = ascii("gtk-show-input-method-menu"); |
| public static final byte[] gtk_menu_bar_accel = ascii("gtk-menu-bar-accel"); |
| public static final byte[] gtk_menu_images = ascii("gtk-menu-images"); |
| public static final byte[] gtk_theme_name = ascii("gtk-theme-name"); |
| public static final byte[] inner_border = ascii("inner-border"); |
| public static final byte[] has_backward_stepper = ascii("has-backward-stepper"); |
| public static final byte[] has_secondary_backward_stepper = ascii("has-secondary-backward-stepper"); |
| public static final byte[] has_forward_stepper = ascii("has-forward-stepper"); |
| public static final byte[] has_secondary_forward_stepper = ascii("has-secondary-forward-stepper"); |
| public static final byte[] horizontal_separator = ascii("horizontal-separator"); |
| public static final byte[] inconsistent = ascii("inconsistent"); |
| public static final byte[] indicator_size = ascii("indicator-size"); |
| public static final byte[] indicator_spacing = ascii("indicator-spacing"); |
| public static final byte[] initial_gap = ascii("initial-gap"); |
| public static final byte[] interior_focus = ascii("interior-focus"); |
| public static final byte[] mode = ascii("mode"); |
| public static final byte[] model = ascii("model"); |
| public static final byte[] spacing = ascii("spacing"); |
| public static final byte[] pixbuf = ascii("pixbuf"); |
| public static final byte[] gicon = ascii("gicon"); |
| public static final byte[] text = ascii("text"); |
| public static final byte[] xalign = ascii("xalign"); |
| public static final byte[] ypad = ascii("ypad"); |
| public static final byte[] margin_bottom = ascii("margin-bottom"); |
| public static final byte[] margin_top = ascii("margin-top"); |
| public static final byte[] GTK_PRINT_SETTINGS_OUTPUT_URI = ascii("output-uri"); |
| public static final byte[] scrollbar_spacing = ascii("scrollbar-spacing"); |
| |
| /* |
| * Needed to tell GTK 3 to prefer a dark or light theme in the UI. |
| * Improves the look of the Eclipse Dark theme in GTK 3 systems. |
| */ |
| public static final byte[] gtk_application_prefer_dark_theme = ascii("gtk-application-prefer-dark-theme"); |
| |
| /* Named icons. |
| * See https://docs.google.com/spreadsheet/pub?key=0AsPAM3pPwxagdGF4THNMMUpjUW5xMXZfdUNzMXhEa2c&output=html |
| * See http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html#names |
| * */ |
| public static final byte[] GTK_NAMED_ICON_FIND = ascii("edit-find"); //Replacement of GTK_STOCK_FIND |
| public static final byte[] GTK_NAMED_ICON_CLEAR = ascii("edit-clear"); //Replacement of GTK_STOCK_CLEAR |
| |
| |
| public static final byte[] GTK_NAMED_ICON_GO_UP = ascii ("go-up-symbolic"); |
| public static final byte[] GTK_NAMED_ICON_GO_DOWN = ascii ("go-down-symbolic"); |
| public static final byte[] GTK_NAMED_ICON_GO_NEXT = ascii ("go-next-symbolic"); |
| public static final byte[] GTK_NAMED_ICON_GO_PREVIOUS = ascii ("go-previous-symbolic"); |
| public static final byte[] GTK_NAMED_LABEL_OK = ascii("_OK"); |
| public static final byte[] GTK_NAMED_LABEL_CANCEL = ascii("_Cancel"); |
| |
| public static final int GTK_VERSION = VERSION(gtk_major_version(), gtk_minor_version(), gtk_micro_version()); |
| public static final int GLIB_VERSION = VERSION(glib_major_version(), glib_minor_version(), glib_micro_version()); |
| |
| public static final boolean GTK3 = GTK_VERSION >= VERSION(3, 0, 0); |
| |
| /* Feature in Gtk: with the switch to GtkMenuItems from GtkImageMenuItems |
| * in Gtk3 came a small Gtk shortfall: a small amount of padding on the left hand |
| * side of MenuItems was added. This padding is not accessible to the developer, |
| * causing vertical alignment issues in menus that have both image and text only |
| * MenuItems. As an option, the user can specify the SWT_PADDED_MENU_ITEMS environment |
| * variable, which (when enabled), double pads MenuItems so as to create consistent |
| * vertical alignment throughout that particular menu. |
| * |
| * For more information see: |
| * Bug 470298 |
| */ |
| public static final boolean SWT_PADDED_MENU_ITEMS; |
| static { |
| String paddedProperty = "SWT_PADDED_MENU_ITEMS"; |
| String paddedCheck = getEnvironmentalVariable(paddedProperty); |
| boolean usePadded = false; |
| if (paddedCheck != null && paddedCheck.equals("1")) { |
| usePadded = true; |
| } |
| SWT_PADDED_MENU_ITEMS = usePadded; |
| } |
| public static final boolean USE_CAIRO, INIT_CAIRO; |
| static { |
| boolean useCairo = false; |
| if (!"false".equals(System.getProperty("org.eclipse.swt.internal.gtk.cairoGraphics"))) { |
| useCairo = Cairo.cairo_version() >= Cairo.CAIRO_VERSION_ENCODE(1, 9, 4); |
| } |
| USE_CAIRO = useCairo || OS.GTK3; |
| boolean initCairo = false; |
| if (!"false".equals(System.getProperty("org.eclipse.swt.internal.gtk.useCairo"))) { |
| initCairo = true; |
| } |
| INIT_CAIRO = initCairo; |
| |
| System.setProperty("org.eclipse.swt.internal.gtk.version", |
| (GTK_VERSION >>> 16) + "." + (GTK_VERSION >>> 8 & 0xFF) + "." + (GTK_VERSION & 0xFF)); |
| } |
| |
| protected static byte [] ascii (String name) { |
| int length = name.length (); |
| char [] chars = new char [length]; |
| name.getChars (0, length, chars, 0); |
| byte [] buffer = new byte [length + 1]; |
| for (int i=0; i<length; i++) { |
| buffer [i] = (byte) chars [i]; |
| } |
| return buffer; |
| } |
| |
| public static int VERSION(int major, int minor, int micro) { |
| return (major << 16) + (minor << 8) + micro; |
| } |
| |
| public static boolean isX11 () { |
| return GDK_WINDOWING_X11() && GDK_IS_X11_DISPLAY(gdk_display_get_default()); |
| } |
| |
| /** 64 bit */ |
| public static final native int GInterfaceInfo_sizeof (); |
| public static final native int GPollFD_sizeof (); |
| public static final native int GTypeInfo_sizeof (); |
| public static final native int GTypeQuery_sizeof (); |
| public static final native int GdkColor_sizeof(); |
| public static final native int GdkRGBA_sizeof(); |
| public static final native int GdkDragContext_sizeof(); |
| public static final native int GdkEvent_sizeof(); |
| public static final native int GdkEventAny_sizeof(); |
| public static final native int GdkEventButton_sizeof(); |
| public static final native int GdkEventCrossing_sizeof(); |
| public static final native int GdkEventExpose_sizeof(); |
| public static final native int GdkEventFocus_sizeof(); |
| public static final native int GdkEventKey_sizeof(); |
| public static final native int GdkEventMotion_sizeof(); |
| public static final native int GdkEventProperty_sizeof(); |
| public static final native int GdkEventScroll_sizeof(); |
| public static final native int GdkEventWindowState_sizeof(); |
| public static final native int GdkGeometry_sizeof(); |
| public static final native int GdkRectangle_sizeof(); |
| public static final native int GdkWindowAttr_sizeof(); |
| public static final native int GtkAllocation_sizeof(); |
| public static final native int GtkBorder_sizeof(); |
| public static final native int GtkRequisition_sizeof(); |
| public static final native int GtkTargetEntry_sizeof(); |
| public static final native int GtkTextIter_sizeof(); |
| public static final native int GtkCellRendererText_sizeof(); |
| public static final native int GtkCellRendererTextClass_sizeof(); |
| public static final native int GtkCellRendererPixbuf_sizeof(); |
| public static final native int GtkCellRendererPixbufClass_sizeof(); |
| public static final native int GtkCellRendererToggle_sizeof(); |
| public static final native int GtkCellRendererToggleClass_sizeof(); |
| public static final native int GtkTreeIter_sizeof(); |
| public static final native int PangoAttribute_sizeof(); |
| public static final native int PangoAttrColor_sizeof(); |
| public static final native int PangoAttrInt_sizeof(); |
| public static final native int PangoItem_sizeof(); |
| public static final native int PangoLayoutLine_sizeof(); |
| public static final native int PangoLayoutRun_sizeof(); |
| public static final native int PangoLogAttr_sizeof(); |
| public static final native int PangoRectangle_sizeof(); |
| public static final native int XAnyEvent_sizeof(); |
| public static final native int XEvent_sizeof(); |
| public static final native int XExposeEvent_sizeof(); |
| public static final native int XFocusChangeEvent_sizeof(); |
| public static final native long /*int*/ localeconv_decimal_point(); |
| /** |
| * @param path cast=(const char *) |
| * @param realPath cast=(char *) |
| */ |
| public static final native long /*int*/ realpath(byte[] path, byte[] realPath); |
| |
| |
| |
| /** Object private fields accessors */ |
| |
| |
| /** @param object_class cast=(GObjectClass *) */ |
| public static final native long /*int*/ G_OBJECT_CLASS_CONSTRUCTOR(long /*int*/ object_class); |
| /** |
| * @param object_class cast=(GObjectClass *) |
| * @paramOFF constructor cast=(GObject* (*) (GType, guint, GObjectConstructParam *)) |
| */ |
| public static final native void G_OBJECT_CLASS_SET_CONSTRUCTOR(long /*int*/ object_class, long /*int*/ constructor); |
| /** |
| * @param acce_label cast=(GtkAccelLabel *) |
| * @param string cast=(gchar *) |
| */ |
| public static final native void GTK_ACCEL_LABEL_SET_ACCEL_STRING(long /*int*/ acce_label, long /*int*/ string); |
| /** @param acce_label cast=(GtkAccelLabel *) */ |
| public static final native long /*int*/ GTK_ACCEL_LABEL_GET_ACCEL_STRING(long /*int*/ acce_label); |
| /** @param widget cast=(GtkEntry *) */ |
| public static final native long /*int*/ GTK_ENTRY_IM_CONTEXT(long /*int*/ widget); |
| /** @param widget cast=(GtkTextView *) */ |
| public static final native long /*int*/ GTK_TEXTVIEW_IM_CONTEXT(long /*int*/ widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native int GTK_WIDGET_REQUISITION_WIDTH(long /*int*/ widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native int GTK_WIDGET_REQUISITION_HEIGHT(long /*int*/ widget); |
| /** @param event cast=(GdkEvent *) */ |
| public static final native int GDK_EVENT_TYPE(long /*int*/ event); |
| /** @param event cast=(GdkEventAny *) */ |
| public static final native long /*int*/ GDK_EVENT_WINDOW(long /*int*/ event); |
| /** @param xevent cast=(XEvent *) */ |
| public static final native int X_EVENT_TYPE(long /*int*/ xevent); |
| /** @param xevent cast=(XAnyEvent *) */ |
| public static final native long /*int*/ X_EVENT_WINDOW(long /*int*/ xevent); |
| |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long /*int*/ GTK_WIDGET_GET_CLASS(long /*int*/ widget); |
| |
| /** X11 Native methods and constants */ |
| public static final int Above = 0; |
| public static final int Below = 1; |
| public static final int ButtonRelease = 5; |
| public static final int CurrentTime = 0; |
| public static final int CWSibling = 0x20; |
| public static final int CWStackMode = 0x40; |
| public static final int EnterNotify = 7; |
| public static final int Expose = 12; |
| public static final int FocusChangeMask = 1 << 21; |
| public static final int FocusIn = 9; |
| public static final int FocusOut = 10; |
| public static final int GraphicsExpose = 13; |
| public static final int NoExpose = 14; |
| public static final int ExposureMask = 1 << 15; |
| public static final long /*int*/ NoEventMask = 0; |
| public static final int NotifyNormal = 0; |
| public static final int NotifyGrab = 1; |
| public static final int NotifyHint = 1; |
| public static final int NotifyUngrab = 2; |
| public static final int NotifyWhileGrabbed = 3; |
| public static final int NotifyAncestor = 0; |
| public static final int NotifyVirtual = 1; |
| public static final int NotifyNonlinear = 3; |
| public static final int NotifyNonlinearVirtual = 4; |
| public static final int NotifyPointer = 5; |
| public static final int RevertToParent = 2; |
| public static final native int _Call(long /*int*/ proc, long /*int*/ arg1, long /*int*/ arg2); |
| public static final int Call(long /*int*/ proc, long /*int*/ arg1, long /*int*/ arg2) { |
| lock.lock(); |
| try { |
| return _Call(proc, arg1, arg2); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _call (long /*int*/ function, long /*int*/ arg0, long /*int*/ arg1, long /*int*/ arg2, long /*int*/ arg3, long /*int*/ arg4, long /*int*/ arg5, long /*int*/ arg6); |
| public static final long /*int*/ call (long /*int*/ function, long /*int*/ arg0, long /*int*/ arg1, long /*int*/ arg2, long /*int*/ arg3, long /*int*/ arg4, long /*int*/ arg5, long /*int*/ arg6) { |
| lock.lock(); |
| try { |
| return _call(function, arg0, arg1, arg2, arg3, arg4, arg5, arg6); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _call (long /*int*/ function, long /*int*/ arg0, long /*int*/ arg1, long /*int*/ arg2, long /*int*/ arg3); |
| public static final long /*int*/ call (long /*int*/ function, long /*int*/ arg0, long /*int*/ arg1, long /*int*/ arg2, long /*int*/ arg3) { |
| lock.lock(); |
| try { |
| return _call(function, arg0, arg1, arg2, arg3); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _call (long /*int*/ function, long /*int*/ arg0, long /*int*/ arg1, long /*int*/ arg2, long /*int*/ arg3, long /*int*/ arg4, long /*int*/ arg5); |
| public static final long /*int*/ call (long /*int*/ function, long /*int*/ arg0, long /*int*/ arg1, long /*int*/ arg2, long /*int*/ arg3, long /*int*/ arg4, long /*int*/ arg5) { |
| lock.lock(); |
| try { |
| return _call(function, arg0, arg1, arg2, arg3, arg4, arg5); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=no_gen */ |
| public static final native void _call_get_size (long /*int*/ function, long /*int*/ arg0, long /*int*/ arg1, long /*int*/ arg2, long /*int*/ arg3, long /*int*/ arg4, long /*int*/ arg5, long /*int*/ arg6); |
| public static final void call_get_size (long /*int*/ function, long /*int*/ arg0, long /*int*/ arg1, long /*int*/ arg2, long /*int*/ arg3, long /*int*/ arg4, long /*int*/ arg5, long /*int*/ arg6) { |
| lock.lock(); |
| try { |
| _call_get_size(function, arg0, arg1, arg2, arg3, arg4, arg5, arg6); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=no_gen */ |
| public static final native boolean GDK_WINDOWING_X11(); |
| /** @method flags=no_gen */ |
| public static final native boolean GDK_WINDOWING_WAYLAND(); |
| /** @param display cast=(GdkDisplay *) */ |
| public static final native boolean GDK_IS_X11_DISPLAY(long /*int*/ display); |
| /** @param pixmap cast=(GdkPixmap *) */ |
| public static final native long /*int*/ _GDK_PIXMAP_XID(long /*int*/ pixmap); |
| public static final long /*int*/ GDK_PIXMAP_XID(long /*int*/ pixmap) { |
| lock.lock(); |
| try { |
| return _GDK_PIXMAP_XID(pixmap); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param display cast=(Display *) |
| * @param event_return cast=(XEvent *) |
| * @param predicate cast=(Bool (*)()) |
| * @param arg cast=(XPointer) |
| */ |
| public static final native boolean _XCheckIfEvent(long /*int*/ display, long /*int*/ event_return, long /*int*/ predicate, long /*int*/ arg); |
| public static final boolean XCheckIfEvent(long /*int*/ display, long /*int*/ event_return, long /*int*/ predicate, long /*int*/ arg) { |
| lock.lock(); |
| try { |
| return _XCheckIfEvent(display, event_return, predicate, arg); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param display cast=(Display *) */ |
| public static final native int _XDefaultScreen(long /*int*/ display); |
| public static final int XDefaultScreen(long /*int*/ display) { |
| lock.lock(); |
| try { |
| return _XDefaultScreen(display); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param display cast=(Display *) */ |
| public static final native long /*int*/ _XDefaultRootWindow(long /*int*/ display); |
| public static final long /*int*/ XDefaultRootWindow(long /*int*/ display) { |
| lock.lock(); |
| try { |
| return _XDefaultRootWindow(display); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param display cast=(Display *) */ |
| public static final native void _XFlush(long /*int*/ display); |
| public static final void XFlush(long /*int*/ display) { |
| lock.lock(); |
| try { |
| _XFlush(display); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param address cast=(void *) */ |
| public static final native void _XFree(long /*int*/ address); |
| public static final void XFree(long /*int*/ address) { |
| lock.lock(); |
| try { |
| _XFree(address); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @param display cast=(Display *) |
| * @param window cast=(Window) |
| * @param property cast=(Atom) |
| * @param req_type cast=(Atom) |
| * @param actual_type_return cast=(Atom*) |
| * @param actual_format_return cast=(int *) |
| * @param nitems_return cast=(unsigned long *) |
| * @param bytes_after_return cast=(unsigned long *) |
| * @param prop_return cast=(unsigned char **) |
| */ |
| public static final native long /*int*/ _XGetWindowProperty(long /*int*/ display, long /*int*/ window, long /*int*/ property, int offset, int length, boolean delete, long /*int*/ req_type, long /*int*/ [] actual_type_return, int [] actual_format_return , int[] nitems_return, int[] bytes_after_return, long /*int*/ [] prop_return); |
| public static final long /*int*/ XGetWindowProperty(long /*int*/ display, long /*int*/ window, long /*int*/ property, int offset, int length, boolean delete, long /*int*/ req_type, long /*int*/ [] actual_type_return, int [] actual_format_return, int[] nitems_return, int[] bytes_after_return, long /*int*/ [] prop_return) { |
| lock.lock(); |
| try { |
| return _XGetWindowProperty(display, window, property, offset, length, delete, req_type, actual_type_return, actual_format_return , nitems_return, bytes_after_return, prop_return); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param display cast=(Display *) |
| * @param w cast=(Window) |
| * @param root_return cast=(Window *) |
| * @param child_return cast=(Window *) |
| * @param root_x_return cast=(int *) |
| * @param root_y_return cast=(int *) |
| * @param win_x_return cast=(int *) |
| * @param win_y_return cast=(int *) |
| * @param mask_return cast=(unsigned int *) |
| */ |
| public static final native int _XQueryPointer(long /*int*/ display, long /*int*/ w, long /*int*/[] root_return, long /*int*/[] child_return, int[] root_x_return, int[] root_y_return, int[] win_x_return, int[] win_y_return, int[] mask_return); |
| public static final int XQueryPointer(long /*int*/ display, long /*int*/ w, long /*int*/[] root_return, long /*int*/[] child_return, int[] root_x_return, int[] root_y_return, int[] win_x_return, int[] win_y_return, int[] mask_return) { |
| lock.lock(); |
| try { |
| return _XQueryPointer(display, w, root_return, child_return, root_x_return, root_y_return, win_x_return, win_y_return, mask_return); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param display cast=(Display *) |
| * @param keysym cast=(KeySym) |
| */ |
| public static final native int _XKeysymToKeycode(long /*int*/ display, long /*int*/ keysym); |
| public static final int XKeysymToKeycode(long /*int*/ display, long /*int*/ keysym) { |
| lock.lock(); |
| try { |
| return _XKeysymToKeycode(display, keysym); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param handler cast=(XIOErrorHandler) */ |
| public static final native long /*int*/ _XSetIOErrorHandler(long /*int*/ handler); |
| public static final long /*int*/ XSetIOErrorHandler(long /*int*/ handler) { |
| lock.lock(); |
| try { |
| return _XSetIOErrorHandler(handler); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param handler cast=(XErrorHandler) */ |
| public static final native long /*int*/ _XSetErrorHandler(long /*int*/ handler); |
| public static final long /*int*/ XSetErrorHandler(long /*int*/ handler) { |
| lock.lock(); |
| try { |
| return _XSetErrorHandler(handler); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param display cast=(Display *) |
| * @param window cast=(Window) |
| */ |
| public static final native int _XSetInputFocus(long /*int*/ display, long /*int*/ window, int revert, int time); |
| public static final int XSetInputFocus(long /*int*/ display, long /*int*/ window, int revert, int time) { |
| lock.lock(); |
| try { |
| return _XSetInputFocus(display, window, revert, time); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param display cast=(Display *) |
| * @param w cast=(Window) |
| * @param prop_window cast=(Window) |
| */ |
| public static final native int _XSetTransientForHint(long /*int*/ display, long /*int*/ w, long /*int*/ prop_window); |
| public static final int XSetTransientForHint(long /*int*/ display, long /*int*/ w, long /*int*/ prop_window) { |
| lock.lock(); |
| try { |
| return _XSetTransientForHint(display, w, prop_window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param display cast=(Display *) */ |
| public static final native long /*int*/ _XSynchronize(long /*int*/ display, boolean onoff); |
| public static final long /*int*/ XSynchronize(long /*int*/ display, boolean onoff) { |
| lock.lock(); |
| try { |
| return _XSynchronize(display, onoff); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param display cast=(Display *) |
| * @param is_press cast=(Bool) |
| * @param delay cast=(unsigned long) |
| */ |
| public static final native void _XTestFakeKeyEvent(long /*int*/ display, int keycode, boolean is_press, long /*int*/ delay); |
| public static final void XTestFakeKeyEvent(long /*int*/ display, int keycode, boolean is_press, long /*int*/ delay) { |
| lock.lock(); |
| try { |
| _XTestFakeKeyEvent(display, keycode, is_press, delay); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param atom cast=(GdkAtom) */ |
| public static final native long /*int*/ _gdk_x11_atom_to_xatom(long /*int*/ atom); |
| public static final long /*int*/ gdk_x11_atom_to_xatom(long /*int*/ atom) { |
| lock.lock(); |
| try { |
| return _gdk_x11_atom_to_xatom(atom); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param gdkdisplay cast=(GdkDisplay *) */ |
| public static final native long /*int*/ _gdk_x11_display_get_xdisplay(long /*int*/ gdkdisplay); |
| public static final long /*int*/ gdk_x11_display_get_xdisplay (long /*int*/ gdkdisplay) { |
| lock.lock(); |
| try { |
| return _gdk_x11_display_get_xdisplay(gdkdisplay); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gdk_x11_drawable_get_xid(long /*int*/ drawable); |
| public static final long /*int*/ gdk_x11_drawable_get_xid(long /*int*/ drawable) { |
| lock.lock(); |
| try { |
| return _gdk_x11_drawable_get_xid(drawable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gdk_x11_get_default_xdisplay(); |
| public static final long /*int*/ gdk_x11_get_default_xdisplay () { |
| lock.lock(); |
| try { |
| return _gdk_x11_get_default_xdisplay(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param screen cast=(GdkScreen *) |
| * @param xvisualid cast=(VisualID) |
| */ |
| public static final native long /*int*/ _gdk_x11_screen_lookup_visual(long /*int*/ screen, int xvisualid); |
| public static final long /*int*/ gdk_x11_screen_lookup_visual(long /*int*/ screen, int xvisualid) { |
| lock.lock(); |
| try { |
| return _gdk_x11_screen_lookup_visual(screen, xvisualid); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param screen cast=(GdkScreen *) |
| */ |
| public static final native long /*int*/ _gdk_x11_screen_get_window_manager_name(long /*int*/ screen); |
| public static final long /*int*/ gdk_x11_screen_get_window_manager_name(long /*int*/ screen) { |
| lock.lock(); |
| try { |
| return _gdk_x11_screen_get_window_manager_name(screen); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param visual cast=(GdkVisual *) */ |
| public static final native long /*int*/ _gdk_x11_visual_get_xvisual(long /*int*/ visual); |
| public static final long /*int*/ gdk_x11_visual_get_xvisual(long /*int*/ visual) { |
| lock.lock(); |
| try { |
| return _gdk_x11_visual_get_xvisual(visual); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param gdkwindow cast=(GdkWindow *) |
| */ |
| public static final native long /*int*/ _gdk_x11_window_get_xid(long /*int*/ gdkwindow); |
| public static final long /*int*/ gdk_x11_window_get_xid(long /*int*/ gdkwindow) { |
| lock.lock(); |
| try { |
| return _gdk_x11_window_get_xid(gdkwindow); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param gdkdisplay cast=(GdkDisplay *) |
| */ |
| public static final native long /*int*/ _gdk_x11_window_lookup_for_display(long /*int*/ gdkdisplay, long /*int*/ xid); |
| public static final long /*int*/ gdk_x11_window_lookup_for_display(long /*int*/ gdkdisplay, long /*int*/ xid) { |
| lock.lock(); |
| try { |
| return _gdk_x11_window_lookup_for_display(gdkdisplay, xid); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param function cast=(GdkFilterFunc) |
| * @param data cast=(gpointer) |
| */ |
| public static final native void _gdk_window_add_filter(long /*int*/ window, long /*int*/ function, long /*int*/ data); |
| public static final void gdk_window_add_filter(long /*int*/ window, long /*int*/ function, long /*int*/ data) { |
| lock.lock(); |
| try { |
| _gdk_window_add_filter(window, function, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param function cast=(GdkFilterFunc) |
| * @param data cast=(gpointer) |
| */ |
| public static final native void _gdk_window_remove_filter(long /*int*/ window, long /*int*/ function, long /*int*/ data); |
| public static final void gdk_window_remove_filter(long /*int*/ window, long /*int*/ function, long /*int*/ data) { |
| lock.lock(); |
| try { |
| _gdk_window_remove_filter(window, function, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param dest cast=(void *) |
| * @param src cast=(const void *),flags=no_out |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(long /*int*/ dest, XExposeEvent src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(XExposeEvent dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(XFocusChangeEvent dest, long /*int*/ src, long /*int*/ size); |
| |
| /** @method flags=const */ |
| public static final native int RTLD_GLOBAL(); |
| /** @method flags=const */ |
| public static final native int RTLD_NOW(); |
| /** @method flags=const */ |
| public static final native int RTLD_LAZY(); |
| |
| /** Custom callbacks */ |
| |
| /** @method flags=no_gen */ |
| public static final native long /*int*/ pangoLayoutNewProc_CALLBACK(long /*int*/ func); |
| /** @method flags=no_gen */ |
| public static final native long /*int*/ pangoFontFamilyNewProc_CALLBACK(long /*int*/ func); |
| /** @method flags=no_gen */ |
| public static final native long /*int*/ pangoFontFaceNewProc_CALLBACK(long /*int*/ func); |
| /** @method flags=no_gen */ |
| public static final native long /*int*/ printerOptionWidgetNewProc_CALLBACK(long /*int*/ func); |
| /** @method flags=no_gen */ |
| public static final native long /*int*/ imContextNewProc_CALLBACK(long /*int*/ func); |
| /** @method flags=no_gen */ |
| public static final native long /*int*/ imContextLast(); |
| |
| |
| /** Natives */ |
| public static final native int Call (long /*int*/ func, long /*int*/ arg0, int arg1, int arg2); |
| public static final native long Call (long /*int*/ func, long /*int*/ arg0, int arg1, long arg2); |
| /** @method flags=const */ |
| public static final native long /*int*/ _GDK_TYPE_COLOR(); |
| public static final long /*int*/ GDK_TYPE_COLOR() { |
| lock.lock(); |
| try { |
| return _GDK_TYPE_COLOR(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _GDK_TYPE_PIXBUF(); |
| public static final long /*int*/ GDK_TYPE_PIXBUF() { |
| lock.lock(); |
| try { |
| return _GDK_TYPE_PIXBUF(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ GTK_TYPE_ACCESSIBLE (); |
| public static final native long /*int*/ _GTK_ACCESSIBLE (long /*int*/ handle); |
| public static final native boolean _GTK_IS_ACCEL_LABEL(long /*int*/ obj); |
| public static final boolean GTK_IS_ACCEL_LABEL(long /*int*/ obj) { |
| lock.lock(); |
| try { |
| return _GTK_IS_ACCEL_LABEL(obj); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _GTK_IS_BUTTON(long /*int*/ obj); |
| public static final boolean GTK_IS_BUTTON(long /*int*/ obj) { |
| lock.lock(); |
| try { |
| return _GTK_IS_BUTTON(obj); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _GTK_IS_LABEL(long /*int*/ obj); |
| public static final boolean GTK_IS_LABEL(long /*int*/ obj) { |
| lock.lock(); |
| try { |
| return _GTK_IS_LABEL(obj); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _GTK_IS_SCROLLED_WINDOW(long /*int*/ obj); |
| public static final boolean GTK_IS_SCROLLED_WINDOW(long /*int*/ obj) { |
| lock.lock(); |
| try { |
| return _GTK_IS_SCROLLED_WINDOW(obj); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _GTK_IS_WINDOW(long /*int*/ obj); |
| public static final boolean GTK_IS_WINDOW(long /*int*/ obj) { |
| lock.lock(); |
| try { |
| return _GTK_IS_WINDOW(obj); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _GTK_IS_CELL_RENDERER_PIXBUF(long /*int*/ obj); |
| public static final boolean GTK_IS_CELL_RENDERER_PIXBUF(long /*int*/ obj) { |
| lock.lock(); |
| try { |
| return _GTK_IS_CELL_RENDERER_PIXBUF(obj); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _GTK_IS_CELL_RENDERER_TEXT(long /*int*/ obj); |
| public static final boolean GTK_IS_CELL_RENDERER_TEXT(long /*int*/ obj) { |
| lock.lock(); |
| try { |
| return _GTK_IS_CELL_RENDERER_TEXT(obj); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _GTK_IS_CELL_RENDERER_TOGGLE(long /*int*/ obj); |
| public static final boolean GTK_IS_CELL_RENDERER_TOGGLE(long /*int*/ obj) { |
| lock.lock(); |
| try { |
| return _GTK_IS_CELL_RENDERER_TOGGLE(obj); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _GTK_IS_CONTAINER(long /*int*/ obj); |
| public static final boolean GTK_IS_CONTAINER(long /*int*/ obj) { |
| lock.lock(); |
| try { |
| return _GTK_IS_CONTAINER(obj); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _GTK_IS_IMAGE_MENU_ITEM(long /*int*/ obj); |
| public static final boolean GTK_IS_IMAGE_MENU_ITEM(long /*int*/ obj) { |
| lock.lock(); |
| try { |
| return _GTK_IS_IMAGE_MENU_ITEM(obj); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _GTK_IS_MENU_ITEM(long /*int*/ obj); |
| public static final boolean GTK_IS_MENU_ITEM(long /*int*/ obj) { |
| lock.lock(); |
| try { |
| return _GTK_IS_MENU_ITEM(obj); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _GTK_IS_PLUG(long /*int*/ obj); |
| public static final boolean GTK_IS_PLUG(long /*int*/ obj) { |
| lock.lock(); |
| try { |
| return _GTK_IS_PLUG(obj); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _GTK_STOCK_CANCEL(); |
| public static final long /*int*/ GTK_STOCK_CANCEL() { |
| lock.lock(); |
| try { |
| return _GTK_STOCK_CANCEL(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _GTK_STOCK_OK(); |
| public static final long /*int*/ GTK_STOCK_OK() { |
| lock.lock(); |
| try { |
| return _GTK_STOCK_OK(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _GTK_TYPE_CELL_RENDERER_TEXT(); |
| public static final long /*int*/ GTK_TYPE_CELL_RENDERER_TEXT() { |
| lock.lock(); |
| try { |
| return _GTK_TYPE_CELL_RENDERER_TEXT(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _GTK_TYPE_CELL_RENDERER_PIXBUF(); |
| public static final long /*int*/ GTK_TYPE_CELL_RENDERER_PIXBUF() { |
| lock.lock(); |
| try { |
| return _GTK_TYPE_CELL_RENDERER_PIXBUF(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _GTK_TYPE_CELL_RENDERER_TOGGLE(); |
| public static final long /*int*/ GTK_TYPE_CELL_RENDERER_TOGGLE() { |
| lock.lock(); |
| try { |
| return _GTK_TYPE_CELL_RENDERER_TOGGLE(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _GTK_TYPE_IM_MULTICONTEXT(); |
| public static final long /*int*/ GTK_TYPE_IM_MULTICONTEXT() { |
| lock.lock(); |
| try { |
| return _GTK_TYPE_IM_MULTICONTEXT(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _GTK_TYPE_FIXED(); |
| public static final long /*int*/ GTK_TYPE_FIXED() { |
| lock.lock(); |
| try { |
| return _GTK_TYPE_FIXED(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _GTK_TYPE_MENU(); |
| public static final long /*int*/ GTK_TYPE_MENU() { |
| lock.lock(); |
| try { |
| return _GTK_TYPE_MENU(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _GTK_TYPE_WIDGET(); |
| public static final long /*int*/ GTK_TYPE_WIDGET() { |
| lock.lock(); |
| try { |
| return _GTK_TYPE_WIDGET(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean _gtk_widget_has_default(long /*int*/ widget); |
| public static final boolean gtk_widget_has_default(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_has_default(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean _gtk_widget_get_sensitive(long /*int*/ widget); |
| public static final boolean gtk_widget_get_sensitive(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_sensitive(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long /*int*/ _gtk_widget_get_name(long /*int*/ widget); |
| public static final long /*int*/ gtk_widget_get_name(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_name(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic |
| * @param widget_class cast=(GtkWidgetClass *) |
| */ |
| public static final native long /*int*/ _gtk_widget_class_get_css_name(long /*int*/ widget_class); |
| public static final long /*int*/ gtk_widget_class_get_css_name(long /*int*/ widget_class) { |
| lock.lock(); |
| try { |
| return _gtk_widget_class_get_css_name(widget_class); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native void _GTK_WIDGET_SET_FLAGS(long /*int*/ wid, int flag); |
| public static final void GTK_WIDGET_SET_FLAGS(long /*int*/ wid, int flag) { |
| lock.lock(); |
| try { |
| _GTK_WIDGET_SET_FLAGS(wid, flag); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native void _GTK_WIDGET_UNSET_FLAGS(long /*int*/ wid, int flag); |
| public static final void GTK_WIDGET_UNSET_FLAGS(long /*int*/ wid, int flag) { |
| lock.lock(); |
| try { |
| _GTK_WIDGET_UNSET_FLAGS(wid, flag); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _G_OBJECT_CLASS (long /*int*/ klass); |
| public static final long /*int*/ G_OBJECT_CLASS (long /*int*/ klass) { |
| lock.lock(); |
| try { |
| return _G_OBJECT_CLASS(klass); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _G_OBJECT_GET_CLASS (long /*int*/ object); |
| public static final long /*int*/ G_OBJECT_GET_CLASS (long /*int*/ object) { |
| lock.lock(); |
| try { |
| return _G_OBJECT_GET_CLASS(object); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _G_OBJECT_TYPE_NAME (long /*int*/ object); |
| public static final long /*int*/ G_OBJECT_TYPE_NAME (long /*int*/ object) { |
| lock.lock(); |
| try { |
| return _G_OBJECT_TYPE_NAME(object); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _G_TYPE_CHECK_INSTANCE_TYPE (long /*int*/ instance, long /*int*/ type); |
| public static final boolean G_TYPE_CHECK_INSTANCE_TYPE (long /*int*/ instance, long /*int*/ type) { |
| lock.lock(); |
| try { |
| return _G_TYPE_CHECK_INSTANCE_TYPE(instance, type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ G_TYPE_BOOLEAN(); |
| /** @method flags=const */ |
| public static final native long /*int*/ G_TYPE_DOUBLE(); |
| /** @method flags=const */ |
| public static final native long /*int*/ G_TYPE_FLOAT(); |
| /** @method flags=const */ |
| public static final native long /*int*/ G_TYPE_INT(); |
| /** @method flags=const */ |
| public static final native long /*int*/ G_TYPE_INT64(); |
| public static final native long /*int*/ G_VALUE_TYPE(long /*int*/ value); |
| public static final native long /*int*/ _G_OBJECT_TYPE (long /*int*/ instance); |
| public static final long /*int*/ G_OBJECT_TYPE (long /*int*/ instance) { |
| lock.lock(); |
| try { |
| return _G_OBJECT_TYPE(instance); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _G_TYPE_STRING(); |
| public static final long /*int*/ G_TYPE_STRING() { |
| lock.lock(); |
| try { |
| return _G_TYPE_STRING(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native int _PANGO_PIXELS(int dimension); |
| public static final int PANGO_PIXELS(int dimension) { |
| lock.lock(); |
| try { |
| return _PANGO_PIXELS(dimension); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _PANGO_TYPE_FONT_DESCRIPTION(); |
| public static final long /*int*/ PANGO_TYPE_FONT_DESCRIPTION() { |
| lock.lock(); |
| try { |
| return _PANGO_TYPE_FONT_DESCRIPTION(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _PANGO_TYPE_FONT_FAMILY(); |
| public static final long /*int*/ PANGO_TYPE_FONT_FAMILY() { |
| lock.lock(); |
| try { |
| return _PANGO_TYPE_FONT_FAMILY(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _PANGO_TYPE_FONT_FACE(); |
| public static final long /*int*/ PANGO_TYPE_FONT_FACE() { |
| lock.lock(); |
| try { |
| return _PANGO_TYPE_FONT_FACE(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gtk_printer_option_widget_get_type(); |
| public static final long /*int*/ gtk_printer_option_widget_get_type() { |
| lock.lock(); |
| try { |
| return _gtk_printer_option_widget_get_type(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native long /*int*/ _PANGO_TYPE_LAYOUT(); |
| public static final long /*int*/ PANGO_TYPE_LAYOUT() { |
| lock.lock(); |
| try { |
| return _PANGO_TYPE_LAYOUT(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param filename cast=(const char *) */ |
| public static final native long /*int*/ _dlopen(byte[] filename, int flag); |
| public static final long /*int*/ dlopen(byte[] filename, int flag) { |
| lock.lock(); |
| try { |
| return _dlopen(filename, flag); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param commandline cast=(gchar *) |
| * @param applName cast=(gchar *) |
| * @param flags cast=(GAppInfoCreateFlags) |
| * @param error cast=(GError **) |
| */ |
| public static final native long /*int*/ _g_app_info_create_from_commandline(byte[] commandline, byte[] applName, long /*int*/ flags, long /*int*/ error); |
| public static final long /*int*/ g_app_info_create_from_commandline(byte[] commandline, byte[] applName, long /*int*/ flags, long /*int*/ error) { |
| lock.lock(); |
| try { |
| return _g_app_info_create_from_commandline(commandline, applName, flags, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _g_app_info_get_all(); |
| public static final long /*int*/ g_app_info_get_all() { |
| lock.lock(); |
| try { |
| return _g_app_info_get_all(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param appInfo cast=(GAppInfo *) |
| */ |
| public static final native long /*int*/ _g_app_info_get_executable(long /*int*/ appInfo); |
| public static final long /*int*/ g_app_info_get_executable(long /*int*/ appInfo) { |
| lock.lock(); |
| try { |
| return _g_app_info_get_executable(appInfo); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param appInfo cast=(GAppInfo *) |
| */ |
| public static final native long /*int*/ _g_app_info_get_icon(long /*int*/ appInfo); |
| public static final long /*int*/ g_app_info_get_icon(long /*int*/ appInfo) { |
| lock.lock(); |
| try { |
| return _g_app_info_get_icon(appInfo); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param appInfo cast=(GAppInfo *) |
| */ |
| public static final native long /*int*/ _g_app_info_get_name(long /*int*/ appInfo); |
| public static final long /*int*/ g_app_info_get_name(long /*int*/ appInfo) { |
| lock.lock(); |
| try { |
| return _g_app_info_get_name(appInfo); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param appInfo cast=(GAppInfo *) |
| * @param list cast=(GList *) |
| * @param launchContext cast=(GAppLaunchContext *) |
| * @param error cast=(GError **) |
| */ |
| public static final native boolean _g_app_info_launch(long /*int*/ appInfo, long /*int*/ list, long /*int*/ launchContext, long /*int*/ error); |
| public static final boolean g_app_info_launch(long /*int*/ appInfo, long /*int*/ list, long /*int*/ launchContext, long /*int*/ error) { |
| lock.lock(); |
| try { |
| return _g_app_info_launch(appInfo, list, launchContext, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param mimeType cast=(gchar *) |
| * @param mustSupportURIs cast=(gboolean) |
| */ |
| public static final native long /*int*/ _g_app_info_get_default_for_type(byte[] mimeType, boolean mustSupportURIs); |
| public static final long /*int*/ g_app_info_get_default_for_type(byte[] mimeType, boolean mustSupportURIs) { |
| lock.lock(); |
| try { |
| return _g_app_info_get_default_for_type(mimeType, mustSupportURIs); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param uri cast=(char *) |
| * @param launchContext cast=(GAppLaunchContext *) |
| * @param error cast=(GError **) |
| */ |
| public static final native boolean _g_app_info_launch_default_for_uri(long /*int*/ uri, long /*int*/ launchContext, long /*int*/ error); |
| public static final boolean g_app_info_launch_default_for_uri(long /*int*/ uri, long /*int*/ launchContext, long /*int*/ error) { |
| lock.lock(); |
| try { |
| return _g_app_info_launch_default_for_uri(uri, launchContext, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param appInfo cast=(GAppInfo *) |
| */ |
| public static final native boolean _g_app_info_should_show(long /*int*/ appInfo); |
| public static final boolean g_app_info_should_show(long /*int*/ appInfo) { |
| lock.lock(); |
| try { |
| return _g_app_info_should_show(appInfo); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param appInfo cast=(GAppInfo *) |
| */ |
| public static final native boolean _g_app_info_supports_uris(long /*int*/ appInfo); |
| public static final boolean g_app_info_supports_uris(long /*int*/ appInfo) { |
| lock.lock(); |
| try { |
| return _g_app_info_supports_uris(appInfo); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param error cast=(GError *) |
| */ |
| public static final native long /*int*/ _g_error_get_message (long /*int*/ error); |
| public static final long /*int*/ g_error_get_message (long /*int*/ error) { |
| lock.lock(); |
| try { |
| return _g_error_get_message (error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @param gerror cast=(GError *) |
| */ |
| public static final native void _g_error_free(long /*int*/ gerror); |
| public static final void g_error_free(long /*int*/ gerror) { |
| lock.lock(); |
| try { |
| _g_error_free(gerror); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @param type1 cast=(gchar *) |
| * @param type2 cast=(gchar *) |
| */ |
| public static final native boolean _g_content_type_equals(long /*int*/ type1, byte[] type2); |
| public static final boolean g_content_type_equals(long /*int*/ type1, byte[] type2) { |
| lock.lock(); |
| try { |
| return _g_content_type_equals(type1, type2); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param type cast=(gchar *) |
| * @param supertype cast=(gchar *) |
| */ |
| public static final native boolean _g_content_type_is_a(long /*int*/ type, byte[] supertype); |
| public static final boolean g_content_type_is_a(long /*int*/ type, byte[] supertype) { |
| lock.lock(); |
| try { |
| return _g_content_type_is_a(type, supertype); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param info cast=(GFileInfo *) |
| */ |
| public static final native long /*int*/ _g_file_info_get_content_type (long /*int*/ info); |
| public static final long /*int*/ g_file_info_get_content_type (long /*int*/ info) { |
| lock.lock(); |
| try { |
| return _g_file_info_get_content_type (info); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param file cast=(GFile *) |
| */ |
| public static final native long /*int*/ _g_file_get_uri(long /*int*/ file); |
| public static final long /*int*/ g_file_get_uri (long /*int*/ file) { |
| lock.lock(); |
| try { |
| return _g_file_get_uri(file); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param fileName cast=(const char *) */ |
| public static final native long /*int*/ _g_file_new_for_path(byte[] fileName); |
| public static final long /*int*/ g_file_new_for_path(byte[] fileName) { |
| lock.lock(); |
| try { |
| return _g_file_new_for_path(fileName); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param fileName cast=(const char *) |
| */ |
| public static final native long /*int*/ _g_file_new_for_commandline_arg(byte[] fileName); |
| public static final long /*int*/ g_file_new_for_commandline_arg(byte[] fileName) { |
| lock.lock(); |
| try { |
| return _g_file_new_for_commandline_arg(fileName); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param fileName cast=(const char *) */ |
| public static final native long /*int*/ _g_file_new_for_uri(byte[] fileName); |
| public static final long /*int*/ g_file_new_for_uri(byte[] fileName) { |
| lock.lock(); |
| try { |
| return _g_file_new_for_uri(fileName); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param file cast=(GFile *) |
| * @param attributes cast=(const char *) |
| * @param flags cast=(GFileQueryInfoFlags) |
| * @param cancellable cast=(GCancellable *) |
| * @param error cast=(GError **) |
| */ |
| public static final native long /*int*/ _g_file_query_info (long /*int*/ file, byte[] attributes, long /*int*/ flags, long /*int*/ cancellable, long /*int*/ error); |
| public static final long /*int*/ g_file_query_info (long /*int*/ file,byte[] attributes, long /*int*/ flags, long /*int*/ cancellable, long /*int*/ error) { |
| lock.lock(); |
| try { |
| return _g_file_query_info (file, attributes, flags, cancellable, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param file cast=(const gchar *) |
| * @param test cast=(GFileTest) |
| */ |
| public static final native boolean /*long*/ _g_file_test(byte[] file, int test); |
| public static final boolean /*long*/ g_file_test(byte[] file, int test) { |
| lock.lock(); |
| try { |
| return _g_file_test(file, test); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param icon cast=(GIcon *) */ |
| public static final native long /*int*/ _g_icon_to_string(long /*int*/ icon); |
| public static final long /*int*/ g_icon_to_string (long /*int*/ icon) { |
| lock.lock(); |
| try { |
| return _g_icon_to_string(icon); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param str cast=(const gchar *) |
| * @param error cast=(GError **) |
| */ |
| public static final native long /*int*/ _g_icon_new_for_string(byte[] str, long /*int*/ error[]); |
| public static final long /*int*/ g_icon_new_for_string (byte[] str, long /*int*/ error[]) { |
| lock.lock(); |
| try { |
| return _g_icon_new_for_string(str, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param signal_id cast=(guint) |
| * @param detail cast=(GQuark) |
| * @param hook_func cast=(GSignalEmissionHook) |
| * @param hook_data cast=(gpointer) |
| * @param data_destroy cast=(GDestroyNotify) |
| */ |
| public static final native long /*int*/ _g_signal_add_emission_hook(int signal_id, int detail, long /*int*/ hook_func, long /*int*/ hook_data, long /*int*/ data_destroy); |
| public static final long /*int*/ g_signal_add_emission_hook(int signal_id, int detail, long /*int*/ hook_func, long /*int*/ hook_data, long /*int*/ data_destroy) { |
| lock.lock(); |
| try { |
| return _g_signal_add_emission_hook(signal_id, detail, hook_func, hook_data, data_destroy); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param signal_id cast=(guint) |
| * @param hook_id cast=(gulong) |
| */ |
| public static final native void _g_signal_remove_emission_hook(int signal_id, long /*int*/ hook_id); |
| public static final void g_signal_remove_emission_hook(int signal_id, long /*int*/ hook_id) { |
| lock.lock(); |
| try { |
| _g_signal_remove_emission_hook (signal_id, hook_id); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param callback_func cast=(GCallback) |
| * @param user_data cast=(gpointer) |
| * @param destroy_data cast=(GClosureNotify) |
| */ |
| public static final native long /*int*/ _g_cclosure_new(long /*int*/ callback_func, long /*int*/ user_data, long /*int*/ destroy_data); |
| public static final long /*int*/ g_cclosure_new(long /*int*/ callback_func, long /*int*/ user_data, long /*int*/ destroy_data) { |
| lock.lock(); |
| try { |
| return _g_cclosure_new(callback_func, user_data, destroy_data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param closure cast=(GClosure *) */ |
| public static final native long /*int*/ _g_closure_ref(long /*int*/ closure); |
| public static final long /*int*/ g_closure_ref(long /*int*/ closure) { |
| lock.lock(); |
| try { |
| return _g_closure_ref(closure); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param closure cast=(GClosure *) */ |
| public static final native void _g_closure_sink(long /*int*/ closure); |
| public static final void g_closure_sink(long /*int*/ closure) { |
| lock.lock(); |
| try { |
| _g_closure_sink(closure); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param closure cast=(GClosure *) */ |
| public static final native void _g_closure_unref(long /*int*/ closure); |
| public static final void g_closure_unref(long /*int*/ closure) { |
| lock.lock(); |
| try { |
| _g_closure_unref(closure); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param context cast=(GMainContext *) */ |
| public static final native boolean _g_main_context_acquire(long /*int*/ context); |
| public static final boolean g_main_context_acquire(long /*int*/ context) { |
| lock.lock(); |
| try { |
| return _g_main_context_acquire(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(GMainContext *) |
| * @param fds cast=(GPollFD *) |
| */ |
| public static final native int _g_main_context_check(long /*int*/ context, int max_priority, long /*int*/ fds, int n_fds); |
| public static final int g_main_context_check(long /*int*/ context, int max_priority, long /*int*/ fds, int n_fds) { |
| lock.lock(); |
| try { |
| return _g_main_context_check(context, max_priority, fds, n_fds); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _g_main_context_default(); |
| public static final long /*int*/ g_main_context_default() { |
| lock.lock(); |
| try { |
| return _g_main_context_default(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param context cast=(GMainContext *) */ |
| public static final native boolean _g_main_context_iteration(long /*int*/ context, boolean may_block); |
| public static final boolean g_main_context_iteration(long /*int*/ context, boolean may_block) { |
| lock.lock(); |
| try { |
| return _g_main_context_iteration(context, may_block); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param context cast=(GMainContext *) */ |
| public static final native long /*int*/ _g_main_context_get_poll_func(long /*int*/ context); |
| public static final long /*int*/ g_main_context_get_poll_func(long /*int*/ context) { |
| lock.lock(); |
| try { |
| return _g_main_context_get_poll_func(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(GMainContext *) |
| * @param priority cast=(gint *) |
| */ |
| public static final native boolean _g_main_context_prepare(long /*int*/ context, int[] priority); |
| public static final boolean g_main_context_prepare(long /*int*/ context, int[] priority) { |
| lock.lock(); |
| try { |
| return _g_main_context_prepare(context, priority); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(GMainContext *) |
| * @param fds cast=(GPollFD *) |
| * @param timeout_ cast=(gint *) |
| */ |
| public static final native int _g_main_context_query(long /*int*/ context, int max_priority, int[] timeout_, long /*int*/ fds, int n_fds); |
| public static final int g_main_context_query(long /*int*/ context, int max_priority, int[] timeout_, long /*int*/ fds, int n_fds) { |
| lock.lock(); |
| try { |
| return _g_main_context_query(context, max_priority, timeout_, fds, n_fds); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param context cast=(GMainContext *) */ |
| public static final native void _g_main_context_release(long /*int*/ context); |
| public static final void g_main_context_release(long /*int*/ context) { |
| lock.lock(); |
| try { |
| _g_main_context_release(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param context cast=(GMainContext *) */ |
| public static final native void g_main_context_wakeup(long /*int*/ context); |
| /** |
| * @param opsysstring cast=(const gchar *) |
| * @param len cast=(gssize) |
| * @param bytes_read cast=(gsize *) |
| * @param bytes_written cast=(gsize *) |
| * @param error cast=(GError **) |
| */ |
| public static final native long /*int*/ _g_filename_to_utf8(long /*int*/ opsysstring, long /*int*/ len, long /*int*/[] bytes_read, long /*int*/[] bytes_written, long /*int*/[] error); |
| public static final long /*int*/ g_filename_to_utf8(long /*int*/ opsysstring, long /*int*/ len, long /*int*/[] bytes_read, long /*int*/[] bytes_written, long /*int*/[] error) { |
| lock.lock(); |
| try { |
| return _g_filename_to_utf8(opsysstring, len, bytes_read, bytes_written, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param filename cast=(const gchar *) */ |
| public static final native long /*int*/ _g_filename_display_name(long /*int*/ filename); |
| public static final long /*int*/ g_filename_display_name(long /*int*/ filename) { |
| lock.lock(); |
| try { |
| return _g_filename_display_name(filename); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param filename cast=(const char *) |
| * @param hostname cast=(const char *) |
| * @param error cast=(GError **) |
| */ |
| public static final native long /*int*/ _g_filename_to_uri(long /*int*/ filename, long /*int*/ hostname, long /*int*/[] error); |
| public static final long /*int*/ g_filename_to_uri(long /*int*/ filename, long /*int*/ hostname, long /*int*/[] error) { |
| lock.lock(); |
| try { |
| return _g_filename_to_uri(filename, hostname, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param opsysstring cast=(const gchar *) |
| * @param len cast=(gssize) |
| * @param bytes_read cast=(gsize *) |
| * @param bytes_written cast=(gsize *) |
| * @param error cast=(GError **) |
| */ |
| public static final native long /*int*/ _g_filename_from_utf8(long /*int*/ opsysstring, long /*int*/ len, long /*int*/[] bytes_read, long /*int*/[] bytes_written, long /*int*/[] error); |
| public static final long /*int*/ g_filename_from_utf8(long /*int*/ opsysstring, long /*int*/ len, long /*int*/[] bytes_read, long /*int*/[] bytes_written, long /*int*/[] error) { |
| lock.lock(); |
| try { |
| return _g_filename_from_utf8(opsysstring, len, bytes_read, bytes_written, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param uri cast=(const char *) |
| * @param hostname cast=(char **) |
| * @param error cast=(GError **) |
| */ |
| public static final native long /*int*/ _g_filename_from_uri(long /*int*/ uri, long /*int*/[] hostname, long /*int*/[] error); |
| public static final long /*int*/ g_filename_from_uri(long /*int*/ uri, long /*int*/[] hostname, long /*int*/[] error) { |
| lock.lock(); |
| try { |
| return _g_filename_from_uri(uri, hostname, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param mem cast=(gpointer) */ |
| public static final native void _g_free(long /*int*/ mem); |
| public static final void g_free(long /*int*/ mem) { |
| lock.lock(); |
| try { |
| _g_free(mem); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param table cast=(GHashTable *) |
| */ |
| public static final native long /*int*/ _g_hash_table_get_values(long /*int*/ table); |
| public static final long /*int*/ g_hash_table_get_values(long /*int*/ table) { |
| lock.lock(); |
| try { |
| return _g_hash_table_get_values(table); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param function cast=(GSourceFunc) |
| * @param data cast=(gpointer) |
| */ |
| public static final native int _g_idle_add(long /*int*/ function, long /*int*/ data); |
| public static final int g_idle_add(long /*int*/ function, long /*int*/ data) { |
| lock.lock(); |
| try { |
| return _g_idle_add(function, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list cast=(GList *) |
| * @param data cast=(gpointer) |
| */ |
| public static final native long /*int*/ _g_list_append(long /*int*/ list, long /*int*/ data); |
| public static final long /*int*/ g_list_append(long /*int*/ list, long /*int*/ data) { |
| lock.lock(); |
| try { |
| return _g_list_append(list, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param list cast=(GList *) */ |
| public static final native long /*int*/ _g_list_data(long /*int*/ list); |
| public static final long /*int*/ g_list_data(long /*int*/ list) { |
| lock.lock(); |
| try { |
| return _g_list_data(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param list cast=(GList *) */ |
| public static final native void _g_list_free(long /*int*/ list); |
| public static final void g_list_free(long /*int*/ list) { |
| lock.lock(); |
| try { |
| _g_list_free(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param list cast=(GList *) */ |
| public static final native void _g_list_free_1(long /*int*/ list); |
| public static final void g_list_free_1(long /*int*/ list) { |
| lock.lock(); |
| try { |
| _g_list_free_1(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list cast=(GList *) |
| */ |
| public static final native long /*int*/ _g_list_last(long /*int*/ list); |
| public static final long /*int*/ g_list_last(long /*int*/ list) { |
| lock.lock(); |
| try { |
| return _g_list_last(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param list cast=(GList *) */ |
| public static final native int _g_list_length(long /*int*/ list); |
| public static final int g_list_length(long /*int*/ list) { |
| lock.lock(); |
| try { |
| return _g_list_length(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list cast=(GList *) |
| * @param llist cast=(GList *) |
| */ |
| public static final native void _g_list_set_next(long /*int*/ list, long /*int*/ llist); |
| public static final void g_list_set_next(long /*int*/ list, long /*int*/ llist) { |
| lock.lock(); |
| try { |
| _g_list_set_next(list, llist); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _g_list_next(long /*int*/ list); |
| public static final long /*int*/ g_list_next(long /*int*/ list) { |
| lock.lock(); |
| try { |
| return _g_list_next(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list cast=(GList *) |
| * @param n cast=(guint) |
| */ |
| public static final native long /*int*/ _g_list_nth(long /*int*/ list, int n); |
| public static final long /*int*/ g_list_nth(long /*int*/ list, int n) { |
| lock.lock(); |
| try { |
| return _g_list_nth(list, n); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list cast=(GList *) |
| * @param n cast=(guint) |
| */ |
| public static final native long /*int*/ _g_list_nth_data(long /*int*/ list, int n); |
| public static final long /*int*/ g_list_nth_data(long /*int*/ list, int n) { |
| lock.lock(); |
| try { |
| return _g_list_nth_data(list, n); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list cast=(GList *) |
| * @param data cast=(gpointer) |
| */ |
| public static final native long /*int*/ _g_list_prepend(long /*int*/ list, long /*int*/ data); |
| public static final long /*int*/ g_list_prepend(long /*int*/ list, long /*int*/ data) { |
| lock.lock(); |
| try { |
| return _g_list_prepend(list, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list cast=(GList *) |
| * @param llist cast=(GList *) |
| */ |
| public static final native void _g_list_set_previous(long /*int*/ list, long /*int*/ llist); |
| public static final void g_list_set_previous(long /*int*/ list, long /*int*/ llist) { |
| lock.lock(); |
| try { |
| _g_list_set_previous(list, llist); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _g_list_previous(long /*int*/ list); |
| public static final long /*int*/ g_list_previous(long /*int*/ list) { |
| lock.lock(); |
| try { |
| return _g_list_previous(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list cast=(GList *) |
| * @param link cast=(GList *) |
| */ |
| public static final native long /*int*/ _g_list_remove_link(long /*int*/ list, long /*int*/ link); |
| public static final long /*int*/ g_list_remove_link(long /*int*/ list, long /*int*/ link) { |
| lock.lock(); |
| try { |
| return _g_list_remove_link(list, link); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param log_domain cast=(gchar *) |
| * @param log_levels cast=(GLogLevelFlags) |
| * @param message cast=(gchar *) |
| * @param unused_data cast=(gpointer) |
| */ |
| public static final native void _g_log_default_handler(long /*int*/ log_domain, int log_levels, long /*int*/ message, long /*int*/ unused_data); |
| public static final void g_log_default_handler(long /*int*/ log_domain, int log_levels, long /*int*/ message, long /*int*/ unused_data) { |
| lock.lock(); |
| try { |
| _g_log_default_handler(log_domain, log_levels, message, unused_data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param log_domain cast=(gchar *),flags=no_out |
| * @param handler_id cast=(gint) |
| */ |
| public static final native void _g_log_remove_handler(byte[] log_domain, int handler_id); |
| public static final void g_log_remove_handler(byte[] log_domain, int handler_id) { |
| lock.lock(); |
| try { |
| _g_log_remove_handler(log_domain, handler_id); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param log_domain cast=(gchar *),flags=no_out |
| * @param log_levels cast=(GLogLevelFlags) |
| * @param log_func cast=(GLogFunc) |
| * @param user_data cast=(gpointer) |
| */ |
| public static final native int _g_log_set_handler(byte[] log_domain, int log_levels, long /*int*/ log_func, long /*int*/ user_data); |
| public static final int g_log_set_handler(byte[] log_domain, int log_levels, long /*int*/ log_func, long /*int*/ user_data) { |
| lock.lock(); |
| try { |
| return _g_log_set_handler(log_domain, log_levels, log_func, user_data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param size cast=(gulong) */ |
| public static final native long /*int*/ _g_malloc(long /*int*/ size); |
| public static final long /*int*/ g_malloc(long /*int*/ size) { |
| lock.lock(); |
| try { |
| return _g_malloc(size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param oclass cast=(GObjectClass *) |
| * @param property_name cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _g_object_class_find_property(long /*int*/ oclass, byte[] property_name); |
| public static final long /*int*/ g_object_class_find_property(long /*int*/ oclass, byte[] property_name) { |
| lock.lock(); |
| try { |
| return _g_object_class_find_property(oclass, property_name); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param object cast=(GObject *) |
| * @param first_property_name cast=(const gchar *),flags=no_out |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void _g_object_get(long /*int*/ object, byte[] first_property_name, int[] value, long /*int*/ terminator); |
| public static final void g_object_get(long /*int*/ object, byte[] first_property_name, int[] value, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| _g_object_get(object, first_property_name, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param object cast=(GObject *) |
| * @param first_property_name cast=(const gchar *),flags=no_out |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void _g_object_get(long /*int*/ object, byte[] first_property_name, long[] value, long /*int*/ terminator); |
| public static final void g_object_get(long /*int*/ object, byte[] first_property_name, long[] value, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| _g_object_get(object, first_property_name, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param object cast=(GObject *) |
| * @param quark cast=(GQuark) |
| */ |
| public static final native long /*int*/ _g_object_get_qdata(long /*int*/ object, int quark); |
| public static final long /*int*/ g_object_get_qdata(long /*int*/ object, int quark) { |
| lock.lock(); |
| try { |
| return _g_object_get_qdata(object, quark); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param type cast=(GType) |
| * @param first_property_name cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _g_object_new (long /*int*/ type, long /*int*/ first_property_name); |
| public static final long /*int*/ g_object_new (long /*int*/ type, long /*int*/ first_property_name) { |
| lock.lock(); |
| try { |
| return _g_object_new(type, first_property_name); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param object cast=(GObject *) |
| * @param property_name cast=(const gchar *) |
| */ |
| public static final native void _g_object_notify (long /*int*/ object, byte[] property_name); |
| public static final void g_object_notify (long /*int*/ object, byte[] property_name) { |
| lock.lock(); |
| try { |
| _g_object_notify(object, property_name); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param object cast=(gpointer) */ |
| public static final native long /*int*/ _g_object_ref(long /*int*/ object); |
| public static final long /*int*/ g_object_ref(long /*int*/ object) { |
| lock.lock(); |
| try { |
| return _g_object_ref(object); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param object cast=(gpointer) |
| * @param first_property_name cast=(const gchar *),flags=no_out |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void _g_object_set(long /*int*/ object, byte[] first_property_name, boolean data, long /*int*/ terminator); |
| public static final void g_object_set(long /*int*/ object, byte[] first_property_name, boolean data, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| _g_object_set(object, first_property_name, data, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param object cast=(gpointer) |
| * @param first_property_name cast=(const gchar *),flags=no_out |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void _g_object_set(long /*int*/ object, byte[] first_property_name, byte[] data, long /*int*/ terminator); |
| public static final void g_object_set(long /*int*/ object, byte[] first_property_name, byte[] data, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| _g_object_set(object, first_property_name, data, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param object cast=(gpointer) |
| * @param first_property_name cast=(const gchar *) |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void _g_object_set(long /*int*/ object, byte[] first_property_name, GdkColor data, long /*int*/ terminator); |
| public static final void g_object_set(long /*int*/ object, byte[] first_property_name, GdkColor data, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| _g_object_set(object, first_property_name, data, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| //Note, the function below is handled in a special way in os.h because of the GdkRGBA (gtk3 only) struct. See os.h |
| //So although it is not marked as dynamic, it is only build on gtk3. |
| /** |
| * @param object cast=(gpointer) |
| * @param first_property_name cast=(const gchar *) |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void _g_object_set(long /*int*/ object, byte[] first_property_name, GdkRGBA data, long /*int*/ terminator); |
| public static final void g_object_set(long /*int*/ object, byte[] first_property_name, GdkRGBA data, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| _g_object_set(object, first_property_name, data, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @param object cast=(gpointer) |
| * @param first_property_name cast=(const gchar *),flags=no_out |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void _g_object_set(long /*int*/ object, byte[] first_property_name, int data, long /*int*/ terminator); |
| public static final void g_object_set(long /*int*/ object, byte[] first_property_name, int data, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| _g_object_set(object, first_property_name, data, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param object cast=(gpointer) |
| * @param first_property_name cast=(const gchar *),flags=no_out |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void _g_object_set(long /*int*/ object, byte[] first_property_name, float data, long /*int*/ terminator); |
| public static final void g_object_set(long /*int*/ object, byte[] first_property_name, float data, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| _g_object_set(object, first_property_name, data, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param object cast=(gpointer) |
| * @param first_property_name cast=(const gchar *),flags=no_out |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void _g_object_set(long /*int*/ object, byte[] first_property_name, long data, long /*int*/ terminator); |
| public static final void g_object_set(long /*int*/ object, byte[] first_property_name, long data, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| _g_object_set(object, first_property_name, data, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param object cast=(GObject *) |
| * @param quark cast=(GQuark) |
| * @param data cast=(gpointer) |
| */ |
| public static final native void _g_object_set_qdata(long /*int*/ object, int quark, long /*int*/ data); |
| public static final void g_object_set_qdata(long /*int*/ object, int quark, long /*int*/ data) { |
| lock.lock(); |
| try { |
| _g_object_set_qdata(object, quark, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param object cast=(gpointer) */ |
| public static final native void _g_object_unref(long /*int*/ object); |
| public static final void g_object_unref(long /*int*/ object) { |
| lock.lock(); |
| try { |
| _g_object_unref(object); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param string cast=(const gchar *),flags=no_out */ |
| public static final native int _g_quark_from_string(byte[] string); |
| public static final int g_quark_from_string(byte[] string) { |
| lock.lock(); |
| try { |
| return _g_quark_from_string(string); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param prgname cast=(const gchar *),flags=no_out */ |
| public static final native void _g_set_prgname(byte[] prgname); |
| public static final void g_set_prgname(byte[] prgname) { |
| lock.lock(); |
| try { |
| _g_set_prgname(prgname); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param detailed_signal cast=(const gchar *),flags=no_out |
| * @param proc cast=(GCallback) |
| * @param data cast=(gpointer) |
| */ |
| public static final native int _g_signal_connect(long /*int*/ instance, byte[] detailed_signal, long /*int*/ proc, long /*int*/ data); |
| public static final int g_signal_connect(long /*int*/ instance, byte[] detailed_signal, long /*int*/ proc, long /*int*/ data) { |
| lock.lock(); |
| try { |
| return _g_signal_connect(instance, detailed_signal, proc, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param detailed_signal cast=(const gchar *) |
| * @param closure cast=(GClosure *) |
| * @param after cast=(gboolean) |
| */ |
| public static final native int _g_signal_connect_closure(long /*int*/ instance, byte[] detailed_signal, long /*int*/ closure, boolean after); |
| public static final int g_signal_connect_closure(long /*int*/ instance, byte[] detailed_signal, long /*int*/ closure, boolean after) { |
| lock.lock(); |
| try { |
| return _g_signal_connect_closure(instance, detailed_signal, closure, after); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param signal_id cast=(guint) |
| * @param detail cast=(GQuark) |
| * @param closure cast=(GClosure *) |
| * @param after cast=(gboolean) |
| */ |
| public static final native int _g_signal_connect_closure_by_id(long /*int*/ instance, int signal_id, int detail, long /*int*/ closure, boolean after); |
| public static final int g_signal_connect_closure_by_id(long /*int*/ instance, int signal_id, int detail, long /*int*/ closure, boolean after) { |
| lock.lock(); |
| try { |
| return _g_signal_connect_closure_by_id(instance, signal_id, detail, closure, after); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param detailed_signal cast=(const gchar *),flags=no_out |
| */ |
| public static final native void _g_signal_emit_by_name(long /*int*/ instance, byte[] detailed_signal); |
| public static final void g_signal_emit_by_name(long /*int*/ instance, byte[] detailed_signal) { |
| lock.lock(); |
| try { |
| _g_signal_emit_by_name(instance, detailed_signal); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param detailed_signal cast=(const gchar *),flags=no_out |
| */ |
| public static final native void _g_signal_emit_by_name(long /*int*/ instance, byte[] detailed_signal, long /*int*/ data); |
| public static final void g_signal_emit_by_name(long /*int*/ instance, byte[] detailed_signal, long /*int*/ data) { |
| lock.lock(); |
| try { |
| _g_signal_emit_by_name(instance, detailed_signal, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param detailed_signal cast=(const gchar *),flags=no_out |
| */ |
| public static final native void _g_signal_emit_by_name(long /*int*/ instance, byte[] detailed_signal, GdkRectangle data); |
| public static final void g_signal_emit_by_name(long /*int*/ instance, byte[] detailed_signal, GdkRectangle data) { |
| lock.lock(); |
| try { |
| _g_signal_emit_by_name(instance, detailed_signal, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param detailed_signal cast=(const gchar *),flags=no_out |
| */ |
| public static final native void _g_signal_emit_by_name(long /*int*/ instance, byte[] detailed_signal, long /*int*/ data1, long /*int*/ data2); |
| public static final void g_signal_emit_by_name(long /*int*/ instance, byte[] detailed_signal, long /*int*/ data1, long /*int*/ data2) { |
| lock.lock(); |
| try { |
| _g_signal_emit_by_name(instance, detailed_signal, data1, data2); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param detailed_signal cast=(const gchar *),flags=no_out |
| */ |
| public static final native void _g_signal_emit_by_name(long /*int*/ instance, byte[] detailed_signal, byte [] data); |
| public static final void g_signal_emit_by_name(long /*int*/ instance, byte[] detailed_signal, byte [] data) { |
| lock.lock(); |
| try { |
| _g_signal_emit_by_name(instance, detailed_signal, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param handler_id cast=(gulong) |
| */ |
| public static final native void _g_signal_handler_disconnect(long /*int*/ instance, int handler_id); |
| public static final void g_signal_handler_disconnect(long /*int*/ instance, int handler_id) { |
| lock.lock(); |
| try { |
| _g_signal_handler_disconnect(instance, handler_id); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param detail cast=(GQuark) |
| * @param closure cast=(GClosure *) |
| * @param func cast=(gpointer) |
| * @param data cast=(gpointer) |
| */ |
| public static final native int _g_signal_handler_find(long /*int*/ instance, int mask, int signal_id, int detail, long /*int*/ closure, long /*int*/ func, long /*int*/ data); |
| public static final int g_signal_handler_find(long /*int*/ instance, int mask, int signal_id, int detail, long /*int*/ closure, long /*int*/ func, long /*int*/ data) { |
| lock.lock(); |
| try { |
| return _g_signal_handler_find(instance, mask, signal_id, detail, closure, func, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param mask cast=(GSignalMatchType) |
| * @param signal_id cast=(guint) |
| * @param detail cast=(GQuark) |
| * @param closure cast=(GClosure *) |
| * @param func cast=(gpointer) |
| * @param data cast=(gpointer) |
| */ |
| public static final native int _g_signal_handlers_block_matched(long /*int*/ instance, int mask, int signal_id, int detail, long /*int*/ closure, long /*int*/ func, long /*int*/ data); |
| public static final int g_signal_handlers_block_matched(long /*int*/ instance, int mask, int signal_id, int detail, long /*int*/ closure, long /*int*/ func, long /*int*/ data) { |
| lock.lock(); |
| try { |
| return _g_signal_handlers_block_matched(instance, mask, signal_id, detail, closure, func, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param mask cast=(GSignalMatchType) |
| * @param signal_id cast=(guint) |
| * @param detail cast=(GQuark) |
| * @param closure cast=(GClosure *) |
| * @param func cast=(gpointer) |
| * @param data cast=(gpointer) |
| */ |
| public static final native int _g_signal_handlers_unblock_matched(long /*int*/ instance, int mask, int signal_id, int detail, long /*int*/ closure, long /*int*/ func, long /*int*/ data); |
| public static final int g_signal_handlers_unblock_matched(long /*int*/ instance, int mask, int signal_id, int detail, long /*int*/ closure, long /*int*/ func, long /*int*/ data) { |
| lock.lock(); |
| try { |
| return _g_signal_handlers_unblock_matched(instance, mask, signal_id, detail, closure, func, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param name cast=(const gchar *),flags=no_out */ |
| public static final native int _g_signal_lookup (byte[] name, long /*int*/ itype); |
| public static final int g_signal_lookup (byte[] name, long /*int*/ itype) { |
| lock.lock(); |
| try { |
| return _g_signal_lookup(name, itype); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param instance cast=(gpointer) |
| * @param detailed_signal cast=(const gchar *),flags=no_out |
| */ |
| public static final native void _g_signal_stop_emission_by_name(long /*int*/ instance, byte[] detailed_signal); |
| public static final void g_signal_stop_emission_by_name(long /*int*/ instance, byte[] detailed_signal) { |
| lock.lock(); |
| try { |
| _g_signal_stop_emission_by_name(instance, detailed_signal); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param tag cast=(guint) */ |
| public static final native boolean /*long*/ _g_source_remove (long /*int*/ tag); |
| public static final boolean /*long*/ g_source_remove (long /*int*/ tag) { |
| lock.lock(); |
| try { |
| return _g_source_remove(tag); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list cast=(GSList *) |
| * @param data cast=(gpointer) |
| */ |
| public static final native long /*int*/ _g_slist_append(long /*int*/ list, long /*int*/ data); |
| public static final long /*int*/ g_slist_append(long /*int*/ list, long /*int*/ data) { |
| lock.lock(); |
| try { |
| return _g_slist_append(list, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param list cast=(GSList *) */ |
| public static final native long /*int*/ _g_slist_data (long /*int*/ list); |
| public static final long /*int*/ g_slist_data (long /*int*/ list) { |
| lock.lock(); |
| try { |
| return _g_slist_data(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param list cast=(GSList *) */ |
| public static final native void _g_slist_free (long /*int*/ list); |
| public static final void g_slist_free (long /*int*/ list) { |
| lock.lock(); |
| try { |
| _g_slist_free(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param list cast=(GSList *) */ |
| public static final native long /*int*/ _g_slist_next (long /*int*/ list); |
| public static final long /*int*/ g_slist_next (long /*int*/ list) { |
| lock.lock(); |
| try { |
| return _g_slist_next(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param list cast=(GSList *) */ |
| public static final native int _g_slist_length (long /*int*/ list); |
| public static final int g_slist_length (long /*int*/ list) { |
| lock.lock(); |
| try { |
| return _g_slist_length(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param string_array cast=(gchar **) */ |
| public static final native void _g_strfreev(long /*int*/ string_array); |
| public static final void g_strfreev(long /*int*/ string_array) { |
| lock.lock(); |
| try { |
| _g_strfreev(string_array); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=getter |
| * @param string cast=(GString *) |
| */ |
| public static final native int _GString_len(long /*int*/ string); |
| public static final int GString_len(long /*int*/ string) { |
| lock.lock(); |
| try { |
| return _GString_len(string); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=getter |
| * @param string cast=(GString *) |
| */ |
| public static final native long /*int*/ _GString_str(long /*int*/ string); |
| public static final long /*int*/ GString_str(long /*int*/ string) { |
| lock.lock(); |
| try { |
| return _GString_str(string); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param str cast=(const gchar *) |
| * @param endptr cast=(gchar **) |
| */ |
| public static final native double _g_strtod(long /*int*/ str, long /*int*/[] endptr); |
| public static final double g_strtod(long /*int*/ str, long /*int*/[] endptr) { |
| lock.lock(); |
| try { |
| return _g_strtod(str, endptr); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param str cast=(char *) */ |
| public static final native long /*int*/ g_strdup (long /*int*/ str); |
| /** |
| * @param instance_type cast=(GType) |
| * @param interface_type cast=(GType) |
| * @param info cast=(const GInterfaceInfo *) |
| */ |
| public static final native void _g_type_add_interface_static (long /*int*/ instance_type, long /*int*/ interface_type, long /*int*/ info); |
| public static final void g_type_add_interface_static (long /*int*/ instance_type, long /*int*/ interface_type, long /*int*/ info) { |
| lock.lock(); |
| try { |
| _g_type_add_interface_static(instance_type, interface_type, info); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param g_class cast=(GType) */ |
| public static final native long /*int*/ _g_type_class_peek (long /*int*/ g_class); |
| public static final long /*int*/ g_type_class_peek (long /*int*/ g_class) { |
| lock.lock(); |
| try { |
| return _g_type_class_peek(g_class); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param g_class cast=(gpointer) */ |
| public static final native long /*int*/ _g_type_class_peek_parent (long /*int*/ g_class); |
| public static final long /*int*/ g_type_class_peek_parent (long /*int*/ g_class) { |
| lock.lock(); |
| try { |
| return _g_type_class_peek_parent(g_class); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param g_class cast=(GType) */ |
| public static final native long /*int*/ _g_type_class_ref (long /*int*/ g_class); |
| public static final long /*int*/ g_type_class_ref (long /*int*/ g_class) { |
| lock.lock(); |
| try { |
| return _g_type_class_ref(g_class); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param g_class cast=(gpointer) */ |
| public static final native void _g_type_class_unref (long /*int*/ g_class); |
| public static final void g_type_class_unref (long /*int*/ g_class) { |
| lock.lock(); |
| try { |
| _g_type_class_unref(g_class); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param name cast=(const gchar *) */ |
| public static final native long /*int*/ _g_type_from_name (byte[] name); |
| public static final long /*int*/ g_type_from_name (byte[] name) { |
| lock.lock(); |
| try { |
| return _g_type_from_name(name); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param iface cast=(gpointer) */ |
| public static final native long /*int*/ _g_type_interface_peek_parent (long /*int*/ iface); |
| public static final long /*int*/ g_type_interface_peek_parent (long /*int*/ iface) { |
| lock.lock(); |
| try { |
| return _g_type_interface_peek_parent(iface); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param type cast=(GType) |
| * @param is_a_type cast=(GType) |
| */ |
| public static final native boolean _g_type_is_a (long /*int*/ type, long /*int*/ is_a_type); |
| public static final boolean g_type_is_a (long /*int*/ type, long /*int*/ is_a_type) { |
| lock.lock(); |
| try { |
| return _g_type_is_a(type, is_a_type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param handle cast=(GType) */ |
| public static final native long /*int*/ _g_type_name (long /*int*/ handle); |
| public static final long /*int*/ g_type_name (long /*int*/ handle) { |
| lock.lock(); |
| try { |
| return _g_type_name(handle); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param type cast=(GType) */ |
| public static final native long /*int*/ _g_type_parent (long /*int*/ type); |
| public static final long /*int*/ g_type_parent (long /*int*/ type) { |
| lock.lock(); |
| try { |
| return _g_type_parent(type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param type cast=(GType) |
| * @param query cast=(GTypeQuery *) |
| */ |
| public static final native void _g_type_query (long /*int*/ type, long /*int*/ query); |
| public static final void g_type_query (long /*int*/ type, long /*int*/ query) { |
| lock.lock(); |
| try { |
| _g_type_query(type, query); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param parent_type cast=(GType) |
| * @param type_name cast=(const gchar *) |
| * @param info cast=(const GTypeInfo *) |
| * @param flags cast=(GTypeFlags) |
| */ |
| public static final native long /*int*/ _g_type_register_static (long /*int*/ parent_type, byte[] type_name, long /*int*/ info, int flags); |
| public static final long /*int*/ g_type_register_static (long /*int*/ parent_type, byte[] type_name, long /*int*/ info, int flags) { |
| lock.lock(); |
| try { |
| return _g_type_register_static(parent_type, type_name, info, flags); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _g_thread_init(long /*int*/ vtable); |
| public static final void g_thread_init(long /*int*/ vtable) { |
| lock.lock(); |
| try { |
| _g_thread_init(vtable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native boolean _g_thread_supported(); |
| public static final boolean g_thread_supported() { |
| lock.lock(); |
| try { |
| return _g_thread_supported(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param str cast=(const gunichar2 *),flags=no_out critical |
| * @param len cast=(glong) |
| * @param items_read cast=(glong *),flags=critical |
| * @param items_written cast=(glong *),flags=critical |
| * @param error cast=(GError **),flags=critical |
| */ |
| public static final native long /*int*/ _g_utf16_to_utf8(char[] str, long /*int*/ len, long /*int*/[] items_read, long /*int*/[] items_written, long /*int*/[] error); |
| public static final long /*int*/ g_utf16_to_utf8(char[] str, long /*int*/ len, long /*int*/[] items_read, long /*int*/[] items_written, long /*int*/[] error) { |
| lock.lock(); |
| try { |
| return _g_utf16_to_utf8(str, len, items_read, items_written, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param str cast=(const gchar *) |
| * @param pos cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _g_utf8_pointer_to_offset(long /*int*/ str, long /*int*/ pos); |
| public static final long /*int*/ g_utf8_pointer_to_offset(long /*int*/ str, long /*int*/ pos) { |
| lock.lock(); |
| try { |
| return _g_utf8_pointer_to_offset(str, pos); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param str cast=(const gchar *) */ |
| public static final native long /*int*/ _g_utf16_offset_to_pointer(long /*int*/ str, long /*int*/ offset); |
| public static final long /*int*/ g_utf16_offset_to_pointer(long /*int*/ str, long /*int*/ offset) { |
| lock.lock(); |
| try { |
| return _g_utf16_offset_to_pointer(str, offset); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param str cast=(const gchar *) |
| * @param pos cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _g_utf16_pointer_to_offset(long /*int*/ str, long /*int*/ pos); |
| public static final long /*int*/ g_utf16_pointer_to_offset(long /*int*/ str, long /*int*/ pos) { |
| lock.lock(); |
| try { |
| return _g_utf16_pointer_to_offset(str, pos); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param str cast=(const gchar *) */ |
| public static final native long /*int*/ _g_utf16_strlen(long /*int*/ str, long /*int*/ max); |
| public static final long /*int*/ g_utf16_strlen(long /*int*/ str, long /*int*/ max) { |
| lock.lock(); |
| try { |
| return _g_utf16_strlen(str, max); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param str cast=(const gchar *) */ |
| public static final native long /*int*/ _g_utf8_offset_to_utf16_offset(long /*int*/ str, long /*int*/ offset); |
| public static final long /*int*/ g_utf8_offset_to_utf16_offset(long /*int*/ str, long /*int*/ offset) { |
| lock.lock(); |
| try { |
| return _g_utf8_offset_to_utf16_offset(str, offset); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param str cast=(const gchar *) */ |
| public static final native long /*int*/ _g_utf16_offset_to_utf8_offset(long /*int*/ str, long /*int*/ offset); |
| public static final long /*int*/ g_utf16_offset_to_utf8_offset(long /*int*/ str, long /*int*/ offset) { |
| lock.lock(); |
| try { |
| return _g_utf16_offset_to_utf8_offset(str, offset); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param str cast=(const gchar *) */ |
| public static final native long /*int*/ _g_utf8_strlen(long /*int*/ str, long /*int*/ max); |
| public static final long /*int*/ g_utf8_strlen(long /*int*/ str, long /*int*/ max) { |
| lock.lock(); |
| try { |
| return _g_utf8_strlen(str, max); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param str cast=(const gchar *),flags=no_out critical |
| * @param len cast=(glong) |
| * @param items_read cast=(glong *),flags=critical |
| * @param items_written cast=(glong *),flags=critical |
| * @param error cast=(GError **),flags=critical |
| */ |
| public static final native long /*int*/ _g_utf8_to_utf16(byte[] str, long /*int*/ len, long /*int*/[] items_read, long /*int*/[] items_written, long /*int*/[] error); |
| public static final long /*int*/ g_utf8_to_utf16(byte[] str, long /*int*/ len, long /*int*/[] items_read, long /*int*/[] items_written, long /*int*/[] error) { |
| lock.lock(); |
| try { |
| return _g_utf8_to_utf16(str, len, items_read, items_written, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param str cast=(const gchar *) |
| * @param len cast=(glong) |
| * @param items_read cast=(glong *),flags=critical |
| * @param items_written cast=(glong *),flags=critical |
| * @param error cast=(GError **),flags=critical |
| */ |
| public static final native long /*int*/ _g_utf8_to_utf16(long /*int*/ str, long /*int*/ len, long /*int*/[] items_read, long /*int*/[] items_written, long /*int*/[] error); |
| public static final long /*int*/ g_utf8_to_utf16(long /*int*/ str, long /*int*/ len, long /*int*/[] items_read, long /*int*/[] items_written, long /*int*/[] error) { |
| lock.lock(); |
| try { |
| return _g_utf8_to_utf16(str, len, items_read, items_written, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param value cast=(GValue *) |
| * @param type cast=(GType) |
| */ |
| public static final native long /*int*/ g_value_init (long /*int*/ value, long /*int*/ type); |
| /** @param value cast=(GValue *) */ |
| public static final native int g_value_get_int (long /*int*/ value); |
| /** @param value cast=(GValue *) */ |
| public static final native void g_value_set_int (long /*int*/ value, int v); |
| /** @param value cast=(GValue *) */ |
| public static final native double g_value_get_double (long /*int*/ value); |
| /** @param value cast=(GValue *) */ |
| public static final native void g_value_set_double (long /*int*/ value, double v); |
| /** @param value cast=(GValue *) */ |
| public static final native float g_value_get_float (long /*int*/ value); |
| /** @param value cast=(GValue *) */ |
| public static final native void g_value_set_float (long /*int*/ value, float v); |
| /** @param value cast=(GValue *) */ |
| public static final native long g_value_get_int64 (long /*int*/ value); |
| /** @param value cast=(GValue *) */ |
| public static final native void g_value_set_int64 (long /*int*/ value, long v); |
| /** @param value cast=(GValue *) */ |
| public static final native void g_value_unset (long /*int*/ value); |
| /** @param value cast=(const GValue *) */ |
| public static final native long /*int*/ _g_value_peek_pointer (long /*int*/ value); |
| public static final long /*int*/ g_value_peek_pointer (long /*int*/ value) { |
| lock.lock(); |
| try { |
| return _g_value_peek_pointer(value); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param atom_name cast=(const gchar *),flags=no_out critical */ |
| public static final native long /*int*/ _gdk_atom_intern(byte[] atom_name, boolean only_if_exists); |
| public static final long /*int*/ gdk_atom_intern(byte[] atom_name, boolean only_if_exists) { |
| lock.lock(); |
| try { |
| return _gdk_atom_intern(atom_name, only_if_exists); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param atom cast=(GdkAtom) */ |
| public static final native long /*int*/ _gdk_atom_name(long /*int*/ atom); |
| public static final long /*int*/ gdk_atom_name(long /*int*/ atom) { |
| lock.lock(); |
| try { |
| return _gdk_atom_name(atom); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native void _gdk_beep(); |
| public static final void gdk_beep() { |
| lock.lock(); |
| try { |
| _gdk_beep(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| * @param data cast=(const gchar *),flags=no_out critical |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| */ |
| public static final native long /*int*/ _gdk_bitmap_create_from_data(long /*int*/ window, byte[] data, int width, int height); |
| public static final long /*int*/ gdk_bitmap_create_from_data(long /*int*/ window, byte[] data, int width, int height) { |
| lock.lock(); |
| try { |
| return _gdk_bitmap_create_from_data(window, data, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gdk_cairo_create(long /*int*/ drawable); |
| public static final long /*int*/ gdk_cairo_create(long /*int*/ drawable) { |
| lock.lock(); |
| try { |
| return _gdk_cairo_create(drawable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native boolean _gdk_cairo_get_clip_rectangle(long /*int*/ cr, GdkRectangle rect); |
| public static final boolean gdk_cairo_get_clip_rectangle(long /*int*/ cr, GdkRectangle rect) { |
| lock.lock(); |
| try { |
| return _gdk_cairo_get_clip_rectangle(cr, rect); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gdk_cairo_region(long /*int*/ cairo, long /*int*/ region); |
| public static final void gdk_cairo_region(long /*int*/ cairo, long /*int*/ region) { |
| lock.lock(); |
| try { |
| _gdk_cairo_region(cairo, region); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gdk_cairo_reset_clip(long /*int*/ cairo, long /*int*/ drawable); |
| public static final void gdk_cairo_reset_clip(long /*int*/ cairo, long /*int*/ drawable) { |
| lock.lock(); |
| try { |
| _gdk_cairo_reset_clip(cairo, drawable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gdk_cairo_set_source_color(long /*int*/ cairo, GdkColor color); |
| public static final void gdk_cairo_set_source_color(long /*int*/ cairo, GdkColor color) { |
| lock.lock(); |
| try { |
| _gdk_cairo_set_source_color(cairo, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @method flags=dynamic |
| */ |
| public static final native int _gdk_window_get_width(long /*int*/ window); |
| public static final int gdk_window_get_width(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gdk_window_get_width(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @method flags=dynamic |
| */ |
| public static final native long /*int*/ _gdk_window_get_visible_region(long /*int*/ window); |
| public static final long /*int*/ gdk_window_get_visible_region(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gdk_window_get_visible_region(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @method flags=dynamic |
| */ |
| public static final native int _gdk_window_get_height(long /*int*/ window); |
| public static final int gdk_window_get_height(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gdk_window_get_height(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param pixbuf cast=(const GdkPixbuf *) |
| */ |
| public static final native void _gdk_cairo_set_source_pixbuf(long /*int*/ cairo, long /*int*/ pixbuf, double pixbuf_x, double pixbuf_y); |
| public static final void gdk_cairo_set_source_pixbuf(long /*int*/ cairo, long /*int*/ pixbuf, double pixbuf_x, double pixbuf_y) { |
| lock.lock(); |
| try { |
| _gdk_cairo_set_source_pixbuf(cairo,pixbuf,pixbuf_x,pixbuf_y); |
| } |
| finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| */ |
| public static final native void _gdk_cairo_set_source_window(long /*int*/ cairo, long /*int*/ window, int x, int y); |
| public static final void gdk_cairo_set_source_window(long /*int*/ cairo, long /*int*/ window, int x, int y) { |
| lock.lock(); |
| try { |
| _gdk_cairo_set_source_window(cairo, window, x, y); |
| } |
| finally { |
| lock.unlock(); |
| } |
| } |
| /** @param color cast=(GdkColor *) */ |
| public static final native void _gdk_color_free(long /*int*/ color); |
| public static final void gdk_color_free(long /*int*/ color) { |
| lock.lock(); |
| try { |
| _gdk_color_free(color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param spec cast=(const gchar *) |
| * @param color cast=(GdkColor *),flags=no_in |
| */ |
| public static final native boolean _gdk_color_parse(byte[] spec, GdkColor color); |
| public static final boolean gdk_color_parse(byte[] spec, GdkColor color) { |
| lock.lock(); |
| try { |
| return _gdk_color_parse(spec, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param color flags=no_in |
| */ |
| public static final native boolean _gdk_color_white(long /*int*/ colormap, GdkColor color); |
| public static final boolean gdk_color_white(long /*int*/ colormap, GdkColor color) { |
| lock.lock(); |
| try { |
| return _gdk_color_white(colormap, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param color cast=(GdkColor *) |
| * @param writeable cast=(gboolean) |
| * @param best_match cast=(gboolean) |
| */ |
| public static final native boolean _gdk_colormap_alloc_color(long /*int*/ colormap, GdkColor color, boolean writeable, boolean best_match); |
| public static final boolean gdk_colormap_alloc_color(long /*int*/ colormap, GdkColor color, boolean writeable, boolean best_match) { |
| lock.lock(); |
| try { |
| return _gdk_colormap_alloc_color(colormap, color, writeable, best_match); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param colors cast=(GdkColor *),flags=no_out |
| * @param ncolors cast=(gint) |
| */ |
| public static final native void _gdk_colormap_free_colors(long /*int*/ colormap, GdkColor colors, int ncolors); |
| public static final void gdk_colormap_free_colors(long /*int*/ colormap, GdkColor colors, int ncolors) { |
| lock.lock(); |
| try { |
| _gdk_colormap_free_colors(colormap, colors, ncolors); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gdk_colormap_get_system(); |
| public static final long /*int*/ gdk_colormap_get_system() { |
| lock.lock(); |
| try { |
| return _gdk_colormap_get_system(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gdk_cursor_unref(long /*int*/ cursor); |
| public static final void gdk_cursor_unref(long /*int*/ cursor) { |
| lock.lock(); |
| try { |
| _gdk_cursor_unref(cursor); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param display cast=(GdkDisplay *) |
| * @param cursor_type cast=(GdkCursorType) |
| */ |
| public static final native long /*int*/ _gdk_cursor_new_for_display(long /*int*/ display, long /*int*/ cursor_type); |
| public static final long /*int*/ gdk_cursor_new_for_display(long /*int*/ display, long /*int*/ cursor_type) { |
| lock.lock(); |
| try { |
| return _gdk_cursor_new_for_display(display, cursor_type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param display cast=(GdkDisplay *) |
| * @param cursor_name cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gdk_cursor_new_from_name(long /*int*/ display, byte[] cursor_name); |
| public static final long /*int*/ gdk_cursor_new_from_name(long /*int*/ display, byte[] cursor_name) { |
| lock.lock(); |
| try { |
| return _gdk_cursor_new_from_name(display, cursor_name); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param fg cast=(GdkColor *),flags=no_out |
| * @param bg cast=(GdkColor *),flags=no_out |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| */ |
| public static final native long /*int*/ _gdk_cursor_new_from_pixmap(long /*int*/ source, long /*int*/ mask, GdkColor fg, GdkColor bg, int x, int y); |
| public static final long /*int*/ gdk_cursor_new_from_pixmap(long /*int*/ source, long /*int*/ mask, GdkColor fg, GdkColor bg, int x, int y) { |
| lock.lock(); |
| try { |
| return _gdk_cursor_new_from_pixmap(source, mask, fg, bg, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gdk_cursor_new_from_pixbuf(long /*int*/ display, long /*int*/ pixbuf, int x, int y); |
| public static final long /*int*/ gdk_cursor_new_from_pixbuf(long /*int*/ display, long /*int*/ pixbuf, int x, int y) { |
| lock.lock(); |
| try { |
| return _gdk_cursor_new_from_pixbuf(display, pixbuf, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gdk_display_warp_pointer(long /*int*/ device, long /*int*/ screen, int x, int y); |
| public static final void gdk_display_warp_pointer(long /*int*/ device, long /*int*/ screen, int x, int y) { |
| lock.lock(); |
| try { |
| _gdk_display_warp_pointer(device, screen, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gdk_device_warp(long /*int*/ device, long /*int*/ screen, int x, int y); |
| public static final void gdk_device_warp(long /*int*/ device, long /*int*/ screen, int x, int y) { |
| lock.lock(); |
| try { |
| _gdk_device_warp(device, screen, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gdk_display_get_default(); |
| public static final long /*int*/ gdk_display_get_default() { |
| lock.lock(); |
| try { |
| return _gdk_display_get_default(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| */ |
| public static final native long /*int*/ _gdk_window_get_display(long /*int*/ window); |
| public static final long /*int*/ gdk_window_get_display(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gdk_window_get_display(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param display cast=(GdkDisplay *) |
| */ |
| public static final native long /*int*/ _gdk_display_get_device_manager(long /*int*/ display); |
| public static final long /*int*/ gdk_display_get_device_manager(long /*int*/ display) { |
| lock.lock(); |
| try { |
| return _gdk_display_get_device_manager(display); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gdk_device_manager_get_client_pointer(long /*int*/ device_manager); |
| public static final long /*int*/ gdk_device_manager_get_client_pointer(long /*int*/ device_manager) { |
| lock.lock(); |
| try { |
| return _gdk_device_manager_get_client_pointer(device_manager); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param win_x cast=(gint *) |
| * @param win_y cast=(gint *) |
| */ |
| public static final native long /*int*/ _gdk_device_get_window_at_position(long /*int*/ device, int[] win_x, int[] win_y); |
| public static final long /*int*/ gdk_device_get_window_at_position(long /*int*/ device, int[] win_x, int[] win_y) { |
| lock.lock(); |
| try { |
| return _gdk_device_get_window_at_position(device, win_x, win_y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native boolean _gdk_display_supports_cursor_color(long /*int*/ display); |
| public static final boolean gdk_display_supports_cursor_color(long /*int*/ display) { |
| lock.lock(); |
| try { |
| return _gdk_display_supports_cursor_color(display); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param context cast=(GdkDragContext *) |
| */ |
| public static final native int _gdk_drag_context_get_actions(long /*int*/ context); |
| public static final int gdk_drag_context_get_actions(long /*int*/ context) { |
| lock.lock(); |
| try { |
| return _gdk_drag_context_get_actions(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param context cast=(GdkDragContext *) |
| */ |
| public static final native long /*int*/ _gdk_drag_context_get_dest_window(long /*int*/ context); |
| public static final long /*int*/ gdk_drag_context_get_dest_window(long /*int*/ context) { |
| lock.lock(); |
| try { |
| return _gdk_drag_context_get_dest_window(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param context cast=(GdkDragContext *) |
| */ |
| public static final native int _gdk_drag_context_get_selected_action(long /*int*/ context); |
| public static final int gdk_drag_context_get_selected_action(long /*int*/ context) { |
| lock.lock(); |
| try { |
| return _gdk_drag_context_get_selected_action(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param context cast=(GdkDragContext *) |
| */ |
| public static final native long /*int*/ _gdk_drag_context_list_targets(long /*int*/ context); |
| public static final long /*int*/ gdk_drag_context_list_targets(long /*int*/ context) { |
| lock.lock(); |
| try { |
| return _gdk_drag_context_list_targets(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(GdkDragContext *) |
| * @param action cast=(GdkDragAction) |
| * @param time cast=(guint32) |
| */ |
| public static final native void _gdk_drag_status(long /*int*/ context, int action, int time); |
| public static final void gdk_drag_status(long /*int*/ context, int action, int time) { |
| lock.lock(); |
| try { |
| _gdk_drag_status(context, action, time); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param filled cast=(gint) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| * @param angle1 cast=(gint) |
| * @param angle2 cast=(gint) |
| */ |
| public static final native void _gdk_draw_arc(long /*int*/ drawable, long /*int*/ gc, int filled, int x, int y, int width, int height, int angle1, int angle2); |
| public static final void gdk_draw_arc(long /*int*/ drawable, long /*int*/ gc, int filled, int x, int y, int width, int height, int angle1, int angle2) { |
| lock.lock(); |
| try { |
| _gdk_draw_arc(drawable, gc, filled, x, y, width, height, angle1, angle2); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param xsrc cast=(gint) |
| * @param ysrc cast=(gint) |
| * @param xdest cast=(gint) |
| * @param ydest cast=(gint) |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| */ |
| public static final native void _gdk_draw_drawable(long /*int*/ drawable, long /*int*/ gc, long /*int*/ src, int xsrc, int ysrc, int xdest, int ydest, int width, int height); |
| public static final void gdk_draw_drawable(long /*int*/ drawable, long /*int*/ gc, long /*int*/ src, int xsrc, int ysrc, int xdest, int ydest, int width, int height) { |
| lock.lock(); |
| try { |
| _gdk_draw_drawable(drawable, gc, src, xsrc, ysrc, xdest, ydest, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gdk_draw_image(long /*int*/ drawable, long /*int*/ gc, long /*int*/ image, int xsrc, int ysrc, int xdest, int ydest, int width, int height); |
| public static final void gdk_draw_image(long /*int*/ drawable, long /*int*/ gc, long /*int*/ image, int xsrc, int ysrc, int xdest, int ydest, int width, int height) { |
| lock.lock(); |
| try { |
| _gdk_draw_image(drawable, gc, image, xsrc, ysrc, xdest, ydest, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| @method flags=dynamic |
| */ |
| public static final native void _gdk_draw_layout(long /*int*/ drawable, long /*int*/ gc, int x, int y, long /*int*/ layout); |
| public static final void gdk_draw_layout(long /*int*/ drawable, long /*int*/ gc, int x, int y, long /*int*/ layout) { |
| lock.lock(); |
| try { |
| _gdk_draw_layout(drawable, gc, x, y, layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| * @param layout cast=(PangoLayout *) |
| * @param foreground flags=no_out |
| * @param background flags=no_out |
| */ |
| public static final native void _gdk_draw_layout_with_colors(long /*int*/ drawable, long /*int*/ gc, int x, int y, long /*int*/ layout, GdkColor foreground, GdkColor background); |
| public static final void gdk_draw_layout_with_colors(long /*int*/ drawable, long /*int*/ gc, int x, int y, long /*int*/ layout, GdkColor foreground, GdkColor background) { |
| lock.lock(); |
| try { |
| _gdk_draw_layout_with_colors(drawable, gc, x, y, layout, foreground, background); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param x1 cast=(gint) |
| * @param y1 cast=(gint) |
| * @param x2 cast=(gint) |
| * @param y2 cast=(gint) |
| */ |
| public static final native void _gdk_draw_line(long /*int*/ drawable, long /*int*/ gc, int x1, int y1, int x2, int y2); |
| public static final void gdk_draw_line(long /*int*/ drawable, long /*int*/ gc, int x1, int y1, int x2, int y2) { |
| lock.lock(); |
| try { |
| _gdk_draw_line(drawable, gc, x1, y1, x2, y2); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param points cast=(GdkPoint *),flags=no_out critical |
| * @param npoints cast=(gint) |
| */ |
| public static final native void _gdk_draw_lines(long /*int*/ drawable, long /*int*/ gc, int[] points, int npoints); |
| public static final void gdk_draw_lines(long /*int*/ drawable, long /*int*/ gc, int[] points, int npoints) { |
| lock.lock(); |
| try { |
| _gdk_draw_lines(drawable, gc, points, npoints); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param xsrc cast=(gint) |
| * @param ysrc cast=(gint) |
| * @param xdest cast=(gint) |
| * @param ydest cast=(gint) |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| * @param x_dither cast=(gint) |
| * @param y_dither cast=(gint) |
| */ |
| public static final native void _gdk_draw_pixbuf(long /*int*/ drawable, long /*int*/ gc, long /*int*/ pixbuf, int xsrc, int ysrc, int xdest, int ydest, int width, int height, int dither, int x_dither, int y_dither); |
| public static final void gdk_draw_pixbuf(long /*int*/ drawable, long /*int*/ gc, long /*int*/ pixbuf, int xsrc, int ysrc, int xdest, int ydest, int width, int height, int dither, int x_dither, int y_dither) { |
| lock.lock(); |
| try { |
| _gdk_draw_pixbuf(drawable, gc, pixbuf, xsrc, ysrc, xdest, ydest, width, height, dither, x_dither, y_dither); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gdk_draw_point(long /*int*/ drawable, long /*int*/ gc, int x, int y); |
| public static final void gdk_draw_point(long /*int*/ drawable, long /*int*/ gc, int x, int y) { |
| lock.lock(); |
| try { |
| _gdk_draw_point(drawable, gc, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param points flags=no_out critical |
| */ |
| public static final native void _gdk_draw_polygon(long /*int*/ drawable, long /*int*/ gc, int filled, int[] points, int npoints); |
| public static final void gdk_draw_polygon(long /*int*/ drawable, long /*int*/ gc, int filled, int[] points, int npoints) { |
| lock.lock(); |
| try { |
| _gdk_draw_polygon(drawable, gc, filled, points, npoints); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param filled cast=(gint) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| */ |
| public static final native void _gdk_draw_rectangle(long /*int*/ drawable, long /*int*/ gc, int filled, int x, int y, int width, int height); |
| public static final void gdk_draw_rectangle(long /*int*/ drawable, long /*int*/ gc, int filled, int x, int y, int width, int height) { |
| lock.lock(); |
| try { |
| _gdk_draw_rectangle(drawable, gc, filled, x, y, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native int _gdk_drawable_get_depth(long /*int*/ drawable); |
| public static final int gdk_drawable_get_depth(long /*int*/ drawable) { |
| lock.lock(); |
| try { |
| return _gdk_drawable_get_depth(drawable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param width cast=(gint *),flags=no_in critical |
| * @param height cast=(gint *),flags=no_in critical |
| * @method flags=dynamic |
| */ |
| public static final native void _gdk_pixmap_get_size(long /*int*/ pixmap, int[] width, int[] height); |
| public static final void gdk_pixmap_get_size(long /*int*/ pixmap, int[] width, int[] height) { |
| lock.lock(); |
| try { |
| _gdk_pixmap_get_size (pixmap,width,height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| */ |
| public static final native long /*int*/ _gdk_drawable_get_image(long /*int*/ drawable, int x, int y, int width, int height); |
| public static final long /*int*/ gdk_drawable_get_image(long /*int*/ drawable, int x, int y, int width, int height) { |
| lock.lock(); |
| try { |
| return _gdk_drawable_get_image(drawable, x, y, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gdk_drawable_get_visible_region(long /*int*/ drawable); |
| public static final long /*int*/ gdk_drawable_get_visible_region(long /*int*/ drawable) { |
| lock.lock(); |
| try { |
| return _gdk_drawable_get_visible_region(drawable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param event cast=(GdkEvent *) */ |
| public static final native long /*int*/ _gdk_event_copy(long /*int*/ event); |
| public static final long /*int*/ gdk_event_copy(long /*int*/ event) { |
| lock.lock(); |
| try { |
| return _gdk_event_copy(event); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param event cast=(GdkEvent *) */ |
| public static final native void _gdk_event_free(long /*int*/ event); |
| public static final void gdk_event_free(long /*int*/ event) { |
| lock.lock(); |
| try { |
| _gdk_event_free(event); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gdk_event_get(); |
| public static final long /*int*/ gdk_event_get() { |
| lock.lock(); |
| try { |
| return _gdk_event_get(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param event cast=(GdkEvent *) |
| * @param px cast=(gdouble *) |
| * @param py cast=(gdouble *) |
| */ |
| public static final native boolean _gdk_event_get_coords(long /*int*/ event, double[] px, double[] py); |
| public static final boolean gdk_event_get_coords(long /*int*/ event, double[] px, double[] py) { |
| lock.lock(); |
| try { |
| return _gdk_event_get_coords(event, px, py); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param event cast=(GdkEvent *) |
| * @param pmod cast=(GdkModifierType *) |
| */ |
| public static final native boolean _gdk_event_get_state(long /*int*/ event, int[] pmod); |
| public static final boolean gdk_event_get_state(long /*int*/ event, int[] pmod) { |
| lock.lock(); |
| try { |
| return _gdk_event_get_state(event, pmod); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param event cast=(GdkEvent *) |
| */ |
| public static final native boolean _gdk_event_get_scroll_deltas(long /*int*/ event, double[] delta_x, double[] delta_y); |
| public static final boolean gdk_event_get_scroll_deltas(long /*int*/ event, double[] delta_x, double[] delta_y) { |
| lock.lock(); |
| try { |
| return _gdk_event_get_scroll_deltas(event, delta_x, delta_y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param event cast=(GdkEvent *) */ |
| public static final native int _gdk_event_get_time(long /*int*/ event); |
| public static final int gdk_event_get_time(long /*int*/ event) { |
| lock.lock(); |
| try { |
| return _gdk_event_get_time(event); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param func cast=(GdkEventFunc) |
| * @param data cast=(gpointer) |
| * @param notify cast=(GDestroyNotify) |
| */ |
| public static final native void _gdk_event_handler_set(long /*int*/ func, long /*int*/ data, long /*int*/ notify); |
| public static final void gdk_event_handler_set(long /*int*/ func, long /*int*/ data, long /*int*/ notify) { |
| lock.lock(); |
| try { |
| _gdk_event_handler_set(func, data, notify); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gdk_event_new(int type); |
| public static final long /*int*/ gdk_event_new(int type) { |
| lock.lock(); |
| try { |
| return _gdk_event_new(type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gdk_event_peek(); |
| public static final long /*int*/ gdk_event_peek() { |
| lock.lock(); |
| try { |
| return _gdk_event_peek(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param event cast=(GdkEvent *) */ |
| public static final native void _gdk_event_put(long /*int*/ event); |
| public static final void gdk_event_put(long /*int*/ event) { |
| lock.lock(); |
| try { |
| _gdk_event_put(event); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native void _gdk_error_trap_push(); |
| public static final void gdk_error_trap_push() { |
| lock.lock(); |
| try { |
| _gdk_error_trap_push(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native int _gdk_error_trap_pop(); |
| public static final int gdk_error_trap_pop() { |
| lock.lock(); |
| try { |
| return _gdk_error_trap_pop(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native void _gdk_flush(); |
| public static final void gdk_flush() { |
| lock.lock(); |
| try { |
| _gdk_flush(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param values flags=no_in |
| */ |
| public static final native void _gdk_gc_get_values(long /*int*/ gc, GdkGCValues values); |
| public static final void gdk_gc_get_values(long /*int*/ gc, GdkGCValues values) { |
| lock.lock(); |
| try { |
| _gdk_gc_get_values(gc, values); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gdk_gc_new(long /*int*/ window); |
| public static final long /*int*/ gdk_gc_new(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gdk_gc_new(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param color cast=(GdkColor *),flags=no_out |
| */ |
| public static final native void _gdk_gc_set_background(long /*int*/ gc, GdkColor color); |
| public static final void gdk_gc_set_background(long /*int*/ gc, GdkColor color) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_background(gc, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gdk_gc_set_clip_mask(long /*int*/ gc, long /*int*/ mask); |
| public static final void gdk_gc_set_clip_mask(long /*int*/ gc, long /*int*/ mask) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_clip_mask(gc, mask); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| */ |
| public static final native void _gdk_gc_set_clip_origin(long /*int*/ gc, int x, int y); |
| public static final void gdk_gc_set_clip_origin(long /*int*/ gc, int x, int y) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_clip_origin(gc, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gdk_gc_set_clip_region(long /*int*/ gc, long /*int*/ region); |
| public static final void gdk_gc_set_clip_region(long /*int*/ gc, long /*int*/ region) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_clip_region(gc, region); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param dash_offset cast=(gint) |
| * @param dash_list cast=(gint8 *),flags=no_out critical |
| * @param n cast=(gint) |
| */ |
| public static final native void _gdk_gc_set_dashes(long /*int*/ gc, int dash_offset, byte[] dash_list, int n); |
| public static final void gdk_gc_set_dashes(long /*int*/ gc, int dash_offset, byte[] dash_list, int n) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_dashes(gc, dash_offset, dash_list, n); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gdk_gc_set_exposures(long /*int*/ gc, boolean exposures); |
| public static final void gdk_gc_set_exposures(long /*int*/ gc, boolean exposures) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_exposures(gc, exposures); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gdk_gc_set_fill(long /*int*/ gc, int fill); |
| public static final void gdk_gc_set_fill(long /*int*/ gc, int fill) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_fill(gc, fill); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param color flags=no_out |
| */ |
| public static final native void _gdk_gc_set_foreground(long /*int*/ gc, GdkColor color); |
| public static final void gdk_gc_set_foreground(long /*int*/ gc, GdkColor color) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_foreground(gc, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gdk_gc_set_function(long /*int*/ gc, long /*int*/ function); |
| public static final void gdk_gc_set_function(long /*int*/ gc, long /*int*/ function) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_function(gc, function); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gdk_gc_set_line_attributes(long /*int*/ gc, int line_width, int line_style, int cap_style, int join_style); |
| public static final void gdk_gc_set_line_attributes(long /*int*/ gc, int line_width, int line_style, int cap_style, int join_style) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_line_attributes(gc, line_width, line_style, cap_style, join_style); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gdk_gc_set_stipple(long /*int*/ gc, long /*int*/ stipple); |
| public static final void gdk_gc_set_stipple(long /*int*/ gc, long /*int*/ stipple) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_stipple(gc, stipple); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gdk_gc_set_subwindow(long /*int*/ gc, long /*int*/ mode); |
| public static final void gdk_gc_set_subwindow(long /*int*/ gc, long /*int*/ mode) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_subwindow(gc, mode); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gdk_gc_set_tile(long /*int*/ gc, long /*int*/ tile); |
| public static final void gdk_gc_set_tile(long /*int*/ gc, long /*int*/ tile) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_tile(gc, tile); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gdk_gc_set_ts_origin(long /*int*/ gc, int x, int y); |
| public static final void gdk_gc_set_ts_origin(long /*int*/ gc, int x, int y) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_ts_origin(gc, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param values flags=no_out |
| */ |
| public static final native void _gdk_gc_set_values(long /*int*/ gc, GdkGCValues values, int values_mask); |
| public static final void gdk_gc_set_values(long /*int*/ gc, GdkGCValues values, int values_mask) { |
| lock.lock(); |
| try { |
| _gdk_gc_set_values(gc, values, values_mask); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gdk_get_default_root_window(); |
| public static final long /*int*/ gdk_get_default_root_window() { |
| lock.lock(); |
| try { |
| return _gdk_get_default_root_window(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gdk_keyboard_ungrab(int time); |
| public static final void gdk_keyboard_ungrab(int time) { |
| lock.lock(); |
| try { |
| _gdk_keyboard_ungrab(time); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gdk_keymap_get_default(); |
| public static final long /*int*/ gdk_keymap_get_default() { |
| lock.lock(); |
| try { |
| return _gdk_keymap_get_default(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param keymap cast=(GdkKeymap*) |
| * @param state cast=(GdkModifierType) |
| * @param keyval cast=(guint*) |
| * @param effective_group cast=(gint*) |
| * @param level cast=(gint*) |
| * @param consumed_modifiers cast=(GdkModifierType *) |
| */ |
| public static final native boolean _gdk_keymap_translate_keyboard_state (long /*int*/ keymap, int hardware_keycode, int state, int group, int[] keyval, int[] effective_group, int[] level, int[] consumed_modifiers); |
| public static final boolean gdk_keymap_translate_keyboard_state (long /*int*/ keymap, int hardware_keycode, int state, int group, int[] keyval, int[] effective_group, int[] level, int[] consumed_modifiers) { |
| lock.lock(); |
| try { |
| return _gdk_keymap_translate_keyboard_state(keymap, hardware_keycode, state, group, keyval, effective_group, level, consumed_modifiers); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native int _gdk_keyval_to_lower(int keyval); |
| public static final int gdk_keyval_to_lower(int keyval) { |
| lock.lock(); |
| try { |
| return _gdk_keyval_to_lower(keyval); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native int _gdk_keyval_to_unicode(int keyval); |
| public static final int gdk_keyval_to_unicode(int keyval) { |
| lock.lock(); |
| try { |
| return _gdk_keyval_to_unicode(keyval); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gdk_pango_context_get(); |
| public static final long /*int*/ gdk_pango_context_get() { |
| lock.lock(); |
| try { |
| return _gdk_pango_context_get(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param layout cast=(PangoLayout *) |
| * @param index_ranges cast=(gint *) |
| */ |
| public static final native long /*int*/ _gdk_pango_layout_get_clip_region(long /*int*/ layout, int x_origin, int y_origin, int[] index_ranges, int n_ranges); |
| public static final long /*int*/ gdk_pango_layout_get_clip_region(long /*int*/ layout, int x_origin, int y_origin, int[] index_ranges, int n_ranges) { |
| lock.lock(); |
| try { |
| return _gdk_pango_layout_get_clip_region(layout, x_origin, y_origin, index_ranges, n_ranges); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param src_pixbuf cast=(GdkPixbuf *) |
| * @param dest_pixbuf cast=(GdkPixbuf *) |
| */ |
| public static final native void _gdk_pixbuf_copy_area(long /*int*/ src_pixbuf, int src_x, int src_y, int width, int height, long /*int*/ dest_pixbuf, int dest_x, int dest_y); |
| public static final void gdk_pixbuf_copy_area(long /*int*/ src_pixbuf, int src_x, int src_y, int width, int height, long /*int*/ dest_pixbuf, int dest_x, int dest_y) { |
| lock.lock(); |
| try { |
| _gdk_pixbuf_copy_area(src_pixbuf, src_x, src_y, width, height, dest_pixbuf, dest_x, dest_y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param dest cast=(GdkPixbuf *) |
| */ |
| public static final native long /*int*/ _gdk_pixbuf_get_from_drawable(long /*int*/ dest, long /*int*/ src, long /*int*/ cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height); |
| public static final long /*int*/ gdk_pixbuf_get_from_drawable(long /*int*/ dest, long /*int*/ src, long /*int*/ cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_get_from_drawable(dest, src, cmap, src_x, src_y, dest_x, dest_y, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| * @param src_x cast=(gint) |
| * @param src_y cast=(gint) |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| */ |
| public static final native long /*int*/ _gdk_pixbuf_get_from_window(long /*int*/ window, int src_x, int src_y, int width, int height); |
| public static final long /*int*/ gdk_pixbuf_get_from_window(long /*int*/ window, int src_x, int src_y, int width, int height) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_get_from_window(window, src_x, src_y, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param pixbuf cast=(const GdkPixbuf *) */ |
| public static final native boolean _gdk_pixbuf_get_has_alpha(long /*int*/ pixbuf); |
| public static final boolean gdk_pixbuf_get_has_alpha(long /*int*/ pixbuf) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_get_has_alpha(pixbuf); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param pixbuf cast=(const GdkPixbuf *) */ |
| public static final native int _gdk_pixbuf_get_height(long /*int*/ pixbuf); |
| public static final int gdk_pixbuf_get_height(long /*int*/ pixbuf) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_get_height(pixbuf); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param pixbuf cast=(const GdkPixbuf *) */ |
| public static final native long /*int*/ _gdk_pixbuf_get_pixels(long /*int*/ pixbuf); |
| public static final long /*int*/ gdk_pixbuf_get_pixels(long /*int*/ pixbuf) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_get_pixels(pixbuf); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param pixbuf cast=(const GdkPixbuf *) */ |
| public static final native int _gdk_pixbuf_get_rowstride(long /*int*/ pixbuf); |
| public static final int gdk_pixbuf_get_rowstride(long /*int*/ pixbuf) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_get_rowstride(pixbuf); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param pixbuf cast=(const GdkPixbuf *) */ |
| public static final native int _gdk_pixbuf_get_width(long /*int*/ pixbuf); |
| public static final int gdk_pixbuf_get_width(long /*int*/ pixbuf) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_get_width(pixbuf); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gdk_pixbuf_loader_new(); |
| public static final long /*int*/ gdk_pixbuf_loader_new() { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_loader_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param loader cast=(GdkPixbufLoader *) |
| * @param error cast=(GError **) |
| */ |
| public static final native boolean _gdk_pixbuf_loader_close(long /*int*/ loader, long /*int*/ [] error); |
| public static final boolean gdk_pixbuf_loader_close(long /*int*/ loader, long /*int*/ [] error) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_loader_close(loader, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param loader cast=(GdkPixbufLoader *) */ |
| public static final native long /*int*/ _gdk_pixbuf_loader_get_pixbuf(long /*int*/ loader); |
| public static final long /*int*/ gdk_pixbuf_loader_get_pixbuf(long /*int*/ loader) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_loader_get_pixbuf(loader); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param loader cast=(GdkPixbufLoader *) |
| * @param buffer cast=(const guchar *) |
| * @param count cast=(gsize) |
| * @param error cast=(GError **) |
| */ |
| public static final native boolean _gdk_pixbuf_loader_write(long /*int*/ loader, long /*int*/ buffer, int count, long /*int*/ [] error); |
| public static final boolean gdk_pixbuf_loader_write(long /*int*/ loader, long /*int*/ buffer, int count, long /*int*/ [] error) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_loader_write(loader, buffer, count, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param colorspace cast=(GdkColorspace) |
| * @param has_alpha cast=(gboolean) |
| */ |
| public static final native long /*int*/ _gdk_pixbuf_new(int colorspace, boolean has_alpha, int bits_per_sample, int width, int height); |
| public static final long /*int*/ gdk_pixbuf_new(int colorspace, boolean has_alpha, int bits_per_sample, int width, int height) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_new(colorspace, has_alpha, bits_per_sample, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param filename cast=(const char *) |
| * @param error cast=(GError**) |
| */ |
| public static final native long /*int*/ _gdk_pixbuf_new_from_file(byte[] filename, long /*int*/ [] error); |
| public static final long /*int*/ gdk_pixbuf_new_from_file(byte[] filename, long /*int*/ [] error) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_new_from_file(filename, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gdk_pixbuf_render_to_drawable(long /*int*/ pixbuf, long /*int*/ drawable, long /*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); |
| public static final void gdk_pixbuf_render_to_drawable(long /*int*/ pixbuf, long /*int*/ drawable, long /*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) { |
| lock.lock(); |
| try { |
| _gdk_pixbuf_render_to_drawable(pixbuf, drawable, gc, src_x, src_y, dest_x, dest_y, width, height, dither, x_dither, y_dither); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gdk_pixbuf_render_pixmap_and_mask(long /*int*/ pixbuf, long /*int*/[] pixmap_return, long /*int*/[] mask_return, int alpha_threshold); |
| public static final void gdk_pixbuf_render_pixmap_and_mask(long /*int*/ pixbuf, long /*int*/[] pixmap_return, long /*int*/[] mask_return, int alpha_threshold) { |
| lock.lock(); |
| try { |
| _gdk_pixbuf_render_pixmap_and_mask(pixbuf, pixmap_return, mask_return, alpha_threshold); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param pixbuf cast=(GdkPixbuf *) |
| * @param buffer cast=(gchar **) |
| * @param buffer_size cast=(gsize *) |
| * @param type cast=(const char *) |
| * @param option_keys cast=(char **) |
| * @param option_values cast=(char **) |
| * @param error cast=(GError **) |
| */ |
| public static final native boolean _gdk_pixbuf_save_to_bufferv(long /*int*/ pixbuf, long /*int*/ [] buffer, long /*int*/ [] buffer_size, byte [] type, long /*int*/ [] option_keys, long /*int*/ [] option_values, long /*int*/ [] error); |
| public static final boolean gdk_pixbuf_save_to_bufferv(long /*int*/ pixbuf, long /*int*/ [] buffer, long /*int*/ [] buffer_size, byte [] type, long /*int*/ [] option_keys, long /*int*/ [] option_values, long /*int*/ [] error) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_save_to_bufferv(pixbuf, buffer, buffer_size, type, option_keys, option_values, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param src cast=(const GdkPixbuf *) |
| * @param interp_type cast=(GdkInterpType) |
| */ |
| public static final native long /*int*/ _gdk_pixbuf_scale_simple(long /*int*/ src, int dest_width, int dest_height, int interp_type); |
| public static final long /*int*/ gdk_pixbuf_scale_simple(long /*int*/ src, int dest_width, int dest_height, int interp_type) { |
| lock.lock(); |
| try { |
| return _gdk_pixbuf_scale_simple(src, dest_width, dest_height, interp_type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| * @param depth cast=(gint) |
| */ |
| public static final native long /*int*/ _gdk_pixmap_new(long /*int*/ window, int width, int height, int depth); |
| public static final long /*int*/ gdk_pixmap_new(long /*int*/ window, int width, int height, int depth) { |
| lock.lock(); |
| try { |
| return _gdk_pixmap_new(window, width, height, depth); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| * @param owner_events cast=(gboolean) |
| * @param event_mask cast=(GdkEventMask) |
| * @param confine_to cast=(GdkWindow *) |
| * @param cursor cast=(GdkCursor *) |
| * @param time cast=(guint32) |
| */ |
| public static final native int _gdk_pointer_grab(long /*int*/ window, boolean owner_events, int event_mask, long /*int*/ confine_to, long /*int*/ cursor, int time); |
| public static final int gdk_pointer_grab(long /*int*/ window, boolean owner_events, int event_mask, long /*int*/ confine_to, long /*int*/ cursor, int time) { |
| lock.lock(); |
| try { |
| return _gdk_pointer_grab(window, owner_events, event_mask, confine_to, cursor, time); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param device cast=(GdkDevice *) |
| * @param window cast=(GdkWindow *) |
| * @param owner_events cast=(gboolean) |
| * @param event_mask cast=(GdkEventMask) |
| * @param cursor cast=(GdkCursor *) |
| * @param time_ cast=(guint32) |
| */ |
| public static final native int _gdk_device_grab(long /*int*/ device, long /*int*/ window, int grab_ownership, boolean owner_events, int event_mask, long /*int*/ cursor, int time_); |
| public static final int gdk_device_grab(long /*int*/ device, long /*int*/ window, int grab_ownership, boolean owner_events, int event_mask, long /*int*/ cursor, int time_) { |
| lock.lock(); |
| try { |
| return _gdk_device_grab(device, window, grab_ownership, owner_events, event_mask, cursor,time_); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param time cast=(guint32) |
| */ |
| public static final native void _gdk_pointer_ungrab(int time); |
| public static final void gdk_pointer_ungrab(int time) { |
| lock.lock(); |
| try { |
| _gdk_pointer_ungrab(time); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param device cast=(GdkDevice *) |
| * @param time_ cast=(guint32) |
| */ |
| public static final native void _gdk_device_ungrab(long /*int*/ device, int time_); |
| public static final void gdk_device_ungrab(long /*int*/ device, int time_) { |
| lock.lock(); |
| try { |
| _gdk_device_ungrab(device, time_); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param device cast=(GdkDevice *) |
| */ |
| public static final native long /*int*/ _gdk_device_get_associated_device(long /*int*/ device); |
| public static final long /*int*/ gdk_device_get_associated_device(long /*int*/ device) { |
| lock.lock(); |
| try { |
| return _gdk_device_get_associated_device(device); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param property cast=(GdkAtom) |
| * @param type cast=(GdkAtom) |
| * @param actual_property_type cast=(GdkAtom *) |
| * @param actual_format cast=(gint *) |
| * @param actual_length cast=(gint *) |
| * @param data cast=(guchar **) |
| */ |
| public static final native boolean _gdk_property_get(long /*int*/ window, long /*int*/ property, long /*int*/ type, long /*int*/ offset, long /*int*/ length, int pdelete, long /*int*/[] actual_property_type, int[] actual_format, int[] actual_length, long /*int*/[] data); |
| public static final boolean gdk_property_get(long /*int*/ window, long /*int*/ property, long /*int*/ type, long /*int*/ offset, long /*int*/ length, int pdelete, long /*int*/[] actual_property_type, int[] actual_format, int[] actual_length, long /*int*/[] data) { |
| lock.lock(); |
| try { |
| return _gdk_property_get(window, property, type, offset, length, pdelete, actual_property_type, actual_format, actual_length, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param region cast=(GdkRegion *) */ |
| public static final native void _gdk_region_destroy(long /*int*/ region); |
| public static final void gdk_region_destroy(long /*int*/ region) { |
| lock.lock(); |
| try { |
| _gdk_region_destroy(region); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param region cast=(GdkRegion *) */ |
| public static final native boolean _gdk_region_empty(long /*int*/ region); |
| public static final boolean gdk_region_empty(long /*int*/ region) { |
| lock.lock(); |
| try { |
| return _gdk_region_empty(region); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param region cast=(GdkRegion *) |
| * @param rectangle cast=(GdkRectangle *),flags=no_in |
| */ |
| public static final native void _gdk_region_get_clipbox(long /*int*/ region, GdkRectangle rectangle); |
| public static final void gdk_region_get_clipbox(long /*int*/ region, GdkRectangle rectangle) { |
| lock.lock(); |
| try { |
| _gdk_region_get_clipbox(region, rectangle); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param n_rectangles cast=(gint *) |
| */ |
| public static final native void _gdk_region_get_rectangles(long /*int*/ region, long /*int*/[] rectangles, int[] n_rectangles); |
| public static final void gdk_region_get_rectangles(long /*int*/ region, long /*int*/[] rectangles, int[] n_rectangles) { |
| lock.lock(); |
| try { |
| _gdk_region_get_rectangles(region, rectangles, n_rectangles); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param source1 cast=(GdkRegion *) |
| * @param source2 cast=(GdkRegion *) |
| */ |
| public static final native void _gdk_region_intersect(long /*int*/ source1, long /*int*/ source2); |
| public static final void gdk_region_intersect(long /*int*/ source1, long /*int*/ source2) { |
| lock.lock(); |
| try { |
| _gdk_region_intersect(source1, source2); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gdk_cairo_region_create_from_surface(long /*int*/ surface); |
| public static final long /*int*/ gdk_cairo_region_create_from_surface(long /*int*/ surface) { |
| lock.lock(); |
| try { |
| return _gdk_cairo_region_create_from_surface(surface); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gtk_widget_shape_combine_region(long /*int*/ widget, long /*int*/ region); |
| public static final void gtk_widget_shape_combine_region(long /*int*/ widget, long /*int*/ region) { |
| lock.lock(); |
| try { |
| _gtk_widget_shape_combine_region(widget,region); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gdk_region_new(); |
| public static final long /*int*/ gdk_region_new() { |
| lock.lock(); |
| try { |
| return _gdk_region_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param region cast=(GdkRegion *) |
| * @param dx cast=(gint) |
| * @param dy cast=(gint) |
| */ |
| public static final native void _gdk_region_offset(long /*int*/ region, int dx, int dy); |
| public static final void gdk_region_offset(long /*int*/ region, int dx, int dy) { |
| lock.lock(); |
| try { |
| _gdk_region_offset(region, dx, dy); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param region cast=(GdkRegion *) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| */ |
| public static final native boolean _gdk_region_point_in(long /*int*/ region, int x, int y); |
| public static final boolean gdk_region_point_in(long /*int*/ region, int x, int y) { |
| lock.lock(); |
| try { |
| return _gdk_region_point_in(region, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gdk_region_polygon(int[] points, int npoints, int fill_rule); |
| public static final long /*int*/ gdk_region_polygon(int[] points, int npoints, int fill_rule) { |
| lock.lock(); |
| try { |
| return _gdk_region_polygon(points, npoints, fill_rule); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param rectangle flags=no_out |
| */ |
| public static final native long /*int*/ _gdk_region_rectangle(GdkRectangle rectangle); |
| public static final long /*int*/ gdk_region_rectangle(GdkRectangle rectangle) { |
| lock.lock(); |
| try { |
| return _gdk_region_rectangle(rectangle); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param region cast=(GdkRegion *) |
| * @param rect cast=(GdkRectangle *),flags=no_out |
| */ |
| public static final native long /*int*/ _gdk_region_rect_in(long /*int*/ region, GdkRectangle rect); |
| public static final long /*int*/ gdk_region_rect_in(long /*int*/ region, GdkRectangle rect) { |
| lock.lock(); |
| try { |
| return _gdk_region_rect_in(region, rect); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param source1 cast=(GdkRegion *) |
| * @param source2 cast=(GdkRegion *) |
| */ |
| public static final native void _gdk_region_subtract(long /*int*/ source1, long /*int*/ source2); |
| public static final void gdk_region_subtract(long /*int*/ source1, long /*int*/ source2) { |
| lock.lock(); |
| try { |
| _gdk_region_subtract(source1, source2); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param source1 cast=(GdkRegion *) |
| * @param source2 cast=(GdkRegion *) |
| */ |
| public static final native void _gdk_region_union(long /*int*/ source1, long /*int*/ source2); |
| public static final void gdk_region_union(long /*int*/ source1, long /*int*/ source2) { |
| lock.lock(); |
| try { |
| _gdk_region_union(source1, source2); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param region cast=(GdkRegion *) |
| * @param rect cast=(GdkRectangle *),flags=no_out |
| */ |
| public static final native void _gdk_region_union_with_rect(long /*int*/ region, GdkRectangle rect); |
| public static final void gdk_region_union_with_rect(long /*int*/ region, GdkRectangle rect) { |
| lock.lock(); |
| try { |
| _gdk_region_union_with_rect(region, rect); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param rgba cast=(GdkRGBA *) |
| */ |
| public static final native long /*int*/ _gdk_rgba_to_string(GdkRGBA rgba); |
| public static final long /*int*/ gdk_rgba_to_string(GdkRGBA rgba) { |
| lock.lock(); |
| try { |
| return _gdk_rgba_to_string(rgba); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param rgba cast=(GdkRGBA *) |
| * @param property cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gdk_rgba_parse(GdkRGBA rgba, byte[] property); |
| public static final long /*int*/ gdk_rgba_parse(GdkRGBA rgba, byte[] property) { |
| lock.lock(); |
| try { |
| return _gdk_rgba_parse(rgba, property); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gdk_screen_get_default(); |
| public static final long /*int*/ gdk_screen_get_default() { |
| lock.lock(); |
| try { |
| return _gdk_screen_get_default(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param screen cast=(GdkScreen *) */ |
| public static final native long /*int*/ _gdk_screen_get_active_window(long /*int*/ screen); |
| public static final long /*int*/ gdk_screen_get_active_window(long /*int*/ screen) { |
| lock.lock(); |
| try { |
| return _gdk_screen_get_active_window(screen); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param screen cast=(GdkScreen *) |
| */ |
| public static final native double _gdk_screen_get_resolution(long /*int*/ screen); |
| public static final double gdk_screen_get_resolution(long /*int*/ screen) { |
| lock.lock(); |
| try { |
| return _gdk_screen_get_resolution(screen); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param screen cast=(GdkScreen *) |
| * @param monitor_num cast=(gint) |
| */ |
| public static final native int _gdk_screen_get_monitor_scale_factor(long /*int*/ screen, int monitor_num); |
| public static final int gdk_screen_get_monitor_scale_factor(long /*int*/ screen, int monitor_num) { |
| lock.lock(); |
| try { |
| return _gdk_screen_get_monitor_scale_factor(screen, monitor_num); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param screen cast=(GdkScreen *) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| */ |
| public static final native int _gdk_screen_get_monitor_at_point (long /*int*/ screen, int x, int y); |
| public static final int gdk_screen_get_monitor_at_point (long /*int*/ screen, int x, int y) { |
| lock.lock(); |
| try { |
| return _gdk_screen_get_monitor_at_point (screen, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param screen cast=(GdkScreen *) |
| * @param window cast=(GdkWindow *) |
| */ |
| public static final native int _gdk_screen_get_monitor_at_window(long /*int*/ screen, long /*int*/ window); |
| public static final int gdk_screen_get_monitor_at_window(long /*int*/ screen, long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gdk_screen_get_monitor_at_window(screen, window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param screen cast=(GdkScreen *) |
| * @param dest flags=no_in |
| */ |
| public static final native void _gdk_screen_get_monitor_geometry (long /*int*/ screen, int monitor_num, GdkRectangle dest); |
| public static final void gdk_screen_get_monitor_geometry (long /*int*/ screen, int monitor_num, GdkRectangle dest) { |
| lock.lock(); |
| try { |
| _gdk_screen_get_monitor_geometry(screen, monitor_num, dest); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @method flags=dynamic |
| * @param screen cast=(GdkScreen *) |
| * @param dest flags=no_in |
| */ |
| public static final native void _gdk_screen_get_monitor_workarea (long /*int*/ screen, int monitor_num, GdkRectangle dest); |
| public static final void gdk_screen_get_monitor_workarea (long /*int*/ screen, int monitor_num, GdkRectangle dest) { |
| lock.lock(); |
| try { |
| _gdk_screen_get_monitor_workarea(screen, monitor_num, dest); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @method flags=dynamic |
| * @param screen cast=(GdkScreen *) |
| */ |
| public static final native int _gdk_screen_get_n_monitors(long /*int*/ screen); |
| public static final int gdk_screen_get_n_monitors(long /*int*/ screen) { |
| lock.lock(); |
| try { |
| return _gdk_screen_get_n_monitors(screen); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @method flags=dynamic |
| * @param screen cast=(GdkScreen *) |
| */ |
| public static final native int _gdk_screen_get_primary_monitor(long /*int*/ screen); |
| public static final int gdk_screen_get_primary_monitor(long /*int*/ screen) { |
| lock.lock(); |
| try { |
| return _gdk_screen_get_primary_monitor(screen); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| |
| public static final native int _gdk_screen_height(); |
| public static final int gdk_screen_height() { |
| lock.lock(); |
| try { |
| return _gdk_screen_height(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native int _gdk_screen_width(); |
| public static final int gdk_screen_width() { |
| lock.lock(); |
| try { |
| return _gdk_screen_width(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native int _gdk_screen_width_mm(); |
| public static final int gdk_screen_width_mm() { |
| lock.lock(); |
| try { |
| return _gdk_screen_width_mm(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @method flags=dynamic |
| * @param screen cast=(GdkScreen *) |
| */ |
| public static final native int _gdk_screen_get_monitor_width_mm(long /*int*/ screen, int monitor_num); |
| public static final int gdk_screen_get_monitor_width_mm(long /*int*/ screen, int monitor_num) { |
| lock.lock(); |
| try { |
| return _gdk_screen_get_monitor_width_mm(screen, monitor_num); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** @param program_class cast=(const char *) */ |
| public static final native void _gdk_set_program_class(byte[] program_class); |
| public static final void gdk_set_program_class(byte[] program_class) { |
| lock.lock(); |
| try { |
| _gdk_set_program_class(program_class); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param atom cast=(GdkAtom) */ |
| public static final native void _gdk_selection_owner_get(long /*int*/ atom); |
| public static final void gdk_selection_owner_get(long /*int*/ atom) { |
| lock.lock(); |
| try { |
| _gdk_selection_owner_get(atom); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param owner cast=(GdkWindow *) |
| * @param atom cast=(GdkAtom) |
| * @param time cast=(guint32) |
| * @param send_event cast=(gboolean) |
| */ |
| public static final native void _gdk_selection_owner_set(long /*int*/ owner, long /*int*/ atom, int time, boolean send_event); |
| public static final void gdk_selection_owner_set(long /*int*/ owner, long /*int*/ atom, int time, boolean send_event) { |
| lock.lock(); |
| try { |
| _gdk_selection_owner_set(owner, atom, time, send_event); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param display cast=(GdkDisplay *) |
| * @method flags=dynamic |
| */ |
| public static final native boolean _gdk_x11_display_utf8_to_compound_text(long /*int*/ display, byte[] str, long /*int*/[] encoding, int[] format, long /*int*/[] ctext, int[] length); |
| public static final boolean gdk_x11_display_utf8_to_compound_text(long /*int*/ display, byte[] str, long /*int*/[] encoding, int[] format, long /*int*/[] ctext, int[] length) { |
| lock.lock(); |
| try { |
| return _gdk_x11_display_utf8_to_compound_text(display, str, encoding, format, ctext, length); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param str cast=(const gchar *) */ |
| public static final native long /*int*/ _gdk_utf8_to_string_target(byte[] str); |
| public static final long /*int*/ gdk_utf8_to_string_target(byte[] str) { |
| lock.lock(); |
| try { |
| return _gdk_utf8_to_string_target(str); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| * @param button cast=(guint) |
| * @param modifiers cast=(GdkModifierType) |
| * @param button_pressrelease cast=(GdkEventType) |
| */ |
| public static final native boolean _gdk_test_simulate_button(long /*int*/ window, int x, int y, int button, |
| int modifiers, int button_pressrelease); |
| public static final boolean gdk_test_simulate_button(long /*int*/ window, int x, int y, int button, int modifiers, |
| int button_pressrelease) { |
| lock.lock(); |
| try { |
| return _gdk_test_simulate_button(window, x, y, button, modifiers, button_pressrelease); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param display cast=(GdkDisplay *) |
| * @param encoding cast=(GdkAtom) |
| * @param text cast=(guchar *) |
| * @param list cast=(gchar ***) |
| */ |
| public static final native int _gdk_text_property_to_utf8_list_for_display (long /*int*/ display, long /*int*/ encoding, int format, long /*int*/ text, int length, long /*int*/[] list); |
| public static final int gdk_text_property_to_utf8_list_for_display (long /*int*/ display, long /*int*/ encoding, int format, long /*int*/ text, int length, long /*int*/[] list) { |
| lock.lock(); |
| try { |
| return _gdk_text_property_to_utf8_list_for_display(display, encoding, format, text, length, list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native void gdk_threads_leave (); |
| |
| public static final native int _gdk_unicode_to_keyval(int wc); |
| public static final int gdk_unicode_to_keyval(int wc) { |
| lock.lock(); |
| try { |
| return _gdk_unicode_to_keyval(wc); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param visual cast=(GdkVisual *) |
| */ |
| public static final native int _gdk_visual_get_depth(long /*int*/ visual); |
| public static final int gdk_visual_get_depth(long /*int*/ visual) { |
| lock.lock(); |
| try { |
| return _gdk_visual_get_depth(visual); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gdk_visual_get_system(); |
| public static final long /*int*/ gdk_visual_get_system() { |
| lock.lock(); |
| try { |
| return _gdk_visual_get_system(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param win_x cast=(gint *) |
| * @param win_y cast=(gint *) |
| */ |
| public static final native long /*int*/ _gdk_window_at_pointer(int[] win_x, int[] win_y); |
| public static final long /*int*/ gdk_window_at_pointer(int[] win_x, int[] win_y) { |
| lock.lock(); |
| try { |
| return _gdk_window_at_pointer(win_x, win_y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param rectangle cast=(GdkRectangle *),flags=no_out |
| */ |
| public static final native void _gdk_window_begin_paint_rect(long /*int*/ window, GdkRectangle rectangle); |
| public static final void gdk_window_begin_paint_rect(long /*int*/ window, GdkRectangle rectangle) { |
| lock.lock(); |
| try { |
| _gdk_window_begin_paint_rect(window, rectangle); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| */ |
| public static final native long /*int*/ _gdk_window_create_similar_surface(long /*int*/ window, int content, int width, int height); |
| public static final long /*int*/ gdk_window_create_similar_surface(long /*int*/ window, int content, int width, int height) { |
| lock.lock(); |
| try { |
| return _gdk_window_create_similar_surface(window, content, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native void _gdk_window_destroy(long /*int*/ window); |
| public static final void gdk_window_destroy(long /*int*/ window) { |
| lock.lock(); |
| try { |
| _gdk_window_destroy(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native void _gdk_window_end_paint(long /*int*/ window); |
| public static final void gdk_window_end_paint(long /*int*/ window) { |
| lock.lock(); |
| try { |
| _gdk_window_end_paint(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native long /*int*/ _gdk_window_get_children(long /*int*/ window); |
| public static final long /*int*/ gdk_window_get_children(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gdk_window_get_children(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native int _gdk_window_get_events(long /*int*/ window); |
| public static final int gdk_window_get_events(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gdk_window_get_events(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native void _gdk_window_focus(long /*int*/ window, int timestamp); |
| public static final void gdk_window_focus(long /*int*/ window, int timestamp) { |
| lock.lock(); |
| try { |
| _gdk_window_focus(window, timestamp); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param rect cast=(GdkRectangle *),flags=no_in |
| */ |
| public static final native void _gdk_window_get_frame_extents(long /*int*/ window, GdkRectangle rect); |
| public static final void gdk_window_get_frame_extents(long /*int*/ window, GdkRectangle rect) { |
| lock.lock(); |
| try { |
| _gdk_window_get_frame_extents(window, rect); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| * @param x_offset cast=(gint *) |
| * @param y_offset cast=(gint *) |
| */ |
| public static final native void _gdk_window_get_internal_paint_info(long /*int*/ window, long /*int*/ [] real_drawable, int[] x_offset, int[] y_offset); |
| public static final void gdk_window_get_internal_paint_info(long /*int*/ window, long /*int*/ [] real_drawable, int[] x_offset, int[] y_offset) { |
| lock.lock(); |
| try { |
| _gdk_window_get_internal_paint_info(window, real_drawable, x_offset, y_offset); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param x cast=(gint *) |
| * @param y cast=(gint *) |
| */ |
| public static final native int _gdk_window_get_origin(long /*int*/ window, int[] x, int[] y); |
| public static final int gdk_window_get_origin(long /*int*/ window, int[] x, int[] y) { |
| lock.lock(); |
| try { |
| return _gdk_window_get_origin(window, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| * @param device cast=(GdkDevice *) |
| * @param x cast=(gint *) |
| * @param y cast=(gint *) |
| * @param mask cast=(GdkModifierType *) |
| */ |
| public static final native long /*int*/ _gdk_window_get_device_position(long /*int*/ window, long /*int*/ device, int[] x, int[] y, int[] mask); |
| public static final long /*int*/ gdk_window_get_device_position(long /*int*/ window, long /*int*/ device, int[] x, int[] y, int[] mask) { |
| lock.lock(); |
| try { |
| return _gdk_window_get_device_position(window, device, x, y, mask); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native long /*int*/ _gdk_window_get_parent(long /*int*/ window); |
| public static final long /*int*/ gdk_window_get_parent(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gdk_window_get_parent(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| * @param x cast=(gint *) |
| * @param y cast=(gint *) |
| * @param mask cast=(GdkModifierType *) |
| */ |
| public static final native long /*int*/ _gdk_window_get_pointer(long /*int*/ window, int[] x, int[] y, int[] mask); |
| public static final long /*int*/ gdk_window_get_pointer(long /*int*/ window, int[] x, int[] y, int[] mask) { |
| lock.lock(); |
| try { |
| return _gdk_window_get_pointer(window, x, y, mask); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param x cast=(gint *) |
| * @param y cast=(gint *) |
| */ |
| public static final native void _gdk_window_get_position(long /*int*/ window, int[] x, int[] y); |
| public static final void gdk_window_get_position(long /*int*/ window, int[] x, int[] y) { |
| lock.lock(); |
| try { |
| _gdk_window_get_position(window, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param data cast=(gpointer *) |
| */ |
| public static final native void _gdk_window_get_user_data(long /*int*/ window, long /*int*/[] data); |
| public static final void gdk_window_get_user_data(long /*int*/ window, long /*int*/[] data) { |
| lock.lock(); |
| try { |
| _gdk_window_get_user_data(window, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native void _gdk_window_hide(long /*int*/ window); |
| public static final void gdk_window_hide(long /*int*/ window) { |
| lock.lock(); |
| try { |
| _gdk_window_hide(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param rectangle cast=(GdkRectangle *),flags=no_out |
| * @param invalidate_children cast=(gboolean) |
| */ |
| public static final native void _gdk_window_invalidate_rect(long /*int*/ window, GdkRectangle rectangle, boolean invalidate_children); |
| public static final void gdk_window_invalidate_rect(long /*int*/ window, GdkRectangle rectangle, boolean invalidate_children) { |
| lock.lock(); |
| try { |
| _gdk_window_invalidate_rect(window, rectangle, invalidate_children); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| * @param invalidate_children cast=(gboolean) |
| */ |
| public static final native void _gdk_window_invalidate_region(long /*int*/ window, long /*int*/ region, boolean invalidate_children); |
| public static final void gdk_window_invalidate_region(long /*int*/ window, long /*int*/ region, boolean invalidate_children) { |
| lock.lock(); |
| try { |
| _gdk_window_invalidate_region(window, region, invalidate_children); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native boolean _gdk_window_is_visible(long /*int*/ window); |
| public static final boolean gdk_window_is_visible(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gdk_window_is_visible(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native void _gdk_window_move(long /*int*/ window, int x, int y); |
| public static final void gdk_window_move(long /*int*/ window, int x, int y) { |
| lock.lock(); |
| try { |
| _gdk_window_move(window, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native void _gdk_window_move_resize(long /*int*/ window, int x, int y, int width, int height); |
| public static final void gdk_window_move_resize(long /*int*/ window, int x, int y, int width, int height) { |
| lock.lock(); |
| try { |
| _gdk_window_move_resize(window, x, y, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param parent cast=(GdkWindow *) |
| * @param attributes flags=no_out |
| */ |
| public static final native long /*int*/ _gdk_window_new(long /*int*/ parent, GdkWindowAttr attributes, int attributes_mask); |
| public static final long /*int*/ gdk_window_new(long /*int*/ parent, GdkWindowAttr attributes, int attributes_mask) { |
| lock.lock(); |
| try { |
| return _gdk_window_new(parent, attributes, attributes_mask); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native void _gdk_window_lower(long /*int*/ window); |
| public static final void gdk_window_lower(long /*int*/ window) { |
| lock.lock(); |
| try { |
| _gdk_window_lower(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native void _gdk_window_process_all_updates(); |
| public static final void gdk_window_process_all_updates() { |
| lock.lock(); |
| try { |
| _gdk_window_process_all_updates(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param update_children cast=(gboolean) |
| */ |
| public static final native void _gdk_window_process_updates(long /*int*/ window, boolean update_children); |
| public static final void gdk_window_process_updates(long /*int*/ window, boolean update_children) { |
| lock.lock(); |
| try { |
| _gdk_window_process_updates(window, update_children); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native void _gdk_window_raise(long /*int*/ window); |
| public static final void gdk_window_raise(long /*int*/ window) { |
| lock.lock(); |
| try { |
| _gdk_window_raise(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native void _gdk_window_resize(long /*int*/ window, int width, int height); |
| public static final void gdk_window_resize(long /*int*/ window, int width, int height) { |
| lock.lock(); |
| try { |
| _gdk_window_resize(window, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| * @param sibling cast=(GdkWindow *) |
| * @param above cast=(gboolean) |
| */ |
| public static final native void _gdk_window_restack(long /*int*/ window, long /*int*/ sibling, boolean above); |
| public static final void gdk_window_restack(long /*int*/ window, long /*int*/ sibling, boolean above) { |
| lock.lock(); |
| try { |
| _gdk_window_restack(window, sibling, above); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gdk_window_set_background_pattern(long /*int*/ window, long /*int*/ pattern); |
| public static final void gdk_window_set_background_pattern(long /*int*/ window, long /*int*/ pattern) { |
| lock.lock(); |
| try { |
| _gdk_window_set_background_pattern(window, pattern); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| * @param parent_relative cast=(gboolean) |
| */ |
| public static final native void _gdk_window_set_back_pixmap(long /*int*/ window, long /*int*/ pixmap, boolean parent_relative); |
| public static final void gdk_window_set_back_pixmap(long /*int*/ window, long /*int*/ pixmap, boolean parent_relative) { |
| lock.lock(); |
| try { |
| _gdk_window_set_back_pixmap(window, pixmap, parent_relative); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param cursor cast=(GdkCursor *) |
| */ |
| public static final native void _gdk_window_set_cursor(long /*int*/ window, long /*int*/ cursor); |
| public static final void gdk_window_set_cursor(long /*int*/ window, long /*int*/ cursor) { |
| lock.lock(); |
| try { |
| _gdk_window_set_cursor(window, cursor); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param decorations cast=(GdkWMDecoration) |
| */ |
| public static final native void _gdk_window_set_decorations(long /*int*/ window, int decorations); |
| public static final void gdk_window_set_decorations(long /*int*/ window, int decorations) { |
| lock.lock(); |
| try { |
| _gdk_window_set_decorations(window, decorations); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param functions cast=(GdkWMFunction) |
| */ |
| public static final native void _gdk_window_set_functions(long /*int*/ window, int functions); |
| public static final void gdk_window_set_functions(long /*int*/ window, int functions) { |
| lock.lock(); |
| try { |
| _gdk_window_set_functions(window, functions); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native void _gdk_window_set_events(long /*int*/ window, int event_mask); |
| public static final void gdk_window_set_events(long /*int*/ window, int event_mask) { |
| lock.lock(); |
| try { |
| _gdk_window_set_events(window, event_mask); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param override_redirect cast=(gboolean) |
| */ |
| public static final native void _gdk_window_set_override_redirect(long /*int*/ window, boolean override_redirect); |
| public static final void gdk_window_set_override_redirect(long /*int*/ window, boolean override_redirect) { |
| lock.lock(); |
| try { |
| _gdk_window_set_override_redirect(window, override_redirect); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GdkWindow *) |
| * @param user_data cast=(gpointer) |
| */ |
| public static final native void _gdk_window_set_user_data(long /*int*/ window, long /*int*/ user_data); |
| public static final void gdk_window_set_user_data(long /*int*/ window, long /*int*/ user_data) { |
| lock.lock(); |
| try { |
| _gdk_window_set_user_data(window, user_data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param window cast=(GdkWindow *) |
| */ |
| public static final native void _gdk_window_shape_combine_region (long /*int*/ window, long /*int*/ shape_region, int offset_x, int offset_y); |
| public static final void gdk_window_shape_combine_region (long /*int*/ window, long /*int*/ shape_region, int offset_x, int offset_y) { |
| lock.lock(); |
| try { |
| _gdk_window_shape_combine_region(window, shape_region, offset_x, offset_y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native void _gdk_window_show(long /*int*/ window); |
| public static final void gdk_window_show(long /*int*/ window) { |
| lock.lock(); |
| try { |
| _gdk_window_show(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GdkWindow *) */ |
| public static final native void _gdk_window_show_unraised(long /*int*/ window); |
| public static final void gdk_window_show_unraised(long /*int*/ window) { |
| lock.lock(); |
| try { |
| _gdk_window_show_unraised(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native int _gtk_accelerator_get_default_mod_mask(); |
| public static final int gtk_accelerator_get_default_mod_mask() { |
| lock.lock(); |
| try { |
| return _gtk_accelerator_get_default_mod_mask(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param accelerator cast=(const gchar *) |
| * @param accelerator_key cast=(guint *) |
| * @param accelerator_mods cast=(GdkModifierType *) |
| */ |
| public static final native void _gtk_accelerator_parse(long /*int*/ accelerator, int [] accelerator_key, int [] accelerator_mods); |
| public static final void gtk_accelerator_parse(long /*int*/ accelerator, int [] accelerator_key, int [] accelerator_mods) { |
| lock.lock(); |
| try { |
| _gtk_accelerator_parse(accelerator, accelerator_key, accelerator_mods); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_accel_group_new(); |
| public static final long /*int*/ gtk_accel_group_new() { |
| lock.lock(); |
| try { |
| return _gtk_accel_group_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param accel_label cast=(GtkAccelLabel *) |
| * @param accel_widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_accel_label_set_accel_widget(long /*int*/ accel_label, long /*int*/ accel_widget); |
| public static final void gtk_accel_label_set_accel_widget(long /*int*/ accel_label, long /*int*/ accel_widget) { |
| lock.lock(); |
| try { |
| _gtk_accel_label_set_accel_widget(accel_label, accel_widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param accel_label cast=(GtkAccelLabel *) |
| * @param accel_key cast=(guint) |
| * @param accel_mods cast=(GdkModifierType) |
| */ |
| public static final native void _gtk_accel_label_set_accel(long /*int*/ accel_label, int accel_key, int accel_mods); |
| public static final void gtk_accel_label_set_accel(long /*int*/ accel_label, int accel_key, int accel_mods) { |
| lock.lock(); |
| try { |
| _gtk_accel_label_set_accel(accel_label, accel_key, accel_mods); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param label cast=(const gchar *) */ |
| public static final native long /*int*/ _gtk_accel_label_new(byte[] label); |
| public static final long /*int*/ gtk_accel_label_new(byte[] label) { |
| lock.lock(); |
| try { |
| return _gtk_accel_label_new(label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param accessible cast=(GtkAccessible *) |
| */ |
| public static final native long /*int*/ _gtk_accessible_get_widget(long /*int*/ accessible); |
| public static final long /*int*/ gtk_accessible_get_widget(long /*int*/ accessible) { |
| lock.lock(); |
| try { |
| return _gtk_accessible_get_widget(accessible); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native void _gtk_adjustment_configure(long /*int*/ adjustment, double value, double lower, double upper, double step_increment, double page_increment, double page_size); |
| public static final void gtk_adjustment_configure(long /*int*/ adjustment, double value, double lower, double upper, double step_increment, double page_increment, double page_size) { |
| lock.lock(); |
| try { |
| _gtk_adjustment_configure(adjustment, value, lower, upper, step_increment, page_increment, page_size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param value cast=(gdouble) |
| * @param lower cast=(gdouble) |
| * @param upper cast=(gdouble) |
| * @param step_increment cast=(gdouble) |
| * @param page_increment cast=(gdouble) |
| */ |
| public static final native long /*int*/ _gtk_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size); |
| public static final long /*int*/ gtk_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size) { |
| lock.lock(); |
| try { |
| return _gtk_adjustment_new(value, lower, upper, step_increment, page_increment, page_size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native double _gtk_adjustment_get_lower(long /*int*/ adjustment); |
| public static final double gtk_adjustment_get_lower(long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| return _gtk_adjustment_get_lower(adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native double _gtk_adjustment_get_page_increment(long /*int*/ adjustment); |
| public static final double gtk_adjustment_get_page_increment(long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| return _gtk_adjustment_get_page_increment(adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native double _gtk_adjustment_get_page_size(long /*int*/ adjustment); |
| public static final double gtk_adjustment_get_page_size(long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| return _gtk_adjustment_get_page_size(adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native double _gtk_adjustment_get_step_increment(long /*int*/ adjustment); |
| public static final double gtk_adjustment_get_step_increment(long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| return _gtk_adjustment_get_step_increment(adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native double _gtk_adjustment_get_upper(long /*int*/ adjustment); |
| public static final double gtk_adjustment_get_upper(long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| return _gtk_adjustment_get_upper(adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native double _gtk_adjustment_get_value(long /*int*/ adjustment); |
| public static final double gtk_adjustment_get_value(long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| return _gtk_adjustment_get_value(adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| * @param value cast=(gdouble) |
| */ |
| public static final native void _gtk_adjustment_set_value(long /*int*/ adjustment, double value); |
| public static final void gtk_adjustment_set_value(long /*int*/ adjustment, double value) { |
| lock.lock(); |
| try { |
| _gtk_adjustment_set_value(adjustment, value); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| * @param value cast=(gdouble) |
| */ |
| public static final native void _gtk_adjustment_set_step_increment(long /*int*/ adjustment, double value); |
| public static final void gtk_adjustment_set_step_increment(long /*int*/ adjustment, double value) { |
| lock.lock(); |
| try { |
| _gtk_adjustment_set_step_increment(adjustment, value); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| * @param value cast=(gdouble) |
| */ |
| public static final native void _gtk_adjustment_set_page_increment(long /*int*/ adjustment, double value); |
| public static final void gtk_adjustment_set_page_increment(long /*int*/ adjustment, double value) { |
| lock.lock(); |
| try { |
| _gtk_adjustment_set_page_increment(adjustment, value); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.18 deprecated] |
| * @param adjustment cast=(GtkAdjustment *) |
| * */ |
| public static final native void _gtk_adjustment_value_changed(long /*int*/ adjustment); |
| public static final void gtk_adjustment_value_changed(long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| _gtk_adjustment_value_changed(adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.14 deprecated] |
| * @param arrow_type cast=(GtkArrowType) |
| * @param shadow_type cast=(GtkShadowType) |
| */ |
| public static final native long /*int*/ _gtk_arrow_new(int arrow_type, int shadow_type); |
| public static final long /*int*/ gtk_arrow_new(int arrow_type, int shadow_type) { |
| lock.lock(); |
| try { |
| return _gtk_arrow_new(arrow_type, shadow_type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.14 deprecated] |
| * @param arrow cast=(GtkArrow *) |
| * @param arrow_type cast=(GtkArrowType) |
| * @param shadow_type cast=(GtkShadowType) |
| */ |
| public static final native void _gtk_arrow_set(long /*int*/ arrow, int arrow_type, int shadow_type); |
| public static final void gtk_arrow_set(long /*int*/ arrow, int arrow_type, int shadow_type) { |
| lock.lock(); |
| try { |
| _gtk_arrow_set(arrow, arrow_type, shadow_type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param bin cast=(GtkBin *) */ |
| public static final native long /*int*/ _gtk_bin_get_child(long /*int*/ bin); |
| public static final long /*int*/ gtk_bin_get_child(long /*int*/ bin) { |
| lock.lock(); |
| try { |
| return _gtk_bin_get_child(bin); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param border cast=(GtkBorder *) */ |
| public static final native void _gtk_border_free(long /*int*/ border); |
| public static final void gtk_border_free(long /*int*/ border) { |
| lock.lock(); |
| try { |
| _gtk_border_free(border); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param box cast=(GtkBox *) */ |
| public static final native void _gtk_box_set_spacing(long /*int*/ box, int spacing); |
| public static final void gtk_box_set_spacing(long /*int*/ box, int spacing) { |
| lock.lock(); |
| try { |
| _gtk_box_set_spacing(box, spacing); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param box cast=(GtkBox *) |
| * @param child cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_box_set_child_packing(long /*int*/ box, long /*int*/ child, boolean expand, boolean fill, int padding, int pack_type); |
| public static final void gtk_box_set_child_packing(long /*int*/ box, long /*int*/ child, boolean expand, boolean fill, int padding, int pack_type) { |
| lock.lock(); |
| try { |
| _gtk_box_set_child_packing(box, child, expand, fill, padding, pack_type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param button cast=(GtkButton *) */ |
| public static final native void _gtk_button_clicked(long /*int*/ button); |
| public static final void gtk_button_clicked(long /*int*/ button) { |
| lock.lock(); |
| try { |
| _gtk_button_clicked(button); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_button_new(); |
| public static final long /*int*/ gtk_button_new() { |
| lock.lock(); |
| try { |
| return _gtk_button_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_calendar_new(); |
| public static final long /*int*/ gtk_calendar_new() { |
| lock.lock(); |
| try { |
| return _gtk_calendar_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param calendar cast=(GtkCalendar *) |
| * @param month cast=(guint) |
| * @param year cast=(guint) |
| */ |
| public static final native void /*long*/ _gtk_calendar_select_month(long /*int*/ calendar, int month, int year); |
| public static final void /*long*/ gtk_calendar_select_month(long /*int*/ calendar, int month, int year) { |
| lock.lock(); |
| try { |
| _gtk_calendar_select_month(calendar, month, year); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param calendar cast=(GtkCalendar *) |
| * @param day cast=(guint) |
| */ |
| public static final native void _gtk_calendar_select_day(long /*int*/ calendar, int day); |
| public static final void gtk_calendar_select_day(long /*int*/ calendar, int day) { |
| lock.lock(); |
| try { |
| _gtk_calendar_select_day(calendar, day); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param calendar cast=(GtkCalendar *) |
| * @param day cast=(guint) |
| */ |
| public static final native void _gtk_calendar_mark_day(long /*int*/ calendar, int day); |
| public static final void gtk_calendar_mark_day(long /*int*/ calendar, int day) { |
| lock.lock(); |
| try { |
| _gtk_calendar_mark_day(calendar, day); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param calendar cast=(GtkCalendar *) |
| */ |
| public static final native void _gtk_calendar_clear_marks(long /*int*/ calendar); |
| public static final void gtk_calendar_clear_marks(long /*int*/ calendar) { |
| lock.lock(); |
| try { |
| _gtk_calendar_clear_marks(calendar); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param calendar cast=(GtkCalendar *) |
| * @param flags cast=(GtkCalendarDisplayOptions) |
| */ |
| public static final native void _gtk_calendar_set_display_options(long /*int*/ calendar, int flags); |
| public static final void gtk_calendar_set_display_options(long /*int*/ calendar, int flags) { |
| lock.lock(); |
| try { |
| _gtk_calendar_set_display_options(calendar, flags); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param calendar cast=(GtkCalendar *) |
| * @param year cast=(guint *) |
| * @param month cast=(guint *) |
| * @param day cast=(guint *) |
| */ |
| public static final native void _gtk_calendar_get_date(long /*int*/ calendar, int[] year, int[] month, int[] day); |
| public static final void gtk_calendar_get_date(long /*int*/ calendar, int[] year, int[] month, int[] day) { |
| lock.lock(); |
| try { |
| _gtk_calendar_get_date(calendar, year, month, day); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param cell_layout cast=(GtkCellLayout *) */ |
| public static final native void _gtk_cell_layout_clear(long /*int*/ cell_layout); |
| public static final void gtk_cell_layout_clear(long /*int*/ cell_layout) { |
| lock.lock(); |
| try { |
| _gtk_cell_layout_clear(cell_layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param cell_layout cast=(GtkCellLayout *) */ |
| public static final native long /*int*/ _gtk_cell_layout_get_cells(long /*int*/ cell_layout); |
| public static final long /*int*/ gtk_cell_layout_get_cells(long /*int*/ cell_layout) { |
| lock.lock(); |
| try { |
| return _gtk_cell_layout_get_cells(cell_layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param cell_layout cast=(GtkCellLayout *) |
| * @param cell cast=(GtkCellRenderer *) |
| * @param sentinel cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void _gtk_cell_layout_set_attributes(long /*int*/ cell_layout, long /*int*/ cell, byte[] attribute, int column, long /*int*/ sentinel); |
| public static final void gtk_cell_layout_set_attributes(long /*int*/ cell_layout, long /*int*/ cell, byte[] attribute, int column, long /*int*/ sentinel) { |
| lock.lock(); |
| try { |
| _gtk_cell_layout_set_attributes(cell_layout, cell, attribute, column, sentinel); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param cell_layout cast=(GtkCellLayout *) |
| * @param cell cast=(GtkCellRenderer *) |
| */ |
| public static final native void _gtk_cell_layout_pack_start(long /*int*/ cell_layout, long /*int*/ cell, boolean expand); |
| public static final void gtk_cell_layout_pack_start(long /*int*/ cell_layout, long /*int*/ cell, boolean expand) { |
| lock.lock(); |
| try { |
| _gtk_cell_layout_pack_start(cell_layout, cell, expand); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param cell cast=(GtkCellRenderer *) |
| * @param widget cast=(GtkWidget *) |
| * @param area cast=(GdkRectangle *),flags=no_in |
| * @param x_offset cast=(gint *) |
| * @param y_offset cast=(gint *) |
| * @param width cast=(gint *) |
| * @param height cast=(gint *) |
| */ |
| public static final native void _gtk_cell_renderer_get_size(long /*int*/ cell, long /*int*/ widget, GdkRectangle area, int[] x_offset, int[] y_offset, int[] width, int[] height); |
| public static final void gtk_cell_renderer_get_size(long /*int*/ cell, long /*int*/ widget, GdkRectangle area, int[] x_offset, int[] y_offset, int[] width, int[] height) { |
| lock.lock(); |
| try { |
| _gtk_cell_renderer_get_size(cell, widget, area, x_offset, y_offset, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param cell cast=(GtkCellRenderer *) |
| * @param widget cast=(GtkWidget *) |
| * @param minimum_size cast=(GtkRequisition *) |
| * @param natural_size cast=(GtkRequisition *) |
| */ |
| public static final native void _gtk_cell_renderer_get_preferred_size(long /*int*/ cell, long /*int*/ widget, GtkRequisition minimum_size, GtkRequisition natural_size); |
| public static final void gtk_cell_renderer_get_preferred_size(long /*int*/ cell, long /*int*/ widget, GtkRequisition minimum_size, GtkRequisition natural_size) { |
| lock.lock(); |
| try { |
| _gtk_cell_renderer_get_preferred_size(cell, widget, minimum_size, natural_size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param cell cast=(GtkCellRenderer *) |
| */ |
| public static final native void _gtk_cell_renderer_get_preferred_height_for_width(long /*int*/ cell, long /*int*/ widget, int width, int[] minimum_height, int[] natural_height); |
| public static final void gtk_cell_renderer_get_preferred_height_for_width(long /*int*/ cell, long /*int*/ widget, int width, int[] minimum_height, int[] natural_height) { |
| lock.lock(); |
| try { |
| _gtk_cell_renderer_get_preferred_height_for_width(cell, widget, width, minimum_height, natural_height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param cell cast=(GtkCellRenderer *) |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| */ |
| public static final native void _gtk_cell_renderer_set_fixed_size(long /*int*/ cell, int width, int height); |
| public static final void gtk_cell_renderer_set_fixed_size (long /*int*/ cell, int width, int height) { |
| lock.lock(); |
| try { |
| _gtk_cell_renderer_set_fixed_size(cell, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param cell cast=(GtkCellRenderer *) |
| * @param width cast=(gint *) |
| * @param height cast=(gint *) |
| */ |
| public static final native void _gtk_cell_renderer_get_fixed_size(long /*int*/ cell, int[] width, int[] height); |
| public static final void gtk_cell_renderer_get_fixed_size (long /*int*/ cell, int[] width, int[] height) { |
| lock.lock(); |
| try { |
| _gtk_cell_renderer_get_fixed_size(cell, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param minimum_size cast=(GtkRequisition *) |
| * @param natural_size cast=(GtkRequisition *) |
| */ |
| public static final native void _gtk_widget_get_preferred_size(long /*int*/ widget, GtkRequisition minimum_size, GtkRequisition natural_size); |
| public static final void gtk_widget_get_preferred_size(long /*int*/ widget, GtkRequisition minimum_size, GtkRequisition natural_size) { |
| lock.lock(); |
| try { |
| _gtk_widget_get_preferred_size(widget, minimum_size, natural_size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gtk_widget_get_preferred_height_for_width(long /*int*/ widget, int width, int[] minimum_size, int[] natural_size); |
| public static final void gtk_widget_get_preferred_height_for_width(long /*int*/ widget, int width, int[] minimum_size, int[] natural_size) { |
| lock.lock(); |
| try { |
| _gtk_widget_get_preferred_height_for_width(widget, width, minimum_size, natural_size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gtk_widget_get_preferred_width_for_height(long /*int*/ widget, int height, int[] minimum_size, int[] natural_size); |
| public static final void gtk_widget_get_preferred_width_for_height(long /*int*/ widget, int height, int[] minimum_size, int[] natural_size) { |
| lock.lock(); |
| try { |
| _gtk_widget_get_preferred_width_for_height(widget, height, minimum_size, natural_size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_cell_renderer_pixbuf_new(); |
| public static final long /*int*/ gtk_cell_renderer_pixbuf_new() { |
| lock.lock(); |
| try { |
| return _gtk_cell_renderer_pixbuf_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_cell_renderer_text_new(); |
| public static final long /*int*/ gtk_cell_renderer_text_new() { |
| lock.lock(); |
| try { |
| return _gtk_cell_renderer_text_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_cell_renderer_toggle_new(); |
| public static final long /*int*/ gtk_cell_renderer_toggle_new() { |
| lock.lock(); |
| try { |
| return _gtk_cell_renderer_toggle_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_check_button_new(); |
| public static final long /*int*/ gtk_check_button_new() { |
| lock.lock(); |
| try { |
| return _gtk_check_button_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param check_menu_item cast=(GtkCheckMenuItem *) */ |
| public static final native boolean _gtk_check_menu_item_get_active(long /*int*/ check_menu_item); |
| public static final boolean gtk_check_menu_item_get_active(long /*int*/ check_menu_item) { |
| lock.lock(); |
| try { |
| return _gtk_check_menu_item_get_active(check_menu_item); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.10 deprecated] |
| * @param label cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_image_menu_item_new_with_label(byte[] label); |
| public static final long /*int*/ gtk_image_menu_item_new_with_label(byte[] label) { |
| lock.lock(); |
| try { |
| return _gtk_image_menu_item_new_with_label(label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param label cast=(const gchar *) */ |
| public static final native long /*int*/ _gtk_check_menu_item_new_with_label(byte[] label); |
| public static final long /*int*/ gtk_check_menu_item_new_with_label(byte[] label) { |
| lock.lock(); |
| try { |
| return _gtk_check_menu_item_new_with_label(label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_check_menu_item_new(); |
| public static final long /*int*/ gtk_check_menu_item_new() { |
| lock.lock(); |
| try { |
| return _gtk_check_menu_item_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param wid cast=(GtkCheckMenuItem *) |
| * @param active cast=(gboolean) |
| */ |
| public static final native void _gtk_check_menu_item_set_active(long /*int*/ wid, boolean active); |
| public static final void gtk_check_menu_item_set_active(long /*int*/ wid, boolean active) { |
| lock.lock(); |
| try { |
| _gtk_check_menu_item_set_active(wid, active); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_check_version(int required_major, int required_minor, int required_micro); |
| public static final long /*int*/ gtk_check_version(int required_major, int required_minor, int required_micro) { |
| lock.lock(); |
| try { |
| return _gtk_check_version(required_major, required_minor, required_micro); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param clipboard cast=(GtkClipboard *) */ |
| public static final native void _gtk_clipboard_clear(long /*int*/ clipboard); |
| public static final void gtk_clipboard_clear(long /*int*/ clipboard) { |
| lock.lock(); |
| try { |
| _gtk_clipboard_clear(clipboard); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param selection cast=(GdkAtom) */ |
| public static final native long /*int*/ _gtk_clipboard_get(long /*int*/ selection); |
| public static final long /*int*/ gtk_clipboard_get(long /*int*/ selection) { |
| lock.lock(); |
| try { |
| return _gtk_clipboard_get(selection); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param clipboard cast=(GtkClipboard *) |
| * @param target cast=(const GtkTargetEntry *) |
| * @param n_targets cast=(guint) |
| * @param get_func cast=(GtkClipboardGetFunc) |
| * @param clear_func cast=(GtkClipboardClearFunc) |
| * @param user_data cast=(GObject *) |
| */ |
| public static final native boolean _gtk_clipboard_set_with_owner(long /*int*/ clipboard, long /*int*/ target, int n_targets, long /*int*/ get_func, long /*int*/ clear_func, long /*int*/ user_data); |
| public static final boolean gtk_clipboard_set_with_owner(long /*int*/ clipboard, long /*int*/ target, int n_targets, long /*int*/ get_func, long /*int*/ clear_func, long /*int*/ user_data) { |
| lock.lock(); |
| try { |
| return _gtk_clipboard_set_with_owner(clipboard, target, n_targets, get_func, clear_func, user_data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param clipboard cast=(GtkClipboard *) |
| * @param targets cast=(const GtkTargetEntry *) |
| * @param n_targets cast=(gint) |
| */ |
| public static final native void _gtk_clipboard_set_can_store(long /*int*/ clipboard, long /*int*/ targets, int n_targets); |
| public static final void gtk_clipboard_set_can_store(long /*int*/ clipboard, long /*int*/ targets, int n_targets) { |
| lock.lock(); |
| try { |
| _gtk_clipboard_set_can_store(clipboard, targets, n_targets); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param clipboard cast=(GtkClipboard *) |
| */ |
| public static final native void _gtk_clipboard_store(long /*int*/ clipboard); |
| public static final void gtk_clipboard_store(long /*int*/ clipboard) { |
| lock.lock(); |
| try { |
| _gtk_clipboard_store(clipboard); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param clipboard cast=(GtkClipboard *) |
| * @param target cast=(GdkAtom) |
| */ |
| public static final native long /*int*/ _gtk_clipboard_wait_for_contents(long /*int*/ clipboard, long /*int*/ target); |
| public static final long /*int*/ gtk_clipboard_wait_for_contents(long /*int*/ clipboard, long /*int*/ target) { |
| lock.lock(); |
| try { |
| return _gtk_clipboard_wait_for_contents(clipboard, target); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.6 deprecated] |
| * @param title cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_color_selection_dialog_new(byte[] title); |
| public static final long /*int*/ gtk_color_selection_dialog_new(byte[] title) { |
| lock.lock(); |
| try { |
| return _gtk_color_selection_dialog_new(title); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param chooser cast=(GtkColorChooser *) |
| * @param orientation cast=(GtkOrientation) |
| * @param colors cast=(GdkRGBA *) |
| */ |
| public static final native long /*int*/ _gtk_color_chooser_add_palette(long /*int*/ chooser, int orientation, int colors_per_line, int n_colors, long /*int*/ colors); |
| public static final long /*int*/ gtk_color_chooser_add_palette(long /*int*/ chooser, int orientation, int colors_per_line, int n_colors, long /*int*/ colors) { |
| lock.lock(); |
| try { |
| return _gtk_color_chooser_add_palette(chooser, orientation, colors_per_line, n_colors, colors); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param title cast=(const gchar *) |
| * @param parent cast=(GtkWindow *) |
| */ |
| public static final native long /*int*/ _gtk_color_chooser_dialog_new (byte[] title, long /*int*/ parent); |
| public static final long /*int*/ gtk_color_chooser_dialog_new (byte[] title, long /*int*/ parent) { |
| lock.lock(); |
| try { |
| return _gtk_color_chooser_dialog_new (title, parent); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gtk_color_chooser_set_use_alpha (long /*int*/ chooser, boolean use_alpha); |
| public static final void gtk_color_chooser_set_use_alpha (long /*int*/ chooser, boolean use_alpha) { |
| lock.lock(); |
| try { |
| _gtk_color_chooser_set_use_alpha (chooser, use_alpha); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native boolean _gtk_color_chooser_get_use_alpha (long /*int*/ chooser); |
| public static final boolean gtk_color_chooser_get_use_alpha (long /*int*/ chooser) { |
| lock.lock(); |
| try { |
| return _gtk_color_chooser_get_use_alpha (chooser); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.6 deprecated] |
| * @param color_dialog cast=(GtkColorSelectionDialog *) |
| */ |
| public static final native long /*int*/ _gtk_color_selection_dialog_get_color_selection(long /*int*/ color_dialog); |
| public static final long /*int*/ gtk_color_selection_dialog_get_color_selection(long /*int*/ color_dialog) { |
| lock.lock(); |
| try { |
| return _gtk_color_selection_dialog_get_color_selection(color_dialog); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gtk_color_chooser_set_rgba(long /*int*/ chooser, GdkRGBA color); |
| public static final void gtk_color_chooser_get_rgba(long /*int*/ chooser, GdkRGBA color) { |
| lock.lock(); |
| try { |
| _gtk_color_chooser_get_rgba(chooser, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gtk_color_chooser_get_rgba(long /*int*/ chooser, GdkRGBA color); |
| public static final void gtk_color_chooser_set_rgba(long /*int*/ chooser, GdkRGBA color) { |
| lock.lock(); |
| try { |
| _gtk_color_chooser_set_rgba(chooser, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.4 deprecated] |
| * @param color flags=no_in |
| */ |
| public static final native void _gtk_color_selection_get_current_color(long /*int*/ colorsel, GdkColor color); |
| public static final void gtk_color_selection_get_current_color(long /*int*/ colorsel, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_color_selection_get_current_color(colorsel, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic [GTK2/GTK3; 3.6 deprecated] */ |
| public static final native long /*int*/ _gtk_color_selection_palette_to_string(long /*int*/ colors, int n_colors); |
| public static final long /*int*/ gtk_color_selection_palette_to_string(long /*int*/ colors, int n_colors) { |
| lock.lock(); |
| try { |
| return _gtk_color_selection_palette_to_string(colors, n_colors); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.4 deprecated] |
| * @param color flags=no_out |
| */ |
| public static final native void _gtk_color_selection_set_current_color(long /*int*/ colorsel, GdkColor color); |
| public static final void gtk_color_selection_set_current_color(long /*int*/ colorsel, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_color_selection_set_current_color(colorsel, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic [GTK2/GTK3; 3.6 deprecated] */ |
| public static final native void _gtk_color_selection_set_has_palette(long /*int*/ colorsel, boolean has_palette); |
| public static final void gtk_color_selection_set_has_palette(long /*int*/ colorsel, boolean has_palette) { |
| lock.lock(); |
| try { |
| _gtk_color_selection_set_has_palette(colorsel, has_palette); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.20 deprecated] |
| * @param combo cast=(GtkComboBox *) |
| * @param val cast=(gboolean) |
| */ |
| public static final native void _gtk_combo_box_set_focus_on_click(long /*int*/ combo, boolean val); |
| public static final void gtk_combo_box_set_focus_on_click(long /*int*/ combo, boolean val) { |
| lock.lock(); |
| try { |
| _gtk_combo_box_set_focus_on_click(combo, val); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_combo_box_text_new(); |
| public static final long /*int*/ gtk_combo_box_text_new() { |
| lock.lock(); |
| try { |
| return _gtk_combo_box_text_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_combo_box_text_new_with_entry(); |
| public static final long /*int*/ gtk_combo_box_text_new_with_entry() { |
| lock.lock(); |
| try { |
| return _gtk_combo_box_text_new_with_entry(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gtk_combo_box_text_insert(long /*int*/ combo_box, int position, byte[] id, byte[] text); |
| public static final void gtk_combo_box_text_insert(long /*int*/ combo_box, int position, byte[] id, byte[] text) { |
| lock.lock(); |
| try { |
| _gtk_combo_box_text_insert(combo_box, position, id, text); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param combo_box cast=(GtkComboBoxText *) |
| * @param position cast=(gint) |
| * @param text cast=(const gchar *) |
| */ |
| public static final native void _gtk_combo_box_text_insert_text(long /*int*/ combo_box, int position, byte[] text); |
| public static final void gtk_combo_box_text_insert_text(long /*int*/ combo_box, int position, byte[] text) { |
| lock.lock(); |
| try { |
| _gtk_combo_box_text_insert_text(combo_box, position, text); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param combo_box cast=(GtkComboBoxText *) */ |
| public static final native void _gtk_combo_box_text_remove(long /*int*/ combo_box, int position); |
| public static final void gtk_combo_box_text_remove(long /*int*/ combo_box, int position) { |
| lock.lock(); |
| try { |
| _gtk_combo_box_text_remove(combo_box, position); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gtk_combo_box_text_remove_all(long /*int*/ combo_box); |
| public static final void gtk_combo_box_text_remove_all(long /*int*/ combo_box) { |
| lock.lock(); |
| try { |
| _gtk_combo_box_text_remove_all(combo_box); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param combo_box cast=(GtkComboBox *) |
| */ |
| public static final native int _gtk_combo_box_get_active(long /*int*/ combo_box); |
| public static final int gtk_combo_box_get_active(long /*int*/ combo_box) { |
| lock.lock(); |
| try { |
| return _gtk_combo_box_get_active(combo_box); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param combo_box cast=(GtkComboBox *) |
| */ |
| public static final native long /*int*/ _gtk_combo_box_get_model(long /*int*/ combo_box); |
| public static final long /*int*/ gtk_combo_box_get_model(long /*int*/ combo_box) { |
| lock.lock(); |
| try { |
| return _gtk_combo_box_get_model(combo_box); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param combo_box cast=(GtkComboBox *) |
| * @param index cast=(gint) |
| */ |
| public static final native void _gtk_combo_box_set_active(long /*int*/ combo_box, int index); |
| public static final void gtk_combo_box_set_active(long /*int*/ combo_box, int index) { |
| lock.lock(); |
| try { |
| _gtk_combo_box_set_active(combo_box, index); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param combo_box cast=(GtkComboBox *) |
| * @param width cast=(gint) |
| */ |
| public static final native void _gtk_combo_box_set_wrap_width(long /*int*/ combo_box, int width); |
| public static final void gtk_combo_box_set_wrap_width(long /*int*/ combo_box, int width) { |
| lock.lock(); |
| try { |
| _gtk_combo_box_set_wrap_width(combo_box, width); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param combo_box cast=(GtkComboBox *) |
| */ |
| public static final native void _gtk_combo_box_popup(long /*int*/ combo_box); |
| public static final void gtk_combo_box_popup(long /*int*/ combo_box) { |
| lock.lock(); |
| try { |
| _gtk_combo_box_popup(combo_box); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param combo_box cast=(GtkComboBox *) |
| */ |
| public static final native void _gtk_combo_box_popdown(long /*int*/ combo_box); |
| public static final void gtk_combo_box_popdown(long /*int*/ combo_box) { |
| lock.lock(); |
| try { |
| _gtk_combo_box_popdown(combo_box); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param container cast=(GtkContainer *) |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_container_add(long /*int*/ container, long /*int*/ widget); |
| public static final void gtk_container_add(long /*int*/ container, long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_container_add(container, widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| //Do not confuse this function with gtk_container_foreach(..). |
| //Make sure you know what you are doing when using this. Please be attentive to swt_fixed_forall(..) |
| // found in os_custom.c, which overrides this function for swtFixed container with custom behaviour. |
| /** |
| * @param container cast=(GtkContainer *) |
| * @param callback cast=(GtkCallback) |
| * @param callback_data cast=(gpointer) |
| */ |
| public static final native void _gtk_container_forall(long /*int*/ container, long /*int*/ callback, long /*int*/ callback_data); |
| public static final void gtk_container_forall(long /*int*/ container, long /*int*/ callback, long /*int*/ callback_data) { |
| lock.lock(); |
| try { |
| _gtk_container_forall(container, callback, callback_data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param container cast=(GtkContainer *) */ |
| public static final native int _gtk_container_get_border_width(long /*int*/ container); |
| public static final int gtk_container_get_border_width(long /*int*/ container) { |
| lock.lock(); |
| try { |
| return _gtk_container_get_border_width(container); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param container cast=(GtkContainer *) */ |
| public static final native long /*int*/ _gtk_container_get_children(long /*int*/ container); |
| public static final long /*int*/ gtk_container_get_children(long /*int*/ container) { |
| lock.lock(); |
| try { |
| return _gtk_container_get_children(container); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param container cast=(GtkContainer *) |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_container_remove(long /*int*/ container, long /*int*/ widget); |
| public static final void gtk_container_remove(long /*int*/ container, long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_container_remove(container, widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param container cast=(GtkContainer *) |
| * @param border_width cast=(guint) |
| */ |
| public static final native void _gtk_container_set_border_width(long /*int*/ container, int border_width); |
| public static final void gtk_container_set_border_width(long /*int*/ container, int border_width) { |
| lock.lock(); |
| try { |
| _gtk_container_set_border_width(container, border_width); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param dialog cast=(GtkDialog *) |
| * @param button_text cast=(const gchar *) |
| * @param response_id cast=(gint) |
| */ |
| public static final native long /*int*/ _gtk_dialog_add_button(long /*int*/ dialog, byte[] button_text, int response_id); |
| public static final long /*int*/ gtk_dialog_add_button(long /*int*/ dialog, byte[] button_text, int response_id) { |
| lock.lock(); |
| try { |
| return _gtk_dialog_add_button(dialog, button_text, response_id); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param dialog cast=(GtkDialog *) */ |
| public static final native int _gtk_dialog_run(long /*int*/ dialog); |
| public static final int gtk_dialog_run(long /*int*/ dialog) { |
| lock.lock(); |
| try { |
| return _gtk_dialog_run(dialog); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.10 deprecated] |
| * @param widget cast=(GtkWidget *) |
| * @param targets cast=(GtkTargetList *) |
| * @param actions cast=(GdkDragAction) |
| * @param button cast=(gint) |
| * @param event cast=(GdkEvent *) |
| */ |
| public static final native long /*int*/ _gtk_drag_begin(long /*int*/ widget, long /*int*/ targets, int actions, int button, long /*int*/ event); |
| public static final long /*int*/ gtk_drag_begin(long /*int*/ widget, long /*int*/ targets, int actions, int button, long /*int*/ event) { |
| lock.lock(); |
| try { |
| return _gtk_drag_begin(widget, targets, actions, button, event); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param targets cast=(GtkTargetList *) |
| * @param actions cast=(GdkDragAction) |
| * @param button cast=(gint) |
| * @param event cast=(GdkEvent *) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| */ |
| public static final native long /*int*/ _gtk_drag_begin_with_coordinates(long /*int*/ widget, long /*int*/ targets, int actions, int button, long /*int*/ event, int x, int y); |
| public static final long /*int*/ gtk_drag_begin_with_coordinates(long /*int*/ widget, long /*int*/ targets, int actions, int button, long /*int*/ event, int x, int y) { |
| lock.lock(); |
| try { |
| return _gtk_drag_begin_with_coordinates(widget, targets, actions, button, event, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param start_x cast=(gint) |
| * @param start_y cast=(gint) |
| * @param current_x cast=(gint) |
| * @param current_y cast=(gint) |
| */ |
| public static final native boolean _gtk_drag_check_threshold(long /*int*/ widget, int start_x, int start_y, int current_x, int current_y); |
| public static final boolean gtk_drag_check_threshold(long /*int*/ widget, int start_x, int start_y, int current_x, int current_y) { |
| lock.lock(); |
| try { |
| return _gtk_drag_check_threshold(widget, start_x, start_y, current_x, current_y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param context cast=(GdkDragContext *) |
| * @param target_list cast=(GtkTargetList *) |
| */ |
| public static final native long /*int*/ _gtk_drag_dest_find_target(long /*int*/ widget, long /*int*/ context, long /*int*/ target_list); |
| public static final long /*int*/ gtk_drag_dest_find_target(long /*int*/ widget, long /*int*/ context, long /*int*/ target_list) { |
| lock.lock(); |
| try { |
| return _gtk_drag_dest_find_target(widget, context, target_list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param flags cast=(GtkDestDefaults) |
| * @param targets cast=(const GtkTargetEntry *) |
| * @param n_targets cast=(gint) |
| * @param actions cast=(GdkDragAction) |
| */ |
| public static final native void _gtk_drag_dest_set(long /*int*/ widget, int flags, long /*int*/ targets, int n_targets, int actions); |
| public static final void gtk_drag_dest_set(long /*int*/ widget, int flags, long /*int*/ targets, int n_targets, int actions) { |
| lock.lock(); |
| try { |
| _gtk_drag_dest_set(widget, flags, targets, n_targets, actions); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void _gtk_drag_dest_unset(long /*int*/ widget); |
| public static final void gtk_drag_dest_unset(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_drag_dest_unset(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(GdkDragContext *) |
| * @param success cast=(gboolean) |
| * @param delete cast=(gboolean) |
| * @param time cast=(guint32) |
| */ |
| public static final native void _gtk_drag_finish(long /*int*/ context, boolean success, boolean delete, int time); |
| public static final void gtk_drag_finish(long /*int*/ context, boolean success, boolean delete, int time) { |
| lock.lock(); |
| try { |
| _gtk_drag_finish(context, success, delete, time); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param context cast=(GdkDragContext *) |
| * @param target cast=(GdkAtom) |
| * @param time cast=(guint32) |
| */ |
| public static final native void _gtk_drag_get_data(long /*int*/ widget, long /*int*/ context, long /*int*/ target, int time); |
| public static final void gtk_drag_get_data(long /*int*/ widget, long /*int*/ context, long /*int*/ target, int time) { |
| lock.lock(); |
| try { |
| _gtk_drag_get_data(widget, context, target, time); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(GdkDragContext *) |
| * @param pixbuf cast=(GdkPixbuf *) |
| */ |
| public static final native void _gtk_drag_set_icon_pixbuf(long /*int*/ context, long /*int*/ pixbuf, int hot_x, int hot_y); |
| public static final void gtk_drag_set_icon_pixbuf(long /*int*/ context, long /*int*/ pixbuf, int hot_x, int hot_y) { |
| lock.lock(); |
| try { |
| _gtk_drag_set_icon_pixbuf(context, pixbuf, hot_x, hot_y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gtk_drag_set_icon_surface(long /*int*/ context, long /*int*/ surface); |
| public static final void gtk_drag_set_icon_surface(long /*int*/ context, long /*int*/ surface) { |
| lock.lock(); |
| try { |
| _gtk_drag_set_icon_surface(context, surface); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param editable cast=(GtkEditable *) */ |
| public static final native void _gtk_editable_copy_clipboard(long /*int*/ editable); |
| public static final void gtk_editable_copy_clipboard(long /*int*/ editable) { |
| lock.lock(); |
| try { |
| _gtk_editable_copy_clipboard(editable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param editable cast=(GtkEditable *) */ |
| public static final native void _gtk_editable_cut_clipboard(long /*int*/ editable); |
| public static final void gtk_editable_cut_clipboard(long /*int*/ editable) { |
| lock.lock(); |
| try { |
| _gtk_editable_cut_clipboard(editable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param editable cast=(GtkEditable *) */ |
| public static final native void _gtk_editable_delete_selection(long /*int*/ editable); |
| public static final void gtk_editable_delete_selection(long /*int*/ editable) { |
| lock.lock(); |
| try { |
| _gtk_editable_delete_selection(editable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param editable cast=(GtkEditable *) |
| * @param start_pos cast=(gint) |
| * @param end_pos cast=(gint) |
| */ |
| public static final native void _gtk_editable_delete_text(long /*int*/ editable, int start_pos, int end_pos); |
| public static final void gtk_editable_delete_text(long /*int*/ editable, int start_pos, int end_pos) { |
| lock.lock(); |
| try { |
| _gtk_editable_delete_text(editable, start_pos, end_pos); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param editable cast=(GtkEditable *) */ |
| public static final native boolean _gtk_editable_get_editable(long /*int*/ editable); |
| public static final boolean gtk_editable_get_editable(long /*int*/ editable) { |
| lock.lock(); |
| try { |
| return _gtk_editable_get_editable(editable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param editable cast=(GtkEditable *) */ |
| public static final native int _gtk_editable_get_position(long /*int*/ editable); |
| public static final int gtk_editable_get_position(long /*int*/ editable) { |
| lock.lock(); |
| try { |
| return _gtk_editable_get_position(editable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param editable cast=(GtkEditable *) |
| * @param start cast=(gint *) |
| * @param end cast=(gint *) |
| */ |
| public static final native boolean _gtk_editable_get_selection_bounds(long /*int*/ editable, int[] start, int[] end); |
| public static final boolean gtk_editable_get_selection_bounds(long /*int*/ editable, int[] start, int[] end) { |
| lock.lock(); |
| try { |
| return _gtk_editable_get_selection_bounds(editable, start, end); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param editable cast=(GtkEditable *) |
| * @param new_text cast=(gchar *) |
| * @param new_text_length cast=(gint) |
| * @param position cast=(gint *) |
| */ |
| public static final native void _gtk_editable_insert_text(long /*int*/ editable, byte[] new_text, int new_text_length, int[] position); |
| public static final void gtk_editable_insert_text(long /*int*/ editable, byte[] new_text, int new_text_length, int[] position) { |
| lock.lock(); |
| try { |
| _gtk_editable_insert_text(editable, new_text, new_text_length, position); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param editable cast=(GtkEditable *) */ |
| public static final native void _gtk_editable_paste_clipboard(long /*int*/ editable); |
| public static final void gtk_editable_paste_clipboard(long /*int*/ editable) { |
| lock.lock(); |
| try { |
| _gtk_editable_paste_clipboard(editable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param editable cast=(GtkEditable *) |
| * @param start cast=(gint) |
| * @param end cast=(gint) |
| */ |
| public static final native void _gtk_editable_select_region(long /*int*/ editable, int start, int end); |
| public static final void gtk_editable_select_region(long /*int*/ editable, int start, int end) { |
| lock.lock(); |
| try { |
| _gtk_editable_select_region(editable, start, end); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param entry cast=(GtkEditable *) |
| * @param editable cast=(gboolean) |
| */ |
| public static final native void _gtk_editable_set_editable(long /*int*/ entry, boolean editable); |
| public static final void gtk_editable_set_editable(long /*int*/ entry, boolean editable) { |
| lock.lock(); |
| try { |
| _gtk_editable_set_editable(entry, editable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param editable cast=(GtkEditable *) |
| * @param position cast=(gint) |
| */ |
| public static final native void _gtk_editable_set_position(long /*int*/ editable, int position); |
| public static final void gtk_editable_set_position(long /*int*/ editable, int position) { |
| lock.lock(); |
| try { |
| _gtk_editable_set_position(editable, position); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic [GTK2/GTK3; 3.4 deprecated] */ |
| public static final native long /*int*/ _gtk_entry_get_inner_border (long /*int*/ entry); |
| public static final long /*int*/ gtk_entry_get_inner_border (long /*int*/ entry) { |
| lock.lock(); |
| try { |
| return _gtk_entry_get_inner_border(entry); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param self cast=(GtkEntry *) |
| * @param n_chars cast=(gint) |
| */ |
| public static final native void _gtk_entry_set_width_chars (long /*int*/ self, int n_chars); |
| public static final void gtk_entry_set_width_chars (long /*int*/ self, int n_chars) { |
| lock.lock(); |
| try { |
| _gtk_entry_set_width_chars(self, n_chars); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param entry cast=(GtkEntry *) */ |
| public static final native char _gtk_entry_get_invisible_char(long /*int*/ entry); |
| public static final char gtk_entry_get_invisible_char(long /*int*/ entry) { |
| lock.lock(); |
| try { |
| return _gtk_entry_get_invisible_char(entry); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param entry cast=(GtkEntry *) */ |
| public static final native long /*int*/ _gtk_entry_get_layout (long /*int*/ entry); |
| public static final long /*int*/ gtk_entry_get_layout (long /*int*/ entry) { |
| lock.lock(); |
| try { |
| return _gtk_entry_get_layout(entry); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param x cast=(gint *) |
| * @param y cast=(gint *) |
| */ |
| public static final native void _gtk_entry_get_layout_offsets (long /*int*/ entry, int[] x, int[] y); |
| public static final void gtk_entry_get_layout_offsets (long /*int*/ entry, int[] x, int[] y) { |
| lock.lock(); |
| try { |
| _gtk_entry_get_layout_offsets(entry, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param index cast=(gint) |
| */ |
| public static final native int _gtk_entry_text_index_to_layout_index (long /*int*/ entry, int index); |
| public static final int gtk_entry_text_index_to_layout_index (long /*int*/ entry, int index) { |
| lock.lock(); |
| try { |
| return _gtk_entry_text_index_to_layout_index(entry, index); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param entry cast=(GtkEntry *) |
| */ |
| public static final native int _gtk_entry_get_icon_area(long /*int*/ entry, int icon_pos, GdkRectangle icon_area); |
| public static final int gtk_entry_get_icon_area(long /*int*/ entry, int icon_pos, GdkRectangle icon_area) { |
| lock.lock(); |
| try { |
| return _gtk_entry_get_icon_area(entry, icon_pos, icon_area); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param entry cast=(GtkEntry *) */ |
| public static final native int _gtk_entry_get_max_length(long /*int*/ entry); |
| public static final int gtk_entry_get_max_length(long /*int*/ entry) { |
| lock.lock(); |
| try { |
| return _gtk_entry_get_max_length(entry); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param entry cast=(GtkEntry *) */ |
| public static final native long /*int*/ _gtk_entry_get_text(long /*int*/ entry); |
| public static final long /*int*/ gtk_entry_get_text(long /*int*/ entry) { |
| lock.lock(); |
| try { |
| return _gtk_entry_get_text(entry); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native boolean _FcConfigAppFontAddFile(long /*int*/ config, byte[] file); |
| public static final boolean FcConfigAppFontAddFile(long /*int*/ config, byte[] file) { |
| lock.lock(); |
| try { |
| return _FcConfigAppFontAddFile(config, file); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param entry cast=(GtkEntry *) */ |
| public static final native boolean _gtk_entry_get_visibility(long /*int*/ entry); |
| public static final boolean gtk_entry_get_visibility(long /*int*/ entry) { |
| lock.lock(); |
| try { |
| return _gtk_entry_get_visibility(entry); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_entry_new(); |
| public static final long /*int*/ gtk_entry_new() { |
| lock.lock(); |
| try { |
| return _gtk_entry_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param xalign cast=(gfloat) |
| */ |
| public static final native void _gtk_entry_set_alignment(long /*int*/ entry, float xalign); |
| public static final void gtk_entry_set_alignment(long /*int*/ entry, float xalign) { |
| lock.lock(); |
| try { |
| _gtk_entry_set_alignment(entry, xalign); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param setting cast=(gboolean) |
| */ |
| public static final native void _gtk_entry_set_has_frame(long /*int*/ entry, boolean setting); |
| public static final void gtk_entry_set_has_frame(long /*int*/ entry, boolean setting) { |
| lock.lock(); |
| try { |
| _gtk_entry_set_has_frame(entry, setting); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param iconPos cast=(gint) |
| * @param stock cast=(const gchar *) |
| */ |
| public static final native void _gtk_entry_set_icon_from_icon_name(long /*int*/ entry, int iconPos, byte[] stock); |
| public static final void gtk_entry_set_icon_from_icon_name(long /*int*/ entry, int iconPos, byte[] iconName) { |
| lock.lock(); |
| try { |
| _gtk_entry_set_icon_from_icon_name(entry, iconPos, iconName); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param icon_pos cast=(GtkEntryIconPosition) |
| * @param sensitive cast=(gboolean) |
| */ |
| public static final native void _gtk_entry_set_icon_sensitive(long /*int*/ entry, int icon_pos, boolean sensitive); |
| public static final void gtk_entry_set_icon_sensitive(long /*int*/ entry, int icon_pos, boolean sensitive) { |
| lock.lock(); |
| try { |
| _gtk_entry_set_icon_sensitive(entry, icon_pos, sensitive); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param ch cast=(gint) |
| */ |
| public static final native void _gtk_entry_set_invisible_char(long /*int*/ entry, char ch); |
| public static final void gtk_entry_set_invisible_char(long /*int*/ entry, char ch) { |
| lock.lock(); |
| try { |
| _gtk_entry_set_invisible_char(entry, ch); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param max cast=(gint) |
| */ |
| public static final native void _gtk_entry_set_max_length(long /*int*/ entry, int max); |
| public static final void gtk_entry_set_max_length(long /*int*/ entry, int max) { |
| lock.lock(); |
| try { |
| _gtk_entry_set_max_length(entry, max); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param text cast=(const gchar *) |
| */ |
| public static final native void _gtk_entry_set_text(long /*int*/ entry, byte[] text); |
| public static final void gtk_entry_set_text(long /*int*/ entry, byte[] text) { |
| lock.lock(); |
| try { |
| _gtk_entry_set_text(entry, text); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param entry cast=(GtkEntry *) |
| * @param text cast=(const gchar *) |
| */ |
| public static final native void _gtk_entry_set_placeholder_text(long /*int*/ entry, byte[] text); |
| public static final void gtk_entry_set_placeholder_text(long /*int*/ entry, byte[] text) { |
| lock.lock(); |
| try { |
| _gtk_entry_set_placeholder_text(entry, text); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param visible cast=(gboolean) |
| */ |
| public static final native void _gtk_entry_set_visibility(long /*int*/ entry, boolean visible); |
| public static final void gtk_entry_set_visibility(long /*int*/ entry, boolean visible) { |
| lock.lock(); |
| try { |
| _gtk_entry_set_visibility(entry, visible); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param expander cast=(GtkExpander *) */ |
| public static final native boolean _gtk_expander_get_expanded(long /*int*/ expander); |
| public static final boolean gtk_expander_get_expanded(long /*int*/ expander) { |
| lock.lock(); |
| try { |
| return _gtk_expander_get_expanded(expander); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param label cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_expander_new(byte[] label); |
| public static final long /*int*/ gtk_expander_new(byte[] label) { |
| lock.lock(); |
| try { |
| return _gtk_expander_new(label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param expander cast=(GtkExpander *) */ |
| public static final native void _gtk_expander_set_expanded(long /*int*/ expander, boolean expanded); |
| public static final void gtk_expander_set_expanded(long /*int*/ expander, boolean expanded) { |
| lock.lock(); |
| try { |
| _gtk_expander_set_expanded(expander, expanded); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param expander cast=(GtkExpander *) |
| * @param label_widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_expander_set_label_widget(long /*int*/ expander, long /*int*/ label_widget); |
| public static final void gtk_expander_set_label_widget(long /*int*/ expander, long /*int*/ label_widget) { |
| lock.lock(); |
| try { |
| _gtk_expander_set_label_widget(expander, label_widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param filter cast=(GtkFileFilter *) |
| */ |
| public static final native void _gtk_file_chooser_add_filter(long /*int*/ chooser, long /*int*/ filter); |
| public static final void gtk_file_chooser_add_filter(long /*int*/ chooser, long /*int*/ filter) { |
| lock.lock(); |
| try { |
| _gtk_file_chooser_add_filter(chooser, filter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param title cast=(const gchar *),flags=no_out |
| * @param parent cast=(GtkWindow *) |
| * @param first_button_text cast=(const gchar *),flags=no_out |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native long /*int*/ _gtk_file_chooser_dialog_new(byte[] title, long /*int*/ parent, int action, byte[] first_button_text, int first_button_id, byte[] second_button_text, int second_button_id, long /*int*/ terminator); |
| public static final long /*int*/ gtk_file_chooser_dialog_new(byte[] title, long /*int*/ parent, int action, byte[] first_button_text, int first_button_id, byte[] second_button_text, int second_button_id, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| return _gtk_file_chooser_dialog_new(title, parent, action, first_button_text, first_button_id, second_button_text, second_button_id, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param title cast=(const gchar *),flags=no_out |
| * @param parent cast=(GtkWindow *) |
| * @param first_button_text cast=(const gchar *),flags=no_out |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native long /*int*/ _gtk_file_chooser_dialog_new(byte[] title, long /*int*/ parent, int action, long /*int*/ first_button_text, int first_button_id, long /*int*/ second_button_text, int second_button_id, long /*int*/ terminator); |
| public static final long /*int*/ gtk_file_chooser_dialog_new(byte[] title, long /*int*/ parent, int action, long /*int*/ first_button_text, int first_button_id, long /*int*/ second_button_text, int second_button_id, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| return _gtk_file_chooser_dialog_new(title, parent, action, first_button_text, first_button_id, second_button_text, second_button_id, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param chooser cast=(GtkFileChooser *) */ |
| public static final native long /*int*/ _gtk_file_chooser_get_filename(long /*int*/ chooser); |
| public static final long /*int*/ gtk_file_chooser_get_filename(long /*int*/ chooser) { |
| lock.lock(); |
| try { |
| return _gtk_file_chooser_get_filename(chooser); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param chooser cast=(GtkFileChooser *) */ |
| public static final native long /*int*/ _gtk_file_chooser_get_filenames(long /*int*/ chooser); |
| public static final long /*int*/ gtk_file_chooser_get_filenames(long /*int*/ chooser) { |
| lock.lock(); |
| try { |
| return _gtk_file_chooser_get_filenames(chooser); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param chooser cast=(GtkFileChooser *) */ |
| public static final native long /*int*/ _gtk_file_chooser_get_uri(long /*int*/ chooser); |
| public static final long /*int*/ gtk_file_chooser_get_uri(long /*int*/ chooser) { |
| lock.lock(); |
| try { |
| return _gtk_file_chooser_get_uri(chooser); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param chooser cast=(GtkFileChooser *) */ |
| public static final native long /*int*/ _gtk_file_chooser_get_uris(long /*int*/ chooser); |
| public static final long /*int*/ gtk_file_chooser_get_uris(long /*int*/ chooser) { |
| lock.lock(); |
| try { |
| return _gtk_file_chooser_get_uris(chooser); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param chooser cast=(GtkFileChooser *) */ |
| public static final native long /*int*/ _gtk_file_chooser_get_filter(long /*int*/ chooser); |
| public static final long /*int*/ gtk_file_chooser_get_filter(long /*int*/ chooser) { |
| lock.lock(); |
| try { |
| return _gtk_file_chooser_get_filter(chooser); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param filename cast=(const gchar *) |
| */ |
| public static final native void _gtk_file_chooser_set_current_folder(long /*int*/ chooser, long /*int*/ filename); |
| public static final void gtk_file_chooser_set_current_folder(long /*int*/ chooser, long /*int*/ filename) { |
| lock.lock(); |
| try { |
| _gtk_file_chooser_set_current_folder(chooser, filename); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param uri cast=(const gchar *) |
| */ |
| public static final native void _gtk_file_chooser_set_current_folder_uri(long /*int*/ chooser, byte [] uri); |
| public static final void gtk_file_chooser_set_current_folder_uri(long /*int*/ chooser, byte [] uri) { |
| lock.lock(); |
| try { |
| _gtk_file_chooser_set_current_folder_uri(chooser, uri); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param name cast=(const gchar *) |
| */ |
| public static final native void _gtk_file_chooser_set_current_name(long /*int*/ chooser, byte[] name); |
| public static final void gtk_file_chooser_set_current_name(long /*int*/ chooser, byte[] name) { |
| lock.lock(); |
| try { |
| _gtk_file_chooser_set_current_name(chooser, name); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param local_only cast=(gboolean) |
| */ |
| public static final native void _gtk_file_chooser_set_local_only(long /*int*/ chooser, boolean local_only); |
| public static final void gtk_file_chooser_set_local_only(long /*int*/ chooser, boolean local_only) { |
| lock.lock(); |
| try { |
| _gtk_file_chooser_set_local_only(chooser, local_only); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param do_overwrite_confirmation cast=(gboolean) |
| */ |
| public static final native void _gtk_file_chooser_set_do_overwrite_confirmation(long /*int*/ chooser, boolean do_overwrite_confirmation); |
| public static final void gtk_file_chooser_set_do_overwrite_confirmation(long /*int*/ chooser, boolean do_overwrite_confirmation) { |
| lock.lock(); |
| try { |
| _gtk_file_chooser_set_do_overwrite_confirmation(chooser, do_overwrite_confirmation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param extra_widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_file_chooser_set_extra_widget(long /*int*/ chooser, long /*int*/ extra_widget); |
| public static final void gtk_file_chooser_set_extra_widget(long /*int*/ chooser, long /*int*/ extra_widget) { |
| lock.lock(); |
| try { |
| _gtk_file_chooser_set_extra_widget(chooser, extra_widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param name cast=(const gchar *) |
| */ |
| public static final native void _gtk_file_chooser_set_filename(long /*int*/ chooser, long /*int*/ name); |
| public static final void gtk_file_chooser_set_filename(long /*int*/ chooser, long /*int*/ name) { |
| lock.lock(); |
| try { |
| _gtk_file_chooser_set_filename(chooser, name); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param filter cast=(GtkFileFilter *) |
| */ |
| public static final native void _gtk_file_chooser_set_filter(long /*int*/ chooser, long /*int*/ filter); |
| public static final void gtk_file_chooser_set_filter(long /*int*/ chooser, long /*int*/ filter) { |
| lock.lock(); |
| try { |
| _gtk_file_chooser_set_filter(chooser, filter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param uri cast=(const char *) |
| */ |
| public static final native void _gtk_file_chooser_set_uri(long /*int*/ chooser, byte [] uri); |
| public static final void gtk_file_chooser_set_uri(long /*int*/ chooser, byte [] uri) { |
| lock.lock(); |
| try { |
| _gtk_file_chooser_set_uri(chooser, uri); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param select_multiple cast=(gboolean) |
| */ |
| public static final native void _gtk_file_chooser_set_select_multiple(long /*int*/ chooser, boolean select_multiple); |
| public static final void gtk_file_chooser_set_select_multiple(long /*int*/ chooser, boolean select_multiple) { |
| lock.lock(); |
| try { |
| _gtk_file_chooser_set_select_multiple(chooser, select_multiple); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gtk_event_controller_set_propagation_phase(long /*int*/ controller, int phase); |
| public static final void gtk_event_controller_set_propagation_phase(long /*int*/ controller, int phase) { |
| lock.lock(); |
| try { |
| _gtk_event_controller_set_propagation_phase(controller, phase); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gtk_event_controller_handle_event(long /*int*/ gesture, long /*int*/ event); |
| public static final void gtk_event_controller_handle_event(long /*int*/ gesture, long /*int*/ event) { |
| lock.lock(); |
| try { |
| _gtk_event_controller_handle_event(gesture, event); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @param filter cast=(GtkFileFilter *) |
| * @param pattern cast=(const gchar *) |
| */ |
| public static final native void _gtk_file_filter_add_pattern(long /*int*/ filter, byte[] pattern); |
| public static final void gtk_file_filter_add_pattern(long /*int*/ filter, byte[] pattern) { |
| lock.lock(); |
| try { |
| _gtk_file_filter_add_pattern(filter, pattern); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_file_filter_new(); |
| public static final long /*int*/ gtk_file_filter_new() { |
| lock.lock(); |
| try { |
| return _gtk_file_filter_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param filter cast=(GtkFileFilter *) */ |
| public static final native long /*int*/ _gtk_file_filter_get_name(long /*int*/ filter); |
| public static final long /*int*/ gtk_file_filter_get_name(long /*int*/ filter) { |
| lock.lock(); |
| try { |
| return _gtk_file_filter_get_name(filter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param filter cast=(GtkFileFilter *) |
| * @param name cast=(const gchar *) |
| */ |
| public static final native void _gtk_file_filter_set_name(long /*int*/ filter, byte[] name); |
| public static final void gtk_file_filter_set_name(long /*int*/ filter, byte[] name) { |
| lock.lock(); |
| try { |
| _gtk_file_filter_set_name(filter, name); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param fixed cast=(GtkFixed *) |
| * @param widget cast=(GtkWidget *) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| */ |
| public static final native void _gtk_fixed_move(long /*int*/ fixed, long /*int*/ widget, int x, int y); |
| public static final void gtk_fixed_move(long /*int*/ fixed, long /*int*/ widget, int x, int y) { |
| lock.lock(); |
| try { |
| _gtk_fixed_move(fixed, widget, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_fixed_new(); |
| public static final long /*int*/ gtk_fixed_new() { |
| lock.lock(); |
| try { |
| return _gtk_fixed_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native boolean _gtk_gesture_drag_get_start_point(long /*int*/ gesture, double[] x, double [] y); |
| public static final boolean gtk_gesture_drag_get_start_point(long /*int*/ gesture, double[] x, double [] y) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_drag_get_start_point(gesture, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native boolean _gtk_gesture_is_recognized(long /*int*/ gesture); |
| public static final boolean gtk_gesture_is_recognized(long /*int*/ gesture) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_is_recognized(gesture); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native long /*int*/ _gtk_gesture_drag_new(long /*int*/ widget); |
| public static final long /*int*/ gtk_gesture_drag_new(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_drag_new(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native long /*int*/ _gtk_gesture_get_last_event(long /*int*/ gesture, long /*int*/ sequence); |
| public static final long /*int*/ gtk_gesture_get_last_event(long /*int*/ gesture, long /*int*/ sequence) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_get_last_event(gesture,sequence); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native long /*int*/ _gtk_gesture_get_last_updated_sequence(long /*int*/ gesture); |
| public static final long /*int*/ gtk_gesture_get_last_updated_sequence(long /*int*/ gesture) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_get_last_updated_sequence(gesture); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native boolean _gtk_gesture_get_point(long /*int*/ gesture, long /*int*/ sequence, double[] x, double [] y); |
| public static final boolean gtk_gesture_get_point(long /*int*/ gesture, long /*int*/ sequence, double[] x, double [] y) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_get_point(gesture, sequence, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native long /*int*/ _gtk_gesture_get_sequences(long /*int*/ gesture); |
| public static final long /*int*/ gtk_gesture_get_sequences(long /*int*/ gesture) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_get_sequences(gesture); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gtk_gesture_group (long /*int*/ group_gesture, long /*int*/ gesture); |
| public static final void gtk_gesture_group (long /*int*/ group_gesture, long /*int*/ gesture) { |
| lock.lock(); |
| try { |
| _gtk_gesture_group(group_gesture, gesture); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gtk_gesture_pan_set_orientation(long /*int*/ orientation); |
| public static final void gtk_gesture_pan_set_orientation(long /*int*/ orientation) { |
| lock.lock(); |
| try { |
| _gtk_gesture_pan_set_orientation(orientation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native long /*int*/ _gtk_gesture_pan_get_orientation(long /*int*/ gesture); |
| public static final long /*int*/ gtk_gesture_pan_get_orientation(long /*int*/ gesture) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_pan_get_orientation(gesture); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gtk_gesture_pan_new (long /*int*/ widget, long /*int*/ orientation); |
| public static final void gtk_gesture_pan_new (long /*int*/ widget, long /*int*/ orientation) { |
| lock.lock(); |
| try { |
| _gtk_gesture_pan_new(widget, orientation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gtk_gesture_single_set_button(long /*int*/ gesture, int button); |
| public static final void gtk_gesture_single_set_button(long /*int*/ gesture, int button) { |
| lock.lock(); |
| try { |
| _gtk_gesture_single_set_button(gesture, button); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native boolean _gtk_gesture_swipe_get_velocity(long /*int*/ gesture, double [] velocity_x, double[] velocity_y); |
| public static final boolean gtk_gesture_swipe_get_velocity(long /*int*/ gesture, double [] velocity_x, double[] velocity_y) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_swipe_get_velocity(gesture, velocity_x, velocity_y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native long /*int*/ _gtk_gesture_swipe_new (long /*int*/ widget); |
| public static final long /*int*/ gtk_gesture_swipe_new (long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_swipe_new(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void _gtk_gesture_drag_get_offset(long /*int*/ gesture, double[] x, double[] y); |
| public static final void gtk_gesture_drag_get_offset(long /*int*/ gesture, double[] x, double[] y) { |
| lock.lock(); |
| try { |
| _gtk_gesture_drag_get_offset(gesture, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| |
| public static final native double _gtk_gesture_rotate_get_angle_delta (long /*int*/ gesture); |
| public static final double gtk_gesture_rotate_get_angle_delta (long /*int*/ gesture) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_rotate_get_angle_delta(gesture); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| |
| public static final native long /*int*/ _gtk_gesture_rotate_new(long /*int*/ widget); |
| public static final long /*int*/ gtk_gesture_rotate_new(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_rotate_new(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native long /*int*/ _gtk_gesture_zoom_new(long /*int*/ widget); |
| public static final long /*int*/ gtk_gesture_zoom_new(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_zoom_new(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native double _gtk_gesture_zoom_get_scale_delta (long /*int*/ gesture); |
| public static final double gtk_gesture_zoom_get_scale_delta (long /*int*/ gesture) { |
| lock.lock(); |
| try { |
| return _gtk_gesture_zoom_get_scale_delta(gesture); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param has_window cast=(gboolean) |
| */ |
| public static final native void _gtk_widget_set_has_window(long /*int*/ widget, boolean has_window); |
| public static final void gtk_widget_set_has_window(long /*int*/ widget, boolean has_window) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_has_window(widget, has_window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| //since Gtk 3.16. For pre-gtk3.16, use gtk_misc_set_alignment(..) |
| /** |
| * @method flags=dynamic |
| * @param label cast=(GtkLabel *) |
| * @param xalign cast=(gfloat) |
| * |
| */ |
| public static final native void _gtk_label_set_xalign(long /*int*/ label, float xalign); |
| public static final void gtk_label_set_xalign(long /*int*/ label, float xalign) { |
| lock.lock(); |
| try { |
| _gtk_label_set_xalign(label, xalign); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| |
| //since Gtk 3.16. For pre-gtk3.16, use gtk_misc_set_alignment(..) |
| /** |
| * @method flags=dynamic |
| * @param label cast=(GtkLabel *) |
| * @param yalign cast=(gfloat) |
| * |
| */ |
| public static final native void _gtk_label_set_yalign(long /*int*/ label, float yalign); |
| public static final void gtk_label_set_yalign(long /*int*/ label, float yalign) { |
| lock.lock(); |
| try { |
| _gtk_label_set_yalign(label, yalign); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * |
| */ //Omited enum: @param gtk_align cast=(GtkAlign) as is causes build errors on gtk2 as GtkAlign doesn't exist there. |
| public static final native void _gtk_widget_set_halign(long /*int*/ widget, int gtk_align); |
| public static final void gtk_widget_set_halign(long /*int*/ widget, int gtk_align) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_halign(widget, gtk_align); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ //Omited enum: @param gtk_align cast=(GtkAlign) as is causes build errors on gtk2 as GtkAlign doesn't exist there. |
| public static final native void _gtk_widget_set_valign(long /*int*/ widget, int gtk_align); |
| public static final void gtk_widget_set_valign(long /*int*/ widget, int gtk_align ) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_valign(widget, gtk_align); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic [GTK2/GTK3; 3.2 deprecated] */ |
| public static final native long /*int*/ _gtk_font_selection_dialog_get_font_name(long /*int*/ fsd); |
| public static final long /*int*/ gtk_font_selection_dialog_get_font_name(long /*int*/ fsd) { |
| lock.lock(); |
| try { |
| return _gtk_font_selection_dialog_get_font_name(fsd); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param title cast=(const gchar *) |
| * @param parent cast=(GtkWindow *) |
| */ |
| public static final native long /*int*/ _gtk_font_chooser_dialog_new(byte[] title, long /*int*/ parent); |
| public static final long /*int*/ gtk_font_chooser_dialog_new(byte[] title, long /*int*/ parent) { |
| lock.lock(); |
| try { |
| return _gtk_font_chooser_dialog_new(title, parent); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gtk_font_chooser_get_font(long /*int*/ fontchooser); |
| public static final long /*int*/ gtk_font_chooser_get_font(long /*int*/ fontchooser) { |
| lock.lock(); |
| try { |
| return _gtk_font_chooser_get_font(fontchooser); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param fontname cast=(const gchar *) |
| */ |
| public static final native void _gtk_font_chooser_set_font(long /*int*/ fsd, byte[] fontname); |
| public static final void gtk_font_chooser_set_font(long /*int*/ fsd, byte[] fontname) { |
| lock.lock(); |
| try { |
| _gtk_font_chooser_set_font(fsd, fontname); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.2 deprecated] |
| * @param title cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_font_selection_dialog_new(byte[] title); |
| public static final long /*int*/ gtk_font_selection_dialog_new(byte[] title) { |
| lock.lock(); |
| try { |
| return _gtk_font_selection_dialog_new(title); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 2.x/3.2 deprecated] |
| * @param fontname cast=(const gchar *) |
| */ |
| public static final native boolean _gtk_font_selection_dialog_set_font_name(long /*int*/ fsd, byte[] fontname); |
| public static final boolean gtk_font_selection_dialog_set_font_name(long /*int*/ fsd, byte[] fontname) { |
| lock.lock(); |
| try { |
| return _gtk_font_selection_dialog_set_font_name(fsd, fontname); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param label cast=(const gchar *) */ |
| public static final native long /*int*/ _gtk_frame_new(byte[] label); |
| public static final long /*int*/ gtk_frame_new(byte[] label) { |
| lock.lock(); |
| try { |
| return _gtk_frame_new(label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param frame cast=(GtkFrame *) */ |
| public static final native long /*int*/ _gtk_frame_get_label_widget(long /*int*/ frame); |
| public static final long /*int*/ gtk_frame_get_label_widget(long /*int*/ frame) { |
| lock.lock(); |
| try { |
| return _gtk_frame_get_label_widget(frame); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param frame cast=(GtkFrame *) |
| * @param label_widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_frame_set_label_widget(long /*int*/ frame, long /*int*/ label_widget); |
| public static final void gtk_frame_set_label_widget(long /*int*/ frame, long /*int*/ label_widget) { |
| lock.lock(); |
| try { |
| _gtk_frame_set_label_widget(frame, label_widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param frame cast=(GtkFrame *) |
| * @param type cast=(GtkShadowType) |
| */ |
| public static final native void _gtk_frame_set_shadow_type(long /*int*/ frame, int type); |
| public static final void gtk_frame_set_shadow_type(long /*int*/ frame, int type) { |
| lock.lock(); |
| try { |
| _gtk_frame_set_shadow_type(frame, type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_get_current_event(); |
| public static final long /*int*/ gtk_get_current_event() { |
| lock.lock(); |
| try { |
| return _gtk_get_current_event(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param state cast=(GdkModifierType*) */ |
| public static final native boolean _gtk_get_current_event_state (int[] state); |
| public static final boolean gtk_get_current_event_state (int[] state) { |
| lock.lock(); |
| try { |
| return _gtk_get_current_event_state(state); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_get_default_language(); |
| public static final long /*int*/ gtk_get_default_language() { |
| lock.lock(); |
| try { |
| return _gtk_get_default_language(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param event cast=(GdkEvent *) */ |
| public static final native long /*int*/ _gtk_get_event_widget(long /*int*/ event); |
| public static final long /*int*/ gtk_get_event_widget(long /*int*/ event) { |
| lock.lock(); |
| try { |
| return _gtk_get_event_widget(event); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_grab_get_current(); |
| public static final long /*int*/ gtk_grab_get_current() { |
| lock.lock(); |
| try { |
| return _gtk_grab_get_current(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.2 deprecated] |
| * @param homogeneous cast=(gboolean) |
| * @param spacing cast=(gint) |
| */ |
| public static final native long /*int*/ _gtk_hbox_new(boolean homogeneous, int spacing); |
| public static final long /*int*/ gtk_hbox_new(boolean homogeneous, int spacing) { |
| lock.lock(); |
| try { |
| return _gtk_hbox_new(homogeneous, spacing); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param h cast=(gdouble) |
| * @param s cast=(gdouble) |
| * @param v cast=(gdouble) |
| * @param r cast=(gdouble *) |
| * @param g cast=(gdouble *) |
| * @param b cast=(gdouble *) |
| */ |
| public static final native void _gtk_hsv_to_rgb(double h, double s, double v, double[] r, double[] g, double[] b); |
| public static final void gtk_hsv_to_rgb(double h, double s, double v, double[] r, double[] g, double[] b) { |
| lock.lock(); |
| try { |
| _gtk_hsv_to_rgb(h, s, v, r, g, b); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param r cast=(gdouble) |
| * @param g cast=(gdouble) |
| * @param b cast=(gdouble) |
| * @param h cast=(gdouble *) |
| * @param s cast=(gdouble *) |
| * @param v cast=(gdouble *) |
| */ |
| public static final native void _gtk_rgb_to_hsv(double r, double g, double b, double[] h, double[] s, double[] v); |
| public static final void gtk_rgb_to_hsv(double r, double g, double b, double[] h, double[] s, double[] v) { |
| lock.lock(); |
| try { |
| _gtk_rgb_to_hsv(r, g, b, h, s, v); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param orientation cast=(GtkOrientation) |
| */ |
| public static final native long /*int*/ _gtk_box_new(int orientation, int spacing); |
| public static final long /*int*/ gtk_box_new(int orientation, int spacing) { |
| lock.lock(); |
| try { |
| return _gtk_box_new(orientation, spacing); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param box cast=(GtkBox *) |
| * @param widget cast=(GtkWidget *) |
| * @param expand cast=(gboolean) |
| * @param fill cast=(gboolean) |
| * @param padding cast=(guint) |
| */ |
| public static final native void /*int*/ _gtk_box_pack_end(long /*int*/ box, long /*int*/ widget, |
| boolean expand, boolean fill, int padding); |
| public static final void /*int*/ gtk_box_pack_end(long /*int*/ box, long /*int*/ widget, |
| boolean expand, boolean fill, int padding) { |
| lock.lock(); |
| try { |
| _gtk_box_pack_end(box, widget, expand, fill, padding); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param box cast=(GtkBox *) |
| * @param child cast=(GtkWidget *) |
| * @param position cast=(gint) |
| */ |
| public static final native void /*int*/ _gtk_box_reorder_child(long /*int*/ box, long /*int*/ child, int position); |
| public static final void /*int*/ gtk_box_reorder_child(long /*int*/ box, long /*int*/ child, int position) { |
| lock.lock(); |
| try { |
| _gtk_box_reorder_child(box, child, position); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param box cast=(GtkBox *) |
| * @param homogeneous cast=(gboolean) |
| */ |
| public static final native void _gtk_box_set_homogeneous(long /*int*/ box, boolean homogeneous); |
| public static final void gtk_box_set_homogeneous(long /*int*/ box, boolean homogeneous) { |
| lock.lock(); |
| try { |
| _gtk_box_set_homogeneous(box, homogeneous); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| public static final native long /*int*/ _gtk_event_box_new(); |
| public static final long /*int*/ gtk_event_box_new() { |
| lock.lock(); |
| try { |
| return _gtk_event_box_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.2 deprecated] |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native long /*int*/ _gtk_hscale_new(long /*int*/ adjustment); |
| public static final long /*int*/ gtk_hscale_new(long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| return _gtk_hscale_new(adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param orientation cast=(GtkOrientation) |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native long /*int*/ _gtk_scale_new(int orientation, long /*int*/ adjustment); |
| public static final long /*int*/ gtk_scale_new(int orientation, long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| return _gtk_scale_new(orientation, adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.2 deprecated] |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native long /*int*/ _gtk_hscrollbar_new(long /*int*/ adjustment); |
| public static final long /*int*/ gtk_hscrollbar_new(long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| return _gtk_hscrollbar_new(adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param orientation cast=(GtkOrientation) |
| * @param adjustment cast=(GtkAdjustment *) |
| * */ |
| public static final native long /*int*/ _gtk_scrollbar_new(int orientation, long /*int*/ adjustment); |
| public static final long /*int*/ gtk_scrollbar_new(int orientation, long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| return _gtk_scrollbar_new(orientation, adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gtk_hseparator_new(); |
| public static final long /*int*/ gtk_hseparator_new() { |
| lock.lock(); |
| try { |
| return _gtk_hseparator_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param orientation cast=(GtkOrientation) |
| */ |
| public static final native long /*int*/ _gtk_separator_new(int orientation); |
| public static final long /*int*/ gtk_separator_new(int orientation) { |
| lock.lock(); |
| try { |
| return _gtk_separator_new(orientation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| // Get function pointer to gtk_status_icon_position_menu |
| // See os_custom.h |
| public static final native long /*int*/ _gtk_status_icon_position_menu_func(); |
| public static final long /*int*/ gtk_status_icon_position_menu_func() { |
| lock.lock(); |
| try { |
| return _gtk_status_icon_position_menu_func(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| // See os_custom.h |
| // Dynamically get's the function pointer to gtk_false(). Gtk2/Gtk3. |
| public static final native long /*int*/ _GET_FUNCTION_POINTER_gtk_false(); |
| public static final long /*int*/ GET_FUNCTION_POINTER_gtk_false() { |
| lock.lock(); |
| try { |
| return _GET_FUNCTION_POINTER_gtk_false(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.8 deprecated] |
| */ |
| public static final native void _gtk_icon_info_free(long /*int*/ icon_info); |
| public static final void gtk_icon_info_free(long /*int*/ icon_info) { |
| lock.lock(); |
| try { |
| _gtk_icon_info_free(icon_info); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @return cast=(GtkIconTheme *) */ |
| public static final native long /*int*/ _gtk_icon_theme_get_default(); |
| public static final long /*int*/ gtk_icon_theme_get_default() { |
| lock.lock(); |
| try { |
| return _gtk_icon_theme_get_default (); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param icon_theme cast=(GtkIconTheme *) |
| * @param icon cast=(GIcon *) |
| * @param size cast=(gint) |
| * @param flags cast=(GtkIconLookupFlags) |
| */ |
| public static final native long /*int*/ _gtk_icon_theme_lookup_by_gicon(long /*int*/ icon_theme, long /*int*/ icon, int size, int flags); |
| public static final long /*int*/ gtk_icon_theme_lookup_by_gicon(long /*int*/ icon_theme, long /*int*/ icon, int size, int flags) { |
| lock.lock(); |
| try { |
| return _gtk_icon_theme_lookup_by_gicon (icon_theme, icon, size, flags); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param icon_theme cast=(GtkIconTheme *) |
| * @param icon_name cast=(const gchar *) |
| * @param size cast=(gint) |
| * @param flags cast=(GtkIconLookupFlags) |
| * @param error cast=(GError **) |
| */ |
| public static final native long /*int*/ _gtk_icon_theme_load_icon(long /*int*/ icon_theme, byte[] icon_name, int size, int flags, long /*int*/ error); |
| public static final long /*int*/ gtk_icon_theme_load_icon(long /*int*/ icon_theme, byte[] icon_name, int size, int flags, long /*int*/ error) { |
| lock.lock(); |
| try { |
| return _gtk_icon_theme_load_icon (icon_theme, icon_name, size, flags, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param icon_info cast=(GtkIconInfo *) |
| * @param error cast=(GError **) |
| */ |
| public static final native long /*int*/ _gtk_icon_info_load_icon(long /*int*/ icon_info, long /*int*/ error[]); |
| public static final long /*int*/ gtk_icon_info_load_icon(long /*int*/ icon_info, long /*int*/ error[]) { |
| lock.lock(); |
| try { |
| return _gtk_icon_info_load_icon(icon_info, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(GtkIMContext *) |
| * @param event cast=(GdkEventKey *) |
| */ |
| public static final native boolean _gtk_im_context_filter_keypress(long /*int*/ context, long /*int*/ event); |
| public static final boolean gtk_im_context_filter_keypress(long /*int*/ context, long /*int*/ event) { |
| lock.lock(); |
| try { |
| return _gtk_im_context_filter_keypress(context, event); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param context cast=(GtkIMContext *) */ |
| public static final native void _gtk_im_context_focus_in(long /*int*/ context); |
| public static final void gtk_im_context_focus_in(long /*int*/ context) { |
| lock.lock(); |
| try { |
| _gtk_im_context_focus_in(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param context cast=(GtkIMContext *) */ |
| public static final native void _gtk_im_context_focus_out(long /*int*/ context); |
| public static final void gtk_im_context_focus_out(long /*int*/ context) { |
| lock.lock(); |
| try { |
| _gtk_im_context_focus_out(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(GtkIMContext *) |
| * @param str cast=(gchar **) |
| * @param attrs cast=(PangoAttrList **) |
| * @param cursor_pos cast=(gint *) |
| */ |
| public static final native void _gtk_im_context_get_preedit_string(long /*int*/ context, long /*int*/[] str, long /*int*/[] attrs, int[] cursor_pos); |
| public static final void gtk_im_context_get_preedit_string(long /*int*/ context, long /*int*/[] str, long /*int*/[] attrs, int[] cursor_pos) { |
| lock.lock(); |
| try { |
| _gtk_im_context_get_preedit_string(context, str, attrs, cursor_pos); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_im_context_get_type(); |
| public static final long /*int*/ gtk_im_context_get_type() { |
| lock.lock(); |
| try { |
| return _gtk_im_context_get_type(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param context cast=(GtkIMContext *) */ |
| public static final native void _gtk_im_context_reset(long /*int*/ context); |
| public static final void gtk_im_context_reset(long /*int*/ context) { |
| lock.lock(); |
| try { |
| _gtk_im_context_reset(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(GtkIMContext *) |
| * @param window cast=(GdkWindow *) |
| */ |
| public static final native void _gtk_im_context_set_client_window(long /*int*/ context, long /*int*/ window); |
| public static final void gtk_im_context_set_client_window(long /*int*/ context, long /*int*/ window) { |
| lock.lock(); |
| try { |
| _gtk_im_context_set_client_window(context, window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(GtkIMContext *) |
| * @param area cast=(GdkRectangle *),flags=no_out |
| */ |
| public static final native void _gtk_im_context_set_cursor_location(long /*int*/ context, GdkRectangle area); |
| public static final void gtk_im_context_set_cursor_location(long /*int*/ context, GdkRectangle area) { |
| lock.lock(); |
| try { |
| _gtk_im_context_set_cursor_location(context, area); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(GtkIMMulticontext *) |
| * @param menushell cast=(GtkMenuShell *) |
| */ |
| public static final native void _gtk_im_multicontext_append_menuitems (long /*int*/ context, long /*int*/ menushell); |
| public static final void gtk_im_multicontext_append_menuitems (long /*int*/ context, long /*int*/ menushell) { |
| lock.lock(); |
| try { |
| _gtk_im_multicontext_append_menuitems(context, menushell); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_im_multicontext_new(); |
| public static final long /*int*/ gtk_im_multicontext_new() { |
| lock.lock(); |
| try { |
| return _gtk_im_multicontext_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.10 deprecated] |
| * @param menu_item cast=(GtkImageMenuItem *) |
| * @param image cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_image_menu_item_set_image(long /*int*/ menu_item, long /*int*/ image); |
| public static final void gtk_image_menu_item_set_image(long /*int*/ menu_item, long /*int*/ image) { |
| lock.lock(); |
| try { |
| _gtk_image_menu_item_set_image(menu_item, image); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_image_new(); |
| public static final long /*int*/ gtk_image_new() { |
| lock.lock(); |
| try { |
| return _gtk_image_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param image cast=(GtkImage *) |
| * @param pixel_size cast=(gint) |
| */ |
| public static final native void /*int*/ _gtk_image_set_pixel_size(long /*int*/ image, int pixel_size); |
| public static final void /*int*/ gtk_image_set_pixel_size(long /*int*/ image, int pixel_size) { |
| lock.lock(); |
| try { |
| _gtk_image_set_pixel_size(image, pixel_size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param pixbuf cast=(GdkPixbuf *) */ |
| public static final native long /*int*/ _gtk_image_new_from_pixbuf(long /*int*/ pixbuf); |
| public static final long /*int*/ gtk_image_new_from_pixbuf(long /*int*/ pixbuf) { |
| lock.lock(); |
| try { |
| return _gtk_image_new_from_pixbuf(pixbuf); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param image cast=(GtkImage *) |
| * @param pixbuf cast=(GdkPixbuf *) |
| */ |
| public static final native void _gtk_image_set_from_pixbuf(long /*int*/ image, long /*int*/ pixbuf); |
| public static final void gtk_image_set_from_pixbuf(long /*int*/ image, long /*int*/ pixbuf) { |
| lock.lock(); |
| try { |
| _gtk_image_set_from_pixbuf(image, pixbuf); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param image cast=(GtkImage *) |
| * @param gicon cast=(GIcon *) |
| * @param size cast=(GtkIconSize) |
| */ |
| public static final native void _gtk_image_set_from_gicon(long /*int*/ image, long /*int*/ gicon, int size); |
| public static final void gtk_image_set_from_gicon(long /*int*/ image, long /*int*/ gicon, int size) { |
| lock.lock(); |
| try { |
| _gtk_image_set_from_gicon(image, gicon, size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @param icon_name cast=(const gchar *) |
| * @param size cast=(GtkIconSize) |
| */ |
| public static final native long /*int*/ _gtk_image_new_from_icon_name (byte[] icon_name, int size); |
| public static final long /*int*/ gtk_image_new_from_icon_name (byte[] icon_name, int size) { |
| lock.lock(); |
| try { |
| return _gtk_image_new_from_icon_name (icon_name, size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @param image cast=(GtkImage *) |
| * @param icon_name cast=(const gchar *) |
| * @param size cast=(GtkIconSize) |
| */ |
| public static final native void _gtk_image_set_from_icon_name (long /*int*/ image, byte[] icon_name, int size); |
| public static final void gtk_image_set_from_icon_name (long /*int*/ image, byte[] icon_name, int size) { |
| lock.lock(); |
| try { |
| _gtk_image_set_from_icon_name (image, icon_name, size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @param argc cast=(int *) |
| * @param argv cast=(char ***) |
| */ |
| public static final native boolean _gtk_init_check(long /*int*/[] argc, long /*int*/[] argv); |
| public static final boolean gtk_init_check(long /*int*/[] argc, long /*int*/[] argv) { |
| lock.lock(); |
| try { |
| return _gtk_init_check(argc, argv); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param label cast=(GtkLabel *) */ |
| public static final native long /*int*/ _gtk_label_get_layout(long /*int*/ label); |
| public static final long /*int*/ gtk_label_get_layout(long /*int*/ label) { |
| lock.lock(); |
| try { |
| return _gtk_label_get_layout(label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param label cast=(GtkLabel *) */ |
| public static final native int _gtk_label_get_mnemonic_keyval(long /*int*/ label); |
| public static final int gtk_label_get_mnemonic_keyval(long /*int*/ label) { |
| lock.lock(); |
| try { |
| return _gtk_label_get_mnemonic_keyval(label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param label cast=(const gchar *) */ |
| public static final native long /*int*/ _gtk_label_new(byte[] label); |
| public static final long /*int*/ gtk_label_new(byte[] label) { |
| lock.lock(); |
| try { |
| return _gtk_label_new(label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param str cast=(const gchar *) */ |
| public static final native long /*int*/ _gtk_label_new_with_mnemonic(byte[] str); |
| public static final long /*int*/ gtk_label_new_with_mnemonic(byte[] str) { |
| lock.lock(); |
| try { |
| return _gtk_label_new_with_mnemonic(str); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param attrs cast=(PangoAttrList *) |
| */ |
| public static final native void _gtk_label_set_attributes(long /*int*/ label, long /*int*/ attrs); |
| public static final void gtk_label_set_attributes(long /*int*/ label, long /*int*/ attrs) { |
| lock.lock(); |
| try { |
| _gtk_label_set_attributes(label, attrs); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param jtype cast=(GtkJustification) |
| */ |
| public static final native void _gtk_label_set_justify(long /*int*/ label, int jtype); |
| public static final void gtk_label_set_justify(long /*int*/ label, int jtype) { |
| lock.lock(); |
| try { |
| _gtk_label_set_justify(label, jtype); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param wrap cast=(gboolean) |
| */ |
| public static final native void _gtk_label_set_line_wrap(long /*int*/ label, boolean wrap); |
| public static final void gtk_label_set_line_wrap(long /*int*/ label, boolean wrap) { |
| lock.lock(); |
| try { |
| _gtk_label_set_line_wrap(label, wrap); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param wrap_mode cast=(PangoWrapMode) |
| */ |
| public static final native void _gtk_label_set_line_wrap_mode(long /*int*/ label, int wrap_mode); |
| public static final void gtk_label_set_line_wrap_mode(long /*int*/ label, int wrap_mode) { |
| lock.lock(); |
| try { |
| _gtk_label_set_line_wrap_mode(label, wrap_mode); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param str cast=(const gchar *) |
| */ |
| public static final native void _gtk_label_set_text(long /*int*/ label, long /*int*/ str); |
| public static final void gtk_label_set_text(long /*int*/ label, long /*int*/ str) { |
| lock.lock(); |
| try { |
| _gtk_label_set_text(label, str); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param str cast=(const gchar *) |
| */ |
| public static final native void _gtk_label_set_text(long /*int*/ label, byte[] str); |
| public static final void gtk_label_set_text(long /*int*/ label, byte[] str) { |
| lock.lock(); |
| try { |
| _gtk_label_set_text(label, str); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param str cast=(const gchar *) |
| */ |
| public static final native void _gtk_label_set_text_with_mnemonic(long /*int*/ label, byte[] str); |
| public static final void gtk_label_set_text_with_mnemonic(long /*int*/ label, byte[] str) { |
| lock.lock(); |
| try { |
| _gtk_label_set_text_with_mnemonic(label, str); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list_store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_list_store_append(long /*int*/ list_store, long /*int*/ iter); |
| public static final void gtk_list_store_append(long /*int*/ list_store, long /*int*/ iter) { |
| lock.lock(); |
| try { |
| _gtk_list_store_append(list_store, iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param store cast=(GtkListStore *) */ |
| public static final native void _gtk_list_store_clear(long /*int*/ store); |
| public static final void gtk_list_store_clear(long /*int*/ store) { |
| lock.lock(); |
| try { |
| _gtk_list_store_clear(store); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list_store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param position cast=(gint) |
| */ |
| public static final native void _gtk_list_store_insert(long /*int*/ list_store, long /*int*/ iter, int position); |
| public static final void gtk_list_store_insert(long /*int*/ list_store, long /*int*/ iter, int position) { |
| lock.lock(); |
| try { |
| _gtk_list_store_insert(list_store, iter, position); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param numColumns cast=(gint) |
| * @param types cast=(GType *) |
| */ |
| public static final native long /*int*/ _gtk_list_store_newv(int numColumns, long /*int*/[] types); |
| public static final long /*int*/ gtk_list_store_newv(int numColumns, long /*int*/[] types) { |
| lock.lock(); |
| try { |
| return _gtk_list_store_newv(numColumns, types); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param data cast=(const gchar *) |
| * @param length cast=(gssize) |
| * @param error cast=(GError **) |
| */ |
| public static final native boolean _gtk_css_provider_load_from_data(long /*int*/ css_provider, byte[] data, long /*int*/ length, long /*int*/ error[]); |
| public static final boolean gtk_css_provider_load_from_data(long /*int*/ css_provider, byte[] data, long /*int*/ length, long /*int*/ error[] ) { |
| lock.lock(); |
| try { |
| return _gtk_css_provider_load_from_data(css_provider, data, length, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gtk_css_provider_new(); |
| public static final long /*int*/gtk_css_provider_new() { |
| lock.lock(); |
| try { |
| return _gtk_css_provider_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native long /*int*/ _gtk_css_provider_to_string(long /*int*/ provider); |
| public static final long /*int*/gtk_css_provider_to_string(long /*int*/ provider) { |
| lock.lock(); |
| try { |
| return _gtk_css_provider_to_string(provider); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic |
| * @param name cast=(const gchar *) |
| * @param variant cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_css_provider_get_named (byte[] name, byte[] variant); |
| public static final long /*int*/gtk_css_provider_get_named(byte[] name, byte[] variant) { |
| lock.lock(); |
| try { |
| return _gtk_css_provider_get_named(name, variant); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param screen cast=(GdkScreen *) |
| * @param priority cast=(guint) |
| */ |
| public static final native void _gtk_style_context_add_provider_for_screen (long /*int*/ screen, long /*int*/ provider, int priority); |
| public static final void gtk_style_context_add_provider_for_screen(long /*int*/ screen, long /*int*/ provider, int priority) { |
| lock.lock(); |
| try { |
| _gtk_style_context_add_provider_for_screen(screen, provider, priority); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| |
| /** |
| * @method flags=dynamic |
| * @param priority cast=(guint) |
| */ |
| public static final native void _gtk_style_context_add_provider (long /*int*/ context, long /*int*/ provider, int priority); |
| public static final void gtk_style_context_add_provider( |
| long /*int*/context, long /*int*/provider, int priority) { |
| lock.lock(); |
| try { |
| _gtk_style_context_add_provider(context, provider, priority); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list_store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_list_store_remove(long /*int*/ list_store, long /*int*/ iter); |
| public static final void gtk_list_store_remove(long /*int*/ list_store, long /*int*/ iter) { |
| lock.lock(); |
| try { |
| _gtk_list_store_remove(list_store, iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_list_store_set(long /*int*/ store, long /*int*/ iter, int column, byte[] value, int terminator); |
| public static final void gtk_list_store_set(long /*int*/ store, long /*int*/ iter, int column, byte[] value, int terminator) { |
| lock.lock(); |
| try { |
| _gtk_list_store_set(store, iter, column, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_list_store_set(long /*int*/ store, long /*int*/ iter, int column, int value, int terminator); |
| public static final void gtk_list_store_set(long /*int*/ store, long /*int*/ iter, int column, int value, int terminator) { |
| lock.lock(); |
| try { |
| _gtk_list_store_set(store, iter, column, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_list_store_set(long /*int*/ store, long /*int*/ iter, int column, long value, int terminator); |
| public static final void gtk_list_store_set(long /*int*/ store, long /*int*/ iter, int column, long value, int terminator) { |
| lock.lock(); |
| try { |
| _gtk_list_store_set(store, iter, column, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param value flags=no_out |
| */ |
| public static final native void _gtk_list_store_set(long /*int*/ store, long /*int*/ iter, int column, GdkColor value, int terminator); |
| public static final void gtk_list_store_set(long /*int*/ store, long /*int*/ iter, int column, GdkColor value, int terminator) { |
| lock.lock(); |
| try { |
| _gtk_list_store_set(store, iter, column, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_list_store_set(long /*int*/ store, long /*int*/ iter, int column, boolean value, int terminator); |
| public static final void gtk_list_store_set(long /*int*/ store, long /*int*/ iter, int column, boolean value, int terminator) { |
| lock.lock(); |
| try { |
| _gtk_list_store_set(store, iter, column, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native int _gtk_major_version(); |
| public static final int gtk_major_version() { |
| lock.lock(); |
| try { |
| return _gtk_major_version(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native int _gtk_minor_version(); |
| public static final int gtk_minor_version() { |
| lock.lock(); |
| try { |
| return _gtk_minor_version(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native int _gtk_micro_version(); |
| public static final int gtk_micro_version() { |
| lock.lock(); |
| try { |
| return _gtk_micro_version(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native int _glib_major_version(); |
| public static final int glib_major_version() { |
| lock.lock(); |
| try { |
| return _glib_major_version(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native int _glib_minor_version(); |
| public static final int glib_minor_version() { |
| lock.lock(); |
| try { |
| return _glib_minor_version(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=const */ |
| public static final native int _glib_micro_version(); |
| public static final int glib_micro_version() { |
| lock.lock(); |
| try { |
| return _glib_micro_version(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native void _gtk_main(); |
| public static final void gtk_main() { |
| lock.lock(); |
| try { |
| _gtk_main(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param event cast=(GdkEvent *) */ |
| public static final native void _gtk_main_do_event(long /*int*/ event); |
| public static final void gtk_main_do_event(long /*int*/ event) { |
| lock.lock(); |
| try { |
| _gtk_main_do_event(event); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_menu_bar_new(); |
| public static final long /*int*/ gtk_menu_bar_new() { |
| lock.lock(); |
| try { |
| return _gtk_menu_bar_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param menu_item cast=(GtkMenuItem *) */ |
| public static final native long /*int*/ _gtk_menu_item_get_submenu(long /*int*/ menu_item); |
| public static final long /*int*/ gtk_menu_item_get_submenu(long /*int*/ menu_item) { |
| lock.lock(); |
| try { |
| return _gtk_menu_item_get_submenu(menu_item); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param label cast=(const gchar *) */ |
| public static final native long /*int*/ _gtk_menu_item_new_with_label(byte[] label); |
| public static final long /*int*/ gtk_menu_item_new_with_label(byte[] label) { |
| lock.lock(); |
| try { |
| return _gtk_menu_item_new_with_label(label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_menu_item_new(); |
| public static final long /*int*/ gtk_menu_item_new() { |
| lock.lock(); |
| try { |
| return _gtk_menu_item_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param menu_item cast=(GtkMenuItem *) |
| * @param submenu cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_menu_item_set_submenu(long /*int*/ menu_item, long /*int*/ submenu); |
| public static final void gtk_menu_item_set_submenu(long /*int*/ menu_item, long /*int*/ submenu) { |
| lock.lock(); |
| try { |
| _gtk_menu_item_set_submenu(menu_item, submenu); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_menu_new(); |
| public static final long /*int*/ gtk_menu_new() { |
| lock.lock(); |
| try { |
| return _gtk_menu_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param menu cast=(GtkMenu *) */ |
| public static final native void _gtk_menu_popdown(long /*int*/ menu); |
| public static final void gtk_menu_popdown(long /*int*/ menu) { |
| lock.lock(); |
| try { |
| _gtk_menu_popdown(menu); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param menu cast=(GtkMenu *) |
| * @param parent_menu_shell cast=(GtkWidget *) |
| * @param parent_menu_item cast=(GtkWidget *) |
| * @param func cast=(GtkMenuPositionFunc) |
| * @param data cast=(gpointer) |
| * @param button cast=(guint) |
| * @param activate_time cast=(guint32) |
| */ |
| public static final native void _gtk_menu_popup(long /*int*/ menu, long /*int*/ parent_menu_shell, long /*int*/ parent_menu_item, long /*int*/ func, long /*int*/ data, int button, int activate_time); |
| public static final void gtk_menu_popup(long /*int*/ menu, long /*int*/ parent_menu_shell, long /*int*/ parent_menu_item, long /*int*/ func, long /*int*/ data, int button, int activate_time) { |
| lock.lock(); |
| try { |
| _gtk_menu_popup(menu, parent_menu_shell, parent_menu_item, func, data, button, activate_time); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param menu_shell cast=(GtkMenuShell *) */ |
| public static final native void _gtk_menu_shell_deactivate(long /*int*/ menu_shell); |
| public static final void gtk_menu_shell_deactivate(long /*int*/ menu_shell) { |
| lock.lock(); |
| try { |
| _gtk_menu_shell_deactivate(menu_shell); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param menu_shell cast=(GtkMenuShell *) |
| * @param child cast=(GtkWidget *) |
| * @param position cast=(gint) |
| */ |
| public static final native void _gtk_menu_shell_insert(long /*int*/ menu_shell, long /*int*/ child, int position); |
| public static final void gtk_menu_shell_insert(long /*int*/ menu_shell, long /*int*/ child, int position) { |
| lock.lock(); |
| try { |
| _gtk_menu_shell_insert(menu_shell, child, position); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param menu_shell cast=(GtkMenuShell *) |
| * @param take_focus cast=(gboolean) |
| */ |
| public static final native void _gtk_menu_shell_set_take_focus(long /*int*/ menu_shell, boolean take_focus); |
| public static final void gtk_menu_shell_set_take_focus(long /*int*/ menu_shell, boolean take_focus) { |
| lock.lock(); |
| try { |
| _gtk_menu_shell_set_take_focus(menu_shell, take_focus); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param icon_widget cast=(GtkWidget *) |
| * @param label cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_menu_tool_button_new(long /*int*/ icon_widget, byte[] label); |
| public static final long /*int*/ gtk_menu_tool_button_new(long /*int*/ icon_widget, byte[] label) { |
| lock.lock(); |
| try { |
| return _gtk_menu_tool_button_new(icon_widget, label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param parent cast=(GtkWindow *) |
| * @param flags cast=(GtkDialogFlags) |
| * @param type cast=(GtkMessageType) |
| * @param buttons cast=(GtkButtonsType) |
| * @param message_format cast=(const gchar *) |
| * @param arg cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_message_dialog_new(long /*int*/ parent, int flags, int type, int buttons, byte[] message_format, byte[] arg); |
| public static final long /*int*/ gtk_message_dialog_new(long /*int*/ parent, int flags, int type, int buttons, byte[] message_format, byte[] arg) { |
| lock.lock(); |
| try { |
| return _gtk_message_dialog_new(parent, flags, type, buttons, message_format, arg); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.14 deprecated] |
| * @param misc cast=(GtkMisc *) |
| * @param xalign cast=(gfloat) |
| * @param yalign cast=(gfloat) |
| */ |
| public static final native void _gtk_misc_set_alignment(long /*int*/ misc, float xalign, float yalign); |
| public static final void gtk_misc_set_alignment(long /*int*/ misc, float xalign, float yalign) { |
| lock.lock(); |
| try { |
| _gtk_misc_set_alignment(misc, xalign, yalign); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param notebook cast=(GtkNotebook *) */ |
| public static final native int _gtk_notebook_get_current_page(long /*int*/ notebook); |
| public static final int gtk_notebook_get_current_page(long /*int*/ notebook) { |
| lock.lock(); |
| try { |
| return _gtk_notebook_get_current_page(notebook); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param notebook cast=(GtkNotebook *) */ |
| public static final native boolean _gtk_notebook_get_scrollable(long /*int*/ notebook); |
| public static final boolean gtk_notebook_get_scrollable(long /*int*/ notebook) { |
| lock.lock(); |
| try { |
| return _gtk_notebook_get_scrollable(notebook); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param notebook cast=(GtkNotebook *) |
| * @param child cast=(GtkWidget *) |
| * @param tab_label cast=(GtkWidget *) |
| * @param position cast=(gint) |
| */ |
| public static final native void _gtk_notebook_insert_page(long /*int*/ notebook, long /*int*/ child, long /*int*/ tab_label, int position); |
| public static final void gtk_notebook_insert_page(long /*int*/ notebook, long /*int*/ child, long /*int*/ tab_label, int position) { |
| lock.lock(); |
| try { |
| _gtk_notebook_insert_page(notebook, child, tab_label, position); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_notebook_new(); |
| public static final long /*int*/ gtk_notebook_new() { |
| lock.lock(); |
| try { |
| return _gtk_notebook_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param notebook cast=(GtkNotebook *) */ |
| public static final native void _gtk_notebook_next_page(long /*int*/ notebook); |
| public static final void gtk_notebook_next_page(long /*int*/ notebook) { |
| lock.lock(); |
| try { |
| _gtk_notebook_next_page(notebook); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param notebook cast=(GtkNotebook *) */ |
| public static final native void _gtk_notebook_prev_page(long /*int*/ notebook); |
| public static final void gtk_notebook_prev_page(long /*int*/ notebook) { |
| lock.lock(); |
| try { |
| _gtk_notebook_prev_page(notebook); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param notebook cast=(GtkNotebook *) |
| * @param page_num cast=(gint) |
| */ |
| public static final native void _gtk_notebook_remove_page(long /*int*/ notebook, int page_num); |
| public static final void gtk_notebook_remove_page(long /*int*/ notebook, int page_num) { |
| lock.lock(); |
| try { |
| _gtk_notebook_remove_page(notebook, page_num); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param notebook cast=(GtkNotebook *) |
| * @param page_num cast=(gint) |
| */ |
| public static final native void _gtk_notebook_set_current_page(long /*int*/ notebook, int page_num); |
| public static final void gtk_notebook_set_current_page(long /*int*/ notebook, int page_num) { |
| lock.lock(); |
| try { |
| _gtk_notebook_set_current_page(notebook, page_num); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param notebook cast=(GtkNotebook *) |
| * @param scrollable cast=(gboolean) |
| */ |
| public static final native void _gtk_notebook_set_scrollable(long /*int*/ notebook, boolean scrollable); |
| public static final void gtk_notebook_set_scrollable(long /*int*/ notebook, boolean scrollable) { |
| lock.lock(); |
| try { |
| _gtk_notebook_set_scrollable(notebook, scrollable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param notebook cast=(GtkNotebook *) |
| * @param show_tabs cast=(gboolean) |
| */ |
| public static final native void _gtk_notebook_set_show_tabs(long /*int*/ notebook, boolean show_tabs); |
| public static final void gtk_notebook_set_show_tabs(long /*int*/ notebook, boolean show_tabs) { |
| lock.lock(); |
| try { |
| _gtk_notebook_set_show_tabs(notebook, show_tabs); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param notebook cast=(GtkNotebook *) |
| * @param pos cast=(GtkPositionType) |
| */ |
| public static final native void _gtk_notebook_set_tab_pos(long /*int*/ notebook, int pos); |
| public static final void gtk_notebook_set_tab_pos(long /*int*/ notebook, int pos) { |
| lock.lock(); |
| try { |
| _gtk_notebook_set_tab_pos(notebook, pos); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param object cast=(GObject *) |
| */ |
| public static final native long /*int*/ _g_object_ref_sink(long /*int*/ object); |
| public static final long /*int*/ g_object_ref_sink(long /*int*/ object) { |
| lock.lock(); |
| try { |
| return _g_object_ref_sink(object); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param orientable cast=(GtkOrientable *) |
| * @param orientation cast=(GtkOrientation) |
| */ |
| public static final native void _gtk_orientable_set_orientation(long /*int*/ orientable, int orientation); |
| public static final void gtk_orientable_set_orientation(long /*int*/ orientable, int orientation) { |
| lock.lock(); |
| try { |
| _gtk_orientable_set_orientation(orientable, orientation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_page_setup_new (); |
| public static final long /*int*/ gtk_page_setup_new () { |
| lock.lock(); |
| try { |
| return _gtk_page_setup_new (); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| */ |
| public static final native int _gtk_page_setup_get_orientation(long /*int*/ setup); |
| public static final int gtk_page_setup_get_orientation(long /*int*/ setup) { |
| lock.lock(); |
| try { |
| return _gtk_page_setup_get_orientation(setup); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param orientation cast=(GtkPageOrientation) |
| */ |
| public static final native void _gtk_page_setup_set_orientation(long /*int*/ setup, int orientation); |
| public static final void gtk_page_setup_set_orientation(long /*int*/ setup, int orientation) { |
| lock.lock(); |
| try { |
| _gtk_page_setup_set_orientation(setup, orientation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| */ |
| public static final native long /*int*/ _gtk_page_setup_get_paper_size(long /*int*/ setup); |
| public static final long /*int*/ gtk_page_setup_get_paper_size(long /*int*/ setup) { |
| lock.lock(); |
| try { |
| return _gtk_page_setup_get_paper_size(setup); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param size cast=(GtkPaperSize *) |
| */ |
| public static final native void _gtk_page_setup_set_paper_size(long /*int*/ setup, long /*int*/ size); |
| public static final void gtk_page_setup_set_paper_size(long /*int*/ setup, long /*int*/ size) { |
| lock.lock(); |
| try { |
| _gtk_page_setup_set_paper_size(setup, size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double _gtk_page_setup_get_top_margin(long /*int*/ setup, int unit); |
| public static final double gtk_page_setup_get_top_margin(long /*int*/ setup, int unit) { |
| lock.lock(); |
| try { |
| return _gtk_page_setup_get_top_margin(setup, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param margin cast=(gdouble) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native void _gtk_page_setup_set_top_margin(long /*int*/ setup, double margin, int unit); |
| public static final void gtk_page_setup_set_top_margin(long /*int*/ setup, double margin, int unit) { |
| lock.lock(); |
| try { |
| _gtk_page_setup_set_top_margin(setup, margin, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| * |
| */ |
| public static final native double _gtk_page_setup_get_bottom_margin(long /*int*/ setup, int unit); |
| public static final double gtk_page_setup_get_bottom_margin(long /*int*/ setup, int unit) { |
| lock.lock(); |
| try { |
| return _gtk_page_setup_get_bottom_margin(setup, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param margin cast=(gdouble) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native void _gtk_page_setup_set_bottom_margin(long /*int*/ setup, double margin, int unit); |
| public static final void gtk_page_setup_set_bottom_margin(long /*int*/ setup, double margin, int unit) { |
| lock.lock(); |
| try { |
| _gtk_page_setup_set_bottom_margin(setup, margin, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double _gtk_page_setup_get_left_margin(long /*int*/ setup, int unit); |
| public static final double gtk_page_setup_get_left_margin(long /*int*/ setup, int unit) { |
| lock.lock(); |
| try { |
| return _gtk_page_setup_get_left_margin(setup, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param margin cast=(gdouble) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native void _gtk_page_setup_set_left_margin(long /*int*/ setup, double margin, int unit); |
| public static final void gtk_page_setup_set_left_margin(long /*int*/ setup, double margin, int unit) { |
| lock.lock(); |
| try { |
| _gtk_page_setup_set_left_margin(setup, margin, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double _gtk_page_setup_get_right_margin(long /*int*/ setup, int unit); |
| public static final double gtk_page_setup_get_right_margin(long /*int*/ setup, int unit) { |
| lock.lock(); |
| try { |
| return _gtk_page_setup_get_right_margin(setup, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param margin cast=(gdouble) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native void _gtk_page_setup_set_right_margin(long /*int*/ setup, double margin, int unit); |
| public static final void gtk_page_setup_set_right_margin(long /*int*/ setup, double margin, int unit) { |
| lock.lock(); |
| try { |
| _gtk_page_setup_set_right_margin(setup, margin, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double _gtk_page_setup_get_paper_width(long /*int*/ setup, int unit); |
| public static final double gtk_page_setup_get_paper_width(long /*int*/ setup, int unit) { |
| lock.lock(); |
| try { |
| return _gtk_page_setup_get_paper_width(setup, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double _gtk_page_setup_get_paper_height(long /*int*/ setup, int unit); |
| public static final double gtk_page_setup_get_paper_height(long /*int*/ setup, int unit) { |
| lock.lock(); |
| try { |
| return _gtk_page_setup_get_paper_height(setup, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double _gtk_page_setup_get_page_width(long /*int*/ setup, int unit); |
| public static final double gtk_page_setup_get_page_width(long /*int*/ setup, int unit) { |
| lock.lock(); |
| try { |
| return _gtk_page_setup_get_page_width(setup, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double _gtk_page_setup_get_page_height(long /*int*/ setup, int unit); |
| public static final double gtk_page_setup_get_page_height(long /*int*/ setup, int unit) { |
| lock.lock(); |
| try { |
| return _gtk_page_setup_get_page_height(setup, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param window cast=(GdkWindow *) |
| * @param area flags=no_out |
| * @param widget cast=(GtkWidget *) |
| * @param detail cast=(const gchar *) |
| */ |
| public static final native void _gtk_paint_handle(long /*int*/ style, long /*int*/ window, int state_type, int shadow_type, GdkRectangle area, long /*int*/ widget, byte[] detail, int x , int y, int width, int height, int orientation); |
| public static final void gtk_paint_handle(long /*int*/ style, long /*int*/ window, int state_type, int shadow_type, GdkRectangle area, long /*int*/ widget, byte[] detail, int x , int y, int width, int height, int orientation) { |
| lock.lock(); |
| try { |
| _gtk_paint_handle(style, window, state_type, shadow_type, area, widget, detail, x, y, width, height, orientation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param x cast=(gdouble) |
| * @param y cast=(gdouble) |
| * @param width cast=(gdouble) |
| * @param height cast=(gdouble) |
| */ |
| public static final native void _gtk_render_frame(long /*int*/ context, long /*int*/ cr, double x , double y, double width, double height); |
| public static final void gtk_render_frame(long /*int*/ context, long /*int*/ cr, double x , double y, double width, double height) { |
| lock.lock(); |
| try { |
| _gtk_render_frame(context, cr, x, y, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param x cast=(gdouble) |
| * @param y cast=(gdouble) |
| * @param width cast=(gdouble) |
| * @param height cast=(gdouble) |
| */ |
| public static final native void _gtk_render_background(long /*int*/ context, long /*int*/ cr, double x , double y, double width, double height); |
| public static final void gtk_render_background(long /*int*/ context, long /*int*/ cr, double x , double y, double width, double height) { |
| lock.lock(); |
| try { |
| _gtk_render_background(context, cr, x, y, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param window cast=(GdkWindow *) |
| * @param widget cast=(GtkWidget *) |
| * @param detail cast=(const gchar *) |
| */ |
| public static final native void _gtk_paint_flat_box(long /*int*/ style, long /*int*/ window, int state_type, int shadow_type, GdkRectangle area, long /*int*/ widget, byte[] detail, int x , int y, int width, int height); |
| public static final void gtk_paint_flat_box(long /*int*/ style, long /*int*/ window, int state_type, int shadow_type, GdkRectangle area, long /*int*/ widget, byte[] detail, int x , int y, int width, int height) { |
| lock.lock(); |
| try { |
| _gtk_paint_flat_box(style, window, state_type, shadow_type, area, widget, detail, x, y, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param window cast=(GdkWindow *) |
| * @param area flags=no_out |
| * @param widget cast=(GtkWidget *) |
| * @param detail cast=(const gchar *) |
| */ |
| public static final native void _gtk_paint_focus(long /*int*/ style, long /*int*/ window, int state_type, GdkRectangle area, long /*int*/ widget, byte[] detail, int x , int y, int width, int height); |
| public static final void gtk_paint_focus(long /*int*/ style, long /*int*/ window, int state_type, GdkRectangle area, long /*int*/ widget, byte[] detail, int x , int y, int width, int height) { |
| lock.lock(); |
| try { |
| _gtk_paint_focus(style, window, state_type, area, widget, detail, x, y, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param x cast=(gdouble) |
| * @param y cast=(gdouble) |
| * @param width cast=(gdouble) |
| * @param height cast=(gdouble) |
| */ |
| public static final native void _gtk_render_focus(long /*int*/ context, long /*int*/ cr, double x , double y, double width, double height); |
| public static final void gtk_render_focus(long /*int*/ context, long /*int*/ cr, double x , double y, double width, double height) { |
| lock.lock(); |
| try { |
| _gtk_render_focus(context, cr, x, y, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param window cast=(GdkWindow *) |
| * @param widget cast=(GtkWidget *) |
| * @param detail cast=(const gchar *) |
| */ |
| public static final native void _gtk_paint_box(long /*int*/ style, long /*int*/ window, int state_type, int shadow_type, GdkRectangle area, long /*int*/ widget, byte[] detail, int x , int y, int width, int height); |
| public static final void gtk_paint_box(long /*int*/ style, long /*int*/ window, int state_type, int shadow_type, GdkRectangle area, long /*int*/ widget, byte[] detail, int x , int y, int width, int height) { |
| lock.lock(); |
| try { |
| _gtk_paint_box(style, window, state_type, shadow_type, area, widget, detail, x, y, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param size cast=(GtkPaperSize *) |
| */ |
| public static final native void _gtk_paper_size_free(long /*int*/ size); |
| public static final void gtk_paper_size_free(long /*int*/ size) { |
| lock.lock(); |
| try { |
| _gtk_paper_size_free(size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param name cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_paper_size_new(byte [] name); |
| public static final long /*int*/ gtk_paper_size_new(byte [] name) { |
| lock.lock(); |
| try { |
| return _gtk_paper_size_new(name); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param ppd_name cast=(const gchar *) |
| * @param ppd_display_name cast=(const gchar *) |
| * @param width cast=(gdouble) |
| * @param height cast=(gdouble) |
| */ |
| public static final native long /*int*/ _gtk_paper_size_new_from_ppd(byte [] ppd_name, byte [] ppd_display_name, double width, double height); |
| public static final long /*int*/ gtk_paper_size_new_from_ppd(byte [] ppd_name, byte [] ppd_display_name, double width, double height) { |
| lock.lock(); |
| try { |
| return _gtk_paper_size_new_from_ppd(ppd_name, ppd_display_name, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param name cast=(const gchar *) |
| * @param display_name cast=(const gchar *) |
| * @param width cast=(gdouble) |
| * @param height cast=(gdouble) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native long /*int*/ _gtk_paper_size_new_custom(byte [] name, byte [] display_name, double width, double height, int unit); |
| public static final long /*int*/ gtk_paper_size_new_custom(byte [] name, byte [] display_name, double width, double height, int unit) { |
| lock.lock(); |
| try { |
| return _gtk_paper_size_new_custom(name, display_name, width, height, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param size cast=(GtkPaperSize *) |
| */ |
| public static final native long /*int*/ _gtk_paper_size_get_name(long /*int*/ size); |
| public static final long /*int*/ gtk_paper_size_get_name(long /*int*/ size) { |
| lock.lock(); |
| try { |
| return _gtk_paper_size_get_name(size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param size cast=(GtkPaperSize *) |
| */ |
| public static final native long /*int*/ _gtk_paper_size_get_display_name(long /*int*/ size); |
| public static final long /*int*/ gtk_paper_size_get_display_name(long /*int*/ size) { |
| lock.lock(); |
| try { |
| return _gtk_paper_size_get_display_name(size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param size cast=(GtkPaperSize *) |
| */ |
| public static final native long /*int*/ _gtk_paper_size_get_ppd_name(long /*int*/ size); |
| public static final long /*int*/ gtk_paper_size_get_ppd_name(long /*int*/ size) { |
| lock.lock(); |
| try { |
| return _gtk_paper_size_get_ppd_name(size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param size cast=(GtkPaperSize *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double _gtk_paper_size_get_width(long /*int*/ size, int unit); |
| public static final double gtk_paper_size_get_width(long /*int*/ size, int unit) { |
| lock.lock(); |
| try { |
| return _gtk_paper_size_get_width(size, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param size cast=(GtkPaperSize *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double _gtk_paper_size_get_height(long /*int*/ size, int unit); |
| public static final double gtk_paper_size_get_height(long /*int*/ size, int unit) { |
| lock.lock(); |
| try { |
| return _gtk_paper_size_get_height(size, unit); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param size cast=(GtkPaperSize *) |
| */ |
| public static final native boolean _gtk_paper_size_is_custom(long /*int*/ size); |
| public static final boolean gtk_paper_size_is_custom(long /*int*/ size) { |
| lock.lock(); |
| try { |
| return _gtk_paper_size_is_custom(size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_plug_new(long /*int*/ socket_id); |
| public static final long /*int*/ gtk_plug_new(long /*int*/ socket_id) { |
| lock.lock(); |
| try { |
| return _gtk_plug_new(socket_id); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param printer cast=(GtkPrinter *) |
| */ |
| public static final native long /*int*/ _gtk_printer_get_backend(long /*int*/ printer); |
| public static final long /*int*/ gtk_printer_get_backend(long /*int*/ printer) { |
| lock.lock(); |
| try { |
| return _gtk_printer_get_backend(printer); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param printer cast=(GtkPrinter *) |
| */ |
| public static final native long /*int*/ _gtk_printer_get_name(long /*int*/ printer); |
| public static final long /*int*/ gtk_printer_get_name(long /*int*/ printer) { |
| lock.lock(); |
| try { |
| return _gtk_printer_get_name(printer); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param printer cast=(GtkPrinter *) |
| */ |
| public static final native boolean _gtk_printer_is_default(long /*int*/ printer); |
| public static final boolean gtk_printer_is_default(long /*int*/ printer) { |
| lock.lock(); |
| try { |
| return _gtk_printer_is_default(printer); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param func cast=(GtkPrinterFunc) |
| * @param data cast=(gpointer) |
| * @param destroy cast=(GDestroyNotify) |
| * @param wait cast=(gboolean) |
| */ |
| public static final native void _gtk_enumerate_printers(long /*int*/ func, long /*int*/data, long /*int*/ destroy, boolean wait); |
| public static final void gtk_enumerate_printers(long /*int*/ func, long /*int*/data, long /*int*/ destroy, boolean wait) { |
| lock.lock(); |
| try { |
| _gtk_enumerate_printers(func, data, destroy, wait); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param title cast=(const gchar *) |
| * @param printer cast=(GtkPrinter *) |
| * @param settings cast=(GtkPrintSettings *) |
| * @param page_setup cast=(GtkPageSetup *) |
| */ |
| public static final native long /*int*/ _gtk_print_job_new(byte[] title, long /*int*/ printer, long /*int*/ settings, long /*int*/ page_setup); |
| public static final long /*int*/ gtk_print_job_new(byte[] title, long /*int*/ printer, long /*int*/ settings, long /*int*/ page_setup) { |
| lock.lock(); |
| try { |
| return _gtk_print_job_new(title, printer, settings, page_setup); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param job cast=(GtkPrintJob *) |
| * @param error cast=(GError **) |
| */ |
| public static final native long /*int*/ _gtk_print_job_get_surface(long /*int*/ job, long /*int*/ error[]); |
| public static final long /*int*/ gtk_print_job_get_surface(long /*int*/ job, long /*int*/ error[]) { |
| lock.lock(); |
| try { |
| return _gtk_print_job_get_surface(job, error); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param job cast=(GtkPrintJob *) |
| * @param callback cast=(GtkPrintJobCompleteFunc) |
| * @param user_data cast=(gpointer) |
| * @param dnotify cast=(GDestroyNotify) |
| */ |
| public static final native void _gtk_print_job_send(long /*int*/ job, long /*int*/ callback, long /*int*/ user_data, long /*int*/ dnotify); |
| public static final void gtk_print_job_send(long /*int*/ job, long /*int*/ callback, long /*int*/ user_data, long /*int*/ dnotify) { |
| lock.lock(); |
| try { |
| _gtk_print_job_send(job, callback, user_data, dnotify); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_print_settings_new(); |
| public static final long /*int*/ gtk_print_settings_new() { |
| lock.lock(); |
| try { |
| return _gtk_print_settings_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param func cast=(GtkPrintSettingsFunc) |
| * @param data cast=(gpointer) |
| */ |
| public static final native void _gtk_print_settings_foreach(long /*int*/ settings, long /*int*/ func, long /*int*/ data); |
| public static final void gtk_print_settings_foreach(long /*int*/ settings, long /*int*/ func, long /*int*/ data) { |
| lock.lock(); |
| try { |
| _gtk_print_settings_foreach(settings, func, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param key cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_print_settings_get(long /*int*/ settings, byte [] key); |
| public static final long /*int*/ gtk_print_settings_get(long /*int*/ settings, byte [] key) { |
| lock.lock(); |
| try { |
| return _gtk_print_settings_get(settings, key); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param key cast=(const gchar *) |
| * @param value cast=(const gchar *) |
| */ |
| public static final native void _gtk_print_settings_set(long /*int*/ settings, byte [] key, byte [] value); |
| public static final void gtk_print_settings_set(long /*int*/ settings, byte [] key, byte [] value) { |
| lock.lock(); |
| try { |
| _gtk_print_settings_set(settings, key, value); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param printer cast=(const gchar *) |
| */ |
| public static final native void _gtk_print_settings_set_printer(long /*int*/ settings, byte[] printer); |
| public static final void gtk_print_settings_set_printer(long /*int*/ settings, byte[] printer) { |
| lock.lock(); |
| try { |
| _gtk_print_settings_set_printer(settings, printer); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param orientation cast=(GtkPageOrientation) |
| */ |
| public static final native void _gtk_print_settings_set_orientation(long /*int*/ settings, int orientation); |
| public static final void gtk_print_settings_set_orientation(long /*int*/ settings, int orientation) { |
| lock.lock(); |
| try { |
| _gtk_print_settings_set_orientation(settings, orientation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| */ |
| public static final native boolean _gtk_print_settings_get_collate(long /*int*/ settings); |
| public static final boolean gtk_print_settings_get_collate(long /*int*/ settings) { |
| lock.lock(); |
| try { |
| return _gtk_print_settings_get_collate(settings); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param collate cast=(gboolean) |
| */ |
| public static final native void _gtk_print_settings_set_collate(long /*int*/ settings, boolean collate); |
| public static final void gtk_print_settings_set_collate(long /*int*/ settings, boolean collate) { |
| lock.lock(); |
| try { |
| _gtk_print_settings_set_collate(settings, collate); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| */ |
| public static final native int _gtk_print_settings_get_duplex(long /*int*/ settings); |
| public static final int gtk_print_settings_get_duplex(long /*int*/ settings) { |
| lock.lock(); |
| try { |
| return _gtk_print_settings_get_duplex(settings); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param duplex cast=(GtkPrintDuplex) |
| */ |
| public static final native void _gtk_print_settings_set_duplex(long /*int*/ settings, int duplex); |
| public static final void gtk_print_settings_set_duplex(long /*int*/ settings, int duplex) { |
| lock.lock(); |
| try { |
| _gtk_print_settings_set_duplex(settings, duplex); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| */ |
| public static final native int _gtk_print_settings_get_n_copies(long /*int*/ settings); |
| public static final int gtk_print_settings_get_n_copies(long /*int*/ settings) { |
| lock.lock(); |
| try { |
| return _gtk_print_settings_get_n_copies(settings); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param num_copies cast=(gint) |
| */ |
| public static final native void _gtk_print_settings_set_n_copies(long /*int*/ settings, int num_copies); |
| public static final void gtk_print_settings_set_n_copies(long /*int*/ settings, int num_copies) { |
| lock.lock(); |
| try { |
| _gtk_print_settings_set_n_copies(settings, num_copies); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| */ |
| public static final native int _gtk_print_settings_get_print_pages(long /*int*/ settings); |
| public static final int gtk_print_settings_get_print_pages(long /*int*/ settings) { |
| lock.lock(); |
| try { |
| return _gtk_print_settings_get_print_pages(settings); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param pages cast=(GtkPrintPages) |
| */ |
| public static final native void _gtk_print_settings_set_print_pages(long /*int*/ settings, int pages); |
| public static final void gtk_print_settings_set_print_pages(long /*int*/ settings, int pages) { |
| lock.lock(); |
| try { |
| _gtk_print_settings_set_print_pages(settings, pages); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param num_ranges cast=(gint *) |
| */ |
| public static final native long /*int*/ _gtk_print_settings_get_page_ranges(long /*int*/ settings, int[] num_ranges); |
| public static final long /*int*/ gtk_print_settings_get_page_ranges(long /*int*/ settings, int[] num_ranges) { |
| lock.lock(); |
| try { |
| return _gtk_print_settings_get_page_ranges(settings, num_ranges); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param page_ranges cast=(GtkPageRange *) |
| * @param num_ranges cast=(gint) |
| */ |
| public static final native void _gtk_print_settings_set_page_ranges(long /*int*/ settings, int[] page_ranges, int num_ranges); |
| public static final void gtk_print_settings_set_page_ranges(long /*int*/ settings, int[] page_ranges, int num_ranges) { |
| lock.lock(); |
| try { |
| _gtk_print_settings_set_page_ranges(settings, page_ranges, num_ranges); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| */ |
| public static final native int _gtk_print_settings_get_resolution(long /*int*/ settings); |
| public static final int gtk_print_settings_get_resolution(long /*int*/ settings) { |
| lock.lock(); |
| try { |
| return _gtk_print_settings_get_resolution(settings); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param title cast=(const gchar *) |
| * @param parent cast=(GtkWindow *) |
| */ |
| public static final native long /*int*/ _gtk_print_unix_dialog_new(byte[] title, long /*int*/ parent); |
| public static final long /*int*/ gtk_print_unix_dialog_new(byte[] title, long /*int*/ parent) { |
| lock.lock(); |
| try { |
| return _gtk_print_unix_dialog_new(title, parent); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| * @param embed cast=(gboolean) |
| */ |
| public static final native void _gtk_print_unix_dialog_set_embed_page_setup(long /*int*/ dialog, boolean embed); |
| public static final void gtk_print_unix_dialog_set_embed_page_setup(long /*int*/ dialog, boolean embed) { |
| lock.lock(); |
| try { |
| _gtk_print_unix_dialog_set_embed_page_setup(dialog, embed); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| * @param page_setup cast=(GtkPageSetup *) |
| */ |
| public static final native void _gtk_print_unix_dialog_set_page_setup(long /*int*/ dialog, long /*int*/ page_setup); |
| public static final void gtk_print_unix_dialog_set_page_setup(long /*int*/ dialog, long /*int*/ page_setup) { |
| lock.lock(); |
| try { |
| _gtk_print_unix_dialog_set_page_setup(dialog, page_setup); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| */ |
| public static final native long /*int*/ _gtk_print_unix_dialog_get_page_setup(long /*int*/ dialog); |
| public static final long /*int*/ gtk_print_unix_dialog_get_page_setup(long /*int*/ dialog) { |
| lock.lock(); |
| try { |
| return _gtk_print_unix_dialog_get_page_setup(dialog); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| * @param current_page cast=(gint) |
| */ |
| public static final native void _gtk_print_unix_dialog_set_current_page(long /*int*/ dialog, int current_page); |
| public static final void gtk_print_unix_dialog_set_current_page(long /*int*/ dialog, int current_page) { |
| lock.lock(); |
| try { |
| _gtk_print_unix_dialog_set_current_page(dialog, current_page); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| */ |
| public static final native int _gtk_print_unix_dialog_get_current_page(long /*int*/ dialog); |
| public static final int gtk_print_unix_dialog_get_current_page(long /*int*/ dialog) { |
| lock.lock(); |
| try { |
| return _gtk_print_unix_dialog_get_current_page(dialog); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| * @param settings cast=(GtkPrintSettings *) |
| */ |
| public static final native void _gtk_print_unix_dialog_set_settings(long /*int*/ dialog, long /*int*/ settings); |
| public static final void gtk_print_unix_dialog_set_settings(long /*int*/ dialog, long /*int*/ settings) { |
| lock.lock(); |
| try { |
| _gtk_print_unix_dialog_set_settings(dialog, settings); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| */ |
| public static final native long /*int*/ _gtk_print_unix_dialog_get_settings(long /*int*/ dialog); |
| public static final long /*int*/ gtk_print_unix_dialog_get_settings(long /*int*/ dialog) { |
| lock.lock(); |
| try { |
| return _gtk_print_unix_dialog_get_settings(dialog); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| */ |
| public static final native long /*int*/ _gtk_print_unix_dialog_get_selected_printer(long /*int*/ dialog); |
| public static final long /*int*/ gtk_print_unix_dialog_get_selected_printer(long /*int*/ dialog) { |
| lock.lock(); |
| try { |
| return _gtk_print_unix_dialog_get_selected_printer(dialog); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| * @param capabilities cast=(GtkPrintCapabilities) |
| */ |
| public static final native void _gtk_print_unix_dialog_set_manual_capabilities(long /*int*/ dialog, long /*int*/ capabilities); |
| public static final void gtk_print_unix_dialog_set_manual_capabilities(long /*int*/ dialog, long /*int*/ capabilities) { |
| lock.lock(); |
| try { |
| _gtk_print_unix_dialog_set_manual_capabilities(dialog, capabilities); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_progress_bar_new(); |
| public static final long /*int*/ gtk_progress_bar_new() { |
| lock.lock(); |
| try { |
| return _gtk_progress_bar_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param pbar cast=(GtkProgressBar *) */ |
| public static final native void _gtk_progress_bar_pulse(long /*int*/ pbar); |
| public static final void gtk_progress_bar_pulse(long /*int*/ pbar) { |
| lock.lock(); |
| try { |
| _gtk_progress_bar_pulse(pbar); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param pbar cast=(GtkProgressBar *) |
| * @param fraction cast=(gdouble) |
| */ |
| public static final native void _gtk_progress_bar_set_fraction(long /*int*/ pbar, double fraction); |
| public static final void gtk_progress_bar_set_fraction(long /*int*/ pbar, double fraction) { |
| lock.lock(); |
| try { |
| _gtk_progress_bar_set_fraction(pbar, fraction); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param pbar cast=(GtkProgressBar *) |
| * @param inverted cast=(gboolean) |
| */ |
| public static final native void _gtk_progress_bar_set_inverted(long /*int*/ pbar, boolean inverted); |
| public static final void gtk_progress_bar_set_inverted(long /*int*/ pbar, boolean inverted) { |
| lock.lock(); |
| try { |
| _gtk_progress_bar_set_inverted(pbar, inverted); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param pbar cast=(GtkProgressBar *) |
| */ |
| public static final native void _gtk_progress_bar_set_orientation(long /*int*/ pbar, int orientation); |
| public static final void gtk_progress_bar_set_orientation(long /*int*/ pbar, int orientation) { |
| lock.lock(); |
| try { |
| _gtk_progress_bar_set_orientation(pbar, orientation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param radio_button cast=(GtkRadioButton *) */ |
| public static final native long /*int*/ _gtk_radio_button_get_group(long /*int*/ radio_button); |
| public static final long /*int*/ gtk_radio_button_get_group(long /*int*/ radio_button) { |
| lock.lock(); |
| try { |
| return _gtk_radio_button_get_group(radio_button); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param group cast=(GSList *) */ |
| public static final native long /*int*/ _gtk_radio_button_new(long /*int*/ group); |
| public static final long /*int*/ gtk_radio_button_new(long /*int*/ group) { |
| lock.lock(); |
| try { |
| return _gtk_radio_button_new(group); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param radio_menu_item cast=(GtkRadioMenuItem *) */ |
| public static final native long /*int*/ _gtk_radio_menu_item_get_group(long /*int*/ radio_menu_item); |
| public static final long /*int*/ gtk_radio_menu_item_get_group(long /*int*/ radio_menu_item) { |
| lock.lock(); |
| try { |
| return _gtk_radio_menu_item_get_group(radio_menu_item); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param group cast=(GSList *) */ |
| public static final native long /*int*/ _gtk_radio_menu_item_new(long /*int*/ group); |
| public static final long /*int*/ gtk_radio_menu_item_new(long /*int*/ group) { |
| lock.lock(); |
| try { |
| return _gtk_radio_menu_item_new(group); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param group cast=(GSList *) |
| * @param label cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_radio_menu_item_new_with_label(long /*int*/ group, byte[] label); |
| public static final long /*int*/ gtk_radio_menu_item_new_with_label(long /*int*/ group, byte[] label) { |
| lock.lock(); |
| try { |
| return _gtk_radio_menu_item_new_with_label(group, label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param range cast=(GtkRange *) */ |
| public static final native long /*int*/ _gtk_range_get_adjustment(long /*int*/ range); |
| public static final long /*int*/ gtk_range_get_adjustment(long /*int*/ range) { |
| lock.lock(); |
| try { |
| return _gtk_range_get_adjustment(range); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param range cast=(GtkRange *) */ |
| public static final native void _gtk_range_set_increments(long /*int*/ range, double step, double page); |
| public static final void gtk_range_set_increments(long /*int*/ range, double step, double page) { |
| lock.lock(); |
| try { |
| _gtk_range_set_increments(range, step, page); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param range cast=(GtkRange *) */ |
| public static final native void _gtk_range_set_inverted(long /*int*/ range, boolean setting); |
| public static final void gtk_range_set_inverted(long /*int*/ range, boolean setting) { |
| lock.lock(); |
| try { |
| _gtk_range_set_inverted(range, setting); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param range cast=(GtkRange *) */ |
| public static final native void _gtk_range_set_range(long /*int*/ range, double min, double max); |
| public static final void gtk_range_set_range(long /*int*/ range, double min, double max) { |
| lock.lock(); |
| try { |
| _gtk_range_set_range(range, min, max); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param range cast=(GtkRange *) */ |
| public static final native void _gtk_range_set_value(long /*int*/ range, double value); |
| public static final void gtk_range_set_value(long /*int*/ range, double value) { |
| lock.lock(); |
| try { |
| _gtk_range_set_value(range, value); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param range cast=(GtkRange *) |
| * @param slider_start cast=(gint *) |
| * @param slider_end cast=(gint *) |
| */ |
| public static final native void _gtk_range_get_slider_range(long /*int*/ range, int[] slider_start, int[] slider_end); |
| public static final void gtk_range_get_slider_range(long /*int*/ range, int[] slider_start, int[] slider_end) { |
| lock.lock(); |
| try { |
| _gtk_range_get_slider_range(range, slider_start, slider_end); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param rc_string cast=(const gchar *) |
| */ |
| public static final native void _gtk_rc_parse_string(byte[] rc_string); |
| public static final void gtk_rc_parse_string(byte[] rc_string) { |
| lock.lock(); |
| try { |
| _gtk_rc_parse_string(rc_string); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param style cast=(GtkRcStyle *) */ |
| public static final native long /*int*/ _gtk_rc_style_get_bg_pixmap_name(long /*int*/ style, int index); |
| public static final long /*int*/ gtk_rc_style_get_bg_pixmap_name(long /*int*/ style, int index) { |
| lock.lock(); |
| try { |
| return _gtk_rc_style_get_bg_pixmap_name(style, index); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param style cast=(GtkRcStyle *) */ |
| public static final native int _gtk_rc_style_get_color_flags(long /*int*/ style, int index); |
| public static final int gtk_rc_style_get_color_flags(long /*int*/ style, int index) { |
| lock.lock(); |
| try { |
| return _gtk_rc_style_get_color_flags(style, index); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param style cast=(GtkRcStyle *) |
| * @param color flags=no_out |
| */ |
| public static final native void _gtk_rc_style_set_bg(long /*int*/ style, int index, GdkColor color); |
| public static final void gtk_rc_style_set_bg(long /*int*/ style, int index, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_rc_style_set_bg(style, index, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param style cast=(GtkRcStyle *) |
| * @param name cast=(char *) |
| */ |
| public static final native void _gtk_rc_style_set_bg_pixmap_name(long /*int*/ style, int index, long /*int*/ name); |
| public static final void gtk_rc_style_set_bg_pixmap_name(long /*int*/ style, int index, long /*int*/ name) { |
| lock.lock(); |
| try { |
| _gtk_rc_style_set_bg_pixmap_name(style, index, name); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param style cast=(GtkRcStyle *) */ |
| public static final native void _gtk_rc_style_set_color_flags(long /*int*/ style, int index, int flag); |
| public static final void gtk_rc_style_set_color_flags(long /*int*/ style, int index, int flag) { |
| lock.lock(); |
| try { |
| _gtk_rc_style_set_color_flags(style, index, flag); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param scale cast=(GtkScale *) |
| * @param digits cast=(gint) |
| */ |
| public static final native void _gtk_scale_set_digits(long /*int*/ scale, int digits); |
| public static final void gtk_scale_set_digits(long /*int*/ scale, int digits) { |
| lock.lock(); |
| try { |
| _gtk_scale_set_digits(scale, digits); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param scale cast=(GtkScale *) |
| * @param draw_value cast=(gboolean) |
| */ |
| public static final native void _gtk_scale_set_draw_value(long /*int*/ scale, boolean draw_value); |
| public static final void gtk_scale_set_draw_value(long /*int*/ scale, boolean draw_value) { |
| lock.lock(); |
| try { |
| _gtk_scale_set_draw_value(scale, draw_value); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param scrollable cast=(GtkScrollable *) |
| */ |
| public static final native long /*int*/ _gtk_scrollable_get_vadjustment(long /*int*/ scrollable); |
| public static final long /*int*/ gtk_scrollable_get_vadjustment(long /*int*/ scrollable) { |
| lock.lock(); |
| try { |
| return _gtk_scrollable_get_vadjustment(scrollable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param style cast=(GtkRcStyle *) |
| * @param color flags=no_out |
| */ |
| public static final native void _gtk_rc_style_set_fg(long /*int*/ style, int index, GdkColor color); |
| public static final void gtk_rc_style_set_fg(long /*int*/ style, int index, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_rc_style_set_fg(style, index, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param style cast=(GtkRcStyle *) |
| * @param color flags=no_out |
| */ |
| public static final native void _gtk_rc_style_set_text(long /*int*/ style, int index, GdkColor color); |
| public static final void gtk_rc_style_set_text(long /*int*/ style, int index, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_rc_style_set_text(style, index, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.8 deprecated] |
| * @param scrolled_window cast=(GtkScrolledWindow *) |
| * @param child cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_scrolled_window_add_with_viewport(long /*int*/ scrolled_window, long /*int*/ child); |
| public static final void gtk_scrolled_window_add_with_viewport(long /*int*/ scrolled_window, long /*int*/ child) { |
| lock.lock(); |
| try { |
| _gtk_scrolled_window_add_with_viewport(scrolled_window, child); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param scrolled_window cast=(GtkScrolledWindow *) */ |
| public static final native long /*int*/ _gtk_scrolled_window_get_hadjustment(long /*int*/ scrolled_window); |
| public static final long /*int*/ gtk_scrolled_window_get_hadjustment(long /*int*/ scrolled_window) { |
| lock.lock(); |
| try { |
| return _gtk_scrolled_window_get_hadjustment(scrolled_window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param scrolled_window cast=(GtkScrolledWindow *) |
| */ |
| public static final native long /*int*/ _gtk_scrolled_window_get_hscrollbar(long /*int*/ scrolled_window); |
| public static final long /*int*/ gtk_scrolled_window_get_hscrollbar(long /*int*/ scrolled_window) { |
| lock.lock(); |
| try { |
| return _gtk_scrolled_window_get_hscrollbar(scrolled_window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param scrolled_window cast=(GtkScrolledWindow *) |
| * @param hscrollbar_policy cast=(GtkPolicyType *) |
| * @param vscrollbar_policy cast=(GtkPolicyType *) |
| */ |
| public static final native void _gtk_scrolled_window_get_policy(long /*int*/ scrolled_window, int[] hscrollbar_policy, int[] vscrollbar_policy); |
| public static final void gtk_scrolled_window_get_policy(long /*int*/ scrolled_window, int[] hscrollbar_policy, int[] vscrollbar_policy) { |
| lock.lock(); |
| try { |
| _gtk_scrolled_window_get_policy(scrolled_window, hscrollbar_policy, vscrollbar_policy); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param scrolled_window cast=(GtkScrolledWindow *) */ |
| public static final native int _gtk_scrolled_window_get_shadow_type(long /*int*/ scrolled_window); |
| public static final int gtk_scrolled_window_get_shadow_type(long /*int*/ scrolled_window) { |
| lock.lock(); |
| try { |
| return _gtk_scrolled_window_get_shadow_type(scrolled_window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param scrolled_window cast=(GtkScrolledWindow *) */ |
| public static final native long /*int*/ _gtk_scrolled_window_get_vadjustment(long /*int*/ scrolled_window); |
| public static final long /*int*/ gtk_scrolled_window_get_vadjustment(long /*int*/ scrolled_window) { |
| lock.lock(); |
| try { |
| return _gtk_scrolled_window_get_vadjustment(scrolled_window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param scrolled_window cast=(GtkScrolledWindow *) |
| */ |
| public static final native long /*int*/ _gtk_scrolled_window_get_vscrollbar(long /*int*/ scrolled_window); |
| public static final long /*int*/ gtk_scrolled_window_get_vscrollbar(long /*int*/ scrolled_window) { |
| lock.lock(); |
| try { |
| return _gtk_scrolled_window_get_vscrollbar(scrolled_window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param hadjustment cast=(GtkAdjustment *) |
| * @param vadjustment cast=(GtkAdjustment *) |
| */ |
| public static final native long /*int*/ _gtk_scrolled_window_new(long /*int*/ hadjustment, long /*int*/ vadjustment); |
| public static final long /*int*/ gtk_scrolled_window_new(long /*int*/ hadjustment, long /*int*/ vadjustment) { |
| lock.lock(); |
| try { |
| return _gtk_scrolled_window_new(hadjustment, vadjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param scrolled_window cast=(GtkScrolledWindow *) |
| * @param hscrollbar_policy cast=(GtkPolicyType) |
| * @param vscrollbar_policy cast=(GtkPolicyType) |
| */ |
| public static final native void _gtk_scrolled_window_set_policy(long /*int*/ scrolled_window, int hscrollbar_policy, int vscrollbar_policy); |
| public static final void gtk_scrolled_window_set_policy(long /*int*/ scrolled_window, int hscrollbar_policy, int vscrollbar_policy) { |
| lock.lock(); |
| try { |
| _gtk_scrolled_window_set_policy(scrolled_window, hscrollbar_policy, vscrollbar_policy); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param scrolled_window cast=(GtkScrolledWindow *) |
| * @param type cast=(GtkShadowType) |
| */ |
| public static final native void _gtk_scrolled_window_set_shadow_type(long /*int*/ scrolled_window, int type); |
| public static final void gtk_scrolled_window_set_shadow_type(long /*int*/ scrolled_window, int type) { |
| lock.lock(); |
| try { |
| _gtk_scrolled_window_set_shadow_type(scrolled_window, type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_settings_get_default(); |
| public static final long /*int*/ gtk_settings_get_default() { |
| lock.lock(); |
| try { |
| return _gtk_settings_get_default(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.16 deprecated] |
| * @param settings cast=(GtkSettings *) |
| * @param name cast=(const gchar *) |
| * @param v_string cast=(const gchar *) |
| * @param origin cast=(const gchar *) |
| */ |
| public static final native void _gtk_settings_set_string_property(long /*int*/ settings, byte[] name, byte[] v_string, byte[] origin); |
| public static final void gtk_settings_set_string_property(long /*int*/ settings, byte[] name, byte[] v_string, byte[] origin) { |
| lock.lock(); |
| try { |
| _gtk_settings_set_string_property(settings, name, v_string, origin); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param selection_data cast=(GtkSelectionData *) */ |
| public static final native void _gtk_selection_data_free(long /*int*/ selection_data); |
| public static final void gtk_selection_data_free(long /*int*/ selection_data) { |
| lock.lock(); |
| try { |
| _gtk_selection_data_free(selection_data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection_data cast=(GtkSelectionData *) |
| */ |
| public static final native long /*int*/ _gtk_selection_data_get_data(long /*int*/ selection_data); |
| public static final long /*int*/ gtk_selection_data_get_data(long /*int*/ selection_data) { |
| lock.lock(); |
| try { |
| return _gtk_selection_data_get_data(selection_data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection_data cast=(GtkSelectionData *) |
| */ |
| public static final native int _gtk_selection_data_get_format(long /*int*/ selection_data); |
| public static final int gtk_selection_data_get_format(long /*int*/ selection_data) { |
| lock.lock(); |
| try { |
| return _gtk_selection_data_get_format(selection_data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection_data cast=(GtkSelectionData *) |
| */ |
| public static final native int _gtk_selection_data_get_length(long /*int*/ selection_data); |
| public static final int gtk_selection_data_get_length(long /*int*/ selection_data) { |
| lock.lock(); |
| try { |
| return _gtk_selection_data_get_length(selection_data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection_data cast=(GtkSelectionData *) |
| */ |
| public static final native long /*int*/ _gtk_selection_data_get_target(long /*int*/ selection_data); |
| public static final long /*int*/ gtk_selection_data_get_target(long /*int*/ selection_data) { |
| lock.lock(); |
| try { |
| return _gtk_selection_data_get_target(selection_data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection_data cast=(GtkSelectionData *) |
| */ |
| public static final native long /*int*/ _gtk_selection_data_get_data_type(long /*int*/ selection_data); |
| public static final long /*int*/ gtk_selection_data_get_data_type(long /*int*/ selection_data) { |
| lock.lock(); |
| try { |
| return _gtk_selection_data_get_data_type(selection_data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection_data cast=(GtkSelectionData *) |
| * @param type cast=(GdkAtom) |
| * @param format cast=(gint) |
| * @param data cast=(const guchar *) |
| * @param length cast=(gint) |
| */ |
| public static final native void _gtk_selection_data_set(long /*int*/ selection_data, long /*int*/ type, int format, long /*int*/ data, int length); |
| public static final void gtk_selection_data_set(long /*int*/ selection_data, long /*int*/ type, int format, long /*int*/ data, int length) { |
| lock.lock(); |
| try { |
| _gtk_selection_data_set(selection_data, type, format, data, length); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_separator_menu_item_new(); |
| public static final long /*int*/ gtk_separator_menu_item_new() { |
| lock.lock(); |
| try { |
| return _gtk_separator_menu_item_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_separator_tool_item_new(); |
| public static final long /*int*/ gtk_separator_tool_item_new() { |
| lock.lock(); |
| try { |
| return _gtk_separator_tool_item_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param item cast=(GtkSeparatorToolItem *) |
| * @param draw cast=(gboolean) |
| */ |
| public static final native void _gtk_separator_tool_item_set_draw(long /*int*/ item, boolean draw); |
| public static final void gtk_separator_tool_item_set_draw(long /*int*/ item, boolean draw) { |
| lock.lock(); |
| try { |
| _gtk_separator_tool_item_set_draw(item, draw); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param socket cast=(GtkSocket *) */ |
| public static final native long /*int*/ _gtk_socket_get_id(long /*int*/ socket); |
| public static final long /*int*/ gtk_socket_get_id(long /*int*/ socket) { |
| lock.lock(); |
| try { |
| return _gtk_socket_get_id(socket); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_socket_new(); |
| public static final long /*int*/ gtk_socket_new() { |
| lock.lock(); |
| try { |
| return _gtk_socket_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param adjustment cast=(GtkAdjustment *) */ |
| public static final native long /*int*/ _gtk_spin_button_new(long /*int*/ adjustment, double climb_rate, int digits); |
| public static final long /*int*/ gtk_spin_button_new(long /*int*/ adjustment, double climb_rate, int digits) { |
| lock.lock(); |
| try { |
| return _gtk_spin_button_new(adjustment, climb_rate, digits); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param spin_button cast=(GtkSpinButton*) |
| * @param numeric cast=(gboolean) |
| **/ |
| public static final native void _gtk_spin_button_set_numeric(long /*int*/ spin_button, boolean numeric); |
| public static final void gtk_spin_button_set_numeric(long /*int*/ spin_button, boolean numeric) { |
| lock.lock(); |
| try { |
| _gtk_spin_button_set_numeric(spin_button, numeric); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param spin_button cast=(GtkSpinButton*) |
| * @param adjustment cast=(GtkAdjustment *) |
| **/ |
| public static final native void _gtk_spin_button_configure(long /*int*/ spin_button, long /*int*/ adjustment, double climb_rate, int digits); |
| public static final void gtk_spin_button_configure(long /*int*/ spin_button, long /*int*/ adjustment, double climb_rate, int digits) { |
| lock.lock(); |
| try { |
| _gtk_spin_button_configure(spin_button, adjustment, climb_rate, digits); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native long /*int*/ _gtk_spin_button_get_adjustment(long /*int*/ spin_button); |
| public static final long /*int*/ gtk_spin_button_get_adjustment(long /*int*/ spin_button) { |
| lock.lock(); |
| try { |
| return _gtk_spin_button_get_adjustment(spin_button); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native int _gtk_spin_button_get_digits(long /*int*/ spin_button); |
| public static final int gtk_spin_button_get_digits(long /*int*/ spin_button) { |
| lock.lock(); |
| try { |
| return _gtk_spin_button_get_digits(spin_button); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native void _gtk_spin_button_set_digits(long /*int*/ spin_button, int digits); |
| public static final void gtk_spin_button_set_digits(long /*int*/ spin_button, int digits) { |
| lock.lock(); |
| try { |
| _gtk_spin_button_set_digits(spin_button, digits); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native void _gtk_spin_button_set_increments(long /*int*/ spin_button, double step, double page); |
| public static final void gtk_spin_button_set_increments(long /*int*/ spin_button, double step, double page) { |
| lock.lock(); |
| try { |
| _gtk_spin_button_set_increments(spin_button, step, page); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native void _gtk_spin_button_set_range(long /*int*/ spin_button, double max, double min); |
| public static final void gtk_spin_button_set_range(long /*int*/ spin_button, double max, double min) { |
| lock.lock(); |
| try { |
| _gtk_spin_button_set_range(spin_button, max, min); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native void _gtk_spin_button_set_value(long /*int*/ spin_button, double value); |
| public static final void gtk_spin_button_set_value(long /*int*/ spin_button, double value) { |
| lock.lock(); |
| try { |
| _gtk_spin_button_set_value(spin_button, value); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native void _gtk_spin_button_set_wrap(long /*int*/ spin_button, boolean wrap); |
| public static final void gtk_spin_button_set_wrap(long /*int*/ spin_button, boolean wrap) { |
| lock.lock(); |
| try { |
| _gtk_spin_button_set_wrap(spin_button, wrap); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native void _gtk_spin_button_update(long /*int*/ spin_button); |
| public static final void gtk_spin_button_update(long /*int*/ spin_button) { |
| lock.lock(); |
| try { |
| _gtk_spin_button_update(spin_button); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param handle cast=(GtkStatusIcon*) |
| * @param screen cast=(GdkScreen**) |
| * @param area cast=(GdkRectangle*) |
| * @param orientation cast=(GtkOrientation*) |
| */ |
| public static final native boolean _gtk_status_icon_get_geometry(long /*int*/ handle, long /*int*/ screen, GdkRectangle area, long /*int*/ orientation); |
| public static final boolean gtk_status_icon_get_geometry(long /*int*/ handle, long /*int*/ screen, GdkRectangle area, long /*int*/ orientation) { |
| lock.lock(); |
| try { |
| return _gtk_status_icon_get_geometry(handle, screen, area, orientation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param handle cast=(GtkStatusIcon*) */ |
| public static final native boolean _gtk_status_icon_get_visible(long /*int*/ handle); |
| public static final boolean gtk_status_icon_get_visible(long /*int*/ handle) { |
| lock.lock(); |
| try { |
| return _gtk_status_icon_get_visible(handle); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_status_icon_new(); |
| public static final long /*int*/ gtk_status_icon_new() { |
| lock.lock(); |
| try { |
| return _gtk_status_icon_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param handle cast=(GtkStatusIcon*) |
| * @param pixbuf cast=(GdkPixbuf*) |
| */ |
| public static final native void _gtk_status_icon_set_from_pixbuf(long /*int*/ handle, long /*int*/ pixbuf); |
| public static final void gtk_status_icon_set_from_pixbuf(long /*int*/ handle, long /*int*/ pixbuf) { |
| lock.lock(); |
| try { |
| _gtk_status_icon_set_from_pixbuf(handle, pixbuf); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param handle cast=(GtkStatusIcon*) |
| * @param visible cast=(gboolean) |
| */ |
| public static final native void _gtk_status_icon_set_visible(long /*int*/ handle, boolean visible); |
| public static final void gtk_status_icon_set_visible(long /*int*/ handle, boolean visible) { |
| lock.lock(); |
| try { |
| _gtk_status_icon_set_visible(handle, visible); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param handle cast=(GtkStatusIcon *) |
| * @param tip_text cast=(const gchar *) |
| */ |
| public static final native void _gtk_status_icon_set_tooltip_text(long /*int*/ handle, byte[] tip_text); |
| public static final void gtk_status_icon_set_tooltip_text(long /*int*/ handle, byte[] tip_text) { |
| lock.lock(); |
| try { |
| _gtk_status_icon_set_tooltip_text(handle, tip_text); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param style cast=(GtkStyle *) |
| * @param color flags=no_in |
| */ |
| public static final native void _gtk_style_get_base(long /*int*/ style, int index, GdkColor color); |
| public static final void gtk_style_get_base(long /*int*/ style, int index, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_style_get_base(style, index, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gtk_style_context_add_class(long /*int*/ context, byte[] class_name); |
| public static final void gtk_style_context_add_class(long /*int*/ context, byte[] class_name) { |
| lock.lock(); |
| try { |
| _gtk_style_context_add_class(context, class_name); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic [GTK3; 3.16 deprecated] */ |
| public static final native void _gtk_style_context_get_background_color(long /*int*/ context, int state, GdkRGBA color); |
| public static final void gtk_style_context_get_background_color(long /*int*/ context, int state, GdkRGBA color) { |
| lock.lock(); |
| try { |
| _gtk_style_context_get_background_color(context, state, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gtk_style_context_get_color(long /*int*/ context, int state, GdkRGBA color); |
| public static final void gtk_style_context_get_color(long /*int*/ context, int state, GdkRGBA color) { |
| lock.lock(); |
| try { |
| _gtk_style_context_get_color(context, state, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic [GTK3; 3.8 deprecated] */ |
| public static final native long /*int*/ _gtk_style_context_get_font(long /*int*/ context, int state); |
| public static final long /*int*/ gtk_style_context_get_font(long /*int*/ context, int state) { |
| lock.lock(); |
| try { |
| return _gtk_style_context_get_font(context, state); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gtk_style_context_get_padding(long /*int*/ context, int state, GtkBorder padding); |
| public static final void gtk_style_context_get_padding(long /*int*/ context, int state, GtkBorder padding) { |
| lock.lock(); |
| try { |
| _gtk_style_context_get_padding(context, state, padding); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic [GTK3; 3.16 deprecated] */ |
| public static final native void _gtk_style_context_get_border(long /*int*/ context, int state, GtkBorder padding); |
| public static final void gtk_style_context_get_border(long /*int*/ context, int state, GtkBorder padding) { |
| lock.lock(); |
| try { |
| _gtk_style_context_get_border(context, state, padding); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic [GTK3; 3.12 deprecated] */ |
| public static final native void _gtk_style_context_invalidate(long /*int*/ context); |
| public static final void gtk_style_context_invalidate(long /*int*/ context) { |
| lock.lock(); |
| try { |
| _gtk_style_context_invalidate(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gtk_style_context_save(long /*int*/ self); |
| public static final void gtk_style_context_save(long /*int*/ self) { |
| lock.lock(); |
| try { |
| _gtk_style_context_save(self); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gtk_style_context_restore(long /*int*/ context); |
| public static final void gtk_style_context_restore(long /*int*/ context) { |
| lock.lock(); |
| try { |
| _gtk_style_context_restore(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic |
| * @param self cast=(GtkWidget *) |
| * */ |
| public static final native int _gtk_widget_get_state_flags(long /*int*/ self); |
| public static final int gtk_widget_get_state_flags(long /*int*/ self) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_state_flags(self); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic */ |
| public static final native void _gtk_style_context_set_state(long /*int*/ context, long /*int*/ flags); |
| public static final void gtk_style_context_set_state(long /*int*/ context, long /*int*/ flags) { |
| lock.lock(); |
| try { |
| _gtk_style_context_set_state(context,flags); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param style cast=(GtkStyle *) |
| * @param color flags=no_in |
| */ |
| public static final native void _gtk_style_get_black(long /*int*/ style, GdkColor color); |
| public static final void gtk_style_get_black(long /*int*/ style, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_style_get_black(style, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param style cast=(GtkStyle *) |
| * @param color flags=no_in |
| */ |
| public static final native void _gtk_style_get_bg(long /*int*/ style, int index, GdkColor color); |
| public static final void gtk_style_get_bg(long /*int*/ style, int index, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_style_get_bg(style, index, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param style cast=(GtkStyle *) |
| * @param color flags=no_in |
| */ |
| public static final native void _gtk_style_get_dark(long /*int*/ style, int index, GdkColor color); |
| public static final void gtk_style_get_dark(long /*int*/ style, int index, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_style_get_dark(style, index, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param style cast=(GtkStyle *) |
| * @param color flags=no_in |
| */ |
| public static final native void _gtk_style_get_fg(long /*int*/ style, int index, GdkColor color); |
| public static final void gtk_style_get_fg(long /*int*/ style, int index, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_style_get_fg(style, index, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param style cast=(GtkStyle *) */ |
| public static final native long /*int*/ _gtk_style_get_font_desc(long /*int*/ style); |
| public static final long /*int*/ gtk_style_get_font_desc(long /*int*/ style) { |
| lock.lock(); |
| try { |
| return _gtk_style_get_font_desc(style); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param style cast=(GtkStyle *) |
| * @param color flags=no_in |
| */ |
| public static final native void _gtk_style_get_light(long /*int*/ style, int index, GdkColor color); |
| public static final void gtk_style_get_light(long /*int*/ style, int index, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_style_get_light(style, index, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param style cast=(GtkStyle *) |
| * @param color flags=no_in |
| */ |
| public static final native void _gtk_style_get_text(long /*int*/ style, int index, GdkColor color); |
| public static final void gtk_style_get_text(long /*int*/ style, int index, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_style_get_text(style, index, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param style cast=(GtkStyle *) */ |
| public static final native int _gtk_style_get_xthickness(long /*int*/ style); |
| public static final int gtk_style_get_xthickness(long /*int*/ style) { |
| lock.lock(); |
| try { |
| return _gtk_style_get_xthickness(style); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param style cast=(GtkStyle *) */ |
| public static final native int _gtk_style_get_ythickness(long /*int*/ style); |
| public static final int gtk_style_get_ythickness(long /*int*/ style) { |
| lock.lock(); |
| try { |
| return _gtk_style_get_ythickness(style); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param targets cast=(const GtkTargetEntry *) |
| * @param ntargets cast=(guint) |
| */ |
| public static final native long /*int*/ _gtk_target_list_new(long /*int*/ targets, int ntargets); |
| public static final long /*int*/ gtk_target_list_new(long /*int*/ targets, int ntargets) { |
| lock.lock(); |
| try { |
| return _gtk_target_list_new(targets, ntargets); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param list cast=(GtkTargetList *) */ |
| public static final native void _gtk_target_list_unref(long /*int*/ list); |
| public static final void gtk_target_list_unref(long /*int*/ list) { |
| lock.lock(); |
| try { |
| _gtk_target_list_unref(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param clipboard cast=(GtkClipboard *) |
| */ |
| public static final native void _gtk_text_buffer_copy_clipboard(long /*int*/ buffer, long /*int*/ clipboard); |
| public static final void gtk_text_buffer_copy_clipboard(long /*int*/ buffer, long /*int*/ clipboard) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_copy_clipboard(buffer, clipboard); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param mark_name cast=(const gchar *) |
| * @param where cast=(GtkTextIter *) |
| * @param left_gravity cast=(gboolean) |
| */ |
| public static final native long /*int*/ _gtk_text_buffer_create_mark(long /*int*/ buffer, byte [] mark_name, byte [] where, boolean left_gravity); |
| public static final long /*int*/ gtk_text_buffer_create_mark(long /*int*/ buffer, byte [] mark_name, byte [] where, boolean left_gravity) { |
| lock.lock(); |
| try { |
| return _gtk_text_buffer_create_mark(buffer, mark_name, where, left_gravity); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param clipboard cast=(GtkClipboard *) |
| * @param default_editable cast=(gboolean) |
| */ |
| public static final native void _gtk_text_buffer_cut_clipboard(long /*int*/ buffer, long /*int*/ clipboard, boolean default_editable); |
| public static final void gtk_text_buffer_cut_clipboard(long /*int*/ buffer, long /*int*/ clipboard, boolean default_editable) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_cut_clipboard(buffer, clipboard, default_editable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param start cast=(GtkTextIter *) |
| * @param end cast=(GtkTextIter *) |
| */ |
| public static final native void _gtk_text_buffer_delete(long /*int*/ buffer, byte[] start, byte[] end); |
| public static final void gtk_text_buffer_delete(long /*int*/ buffer, byte[] start, byte[] end) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_delete(buffer, start, end); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param start cast=(GtkTextIter *) |
| * @param end cast=(GtkTextIter *) |
| */ |
| public static final native void _gtk_text_buffer_get_bounds(long /*int*/ buffer, byte[] start, byte[] end); |
| public static final void gtk_text_buffer_get_bounds(long /*int*/ buffer, byte[] start, byte[] end) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_get_bounds(buffer, start, end); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param iter cast=(GtkTextIter *) |
| */ |
| public static final native void _gtk_text_buffer_get_end_iter(long /*int*/ buffer, byte[] iter); |
| public static final void gtk_text_buffer_get_end_iter(long /*int*/ buffer, byte[] iter) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_get_end_iter(buffer, iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param buffer cast=(GtkTextBuffer *) */ |
| public static final native long /*int*/ _gtk_text_buffer_get_insert(long /*int*/ buffer); |
| public static final long /*int*/ gtk_text_buffer_get_insert(long /*int*/ buffer) { |
| lock.lock(); |
| try { |
| return _gtk_text_buffer_get_insert(buffer); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param iter cast=(GtkTextIter *) |
| * @param line_number cast=(gint) |
| */ |
| public static final native void _gtk_text_buffer_get_iter_at_line(long /*int*/ buffer, byte[] iter, int line_number); |
| public static final void gtk_text_buffer_get_iter_at_line(long /*int*/ buffer, byte[] iter, int line_number) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_get_iter_at_line(buffer, iter, line_number); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param iter cast=(GtkTextIter *) |
| * @param mark cast=(GtkTextMark *) |
| */ |
| public static final native void _gtk_text_buffer_get_iter_at_mark(long /*int*/ buffer, byte[] iter, long /*int*/ mark); |
| public static final void gtk_text_buffer_get_iter_at_mark(long /*int*/ buffer, byte[] iter, long /*int*/ mark) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_get_iter_at_mark(buffer, iter, mark); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param iter cast=(GtkTextIter *) |
| * @param char_offset cast=(gint) |
| */ |
| public static final native void _gtk_text_buffer_get_iter_at_offset(long /*int*/ buffer, byte[] iter, int char_offset); |
| public static final void gtk_text_buffer_get_iter_at_offset(long /*int*/ buffer, byte[] iter, int char_offset) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_get_iter_at_offset(buffer, iter, char_offset); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param buffer cast=(GtkTextBuffer *) */ |
| public static final native int _gtk_text_buffer_get_line_count(long /*int*/ buffer); |
| public static final int gtk_text_buffer_get_line_count(long /*int*/ buffer) { |
| lock.lock(); |
| try { |
| return _gtk_text_buffer_get_line_count(buffer); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param buffer cast=(GtkTextBuffer *) */ |
| public static final native long /*int*/ _gtk_text_buffer_get_selection_bound(long /*int*/ buffer); |
| public static final long /*int*/ gtk_text_buffer_get_selection_bound(long /*int*/ buffer) { |
| lock.lock(); |
| try { |
| return _gtk_text_buffer_get_selection_bound(buffer); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param start cast=(GtkTextIter *) |
| * @param end cast=(GtkTextIter *) |
| */ |
| public static final native boolean _gtk_text_buffer_get_selection_bounds(long /*int*/ buffer, byte[] start, byte[] end); |
| public static final boolean gtk_text_buffer_get_selection_bounds(long /*int*/ buffer, byte[] start, byte[] end) { |
| lock.lock(); |
| try { |
| return _gtk_text_buffer_get_selection_bounds(buffer, start, end); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param start cast=(GtkTextIter *) |
| * @param end cast=(GtkTextIter *) |
| * @param include_hidden_chars cast=(gboolean) |
| */ |
| public static final native long /*int*/ _gtk_text_buffer_get_text(long /*int*/ buffer, byte[] start, byte[] end, boolean include_hidden_chars); |
| public static final long /*int*/ gtk_text_buffer_get_text(long /*int*/ buffer, byte[] start, byte[] end, boolean include_hidden_chars) { |
| lock.lock(); |
| try { |
| return _gtk_text_buffer_get_text(buffer, start, end, include_hidden_chars); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param iter cast=(GtkTextIter *) |
| * @param text cast=(const gchar *) |
| * @param len cast=(gint) |
| */ |
| public static final native void _gtk_text_buffer_insert(long /*int*/ buffer, byte[] iter, byte[] text, int len); |
| public static final void gtk_text_buffer_insert(long /*int*/ buffer, byte[] iter, byte[] text, int len) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_insert(buffer, iter, text, len); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param iter cast=(GtkTextIter *) |
| * @param text cast=(const gchar *) |
| * @param len cast=(gint) |
| */ |
| public static final native void _gtk_text_buffer_insert(long /*int*/ buffer, long /*int*/ iter, byte[] text, int len); |
| public static final void gtk_text_buffer_insert(long /*int*/ buffer, long /*int*/ iter, byte[] text, int len) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_insert(buffer, iter, text, len); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param ins cast=(const GtkTextIter *) |
| * @param bound cast=(const GtkTextIter *) |
| */ |
| public static final native void _gtk_text_buffer_select_range (long /*int*/ buffer, byte[] ins, byte[] bound); |
| public static final void gtk_text_buffer_select_range (long /*int*/ buffer, byte[] ins, byte[] bound) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_select_range(buffer, ins, bound); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param clipboard cast=(GtkClipboard *) |
| * @param override_location cast=(GtkTextIter *) |
| * @param default_editable cast=(gboolean) |
| */ |
| public static final native void _gtk_text_buffer_paste_clipboard(long /*int*/ buffer, long /*int*/ clipboard, byte[] override_location, boolean default_editable); |
| public static final void gtk_text_buffer_paste_clipboard(long /*int*/ buffer, long /*int*/ clipboard, byte[] override_location, boolean default_editable) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_paste_clipboard(buffer, clipboard, override_location, default_editable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param where cast=(const GtkTextIter *) |
| */ |
| public static final native void _gtk_text_buffer_place_cursor(long /*int*/ buffer, byte[] where); |
| public static final void gtk_text_buffer_place_cursor(long /*int*/ buffer, byte[] where) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_place_cursor(buffer, where); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param text cast=(const gchar *) |
| * @param len cast=(gint) |
| */ |
| public static final native void _gtk_text_buffer_set_text(long /*int*/ buffer, byte[] text, int len); |
| public static final void gtk_text_buffer_set_text(long /*int*/ buffer, byte[] text, int len) { |
| lock.lock(); |
| try { |
| _gtk_text_buffer_set_text(buffer, text, len); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param iter cast=(const GtkTextIter *) */ |
| public static final native int _gtk_text_iter_get_line(byte[] iter); |
| public static final int gtk_text_iter_get_line(byte[] iter) { |
| lock.lock(); |
| try { |
| return _gtk_text_iter_get_line(iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param iter cast=(const GtkTextIter *) */ |
| public static final native int _gtk_text_iter_get_offset(byte[] iter); |
| public static final int gtk_text_iter_get_offset(byte[] iter) { |
| lock.lock(); |
| try { |
| return _gtk_text_iter_get_offset(iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param win cast=(GtkTextWindowType) |
| * @param buffer_x cast=(gint) |
| * @param buffer_y cast=(gint) |
| * @param window_x cast=(gint *) |
| * @param window_y cast=(gint *) |
| */ |
| public static final native void _gtk_text_view_buffer_to_window_coords(long /*int*/ text_view, int win, int buffer_x, int buffer_y, int[] window_x, int[] window_y); |
| public static final void gtk_text_view_buffer_to_window_coords(long /*int*/ text_view, int win, int buffer_x, int buffer_y, int[] window_x, int[] window_y) { |
| lock.lock(); |
| try { |
| _gtk_text_view_buffer_to_window_coords(text_view, win, buffer_x, buffer_y, window_x, window_y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param text_view cast=(GtkTextView *) */ |
| public static final native long /*int*/ _gtk_text_view_get_buffer(long /*int*/ text_view); |
| public static final long /*int*/ gtk_text_view_get_buffer(long /*int*/ text_view) { |
| lock.lock(); |
| try { |
| return _gtk_text_view_get_buffer(text_view); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param text_view cast=(GtkTextView *) */ |
| public static final native boolean _gtk_text_view_get_editable(long /*int*/ text_view); |
| public static final boolean gtk_text_view_get_editable(long /*int*/ text_view) { |
| lock.lock(); |
| try { |
| return _gtk_text_view_get_editable(text_view); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param iter cast=(GtkTextIter *) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| */ |
| public static final native void _gtk_text_view_get_iter_at_location(long /*int*/ text_view, byte[] iter, int x, int y); |
| public static final void gtk_text_view_get_iter_at_location(long /*int*/ text_view, byte[] iter, int x, int y) { |
| lock.lock(); |
| try { |
| _gtk_text_view_get_iter_at_location(text_view, iter, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param iter cast=(const GtkTextIter *) |
| * @param location cast=(GdkRectangle *),flags=no_in |
| */ |
| public static final native void _gtk_text_view_get_iter_location(long /*int*/ text_view, byte[] iter, GdkRectangle location); |
| public static final void gtk_text_view_get_iter_location(long /*int*/ text_view, byte[] iter, GdkRectangle location) { |
| lock.lock(); |
| try { |
| _gtk_text_view_get_iter_location(text_view, iter, location); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param target_iter cast=(GtkTextIter *) |
| * @param y cast=(gint) |
| * @param line_top cast=(gint *) |
| */ |
| public static final native void _gtk_text_view_get_line_at_y(long /*int*/ text_view, byte[] target_iter, int y, int[] line_top); |
| public static final void gtk_text_view_get_line_at_y(long /*int*/ text_view, byte[] target_iter, int y, int[] line_top) { |
| lock.lock(); |
| try { |
| _gtk_text_view_get_line_at_y(text_view, target_iter, y, line_top); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param visible_rect cast=(GdkRectangle *),flags=no_in |
| */ |
| public static final native void _gtk_text_view_get_visible_rect(long /*int*/ text_view, GdkRectangle visible_rect); |
| public static final void gtk_text_view_get_visible_rect(long /*int*/ text_view, GdkRectangle visible_rect) { |
| lock.lock(); |
| try { |
| _gtk_text_view_get_visible_rect(text_view, visible_rect); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param win cast=(GtkTextWindowType) |
| */ |
| public static final native long /*int*/ _gtk_text_view_get_window(long /*int*/ text_view, int win); |
| public static final long /*int*/ gtk_text_view_get_window(long /*int*/ text_view, int win) { |
| lock.lock(); |
| try { |
| return _gtk_text_view_get_window(text_view, win); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_text_view_new(); |
| public static final long /*int*/ gtk_text_view_new() { |
| lock.lock(); |
| try { |
| return _gtk_text_view_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param mark cast=(GtkTextMark *) |
| * @param within_margin cast=(gdouble) |
| * @param use_align cast=(gboolean) |
| * @param xalign cast=(gdouble) |
| * @param yalign cast=(gdouble) |
| */ |
| public static final native void _gtk_text_view_scroll_to_mark(long /*int*/ text_view, long /*int*/ mark, double within_margin, boolean use_align, double xalign, double yalign); |
| public static final void gtk_text_view_scroll_to_mark(long /*int*/ text_view, long /*int*/ mark, double within_margin, boolean use_align, double xalign, double yalign) { |
| lock.lock(); |
| try { |
| _gtk_text_view_scroll_to_mark(text_view, mark, within_margin, use_align, xalign, yalign); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param iter cast=(GtkTextIter *) |
| * @param within_margin cast=(gdouble) |
| * @param use_align cast=(gboolean) |
| * @param xalign cast=(gdouble) |
| * @param yalign cast=(gdouble) |
| */ |
| public static final native boolean _gtk_text_view_scroll_to_iter(long /*int*/ text_view, byte[] iter, double within_margin, boolean use_align, double xalign, double yalign); |
| public static final boolean gtk_text_view_scroll_to_iter(long /*int*/ text_view, byte[] iter, double within_margin, boolean use_align, double xalign, double yalign) { |
| lock.lock(); |
| try { |
| return _gtk_text_view_scroll_to_iter(text_view, iter, within_margin, use_align, xalign, yalign); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param setting cast=(gboolean) |
| */ |
| public static final native void _gtk_text_view_set_editable(long /*int*/ text_view, boolean setting); |
| public static final void gtk_text_view_set_editable(long /*int*/ text_view, boolean setting) { |
| lock.lock(); |
| try { |
| _gtk_text_view_set_editable(text_view, setting); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param text_view cast=(GtkTextView *) */ |
| public static final native void _gtk_text_view_set_justification(long /*int*/ text_view, int justification); |
| public static final void gtk_text_view_set_justification(long /*int*/ text_view, int justification) { |
| lock.lock(); |
| try { |
| _gtk_text_view_set_justification(text_view, justification); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param tabs cast=(PangoTabArray *) |
| */ |
| public static final native void _gtk_text_view_set_tabs(long /*int*/ text_view, long /*int*/ tabs); |
| public static final void gtk_text_view_set_tabs(long /*int*/ text_view, long /*int*/ tabs) { |
| lock.lock(); |
| try { |
| _gtk_text_view_set_tabs(text_view, tabs); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param text_view cast=(GtkTextView *) */ |
| public static final native void _gtk_text_view_set_wrap_mode(long /*int*/ text_view, int wrap_mode); |
| public static final void gtk_text_view_set_wrap_mode(long /*int*/ text_view, int wrap_mode) { |
| lock.lock(); |
| try { |
| _gtk_text_view_set_wrap_mode(text_view, wrap_mode); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param interval cast=(guint32) |
| * @param function cast=(GSourceFunc) |
| * @param data cast=(gpointer) |
| */ |
| public static final native int _g_timeout_add(int interval, long /*int*/ function, long /*int*/ data); |
| public static final int g_timeout_add(int interval, long /*int*/ function, long /*int*/ data) { |
| lock.lock(); |
| try { |
| return _g_timeout_add(interval, function, data); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param toggle_button cast=(GtkToggleButton *) */ |
| public static final native boolean _gtk_toggle_button_get_active(long /*int*/ toggle_button); |
| public static final boolean gtk_toggle_button_get_active(long /*int*/ toggle_button) { |
| lock.lock(); |
| try { |
| return _gtk_toggle_button_get_active(toggle_button); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_toggle_button_new(); |
| public static final long /*int*/ gtk_toggle_button_new() { |
| lock.lock(); |
| try { |
| return _gtk_toggle_button_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param toggle_button cast=(GtkToggleButton *) |
| * @param is_active cast=(gboolean) |
| */ |
| public static final native void _gtk_toggle_button_set_active(long /*int*/ toggle_button, boolean is_active); |
| public static final void gtk_toggle_button_set_active(long /*int*/ toggle_button, boolean is_active) { |
| lock.lock(); |
| try { |
| _gtk_toggle_button_set_active(toggle_button, is_active); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param toggle_button cast=(GtkToggleButton *) |
| * @param setting cast=(gboolean) |
| */ |
| public static final native void _gtk_toggle_button_set_inconsistent(long /*int*/ toggle_button, boolean setting); |
| public static final void gtk_toggle_button_set_inconsistent(long /*int*/ toggle_button, boolean setting) { |
| lock.lock(); |
| try { |
| _gtk_toggle_button_set_inconsistent(toggle_button, setting); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param toggle_button cast=(GtkToggleButton *) |
| * @param draw_indicator cast=(gboolean) |
| */ |
| public static final native void _gtk_toggle_button_set_mode(long /*int*/ toggle_button, boolean draw_indicator); |
| public static final void gtk_toggle_button_set_mode(long /*int*/ toggle_button, boolean draw_indicator) { |
| lock.lock(); |
| try { |
| _gtk_toggle_button_set_mode(toggle_button, draw_indicator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param button cast=(GtkToggleToolButton *) */ |
| public static final native boolean _gtk_toggle_tool_button_get_active(long /*int*/ button); |
| public static final boolean gtk_toggle_tool_button_get_active(long /*int*/ button) { |
| lock.lock(); |
| try { |
| return _gtk_toggle_tool_button_get_active(button); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_toggle_tool_button_new(); |
| public static final long /*int*/ gtk_toggle_tool_button_new() { |
| lock.lock(); |
| try { |
| return _gtk_toggle_tool_button_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param item cast=(GtkToggleToolButton *) |
| * @param selected cast=(gboolean) |
| */ |
| public static final native void _gtk_toggle_tool_button_set_active(long /*int*/ item, boolean selected); |
| public static final void gtk_toggle_tool_button_set_active(long /*int*/ item, boolean selected) { |
| lock.lock(); |
| try { |
| _gtk_toggle_tool_button_set_active(item, selected); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param icon_widget cast=(GtkWidget *) |
| * @param label cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_tool_button_new(long /*int*/ icon_widget, byte[] label); |
| public static final long /*int*/ gtk_tool_button_new(long /*int*/ icon_widget, byte[] label) { |
| lock.lock(); |
| try { |
| return _gtk_tool_button_new(icon_widget, label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param button cast=(GtkToolButton *) |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_tool_button_set_icon_widget(long /*int*/ button, long /*int*/ widget); |
| public static final void gtk_tool_button_set_icon_widget(long /*int*/ button, long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_tool_button_set_icon_widget(button, widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param button cast=(GtkToolButton *) |
| * @param label cast=(const gchar *) |
| */ |
| public static final native void _gtk_tool_button_set_label(long /*int*/ button, byte[] label); |
| public static final void gtk_tool_button_set_label(long /*int*/ button, byte[] label) { |
| lock.lock(); |
| try { |
| _gtk_tool_button_set_label(button, label); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param button cast=(GtkToolButton *) |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_tool_button_set_label_widget(long /*int*/ button, long /*int*/ widget); |
| public static final void gtk_tool_button_set_label_widget(long /*int*/ button, long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_tool_button_set_label_widget(button, widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param item cast=(GtkToolButton *) |
| * @param underline cast=(gboolean) |
| */ |
| public static final native void _gtk_tool_button_set_use_underline(long /*int*/ item, boolean underline); |
| public static final void gtk_tool_button_set_use_underline(long /*int*/ item, boolean underline) { |
| lock.lock(); |
| try { |
| _gtk_tool_button_set_use_underline(item, underline); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param item cast=(GtkToolItem *) |
| * @param menu_id cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_tool_item_get_proxy_menu_item(long /*int*/ item, byte[] menu_id); |
| public static final long /*int*/ gtk_tool_item_get_proxy_menu_item(long /*int*/ item, byte[] menu_id) { |
| lock.lock(); |
| try { |
| return _gtk_tool_item_get_proxy_menu_item(item, menu_id); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param item cast=(GtkToolItem *) */ |
| public static final native long /*int*/ _gtk_tool_item_retrieve_proxy_menu_item(long /*int*/ item); |
| public static final long /*int*/ gtk_tool_item_retrieve_proxy_menu_item(long /*int*/ item) { |
| lock.lock(); |
| try { |
| return _gtk_tool_item_retrieve_proxy_menu_item(item); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param item cast=(GtkToolItem *) |
| * @param important cast=(gboolean) |
| */ |
| public static final native void _gtk_tool_item_set_is_important(long /*int*/ item, boolean important); |
| public static final void gtk_tool_item_set_is_important(long /*int*/ item, boolean important) { |
| lock.lock(); |
| try { |
| _gtk_tool_item_set_is_important(item, important); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param item cast=(GtkToolItem *) |
| * @param menu_id cast=(const gchar *) |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_tool_item_set_proxy_menu_item(long /*int*/ item, byte[] menu_id, long /*int*/ widget); |
| public static final void gtk_tool_item_set_proxy_menu_item(long /*int*/ item, byte[] menu_id, long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_tool_item_set_proxy_menu_item(item, menu_id, widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param toolbar cast=(GtkToolbar *) |
| * @param item cast=(GtkToolItem *) |
| */ |
| public static final native void _gtk_toolbar_insert(long /*int*/ toolbar, long /*int*/ item, int pos); |
| public static final void gtk_toolbar_insert(long /*int*/ toolbar, long /*int*/ item, int pos) { |
| lock.lock(); |
| try { |
| _gtk_toolbar_insert(toolbar, item, pos); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_toolbar_new(); |
| public static final long /*int*/ gtk_toolbar_new() { |
| lock.lock(); |
| try { |
| return _gtk_toolbar_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param toolbar cast=(GtkToolbar *) |
| * @param show_arrow cast=(gboolean) |
| */ |
| public static final native void _gtk_toolbar_set_show_arrow(long /*int*/ toolbar, boolean show_arrow); |
| public static final void gtk_toolbar_set_show_arrow(long /*int*/ toolbar, boolean show_arrow) { |
| lock.lock(); |
| try { |
| _gtk_toolbar_set_show_arrow(toolbar, show_arrow); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param toolbar cast=(GtkToolbar *) |
| * @param style cast=(GtkToolbarStyle) |
| */ |
| public static final native void _gtk_toolbar_set_style(long /*int*/ toolbar, int style); |
| public static final void gtk_toolbar_set_style(long /*int*/ toolbar, int style) { |
| lock.lock(); |
| try { |
| _gtk_toolbar_set_style(toolbar, style); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param toolbar cast=(GtkToolbar *) |
| */ |
| public static final native void _gtk_toolbar_set_icon_size(long /*int*/ toolbar, int size); |
| public static final void gtk_toolbar_set_icon_size(long /*int*/ toolbar, int size) { |
| lock.lock(); |
| try { |
| _gtk_toolbar_set_icon_size(toolbar, size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_tree_model_get(long /*int*/ tree_model, long /*int*/ iter, int column, long[] value, int terminator); |
| public static final void gtk_tree_model_get(long /*int*/ tree_model, long /*int*/ iter, int column, long[] value, int terminator) { |
| lock.lock(); |
| try { |
| _gtk_tree_model_get(tree_model, iter, column, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_tree_model_get(long /*int*/ tree_model, long /*int*/ iter, int column, int[] value, int terminator); |
| public static final void gtk_tree_model_get(long /*int*/ tree_model, long /*int*/ iter, int column, int[] value, int terminator) { |
| lock.lock(); |
| try { |
| _gtk_tree_model_get(tree_model, iter, column, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native boolean _gtk_tree_model_get_iter(long /*int*/ tree_model, long /*int*/ iter, long /*int*/ path); |
| public static final boolean gtk_tree_model_get_iter(long /*int*/ tree_model, long /*int*/ iter, long /*int*/ path) { |
| lock.lock(); |
| try { |
| return _gtk_tree_model_get_iter(tree_model, iter, path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native boolean _gtk_tree_model_get_iter_first(long /*int*/ tree_model, long /*int*/ iter); |
| public static final boolean gtk_tree_model_get_iter_first(long /*int*/ tree_model, long /*int*/ iter) { |
| lock.lock(); |
| try { |
| return _gtk_tree_model_get_iter_first(tree_model, iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param tree_model cast=(GtkTreeModel *) */ |
| public static final native int _gtk_tree_model_get_n_columns(long /*int*/ tree_model); |
| public static final int gtk_tree_model_get_n_columns(long /*int*/ tree_model) { |
| lock.lock(); |
| try { |
| return _gtk_tree_model_get_n_columns(tree_model); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native long /*int*/ _gtk_tree_model_get_path(long /*int*/ tree_model, long /*int*/ iter); |
| public static final long /*int*/ gtk_tree_model_get_path(long /*int*/ tree_model, long /*int*/ iter) { |
| lock.lock(); |
| try { |
| return _gtk_tree_model_get_path(tree_model, iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_tree_model_get_type(); |
| public static final long /*int*/ gtk_tree_model_get_type() { |
| lock.lock(); |
| try { |
| return _gtk_tree_model_get_type(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param parent cast=(GtkTreeIter *) |
| */ |
| public static final native boolean _gtk_tree_model_iter_children(long /*int*/ model, long /*int*/ iter, long /*int*/ parent); |
| public static final boolean gtk_tree_model_iter_children(long /*int*/ model, long /*int*/ iter, long /*int*/ parent) { |
| lock.lock(); |
| try { |
| return _gtk_tree_model_iter_children(model, iter, parent); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native int _gtk_tree_model_iter_n_children(long /*int*/ model, long /*int*/ iter); |
| public static final int gtk_tree_model_iter_n_children(long /*int*/ model, long /*int*/ iter) { |
| lock.lock(); |
| try { |
| return _gtk_tree_model_iter_n_children(model, iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native boolean _gtk_tree_model_iter_next(long /*int*/ model, long /*int*/ iter); |
| public static final boolean gtk_tree_model_iter_next(long /*int*/ model, long /*int*/ iter) { |
| lock.lock(); |
| try { |
| return _gtk_tree_model_iter_next(model, iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param parent cast=(GtkTreeIter *) |
| */ |
| public static final native boolean _gtk_tree_model_iter_nth_child(long /*int*/ tree_model, long /*int*/ iter, long /*int*/ parent, int n); |
| public static final boolean gtk_tree_model_iter_nth_child(long /*int*/ tree_model, long /*int*/ iter, long /*int*/ parent, int n) { |
| lock.lock(); |
| try { |
| return _gtk_tree_model_iter_nth_child(tree_model, iter, parent, n); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native void _gtk_tree_path_append_index(long /*int*/ path, int index); |
| public static final void gtk_tree_path_append_index(long /*int*/ path, int index) { |
| lock.lock(); |
| try { |
| _gtk_tree_path_append_index(path, index); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param a cast=(const GtkTreePath *) |
| * @param b cast=(const GtkTreePath *) |
| */ |
| public static final native long /*int*/ _gtk_tree_path_compare(long /*int*/ a, long /*int*/ b); |
| public static final long /*int*/ gtk_tree_path_compare(long /*int*/ a, long /*int*/ b) { |
| lock.lock(); |
| try { |
| return _gtk_tree_path_compare(a, b); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native void _gtk_tree_path_free(long /*int*/ path); |
| public static final void gtk_tree_path_free(long /*int*/ path) { |
| lock.lock(); |
| try { |
| _gtk_tree_path_free(path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native int _gtk_tree_path_get_depth(long /*int*/ path); |
| public static final int gtk_tree_path_get_depth(long /*int*/ path) { |
| lock.lock(); |
| try { |
| return _gtk_tree_path_get_depth(path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native long /*int*/ _gtk_tree_path_get_indices(long /*int*/ path); |
| public static final long /*int*/ gtk_tree_path_get_indices(long /*int*/ path) { |
| lock.lock(); |
| try { |
| return _gtk_tree_path_get_indices(path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_tree_path_new(); |
| public static final long /*int*/ gtk_tree_path_new() { |
| lock.lock(); |
| try { |
| return _gtk_tree_path_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param path cast=(const gchar *) */ |
| public static final native long /*int*/ _gtk_tree_path_new_from_string(byte[] path); |
| public static final long /*int*/ gtk_tree_path_new_from_string(byte[] path) { |
| lock.lock(); |
| try { |
| return _gtk_tree_path_new_from_string(path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param path cast=(const gchar *) */ |
| public static final native long /*int*/ _gtk_tree_path_new_from_string(long /*int*/ path); |
| public static final long /*int*/ gtk_tree_path_new_from_string(long /*int*/ path) { |
| lock.lock(); |
| try { |
| return _gtk_tree_path_new_from_string(path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native void _gtk_tree_path_next(long /*int*/ path); |
| public static final void gtk_tree_path_next(long /*int*/ path) { |
| lock.lock(); |
| try { |
| _gtk_tree_path_next(path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native boolean _gtk_tree_path_prev(long /*int*/ path); |
| public static final boolean gtk_tree_path_prev(long /*int*/ path) { |
| lock.lock(); |
| try { |
| return _gtk_tree_path_prev(path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native boolean _gtk_tree_path_up(long /*int*/ path); |
| public static final boolean gtk_tree_path_up(long /*int*/ path) { |
| lock.lock(); |
| try { |
| return _gtk_tree_path_up(path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| */ |
| public static final native int _gtk_tree_selection_count_selected_rows(long /*int*/ selection); |
| public static final int gtk_tree_selection_count_selected_rows(long /*int*/ selection) { |
| lock.lock(); |
| try { |
| return _gtk_tree_selection_count_selected_rows(selection); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param model cast=(GtkTreeModel **) |
| */ |
| public static final native long /*int*/ _gtk_tree_selection_get_selected_rows(long /*int*/ selection, long /*int*/[] model); |
| public static final long /*int*/ gtk_tree_selection_get_selected_rows(long /*int*/ selection, long /*int*/[] model) { |
| lock.lock(); |
| try { |
| return _gtk_tree_selection_get_selected_rows(selection, model); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native boolean _gtk_tree_selection_path_is_selected(long /*int*/ selection, long /*int*/ path); |
| public static final boolean gtk_tree_selection_path_is_selected(long /*int*/ selection, long /*int*/ path) { |
| lock.lock(); |
| try { |
| return _gtk_tree_selection_path_is_selected(selection, path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param selection cast=(GtkTreeSelection *) */ |
| public static final native void _gtk_tree_selection_select_all(long /*int*/ selection); |
| public static final void gtk_tree_selection_select_all(long /*int*/ selection) { |
| lock.lock(); |
| try { |
| _gtk_tree_selection_select_all(selection); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_tree_selection_select_iter(long /*int*/ selection, long /*int*/ iter); |
| public static final void gtk_tree_selection_select_iter(long /*int*/ selection, long /*int*/ iter) { |
| lock.lock(); |
| try { |
| _gtk_tree_selection_select_iter(selection, iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| */ |
| public static final native long /*int*/ _gtk_tree_selection_get_select_function(long /*int*/ selection); |
| public static final long /*int*/ gtk_tree_selection_get_select_function(long /*int*/ selection) { |
| lock.lock(); |
| try { |
| return _gtk_tree_selection_get_select_function(selection); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param func cast=(GtkTreeSelectionFunc) |
| * @param data cast=(gpointer) |
| * @param destroy cast=(GDestroyNotify) |
| */ |
| public static final native void _gtk_tree_selection_set_select_function(long /*int*/ selection, long /*int*/ func, long /*int*/ data, long /*int*/ destroy); |
| public static final void gtk_tree_selection_set_select_function(long /*int*/ selection, long /*int*/ func, long /*int*/ data, long /*int*/ destroy) { |
| lock.lock(); |
| try { |
| _gtk_tree_selection_set_select_function(selection, func, data, destroy); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native void _gtk_tree_selection_select_path(long /*int*/ selection, long /*int*/ path); |
| public static final void gtk_tree_selection_select_path(long /*int*/ selection, long /*int*/ path) { |
| lock.lock(); |
| try { |
| _gtk_tree_selection_select_path(selection, path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param mode cast=(GtkSelectionMode) |
| */ |
| public static final native void _gtk_tree_selection_set_mode(long /*int*/ selection, int mode); |
| public static final void gtk_tree_selection_set_mode(long /*int*/ selection, int mode) { |
| lock.lock(); |
| try { |
| _gtk_tree_selection_set_mode(selection, mode); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native void _gtk_tree_selection_unselect_path(long /*int*/ selection, long /*int*/ path); |
| public static final void gtk_tree_selection_unselect_path(long /*int*/ selection, long /*int*/ path) { |
| lock.lock(); |
| try { |
| _gtk_tree_selection_unselect_path(selection, path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param selection cast=(GtkTreeSelection *) */ |
| public static final native void _gtk_tree_selection_unselect_all(long /*int*/ selection); |
| public static final void gtk_tree_selection_unselect_all(long /*int*/ selection) { |
| lock.lock(); |
| try { |
| _gtk_tree_selection_unselect_all(selection); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_tree_selection_unselect_iter(long /*int*/ selection, long /*int*/ iter); |
| public static final void gtk_tree_selection_unselect_iter(long /*int*/ selection, long /*int*/ iter) { |
| lock.lock(); |
| try { |
| _gtk_tree_selection_unselect_iter(selection, iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param parent cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_tree_store_append(long /*int*/ store, long /*int*/ iter, long /*int*/ parent); |
| public static final void gtk_tree_store_append(long /*int*/ store, long /*int*/ iter, long /*int*/ parent) { |
| lock.lock(); |
| try { |
| _gtk_tree_store_append(store, iter, parent); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param store cast=(GtkTreeStore *) */ |
| public static final native void _gtk_tree_store_clear(long /*int*/ store); |
| public static final void gtk_tree_store_clear(long /*int*/ store) { |
| lock.lock(); |
| try { |
| _gtk_tree_store_clear(store); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param parent cast=(GtkTreeIter *) |
| * @param position cast=(gint) |
| */ |
| public static final native void _gtk_tree_store_insert(long /*int*/ store, long /*int*/ iter, long /*int*/ parent, int position); |
| public static final void gtk_tree_store_insert(long /*int*/ store, long /*int*/ iter, long /*int*/ parent, int position) { |
| lock.lock(); |
| try { |
| _gtk_tree_store_insert(store, iter, parent, position); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param types cast=(GType *) */ |
| public static final native long /*int*/ _gtk_tree_store_newv(int numColumns, long /*int*/[] types); |
| public static final long /*int*/ gtk_tree_store_newv(int numColumns, long /*int*/[] types) { |
| lock.lock(); |
| try { |
| return _gtk_tree_store_newv(numColumns, types); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_tree_store_remove(long /*int*/ store, long /*int*/ iter); |
| public static final void gtk_tree_store_remove(long /*int*/ store, long /*int*/ iter) { |
| lock.lock(); |
| try { |
| _gtk_tree_store_remove(store, iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_tree_store_set(long /*int*/ store, long /*int*/ iter, int column, byte[] value, int terminator); |
| public static final void gtk_tree_store_set(long /*int*/ store, long /*int*/ iter, int column, byte[] value, int terminator) { |
| lock.lock(); |
| try { |
| _gtk_tree_store_set(store, iter, column, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_tree_store_set(long /*int*/ store, long /*int*/ iter, int column, int value, int terminator); |
| public static final void gtk_tree_store_set(long /*int*/ store, long /*int*/ iter, int column, int value, int terminator) { |
| lock.lock(); |
| try { |
| _gtk_tree_store_set(store, iter, column, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_tree_store_set(long /*int*/ store, long /*int*/ iter, int column, long value, int terminator); |
| public static final void gtk_tree_store_set(long /*int*/ store, long /*int*/ iter, int column, long value, int terminator) { |
| lock.lock(); |
| try { |
| _gtk_tree_store_set(store, iter, column, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param value flags=no_out |
| */ |
| public static final native void _gtk_tree_store_set(long /*int*/ store, long /*int*/ iter, int column, GdkColor value, int terminator); |
| public static final void gtk_tree_store_set(long /*int*/ store, long /*int*/ iter, int column, GdkColor value, int terminator) { |
| lock.lock(); |
| try { |
| _gtk_tree_store_set(store, iter, column, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_tree_store_set(long /*int*/ store, long /*int*/ iter, int column, boolean value, int terminator); |
| public static final void gtk_tree_store_set(long /*int*/ store, long /*int*/ iter, int column, boolean value, int terminator) { |
| lock.lock(); |
| try { |
| _gtk_tree_store_set(store, iter, column, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native long /*int*/ _gtk_tree_view_create_row_drag_icon(long /*int*/ view, long /*int*/ path); |
| public static final long /*int*/ gtk_tree_view_create_row_drag_icon(long /*int*/ view, long /*int*/ path) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_create_row_drag_icon(view, path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native boolean _gtk_tree_view_collapse_row(long /*int*/ view, long /*int*/ path); |
| public static final boolean gtk_tree_view_collapse_row(long /*int*/ view, long /*int*/ path) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_collapse_row(view, path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param treeColumn cast=(GtkTreeViewColumn *) |
| * @param cellRenderer cast=(GtkCellRenderer *) |
| * @param attribute cast=(const gchar *) |
| * @param column cast=(gint) |
| */ |
| public static final native void _gtk_tree_view_column_add_attribute(long /*int*/ treeColumn, long /*int*/ cellRenderer, byte[] attribute, int column); |
| public static final void gtk_tree_view_column_add_attribute(long /*int*/ treeColumn, long /*int*/ cellRenderer, byte[] attribute, int column) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_add_attribute(treeColumn, cellRenderer, attribute, column); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param cell_renderer cast=(GtkCellRenderer *) |
| * @param start_pos cast=(gint *) |
| * @param width cast=(gint *) |
| */ |
| public static final native boolean _gtk_tree_view_column_cell_get_position(long /*int*/ tree_column, long /*int*/ cell_renderer, int[] start_pos, int[] width); |
| public static final boolean gtk_tree_view_column_cell_get_position(long /*int*/ tree_column, long /*int*/ cell_renderer, int[] start_pos, int[] width) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_column_cell_get_position(tree_column, cell_renderer, start_pos, width); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param cell_area cast=(GdkRectangle *),flags=no_in |
| * @param x_offset cast=(gint *) |
| * @param y_offset cast=(gint *) |
| * @param width cast=(gint *) |
| * @param height cast=(gint *) |
| */ |
| public static final native void _gtk_tree_view_column_cell_get_size(long /*int*/ tree_column, GdkRectangle cell_area, int[] x_offset, int[] y_offset, int[] width, int[] height); |
| public static final void gtk_tree_view_column_cell_get_size(long /*int*/ tree_column, GdkRectangle cell_area, int[] x_offset, int[] y_offset, int[] width, int[] height) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_cell_get_size(tree_column, cell_area, x_offset, y_offset, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void _gtk_tree_view_column_cell_set_cell_data(long /*int*/ tree_column, long /*int*/ tree_model, long /*int*/ iter, boolean is_expander, boolean is_expanded); |
| public static final void gtk_tree_view_column_cell_set_cell_data(long /*int*/ tree_column, long /*int*/ tree_model, long /*int*/ iter, boolean is_expander, boolean is_expanded) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_cell_set_cell_data(tree_column, tree_model, iter, is_expander, is_expanded); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param tree_column cast=(GtkTreeViewColumn *) */ |
| public static final native void _gtk_tree_view_column_clear(long /*int*/ tree_column); |
| public static final void gtk_tree_view_column_clear(long /*int*/ tree_column) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_clear(tree_column); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param column cast=(GtkTreeViewColumn *) |
| */ |
| public static final native long /*int*/_gtk_tree_view_column_get_button(long /*int*/ column); |
| public static final long /*int*/ gtk_tree_view_column_get_button(long /*int*/ column) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_column_get_button(column); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param column cast=(GtkTreeViewColumn *) */ |
| public static final native int _gtk_tree_view_column_get_fixed_width(long /*int*/ column); |
| public static final int gtk_tree_view_column_get_fixed_width(long /*int*/ column) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_column_get_fixed_width(column); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param column cast=(GtkTreeViewColumn *) */ |
| public static final native boolean _gtk_tree_view_column_get_reorderable(long /*int*/ column); |
| public static final boolean gtk_tree_view_column_get_reorderable(long /*int*/ column) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_column_get_reorderable(column); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param column cast=(GtkTreeViewColumn *) */ |
| public static final native boolean _gtk_tree_view_column_get_resizable(long /*int*/ column); |
| public static final boolean gtk_tree_view_column_get_resizable(long /*int*/ column) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_column_get_resizable(column); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param column cast=(GtkTreeViewColumn *) */ |
| public static final native boolean _gtk_tree_view_column_get_visible(long /*int*/ column); |
| public static final boolean gtk_tree_view_column_get_visible(long /*int*/ column) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_column_get_visible(column); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param column cast=(GtkTreeViewColumn *) */ |
| public static final native int _gtk_tree_view_column_get_width(long /*int*/ column); |
| public static final int gtk_tree_view_column_get_width(long /*int*/ column) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_column_get_width(column); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_tree_view_column_new(); |
| public static final long /*int*/ gtk_tree_view_column_new() { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_column_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param cell_renderer cast=(GtkCellRenderer *) |
| * @param expand cast=(gboolean) |
| */ |
| public static final native void _gtk_tree_view_column_pack_start(long /*int*/ tree_column, long /*int*/ cell_renderer, boolean expand); |
| public static final void gtk_tree_view_column_pack_start(long /*int*/ tree_column, long /*int*/ cell_renderer, boolean expand) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_pack_start(tree_column, cell_renderer, expand); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param cell_renderer cast=(GtkCellRenderer *) |
| * @param expand cast=(gboolean) |
| */ |
| public static final native void _gtk_tree_view_column_pack_end(long /*int*/ tree_column, long /*int*/ cell_renderer, boolean expand); |
| public static final void gtk_tree_view_column_pack_end(long /*int*/ tree_column, long /*int*/ cell_renderer, boolean expand) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_pack_end(tree_column, cell_renderer, expand); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param tree_column cast=(GtkTreeViewColumn *) */ |
| public static final native void _gtk_tree_view_column_set_alignment(long /*int*/ tree_column, float xalign); |
| public static final void gtk_tree_view_column_set_alignment(long /*int*/ tree_column, float xalign) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_set_alignment(tree_column, xalign); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param cell_renderer cast=(GtkCellRenderer *) |
| * @param func cast=(GtkTreeCellDataFunc) |
| * @param func_data cast=(gpointer) |
| * @param destroy cast=(GDestroyNotify) |
| */ |
| public static final native void _gtk_tree_view_column_set_cell_data_func(long /*int*/ tree_column, long /*int*/ cell_renderer, long /*int*/ func, long /*int*/ func_data, long /*int*/ destroy); |
| public static final void gtk_tree_view_column_set_cell_data_func(long /*int*/ tree_column, long /*int*/ cell_renderer, long /*int*/ func, long /*int*/ func_data, long /*int*/ destroy) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_set_cell_data_func(tree_column, cell_renderer, func, func_data, destroy); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param clickable cast=(gboolean) |
| */ |
| public static final native void _gtk_tree_view_column_set_clickable(long /*int*/ column, boolean clickable); |
| public static final void gtk_tree_view_column_set_clickable(long /*int*/ column, boolean clickable) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_set_clickable(column, clickable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param fixed_width cast=(gint) |
| */ |
| public static final native void _gtk_tree_view_column_set_fixed_width(long /*int*/ column, int fixed_width); |
| public static final void gtk_tree_view_column_set_fixed_width(long /*int*/ column, int fixed_width) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_set_fixed_width(column, fixed_width); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param min_width cast=(gint) |
| */ |
| public static final native void _gtk_tree_view_column_set_min_width(long /*int*/ tree_column, int min_width); |
| public static final void gtk_tree_view_column_set_min_width(long /*int*/ tree_column, int min_width) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_set_min_width(tree_column, min_width); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param reorderable cast=(gboolean) |
| */ |
| public static final native void _gtk_tree_view_column_set_reorderable(long /*int*/ column, boolean reorderable); |
| public static final void gtk_tree_view_column_set_reorderable(long /*int*/ column, boolean reorderable) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_set_reorderable(column, reorderable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param resizable cast=(gboolean) |
| */ |
| public static final native void _gtk_tree_view_column_set_resizable(long /*int*/ column, boolean resizable); |
| public static final void gtk_tree_view_column_set_resizable(long /*int*/ column, boolean resizable) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_set_resizable(column, resizable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param type cast=(GtkTreeViewColumnSizing) |
| */ |
| public static final native void _gtk_tree_view_column_set_sizing(long /*int*/ column, int type); |
| public static final void gtk_tree_view_column_set_sizing(long /*int*/ column, int type) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_set_sizing(column, type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param setting cast=(gboolean) |
| */ |
| public static final native void _gtk_tree_view_column_set_sort_indicator(long /*int*/ tree_column, boolean setting); |
| public static final void gtk_tree_view_column_set_sort_indicator(long /*int*/ tree_column, boolean setting) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_set_sort_indicator(tree_column, setting); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param order cast=(GtkSortType) |
| */ |
| public static final native void _gtk_tree_view_column_set_sort_order(long /*int*/ tree_column, int order); |
| public static final void gtk_tree_view_column_set_sort_order(long /*int*/ tree_column, int order) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_set_sort_order(tree_column, order); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param tree_column cast=(GtkTreeViewColumn *) */ |
| public static final native void _gtk_tree_view_column_set_visible (long /*int*/ tree_column, boolean visible); |
| public static final void gtk_tree_view_column_set_visible (long /*int*/ tree_column, boolean visible) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_set_visible(tree_column, visible); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_tree_view_column_set_widget(long /*int*/ tree_column, long /*int*/ widget); |
| public static final void gtk_tree_view_column_set_widget(long /*int*/ tree_column, long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_column_set_widget(tree_column, widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native void _gtk_tree_view_set_drag_dest_row(long /*int*/ view, long /*int*/ path, int pos); |
| public static final void gtk_tree_view_set_drag_dest_row(long /*int*/ view, long /*int*/ path, int pos) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_set_drag_dest_row(view, path, pos); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| * @param open_all cast=(gboolean) |
| */ |
| public static final native boolean _gtk_tree_view_expand_row(long /*int*/ view, long /*int*/ path, boolean open_all); |
| public static final boolean gtk_tree_view_expand_row(long /*int*/ view, long /*int*/ path, boolean open_all) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_expand_row(view, path, open_all); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param rect cast=(GdkRectangle *) |
| */ |
| public static final native void _gtk_tree_view_get_background_area(long /*int*/ tree_view, long /*int*/ path, long /*int*/ column, GdkRectangle rect); |
| public static final void gtk_tree_view_get_background_area(long /*int*/ tree_view, long /*int*/ path, long /*int*/ column, GdkRectangle rect) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_get_background_area(tree_view, path, column, rect); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param tree_view cast=(GtkTreeView *) */ |
| public static final native long /*int*/ _gtk_tree_view_get_bin_window(long /*int*/ tree_view); |
| public static final long /*int*/ gtk_tree_view_get_bin_window(long /*int*/ tree_view) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_get_bin_window(tree_view); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param rect cast=(GdkRectangle *),flags=no_in |
| */ |
| public static final native void _gtk_tree_view_get_cell_area(long /*int*/ tree_view, long /*int*/ path, long /*int*/ column, GdkRectangle rect); |
| public static final void gtk_tree_view_get_cell_area(long /*int*/ tree_view, long /*int*/ path, long /*int*/ column, GdkRectangle rect) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_get_cell_area(tree_view, path, column, rect); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param tree_view cast=(GtkTreeView *) */ |
| public static final native long /*int*/_gtk_tree_view_get_expander_column(long /*int*/ tree_view); |
| public static final long /*int*/gtk_tree_view_get_expander_column(long /*int*/ tree_view) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_get_expander_column(tree_view); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param n cast=(gint) |
| */ |
| public static final native long /*int*/ _gtk_tree_view_get_column(long /*int*/ tree_view, int n); |
| public static final long /*int*/ gtk_tree_view_get_column(long /*int*/ tree_view, int n) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_get_column(tree_view, n); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param tree_view cast=(GtkTreeView *) */ |
| public static final native long /*int*/ _gtk_tree_view_get_columns(long /*int*/ tree_view); |
| public static final long /*int*/ gtk_tree_view_get_columns(long /*int*/ tree_view) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_get_columns(tree_view); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath **) |
| * @param focus_column cast=(GtkTreeViewColumn **) |
| */ |
| public static final native void _gtk_tree_view_get_cursor(long /*int*/ tree_view, long /*int*/[] path, long /*int*/[] focus_column); |
| public static final void gtk_tree_view_get_cursor(long /*int*/ tree_view, long /*int*/[] path, long /*int*/[] focus_column) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_get_cursor(tree_view, path, focus_column); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param tree_view cast=(GtkTreeView *) */ |
| public static final native boolean _gtk_tree_view_get_headers_visible(long /*int*/ tree_view); |
| public static final boolean gtk_tree_view_get_headers_visible(long /*int*/ tree_view) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_get_headers_visible(tree_view); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param tree_view cast=(GtkTreeView *) |
| */ |
| public static final native long /*int*/ _gtk_tree_view_get_vadjustment(long /*int*/ tree_view); |
| public static final long /*int*/ gtk_tree_view_get_vadjustment(long /*int*/ tree_view) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_get_vadjustment(tree_view); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| * @param path cast=(GtkTreePath **) |
| * @param column cast=(GtkTreeViewColumn **) |
| * @param cell_x cast=(gint *) |
| * @param cell_y cast=(gint *) |
| */ |
| public static final native boolean _gtk_tree_view_get_path_at_pos(long /*int*/ tree_view, int x, int y, long /*int*/[] path, long /*int*/[] column, int[] cell_x, int[] cell_y); |
| public static final boolean gtk_tree_view_get_path_at_pos(long /*int*/ tree_view, int x, int y, long /*int*/[] path, long /*int*/[] column, int[] cell_x, int[] cell_y) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_get_path_at_pos(tree_view, x, y, path, column, cell_x, cell_y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.14 deprecated] |
| * @param tree_view cast=(GtkTreeView *) |
| */ |
| public static final native boolean _gtk_tree_view_get_rules_hint(long /*int*/ tree_view); |
| public static final boolean gtk_tree_view_get_rules_hint(long /*int*/ tree_view) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_get_rules_hint(tree_view); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param tree_view cast=(GtkTreeView *) */ |
| public static final native long /*int*/ _gtk_tree_view_get_selection(long /*int*/ tree_view); |
| public static final long /*int*/ gtk_tree_view_get_selection(long /*int*/ tree_view) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_get_selection(tree_view); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param visible_rect flags=no_in |
| */ |
| public static final native void _gtk_tree_view_get_visible_rect(long /*int*/ tree_view, GdkRectangle visible_rect); |
| public static final void gtk_tree_view_get_visible_rect(long /*int*/ tree_view, GdkRectangle visible_rect) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_get_visible_rect(tree_view, visible_rect); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param position cast=(gint) |
| */ |
| public static final native int _gtk_tree_view_insert_column(long /*int*/ tree_view, long /*int*/ column, int position); |
| public static final int gtk_tree_view_insert_column(long /*int*/ tree_view, long /*int*/ column, int position) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_insert_column(tree_view, column, position); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param base_column cast=(GtkTreeViewColumn *) |
| */ |
| public static final native void _gtk_tree_view_move_column_after(long /*int*/ tree_view, long /*int*/ column, long /*int*/ base_column); |
| public static final void gtk_tree_view_move_column_after(long /*int*/ tree_view, long /*int*/ column, long /*int*/base_column) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_move_column_after(tree_view, column, base_column); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param model cast=(GtkTreeModel *) */ |
| public static final native long /*int*/ _gtk_tree_view_new_with_model(long /*int*/ model); |
| public static final long /*int*/ gtk_tree_view_new_with_model(long /*int*/ model) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_new_with_model(model); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param column cast=(GtkTreeViewColumn *) |
| */ |
| public static final native void _gtk_tree_view_remove_column(long /*int*/ tree_view, long /*int*/ column); |
| public static final void gtk_tree_view_remove_column(long /*int*/ tree_view, long /*int*/ column) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_remove_column(tree_view, column); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native boolean _gtk_tree_view_row_expanded(long /*int*/ view, long /*int*/ path); |
| public static final boolean gtk_tree_view_row_expanded(long /*int*/ view, long /*int*/ path) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_row_expanded(view, path); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param use_align cast=(gboolean) |
| * @param row_aligh cast=(gfloat) |
| * @param column_align cast=(gfloat) |
| */ |
| public static final native void _gtk_tree_view_scroll_to_cell(long /*int*/ tree_view, long /*int*/ path, long /*int*/ column, boolean use_align, float row_aligh, float column_align); |
| public static final void gtk_tree_view_scroll_to_cell(long /*int*/ tree_view, long /*int*/ path, long /*int*/ column, boolean use_align, float row_aligh, float column_align) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_scroll_to_cell(tree_view, path, column, use_align, row_aligh, column_align); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param tree_x cast=(gint) |
| * @param tree_y cast=(gint) |
| */ |
| public static final native void _gtk_tree_view_scroll_to_point (long /*int*/ tree_view, int tree_x, int tree_y); |
| public static final void gtk_tree_view_scroll_to_point (long /*int*/ tree_view, int tree_x, int tree_y) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_scroll_to_point(tree_view, tree_x, tree_y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| * @param focus_column cast=(GtkTreeViewColumn *) |
| */ |
| public static final native void _gtk_tree_view_set_cursor(long /*int*/ tree_view, long /*int*/ path, long /*int*/ focus_column, boolean start_editing); |
| public static final void gtk_tree_view_set_cursor(long /*int*/ tree_view, long /*int*/ path, long /*int*/ focus_column, boolean start_editing) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_set_cursor(tree_view, path, focus_column, start_editing); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView*) |
| * @param grid_lines cast=(GtkTreeViewGridLines) |
| */ |
| public static final native void _gtk_tree_view_set_grid_lines(long /*int*/ tree_view, int grid_lines); |
| public static final void gtk_tree_view_set_grid_lines(long /*int*/ tree_view, int grid_lines) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_set_grid_lines(tree_view, grid_lines); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| /** |
| * @param tree_view cast=(GtkTreeView*) |
| */ |
| public static final native int _gtk_tree_view_get_grid_lines(long /*int*/ tree_view); |
| public static final int gtk_tree_view_get_grid_lines(long /*int*/ tree_view) { |
| lock.lock(); |
| try { |
| return _gtk_tree_view_get_grid_lines(tree_view); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param visible cast=(gboolean) |
| */ |
| public static final native void _gtk_tree_view_set_headers_visible(long /*int*/ tree_view, boolean visible); |
| public static final void gtk_tree_view_set_headers_visible(long /*int*/ tree_view, boolean visible) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_set_headers_visible(tree_view, visible); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param model cast=(GtkTreeModel *) |
| */ |
| public static final native void _gtk_tree_view_set_model(long /*int*/ tree_view, long /*int*/ model); |
| public static final void gtk_tree_view_set_model(long /*int*/ tree_view, long /*int*/ model) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_set_model(tree_view, model); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.14 deprecated] |
| * @param tree_view cast=(GtkTreeView *) |
| */ |
| public static final native void _gtk_tree_view_set_rules_hint(long /*int*/ tree_view, boolean setting); |
| public static final void gtk_tree_view_set_rules_hint(long /*int*/ tree_view, boolean setting) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_set_rules_hint(tree_view, setting); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param column cast=(gint) |
| */ |
| public static final native void _gtk_tree_view_set_search_column(long /*int*/ tree_view, int column); |
| public static final void gtk_tree_view_set_search_column(long /*int*/ tree_view, int column) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_set_search_column(tree_view, column); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param tree_view cast=(GtkTreeView *) */ |
| public static final native void _gtk_tree_view_unset_rows_drag_dest(long /*int*/ tree_view); |
| public static final void gtk_tree_view_unset_rows_drag_dest(long /*int*/ tree_view) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_unset_rows_drag_dest(tree_view); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param bx cast=(gint) |
| * @param by cast=(gint) |
| * @param tx cast=(gint *) |
| * @param ty cast=(gint *) |
| */ |
| public static final native void _gtk_tree_view_convert_bin_window_to_tree_coords(long /*int*/ tree_view, int bx, int by, int[] tx, int[] ty); |
| public static final void gtk_tree_view_convert_bin_window_to_tree_coords(long /*int*/ tree_view, int bx, int by, int[] tx, int[] ty) { |
| lock.lock(); |
| try { |
| _gtk_tree_view_convert_bin_window_to_tree_coords(tree_view, bx, by, tx, ty); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.2 deprecated] |
| * @param homogeneous cast=(gboolean) |
| * @param spacing cast=(gint) |
| */ |
| public static final native long /*int*/ _gtk_vbox_new(boolean homogeneous, int spacing); |
| public static final long /*int*/ gtk_vbox_new(boolean homogeneous, int spacing) { |
| lock.lock(); |
| try { |
| return _gtk_vbox_new(homogeneous, spacing); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param viewport cast=(GtkViewport *) |
| * @param type cast=(GtkShadowType) |
| */ |
| public static final native void _gtk_viewport_set_shadow_type(long /*int*/ viewport, int type); |
| public static final void gtk_viewport_set_shadow_type(long /*int*/ viewport, int type) { |
| lock.lock(); |
| try { |
| _gtk_viewport_set_shadow_type(viewport, type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.2 deprecated] |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native long /*int*/ _gtk_vscale_new(long /*int*/ adjustment); |
| public static final long /*int*/ gtk_vscale_new(long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| return _gtk_vscale_new(adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.2 deprecated] |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native long /*int*/ _gtk_vscrollbar_new(long /*int*/ adjustment); |
| public static final long /*int*/ gtk_vscrollbar_new(long /*int*/ adjustment) { |
| lock.lock(); |
| try { |
| return _gtk_vscrollbar_new(adjustment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic [GTK2/GTK3; 3.2 deprecated] */ |
| public static final native long /*int*/ _gtk_vseparator_new(); |
| public static final long /*int*/ gtk_vseparator_new() { |
| lock.lock(); |
| try { |
| return _gtk_vseparator_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param accel_signal cast=(const gchar *) |
| * @param accel_group cast=(GtkAccelGroup *) |
| * @param accel_key cast=(guint) |
| * @param accel_mods cast=(GdkModifierType) |
| */ |
| public static final native void _gtk_widget_add_accelerator(long /*int*/ widget, byte[] accel_signal, long /*int*/ accel_group, int accel_key, int accel_mods, int accel_flags); |
| public static final void gtk_widget_add_accelerator(long /*int*/ widget, byte[] accel_signal, long /*int*/ accel_group, int accel_key, int accel_mods, int accel_flags) { |
| lock.lock(); |
| try { |
| _gtk_widget_add_accelerator(widget, accel_signal, accel_group, accel_key, accel_mods, accel_flags); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param events cast=(gint) |
| */ |
| public static final native void _gtk_widget_add_events(long /*int*/ widget, int events); |
| public static final void gtk_widget_add_events(long /*int*/ widget, int events) { |
| lock.lock(); |
| try { |
| _gtk_widget_add_events(widget, events); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean _gtk_widget_child_focus(long /*int*/ widget, int direction); |
| public static final boolean gtk_widget_child_focus(long /*int*/ widget, int direction) { |
| lock.lock(); |
| try { |
| return _gtk_widget_child_focus(widget, direction); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param text cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_widget_create_pango_layout(long /*int*/ widget, byte[] text); |
| public static final long /*int*/ gtk_widget_create_pango_layout(long /*int*/ widget, byte[] text) { |
| lock.lock(); |
| try { |
| return _gtk_widget_create_pango_layout(widget, text); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param text cast=(const gchar *) |
| */ |
| public static final native long /*int*/ _gtk_widget_create_pango_layout(long /*int*/ widget, long /*int*/ text); |
| public static final long /*int*/ gtk_widget_create_pango_layout(long /*int*/ widget, long /*int*/ text) { |
| lock.lock(); |
| try { |
| return _gtk_widget_create_pango_layout(widget, text); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void _gtk_widget_destroy(long /*int*/ widget); |
| public static final void gtk_widget_destroy(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_widget_destroy(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic [GTK3; GTK2 deprecated (different signature)] */ |
| public static final native void _gtk_widget_draw(long /*int*/ widget, long /*int*/ cr); |
| public static final void gtk_widget_draw(long /*int*/ widget, long /*int*/ cr) { |
| lock.lock(); |
| try { |
| _gtk_widget_draw(widget, cr); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param event cast=(GdkEvent *) |
| */ |
| public static final native boolean _gtk_widget_event(long /*int*/ widget, long /*int*/ event); |
| public static final boolean gtk_widget_event(long /*int*/ widget, long /*int*/ event) { |
| lock.lock(); |
| try { |
| return _gtk_widget_event(widget, event); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long /*int*/ _gtk_widget_get_accessible (long /*int*/ widget); |
| public static final long /*int*/ gtk_widget_get_accessible (long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_accessible(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean _gtk_widget_get_visible (long /*int*/ widget); |
| public static final boolean gtk_widget_get_visible (long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_visible(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean _gtk_widget_get_realized (long /*int*/ widget); |
| public static final boolean gtk_widget_get_realized (long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_realized(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean _gtk_widget_get_has_window (long /*int*/ widget); |
| public static final boolean gtk_widget_get_has_window (long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_has_window(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean _gtk_widget_get_can_default (long /*int*/ widget); |
| public static final boolean gtk_widget_get_can_default (long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_can_default(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean _gtk_widget_get_child_visible (long /*int*/ widget); |
| public static final boolean gtk_widget_get_child_visible (long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_child_visible(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] */ |
| public static final native long /*int*/ _gtk_widget_get_default_style(); |
| public static final long /*int*/ gtk_widget_get_default_style() { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_default_style(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native int _gtk_widget_get_events(long /*int*/ widget); |
| public static final int gtk_widget_get_events(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_events(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long /*int*/ _gtk_widget_get_window (long /*int*/ widget); |
| public static final long /*int*/ gtk_widget_get_window (long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_window(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native long /*int*/ _gtk_widget_get_modifier_style(long /*int*/ widget); |
| public static final long /*int*/ gtk_widget_get_modifier_style(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_modifier_style(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean _gtk_widget_get_mapped(long /*int*/ widget); |
| public static final boolean gtk_widget_get_mapped(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_mapped(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long /*int*/ _gtk_widget_get_pango_context(long /*int*/ widget); |
| public static final long /*int*/ gtk_widget_get_pango_context(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_pango_context(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long /*int*/ _gtk_widget_get_parent(long /*int*/ widget); |
| public static final long /*int*/ gtk_widget_get_parent(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_parent(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long /*int*/ _gtk_widget_get_parent_window(long /*int*/ widget); |
| public static final long /*int*/ gtk_widget_get_parent_window(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_parent_window(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param allocation cast=(GtkAllocation *),flags=no_in |
| * */ |
| public static final native void _gtk_widget_get_allocation (long /*int*/ widget, GtkAllocation allocation); |
| public static final void gtk_widget_get_allocation (long /*int*/ widget, GtkAllocation allocation) { |
| lock.lock(); |
| try { |
| _gtk_widget_get_allocation(widget, allocation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param x cast=(gdouble) |
| * @param y cast=(gdouble) |
| * @param width cast=(gdouble) |
| * @param height cast=(gdouble) |
| */ |
| public static final native void _gtk_render_handle(long /*int*/ context, long /*int*/ cr, double x , double y, double width, double height); |
| public static final void gtk_render_handle(long /*int*/ context, long /*int*/ cr, double x , double y, double width, double height) { |
| lock.lock(); |
| try { |
| _gtk_render_handle(context,cr, x ,y, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native long /*int*/ _gtk_widget_get_style_context(long /*int*/ widget); |
| public static final long /*int*/ gtk_widget_get_style_context(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_style_context(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native long /*int*/ _gtk_widget_get_style(long /*int*/ widget); |
| public static final long /*int*/ gtk_widget_get_style(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_style(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param width cast=(gint *) |
| * @param height cast=(gint *) |
| */ |
| public static final native void _gtk_widget_get_size_request(long /*int*/ widget, int [] width, int [] height); |
| public static final void gtk_widget_get_size_request(long /*int*/ widget, int [] width, int [] height) { |
| lock.lock(); |
| try { |
| _gtk_widget_get_size_request(widget, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long /*int*/ _gtk_widget_get_toplevel (long /*int*/ widget); |
| public static final long /*int*/ gtk_widget_get_toplevel (long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_toplevel(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long /*int*/ _gtk_widget_get_tooltip_text (long /*int*/ widget); |
| public static final long /*int*/ gtk_widget_get_tooltip_text (long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_tooltip_text(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void _gtk_widget_grab_focus(long /*int*/ widget); |
| public static final void gtk_widget_grab_focus(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_widget_grab_focus(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean _gtk_widget_has_focus(long /*int*/ widget); |
| public static final boolean gtk_widget_has_focus(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_has_focus(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void _gtk_widget_hide(long /*int*/ widget); |
| public static final void gtk_widget_hide(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_widget_hide(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_widget_input_shape_combine_region(long /*int*/ widget, long /*int*/ region); |
| public static final void gtk_widget_input_shape_combine_region(long /*int*/ widget, long /*int*/ region) { |
| lock.lock(); |
| try { |
| _gtk_widget_input_shape_combine_region(widget, region); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.22 deprecated] |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native boolean _gtk_widget_is_composited(long /*int*/ widget); |
| public static final boolean gtk_widget_is_composited(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_is_composited(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean _gtk_widget_is_focus(long /*int*/ widget); |
| public static final boolean gtk_widget_is_focus(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_is_focus(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void _gtk_widget_map(long /*int*/ widget); |
| public static final void gtk_widget_map(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_widget_map(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param group_cycling cast=(gboolean) |
| */ |
| public static final native boolean _gtk_widget_mnemonic_activate(long /*int*/ widget, boolean group_cycling); |
| public static final boolean gtk_widget_mnemonic_activate(long /*int*/ widget, boolean group_cycling) { |
| lock.lock(); |
| try { |
| return _gtk_widget_mnemonic_activate(widget, group_cycling); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param widget cast=(GtkWidget *) |
| * @param state cast=(GtkStateType) |
| * @param color cast=(GdkColor *),flags=no_out |
| */ |
| public static final native void _gtk_widget_modify_base(long /*int*/ widget, int state, GdkColor color); |
| public static final void gtk_widget_modify_base(long /*int*/ widget, int state, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_widget_modify_base(widget, state, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param widget cast=(GtkWidget *) |
| * @param state cast=(GtkStateType) |
| * @param color cast=(GdkColor *),flags=no_out |
| */ |
| public static final native void _gtk_widget_modify_bg(long /*int*/ widget, int state, GdkColor color); |
| public static final void gtk_widget_modify_bg(long /*int*/ widget, int state, GdkColor color) { |
| lock.lock(); |
| try { |
| _gtk_widget_modify_bg(widget, state, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param widget cast=(GtkWidget *) |
| * @param pango_font_descr cast=(PangoFontDescription *) |
| */ |
| public static final native void _gtk_widget_modify_font(long /*int*/ widget, long /*int*/ pango_font_descr); |
| public static final void gtk_widget_modify_font(long /*int*/ widget, long /*int*/ pango_font_descr) { |
| lock.lock(); |
| try { |
| _gtk_widget_modify_font(widget, pango_font_descr); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param widget cast=(GtkWidget *) |
| * @param style cast=(GtkRcStyle *) |
| */ |
| public static final native void _gtk_widget_modify_style(long /*int*/ widget, long /*int*/ style); |
| public static final void gtk_widget_modify_style(long /*int*/ widget, long /*int*/ style) { |
| lock.lock(); |
| try { |
| _gtk_widget_modify_style(widget, style); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK3; 3.16 deprecated] |
| */ |
| public static final native void _gtk_widget_override_color(long /*int*/ widget, int state, GdkRGBA color); |
| public static final void gtk_widget_override_color(long /*int*/ widget, int state, GdkRGBA color) { |
| lock.lock(); |
| try { |
| _gtk_widget_override_color(widget, state, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK3; 3.16 deprecated] |
| */ |
| public static final native void _gtk_widget_override_background_color(long /*int*/ widget, int state, GdkRGBA color); |
| public static final void gtk_widget_override_background_color(long /*int*/ widget, int state, GdkRGBA color) { |
| lock.lock(); |
| try { |
| _gtk_widget_override_background_color(widget, state, color); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK3; 3.16 deprecated] |
| */ |
| public static final native void _gtk_widget_override_font(long /*int*/ widget, long /*int*/ font); |
| public static final void gtk_widget_override_font(long /*int*/ widget, long /*int*/ font) { |
| lock.lock(); |
| try { |
| _gtk_widget_override_font(widget, font); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void _gtk_widget_queue_resize(long /*int*/ widget); |
| public static final void gtk_widget_queue_resize(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_widget_queue_resize(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void _gtk_widget_realize(long /*int*/ widget); |
| public static final void gtk_widget_realize(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_widget_realize(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param accel_group cast=(GtkAccelGroup *) |
| * @param accel_key cast=(guint) |
| * @param accel_mods cast=(GdkModifierType) |
| */ |
| public static final native void _gtk_widget_remove_accelerator(long /*int*/ widget, long /*int*/ accel_group, int accel_key, int accel_mods); |
| public static final void gtk_widget_remove_accelerator(long /*int*/ widget, long /*int*/ accel_group, int accel_key, int accel_mods) { |
| lock.lock(); |
| try { |
| _gtk_widget_remove_accelerator(widget, accel_group, accel_key, accel_mods); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param new_parent cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_widget_reparent(long /*int*/ widget, long /*int*/ new_parent); |
| public static final void gtk_widget_reparent(long /*int*/ widget, long /*int*/ new_parent) { |
| lock.lock(); |
| try { |
| _gtk_widget_reparent(widget, new_parent); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param event cast=(GdkEvent *) |
| */ |
| public static final native int _gtk_widget_send_expose(long /*int*/ widget, long /*int*/ event); |
| public static final int gtk_widget_send_expose(long /*int*/ widget, long /*int*/ event) { |
| lock.lock(); |
| try { |
| return _gtk_widget_send_expose(widget, event); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void _gtk_widget_set_app_paintable(long /*int*/ widget, boolean app_paintable); |
| public static final void gtk_widget_set_app_paintable(long /*int*/ widget, boolean app_paintable) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_app_paintable(widget, app_paintable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param dir cast=(GtkTextDirection) */ |
| public static final native void _gtk_widget_set_default_direction(int dir); |
| public static final void gtk_widget_set_default_direction(int dir) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_default_direction(dir); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param can_default cast=(gboolean) |
| */ |
| public static final native void _gtk_widget_set_can_default(long /*int*/ widget, boolean can_default); |
| public static final void gtk_widget_set_can_default(long /*int*/ widget, boolean can_default) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_can_default(widget,can_default) ; |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void _gtk_widget_queue_draw(long /*int*/ widget); |
| public static final void gtk_widget_queue_draw(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_widget_queue_draw(widget) ; |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param can_focus cast=(gboolean) |
| */ |
| public static final native void _gtk_widget_set_can_focus(long /*int*/ widget, boolean can_focus); |
| public static final void gtk_widget_set_can_focus(long /*int*/ widget, boolean can_focus) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_can_focus(widget,can_focus); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param mapped cast=(gboolean) |
| */ |
| public static final native void _gtk_widget_set_mapped(long /*int*/ widget, boolean mapped); |
| public static final void gtk_widget_set_mapped(long /*int*/ widget, boolean mapped) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_mapped(widget,mapped); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param visible cast=(gboolean) |
| */ |
| public static final native void _gtk_widget_set_visible(long /*int*/ widget, boolean visible); |
| public static final void gtk_widget_set_visible(long /*int*/ widget, boolean visible) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_visible(widget, visible); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param dir cast=(GtkTextDirection) |
| */ |
| public static final native void _gtk_widget_set_direction(long /*int*/ widget, int dir); |
| public static final void gtk_widget_set_direction(long /*int*/ widget, int dir) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_direction(widget, dir); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param receives_default cast=(gboolean) |
| */ |
| public static final native void _gtk_widget_set_receives_default(long /*int*/ widget, boolean receives_default); |
| public static final void gtk_widget_set_receives_default(long /*int*/ widget, boolean receives_default) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_receives_default(widget, receives_default); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param double_buffered cast=(gboolean) |
| */ |
| public static final native void _gtk_widget_set_double_buffered(long /*int*/ widget, boolean double_buffered); |
| public static final void gtk_widget_set_double_buffered(long /*int*/ widget, boolean double_buffered) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_double_buffered(widget, double_buffered); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param val cast=(gboolean) |
| */ |
| public static final native void _gtk_widget_set_focus_on_click(long /*int*/ widget, boolean val); |
| public static final void gtk_widget_set_focus_on_click(long /*int*/ widget, boolean val) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_focus_on_click(widget, val); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param name cast=(const char *) |
| */ |
| public static final native void _gtk_widget_set_name(long /*int*/ widget, byte[] name); |
| public static final void gtk_widget_set_name(long /*int*/ widget, byte[] name) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_name(widget, name); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_widget_set_opacity(long /*int*/ widget, double opacity); |
| public static final void gtk_widget_set_opacity(long /*int*/ widget, double opacity) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_opacity(widget, opacity); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native double _gtk_widget_get_opacity(long /*int*/ widget); |
| public static final double gtk_widget_get_opacity(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| return _gtk_widget_get_opacity(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param redraw cast=(gboolean) |
| */ |
| public static final native void _gtk_widget_set_redraw_on_allocate(long /*int*/ widget, boolean redraw); |
| public static final void gtk_widget_set_redraw_on_allocate(long /*int*/ widget, boolean redraw) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_redraw_on_allocate(widget, redraw); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param sensitive cast=(gboolean) |
| */ |
| public static final native void _gtk_widget_set_sensitive(long /*int*/ widget, boolean sensitive); |
| public static final void gtk_widget_set_sensitive(long /*int*/ widget, boolean sensitive) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_sensitive(widget, sensitive); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| */ |
| public static final native void _gtk_widget_set_size_request(long /*int*/ widget, int width, int height); |
| public static final void gtk_widget_set_size_request(long /*int*/ widget, int width, int height) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_size_request(widget, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.0 deprecated] |
| * @param widget cast=(GtkWidget *) |
| * @param state cast=(GtkStateType) |
| */ |
| public static final native void _gtk_widget_set_state(long /*int*/ widget, int state); |
| public static final void gtk_widget_set_state(long /*int*/ widget, int state) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_state(widget, state); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void _gtk_widget_show(long /*int*/ widget); |
| public static final void gtk_widget_show(long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_widget_show(widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param allocation cast=(GtkAllocation *),flags=no_out |
| */ |
| public static final native void _gtk_widget_size_allocate(long /*int*/ widget, GtkAllocation allocation); |
| public static final void gtk_widget_size_allocate(long /*int*/ widget, GtkAllocation allocation) { |
| lock.lock(); |
| try { |
| _gtk_widget_size_allocate(widget, allocation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 2.x/3.0 deprecated] |
| * @param widget cast=(GtkWidget *) |
| * @param requisition cast=(GtkRequisition *),flags=no_in |
| */ |
| public static final native void _gtk_widget_size_request(long /*int*/ widget, GtkRequisition requisition); |
| public static final void gtk_widget_size_request(long /*int*/ widget, GtkRequisition requisition) { |
| lock.lock(); |
| try { |
| _gtk_widget_size_request(widget, requisition); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param allocation cast=(GtkAllocation *),flags=no_out |
| */ |
| public static final native void _gtk_widget_set_allocation(long /*int*/ widget, GtkAllocation allocation); |
| public static final void gtk_widget_set_allocation(long /*int*/ widget, GtkAllocation allocation) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_allocation(widget, allocation); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param property_name cast=(const gchar *) |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void _gtk_widget_style_get(long /*int*/ widget, byte[] property_name, int[] value, long /*int*/ terminator); |
| public static final void gtk_widget_style_get(long /*int*/ widget, byte[] property_name, int[] value, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| _gtk_widget_style_get(widget, property_name, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param property_name cast=(const gchar *) |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void _gtk_widget_style_get(long /*int*/ widget, byte[] property_name, long[] value, long /*int*/ terminator); |
| public static final void gtk_widget_style_get(long /*int*/ widget, byte[] property_name, long[] value, long /*int*/ terminator) { |
| lock.lock(); |
| try { |
| _gtk_widget_style_get(widget, property_name, value, terminator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param src_widget cast=(GtkWidget *) |
| * @param dest_widget cast=(GtkWidget *) |
| * @param dest_x cast=(gint *) |
| * @param dest_y cast=(gint *) |
| */ |
| public static final native boolean _gtk_widget_translate_coordinates(long /*int*/ src_widget, long /*int*/ dest_widget, int src_x, int src_y, int[] dest_x, int[] dest_y); |
| public static final boolean gtk_widget_translate_coordinates(long /*int*/ src_widget, long /*int*/ dest_widget, int src_x, int src_y, int[] dest_x, int[] dest_y) { |
| lock.lock(); |
| try { |
| return _gtk_widget_translate_coordinates(src_widget, dest_widget, src_x, src_y, dest_x, dest_y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GtkWindow *) */ |
| public static final native boolean _gtk_window_activate_default(long /*int*/ window); |
| public static final boolean gtk_window_activate_default(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gtk_window_activate_default(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param accel_group cast=(GtkAccelGroup *) |
| */ |
| public static final native void _gtk_window_add_accel_group(long /*int*/ window, long /*int*/ accel_group); |
| public static final void gtk_window_add_accel_group(long /*int*/ window, long /*int*/ accel_group) { |
| lock.lock(); |
| try { |
| _gtk_window_add_accel_group(window, accel_group); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param handle cast=(GtkWindow *) */ |
| public static final native void _gtk_window_deiconify(long /*int*/ handle); |
| public static final void gtk_window_deiconify(long /*int*/ handle) { |
| lock.lock(); |
| try { |
| _gtk_window_deiconify(handle); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GtkWindow *) */ |
| public static final native long /*int*/ _gtk_window_get_focus(long /*int*/ window); |
| public static final long /*int*/ gtk_window_get_focus(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gtk_window_get_focus(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| */ |
| public static final native long /*int*/ _gtk_window_get_group(long /*int*/ window); |
| public static final long /*int*/ gtk_window_get_group(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gtk_window_get_group(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GtkWindow *) */ |
| public static final native long /*int*/ _gtk_window_get_icon_list(long /*int*/ window); |
| public static final long /*int*/ gtk_window_get_icon_list(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gtk_window_get_icon_list(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GtkWindow *) */ |
| public static final native boolean _gtk_window_get_modal(long /*int*/ window); |
| public static final boolean gtk_window_get_modal(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gtk_window_get_modal(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GtkWindow *) */ |
| public static final native int _gtk_window_get_mnemonic_modifier(long /*int*/ window); |
| public static final int gtk_window_get_mnemonic_modifier(long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gtk_window_get_mnemonic_modifier(window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.8 deprecated] |
| * @param window cast=(GtkWindow *) |
| */ |
| public static final native double _gtk_window_get_opacity (long /*int*/ window); |
| public static final double gtk_window_get_opacity (long /*int*/ window) { |
| lock.lock(); |
| try { |
| return _gtk_window_get_opacity (window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param handle cast=(GtkWindow *) |
| * @param x cast=(gint *) |
| * @param y cast=(gint *) |
| */ |
| public static final native void _gtk_window_get_position(long /*int*/ handle, int[] x, int[] y); |
| public static final void gtk_window_get_position(long /*int*/ handle, int[] x, int[] y) { |
| lock.lock(); |
| try { |
| _gtk_window_get_position(handle, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param group cast=(GtkWindowGroup*) |
| * @param window cast=(GtkWindow*) |
| */ |
| public static final native void _gtk_window_group_add_window(long /*int*/ group, long /*int*/ window); |
| public static final void gtk_window_group_add_window(long /*int*/ group, long /*int*/ window) { |
| lock.lock(); |
| try { |
| _gtk_window_group_add_window(group, window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param group cast=(GtkWindowGroup*) |
| * @param window cast=(GtkWindow*) |
| */ |
| public static final native void _gtk_window_group_remove_window(long /*int*/ group, long /*int*/ window); |
| public static final void gtk_window_group_remove_window(long /*int*/ group, long /*int*/ window) { |
| lock.lock(); |
| try { |
| _gtk_window_group_remove_window(group, window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_window_group_new(); |
| public static final long /*int*/ gtk_window_group_new() { |
| lock.lock(); |
| try { |
| return _gtk_window_group_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param handle cast=(GtkWindow *) */ |
| public static final native boolean _gtk_window_is_active(long /*int*/ handle); |
| public static final boolean gtk_window_is_active(long /*int*/ handle) { |
| lock.lock(); |
| try { |
| return _gtk_window_is_active(handle); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param handle cast=(GtkWindow *) */ |
| public static final native void _gtk_window_iconify(long /*int*/ handle); |
| public static final void gtk_window_iconify(long /*int*/ handle) { |
| lock.lock(); |
| try { |
| _gtk_window_iconify(handle); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _gtk_window_list_toplevels (); |
| public static final long /*int*/ gtk_window_list_toplevels () { |
| lock.lock(); |
| try { |
| return _gtk_window_list_toplevels (); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param handle cast=(GtkWindow *) */ |
| public static final native void _gtk_window_maximize(long /*int*/ handle); |
| public static final void gtk_window_maximize(long /*int*/ handle) { |
| lock.lock(); |
| try { |
| _gtk_window_maximize(handle); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param handle cast=(GtkWindow *) */ |
| public static final native void _gtk_window_fullscreen(long /*int*/ handle); |
| public static final void gtk_window_fullscreen(long /*int*/ handle) { |
| lock.lock(); |
| try { |
| _gtk_window_fullscreen(handle); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param handle cast=(GtkWindow *) */ |
| public static final native void _gtk_window_unfullscreen(long /*int*/ handle); |
| public static final void gtk_window_unfullscreen(long /*int*/ handle) { |
| lock.lock(); |
| try { |
| _gtk_window_unfullscreen(handle); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param handle cast=(GtkWindow *) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| */ |
| public static final native void _gtk_window_move(long /*int*/ handle, int x, int y); |
| public static final void gtk_window_move(long /*int*/ handle, int x, int y) { |
| lock.lock(); |
| try { |
| _gtk_window_move(handle, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param type cast=(GtkWindowType) */ |
| public static final native long /*int*/ _gtk_window_new(int type); |
| public static final long /*int*/ gtk_window_new(int type) { |
| lock.lock(); |
| try { |
| return _gtk_window_new(type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param accel_group cast=(GtkAccelGroup *) |
| */ |
| public static final native void _gtk_window_remove_accel_group(long /*int*/ window, long /*int*/ accel_group); |
| public static final void gtk_window_remove_accel_group(long /*int*/ window, long /*int*/ accel_group) { |
| lock.lock(); |
| try { |
| _gtk_window_remove_accel_group(window, accel_group); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param handle cast=(GtkWindow *) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| */ |
| public static final native void _gtk_window_resize(long /*int*/ handle, int x, int y); |
| public static final void gtk_window_resize(long /*int*/ handle, int x, int y) { |
| lock.lock(); |
| try { |
| _gtk_window_resize(handle, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param handle cast=(GtkWindow *) |
| * @param width cast=(gint *) |
| * @param height cast=(gint *) |
| */ |
| public static final native void _gtk_window_get_size(long /*int*/ handle, int[] width, int[] height); |
| public static final void gtk_window_get_size(long /*int*/ handle, int[] width, int[] height) { |
| lock.lock(); |
| try { |
| _gtk_window_get_size(handle, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void _gtk_window_set_default(long /*int*/ window, long /*int*/ widget); |
| public static final void gtk_window_set_default(long /*int*/ window, long /*int*/ widget) { |
| lock.lock(); |
| try { |
| _gtk_window_set_default(window, widget); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param decorated cast=(gboolean) |
| */ |
| public static final native void _gtk_window_set_decorated(long /*int*/ window, boolean decorated); |
| public static final void gtk_window_set_decorated(long /*int*/ window, boolean decorated) { |
| lock.lock(); |
| try { |
| _gtk_window_set_decorated(window, decorated); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param setting cast=(gboolean) |
| */ |
| public static final native void _gtk_window_set_destroy_with_parent(long /*int*/ window, boolean setting); |
| public static final void gtk_window_set_destroy_with_parent(long /*int*/ window, boolean setting) { |
| lock.lock(); |
| try { |
| _gtk_window_set_destroy_with_parent(window, setting); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param geometry_widget cast=(GtkWidget *) |
| * @param geometry flags=no_out |
| */ |
| public static final native void _gtk_window_set_geometry_hints(long /*int*/ window, long /*int*/ geometry_widget, GdkGeometry geometry, int geom_mask); |
| public static final void gtk_window_set_geometry_hints(long /*int*/ window, long /*int*/ geometry_widget, GdkGeometry geometry, int geom_mask) { |
| lock.lock(); |
| try { |
| _gtk_window_set_geometry_hints(window, geometry_widget, geometry, geom_mask); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param list cast=(GList *) |
| */ |
| public static final native void _gtk_window_set_icon_list(long /*int*/ window, long /*int*/ list); |
| public static final void gtk_window_set_icon_list(long /*int*/ window, long /*int*/ list) { |
| lock.lock(); |
| try { |
| _gtk_window_set_icon_list(window, list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param modal cast=(gboolean) |
| */ |
| public static final native void _gtk_window_set_modal(long /*int*/ window, boolean modal); |
| public static final void gtk_window_set_modal(long /*int*/ window, boolean modal) { |
| lock.lock(); |
| try { |
| _gtk_window_set_modal(window, modal); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic [GTK2/GTK3; 3.8 deprecated] |
| * @param window cast=(GtkWindow *) |
| */ |
| public static final native void _gtk_window_set_opacity(long /*int*/ window, double opacity); |
| public static final void gtk_window_set_opacity(long /*int*/ window, double opacity) { |
| lock.lock(); |
| try { |
| _gtk_window_set_opacity(window, opacity); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param tip_text cast=(const gchar *) |
| */ |
| public static final native void _gtk_widget_set_tooltip_text(long /*int*/ widget, byte[] tip_text); |
| public static final void gtk_widget_set_tooltip_text(long /*int*/ widget, byte[] tip_text) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_tooltip_text(widget, tip_text); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param parent_window cast=(GdkWindow *) |
| */ |
| public static final native void _gtk_widget_set_parent_window(long /*int*/ widget, long /*int*/ parent_window); |
| public static final void gtk_widget_set_parent_window(long /*int*/ widget, long /*int*/ parent_window) { |
| lock.lock(); |
| try { |
| _gtk_widget_set_parent_window(widget, parent_window); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param resizable cast=(gboolean) |
| */ |
| public static final native void _gtk_window_set_resizable(long /*int*/ window, boolean resizable); |
| public static final void gtk_window_set_resizable(long /*int*/ window, boolean resizable) { |
| lock.lock(); |
| try { |
| _gtk_window_set_resizable(window, resizable); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param title cast=(const gchar *) |
| */ |
| public static final native void _gtk_window_set_title(long /*int*/ window, byte[] title); |
| public static final void gtk_window_set_title(long /*int*/ window, byte[] title) { |
| lock.lock(); |
| try { |
| _gtk_window_set_title(window, title); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param skips_taskbar cast=(gboolean) |
| */ |
| public static final native void _gtk_window_set_skip_taskbar_hint(long /*int*/ window, boolean skips_taskbar); |
| public static final void gtk_window_set_skip_taskbar_hint(long /*int*/ window, boolean skips_taskbar) { |
| lock.lock(); |
| try { |
| _gtk_window_set_skip_taskbar_hint(window, skips_taskbar); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param window cast=(GtkWindow *) */ |
| public static final native void _gtk_window_set_type_hint(long /*int*/ window, int hint); |
| public static final void gtk_window_set_type_hint(long /*int*/ window, int hint) { |
| lock.lock(); |
| try { |
| _gtk_window_set_type_hint(window, hint); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param parent cast=(GtkWindow *) |
| */ |
| public static final native void _gtk_window_set_transient_for(long /*int*/ window, long /*int*/ parent); |
| public static final void gtk_window_set_transient_for(long /*int*/ window, long /*int*/ parent) { |
| lock.lock(); |
| try { |
| _gtk_window_set_transient_for(window, parent); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param handle cast=(GtkWindow *) */ |
| public static final native void _gtk_window_unmaximize(long /*int*/ handle); |
| public static final void gtk_window_unmaximize(long /*int*/ handle) { |
| lock.lock(); |
| try { |
| _gtk_window_unmaximize(handle); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param dest cast=(void *) |
| * @param src cast=(const void *),flags=no_out |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(long /*int*/ dest, GInterfaceInfo src, int size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *),flags=no_out |
| */ |
| public static final native void memmove(long /*int*/ dest, GObjectClass src); |
| /** |
| * @param dest cast=(void *) |
| * @param src cast=(const void *),flags=no_out |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(long /*int*/ dest, GTypeInfo src, int size); |
| /** |
| * @param dest cast=(void *) |
| * @param src cast=(const void *),flags=no_out |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(long /*int*/ dest, GtkTargetEntry src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *) |
| * @param src cast=(const void *),flags=no_out |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(long /*int*/ dest, GdkColor src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *) |
| * @param src cast=(const void *),flags=no_out |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(long /*int*/ dest, GdkRGBA src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *) |
| * @param src cast=(const void *),flags=no_out |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(long /*int*/ dest, GdkEventButton src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *) |
| * @param src cast=(const void *),flags=no_out |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(long /*int*/ dest, GdkEventExpose src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *) |
| * @param src cast=(const void *),flags=no_out |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(long /*int*/ dest, GdkEventMotion src, long /*int*/ size); |
| /** @param src flags=no_out */ |
| public static final native void memmove(long /*int*/ dest, GtkWidgetClass src); |
| /** |
| * @param dest cast=(void *) |
| * @param src cast=(const void *),flags=no_out |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(long /*int*/ dest, PangoAttribute src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| */ |
| public static final native void memmove(GObjectClass dest, long /*int*/ src); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GTypeQuery dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| */ |
| public static final native void memmove(GdkEventProperty dest, long /*int*/ src); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkDragContext dest, long /*int*/ src, long /*int*/ size); |
| /** @param dest flags=no_in */ |
| public static final native void memmove(GtkWidgetClass dest, long /*int*/ src); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GtkBorder dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkColor dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkEvent dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkEventAny dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkEventButton dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkEventCrossing dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkEventExpose dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkEventFocus dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkEventKey dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkEventMotion dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkEventScroll dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkEventWindowState dest, long /*int*/ src, long /*int*/ size); |
| public static final native void memmove(long /*int*/ dest, GtkCellRendererClass src); |
| public static final native void memmove(GtkCellRendererClass dest, long /*int*/ src); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| */ |
| public static final native void memmove(GtkFixed dest, long /*int*/ src); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *),flags=no_out |
| */ |
| public static final native void memmove(long /*int*/ dest, GtkFixed src); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| */ |
| public static final native void memmove(GdkVisual dest, long /*int*/ src); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| */ |
| public static final native void memmove(GdkImage dest, long /*int*/ src); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(GdkRectangle dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(PangoAttribute dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(PangoAttrColor dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(PangoAttrInt dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(PangoItem dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(PangoLayoutLine dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(PangoLayoutRun dest, long /*int*/ src, long /*int*/ size); |
| /** |
| * @param dest cast=(void *),flags=no_in |
| * @param src cast=(const void *) |
| * @param size cast=(size_t) |
| */ |
| public static final native void memmove(PangoLogAttr dest, long /*int*/ src, long /*int*/ size); |
| /** @param attribute cast=(const PangoAttribute *) */ |
| public static final native long /*int*/ _pango_attribute_copy (long /*int*/ attribute); |
| public static final long /*int*/ pango_attribute_copy (long /*int*/ attribute) { |
| lock.lock(); |
| try { |
| return _pango_attribute_copy(attribute); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _pango_attr_background_new (short red, short green, short blue); |
| public static final long /*int*/ pango_attr_background_new (short red, short green, short blue) { |
| lock.lock(); |
| try { |
| return _pango_attr_background_new(red, green, blue); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param desc cast=(const PangoFontDescription *) */ |
| public static final native long /*int*/ _pango_attr_font_desc_new(long /*int*/ desc); |
| public static final long /*int*/ pango_attr_font_desc_new(long /*int*/ desc) { |
| lock.lock(); |
| try { |
| return _pango_attr_font_desc_new(desc); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _pango_attr_foreground_new (short red, short green, short blue); |
| public static final long /*int*/ pango_attr_foreground_new (short red, short green, short blue) { |
| lock.lock(); |
| try { |
| return _pango_attr_foreground_new(red, green, blue); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _pango_attr_rise_new(int rise); |
| public static final long /*int*/ pango_attr_rise_new(int rise) { |
| lock.lock(); |
| try { |
| return _pango_attr_rise_new(rise); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param ink_rect flags=no_out |
| * @param logical_rect flags=no_out |
| */ |
| public static final native long /*int*/ _pango_attr_shape_new(PangoRectangle ink_rect, PangoRectangle logical_rect); |
| public static final long /*int*/ pango_attr_shape_new(PangoRectangle ink_rect, PangoRectangle logical_rect) { |
| lock.lock(); |
| try { |
| return _pango_attr_shape_new(ink_rect, logical_rect); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param list cast=(PangoAttrList *) |
| * @param attr cast=(PangoAttribute *) |
| */ |
| public static final native void _pango_attr_list_insert(long /*int*/ list, long /*int*/ attr); |
| public static final void pango_attr_list_insert(long /*int*/ list, long /*int*/ attr) { |
| lock.lock(); |
| try { |
| _pango_attr_list_insert(list, attr); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param list cast=(PangoAttrList *) */ |
| public static final native long /*int*/ _pango_attr_list_get_iterator(long /*int*/ list); |
| public static final long /*int*/ pango_attr_list_get_iterator(long /*int*/ list) { |
| lock.lock(); |
| try { |
| return _pango_attr_list_get_iterator(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param iterator cast=(PangoAttrIterator *) */ |
| public static final native boolean _pango_attr_iterator_next(long /*int*/ iterator); |
| public static final boolean pango_attr_iterator_next(long /*int*/ iterator) { |
| lock.lock(); |
| try { |
| return _pango_attr_iterator_next(iterator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param iterator cast=(PangoAttrIterator *) |
| * @param start cast=(gint *) |
| * @param end cast=(gint *) |
| */ |
| public static final native void _pango_attr_iterator_range(long /*int*/ iterator, int[] start, int[] end); |
| public static final void pango_attr_iterator_range(long /*int*/ iterator, int[] start, int[] end) { |
| lock.lock(); |
| try { |
| _pango_attr_iterator_range(iterator, start, end); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param iterator cast=(PangoAttrIterator *) |
| * @param type cast=(PangoAttrType) |
| */ |
| public static final native long /*int*/ _pango_attr_iterator_get(long /*int*/ iterator, int type); |
| public static final long /*int*/ pango_attr_iterator_get(long /*int*/ iterator, int type) { |
| lock.lock(); |
| try { |
| return _pango_attr_iterator_get(iterator, type); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param iterator cast=(PangoAttrIterator *) */ |
| public static final native void _pango_attr_iterator_destroy(long /*int*/ iterator); |
| public static final void pango_attr_iterator_destroy(long /*int*/ iterator) { |
| lock.lock(); |
| try { |
| _pango_attr_iterator_destroy(iterator); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _pango_attr_list_new(); |
| public static final long /*int*/ pango_attr_list_new() { |
| lock.lock(); |
| try { |
| return _pango_attr_list_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param list cast=(PangoAttrList *) */ |
| public static final native void _pango_attr_list_unref(long /*int*/ list); |
| public static final void pango_attr_list_unref(long /*int*/ list) { |
| lock.lock(); |
| try { |
| _pango_attr_list_unref(list); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _pango_attr_strikethrough_color_new(short red, short green, short blue); |
| public static final long /*int*/ pango_attr_strikethrough_color_new(short red, short green, short blue) { |
| lock.lock(); |
| try { |
| return _pango_attr_strikethrough_color_new(red, green, blue); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _pango_attr_strikethrough_new(boolean strikethrough); |
| public static final long /*int*/ pango_attr_strikethrough_new(boolean strikethrough) { |
| lock.lock(); |
| try { |
| return _pango_attr_strikethrough_new(strikethrough); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _pango_attr_underline_color_new(short red, short green, short blue); |
| public static final long /*int*/ pango_attr_underline_color_new(short red, short green, short blue) { |
| lock.lock(); |
| try { |
| return _pango_attr_underline_color_new(red, green, blue); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _pango_attr_underline_new(int underline); |
| public static final long /*int*/ pango_attr_underline_new(int underline) { |
| lock.lock(); |
| try { |
| return _pango_attr_underline_new(underline); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _pango_attr_weight_new(int weight); |
| public static final long /*int*/ pango_attr_weight_new(int weight) { |
| lock.lock(); |
| try { |
| return _pango_attr_weight_new(weight); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param cairo cast=(cairo_t *) |
| */ |
| public static final native long /*int*/ _pango_cairo_create_layout(long /*int*/ cairo); |
| public static final long /*int*/ pango_cairo_create_layout(long /*int*/ cairo) { |
| lock.lock(); |
| try { |
| return _pango_cairo_create_layout(cairo); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(PangoContext *) |
| */ |
| public static final native long /*int*/ _pango_cairo_context_get_font_options(long /*int*/ context); |
| public static final long /*int*/ pango_cairo_context_get_font_options(long /*int*/ context) { |
| lock.lock(); |
| try { |
| return _pango_cairo_context_get_font_options(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(PangoContext *) |
| * @param options cast=( cairo_font_options_t *) |
| */ |
| public static final native void _pango_cairo_context_set_font_options(long /*int*/ context, long /*int*/ options); |
| public static final void pango_cairo_context_set_font_options(long /*int*/ context, long /*int*/ options) { |
| lock.lock(); |
| try { |
| _pango_cairo_context_set_font_options(context, options); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param cairo cast=(cairo_t *) |
| * @param layout cast=(PangoLayout *) |
| */ |
| public static final native void _pango_cairo_layout_path(long /*int*/ cairo, long /*int*/ layout); |
| public static final void pango_cairo_layout_path(long /*int*/ cairo, long /*int*/ layout) { |
| lock.lock(); |
| try { |
| _pango_cairo_layout_path(cairo, layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param cairo cast=(cairo_t *) |
| * @param layout cast=(PangoLayout *) |
| */ |
| public static final native void _pango_cairo_show_layout(long /*int*/ cairo, long /*int*/ layout); |
| public static final void pango_cairo_show_layout(long /*int*/ cairo, long /*int*/ layout) { |
| lock.lock(); |
| try { |
| _pango_cairo_show_layout(cairo, layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param context cast=(PangoContext *) */ |
| public static final native int _pango_context_get_base_dir(long /*int*/ context); |
| public static final int pango_context_get_base_dir(long /*int*/ context) { |
| lock.lock(); |
| try { |
| return _pango_context_get_base_dir(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param context cast=(PangoContext *) */ |
| public static final native long /*int*/ _pango_context_get_language(long /*int*/ context); |
| public static final long /*int*/ pango_context_get_language(long /*int*/ context) { |
| lock.lock(); |
| try { |
| return _pango_context_get_language(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(PangoContext *) |
| * @param desc cast=(const PangoFontDescription *) |
| * @param language cast=(PangoLanguage *) |
| */ |
| public static final native long /*int*/ _pango_context_get_metrics(long /*int*/ context, long /*int*/ desc, long /*int*/ language); |
| public static final long /*int*/ pango_context_get_metrics(long /*int*/ context, long /*int*/ desc, long /*int*/ language) { |
| lock.lock(); |
| try { |
| return _pango_context_get_metrics(context, desc, language); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(PangoContext *) |
| * @param families cast=(PangoFontFamily ***) |
| * @param n_families cast=(int *) |
| */ |
| public static final native void _pango_context_list_families(long /*int*/ context, long /*int*/[] families, int[] n_families); |
| public static final void pango_context_list_families(long /*int*/ context, long /*int*/[] families, int[] n_families) { |
| lock.lock(); |
| try { |
| _pango_context_list_families(context, families, n_families); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param context cast=(PangoContext *) */ |
| public static final native void _pango_context_set_base_dir(long /*int*/ context, int direction); |
| public static final void pango_context_set_base_dir(long /*int*/ context, int direction) { |
| lock.lock(); |
| try { |
| _pango_context_set_base_dir(context, direction); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(PangoContext *) |
| * @param language cast=(PangoLanguage *) |
| */ |
| public static final native void _pango_context_set_language(long /*int*/ context, long /*int*/ language); |
| public static final void pango_context_set_language(long /*int*/ context, long /*int*/ language) { |
| lock.lock(); |
| try { |
| _pango_context_set_language(context, language); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param desc cast=(PangoFontDescription *) */ |
| public static final native long /*int*/ _pango_font_description_copy(long /*int*/ desc); |
| public static final long /*int*/ pango_font_description_copy(long /*int*/ desc) { |
| lock.lock(); |
| try { |
| return _pango_font_description_copy(desc); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param desc cast=(PangoFontDescription *) */ |
| public static final native void _pango_font_description_free(long /*int*/ desc); |
| public static final void pango_font_description_free(long /*int*/ desc) { |
| lock.lock(); |
| try { |
| _pango_font_description_free(desc); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param str cast=(const char *),flags=no_out critical */ |
| public static final native long /*int*/ _pango_font_description_from_string(byte[] str); |
| public static final long /*int*/ pango_font_description_from_string(byte[] str) { |
| lock.lock(); |
| try { |
| return _pango_font_description_from_string(str); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param desc cast=(PangoFontDescription *) */ |
| public static final native long /*int*/ _pango_font_description_get_family(long /*int*/ desc); |
| public static final long /*int*/ pango_font_description_get_family(long /*int*/ desc) { |
| lock.lock(); |
| try { |
| return _pango_font_description_get_family(desc); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param desc cast=(PangoFontDescription *) */ |
| public static final native int _pango_font_description_get_size(long /*int*/ desc); |
| public static final int pango_font_description_get_size(long /*int*/ desc) { |
| lock.lock(); |
| try { |
| return _pango_font_description_get_size(desc); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param desc cast=(PangoFontDescription *) */ |
| public static final native int _pango_font_description_get_stretch(long /*int*/ desc); |
| public static final int pango_font_description_get_stretch(long /*int*/ desc) { |
| lock.lock(); |
| try { |
| return _pango_font_description_get_stretch(desc); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param desc cast=(PangoFontDescription *) */ |
| public static final native int _pango_font_description_get_variant(long /*int*/ desc); |
| public static final int pango_font_description_get_variant(long /*int*/ desc) { |
| lock.lock(); |
| try { |
| return _pango_font_description_get_variant(desc); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param desc cast=(PangoFontDescription *) */ |
| public static final native int _pango_font_description_get_style(long /*int*/ desc); |
| public static final int pango_font_description_get_style(long /*int*/ desc) { |
| lock.lock(); |
| try { |
| return _pango_font_description_get_style(desc); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param desc cast=(PangoFontDescription *) */ |
| public static final native int _pango_font_description_get_weight(long /*int*/ desc); |
| public static final int pango_font_description_get_weight(long /*int*/ desc) { |
| lock.lock(); |
| try { |
| return _pango_font_description_get_weight(desc); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| public static final native long /*int*/ _pango_font_description_new(); |
| public static final long /*int*/ pango_font_description_new() { |
| lock.lock(); |
| try { |
| return _pango_font_description_new(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param desc cast=(PangoFontDescription *) |
| * @param family cast=(const char *),flags=no_out critical |
| */ |
| public static final native void _pango_font_description_set_family(long /*int*/ desc, byte[] family); |
| public static final void pango_font_description_set_family(long /*int*/ desc, byte[] family) { |
| lock.lock(); |
| try { |
| _pango_font_description_set_family(desc, family); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param desc cast=(PangoFontDescription *) |
| * @param size cast=(gint) |
| */ |
| public static final native void _pango_font_description_set_size(long /*int*/ desc, int size); |
| public static final void pango_font_description_set_size(long /*int*/ desc, int size) { |
| lock.lock(); |
| try { |
| _pango_font_description_set_size(desc, size); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param desc cast=(PangoFontDescription *) |
| * @param stretch cast=(PangoStretch) |
| */ |
| public static final native void _pango_font_description_set_stretch(long /*int*/ desc, int stretch); |
| public static final void pango_font_description_set_stretch(long /*int*/ desc, int stretch) { |
| lock.lock(); |
| try { |
| _pango_font_description_set_stretch(desc, stretch); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param desc cast=(PangoFontDescription *) |
| * @param weight cast=(PangoStyle) |
| */ |
| public static final native void _pango_font_description_set_style(long /*int*/ desc, int weight); |
| public static final void pango_font_description_set_style(long /*int*/ desc, int weight) { |
| lock.lock(); |
| try { |
| _pango_font_description_set_style(desc, weight); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param desc cast=(PangoFontDescription *) |
| * @param weight cast=(PangoWeight) |
| */ |
| public static final native void _pango_font_description_set_weight(long /*int*/ desc, int weight); |
| public static final void pango_font_description_set_weight(long /*int*/ desc, int weight) { |
| lock.lock(); |
| try { |
| _pango_font_description_set_weight(desc, weight); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param desc cast=(PangoFontDescription *) |
| * @param variant cast=(PangoVariant) |
| */ |
| public static final native void _pango_font_description_set_variant(long /*int*/ desc, int variant); |
| public static final void pango_font_description_set_variant(long /*int*/ desc, int variant) { |
| lock.lock(); |
| try { |
| _pango_font_description_set_variant(desc, variant); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param desc cast=(PangoFontDescription *) */ |
| public static final native long /*int*/ _pango_font_description_to_string(long /*int*/ desc); |
| public static final long /*int*/ pango_font_description_to_string(long /*int*/ desc) { |
| lock.lock(); |
| try { |
| return _pango_font_description_to_string(desc); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param face cast=(PangoFontFace *) */ |
| public static final native long /*int*/ _pango_font_face_describe(long /*int*/ face); |
| public static final long /*int*/ pango_font_face_describe(long /*int*/ face) { |
| lock.lock(); |
| try { |
| return _pango_font_face_describe(face); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param family cast=(PangoFontFamily *) */ |
| public static final native long /*int*/ _pango_font_family_get_name(long /*int*/ family); |
| public static final long /*int*/ pango_font_family_get_name(long /*int*/ family) { |
| lock.lock(); |
| try { |
| return _pango_font_family_get_name(family); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param family cast=(PangoFontFamily *) |
| * @param faces cast=(PangoFontFace ***) |
| * @param n_faces cast=(int *) |
| */ |
| public static final native void _pango_font_family_list_faces(long /*int*/ family, long /*int*/[] faces, int[] n_faces); |
| public static final void pango_font_family_list_faces(long /*int*/ family, long /*int*/[] faces, int[] n_faces) { |
| lock.lock(); |
| try { |
| _pango_font_family_list_faces(family, faces, n_faces); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param font cast=(PangoFont *) |
| * @param language cast=(PangoLanguage *) |
| */ |
| public static final native long /*int*/ _pango_font_get_metrics(long /*int*/ font, long /*int*/ language); |
| public static final long /*int*/ pango_font_get_metrics(long /*int*/ font, long /*int*/ language) { |
| lock.lock(); |
| try { |
| return _pango_font_get_metrics(font, language); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param metrics cast=(PangoFontMetrics *) */ |
| public static final native int _pango_font_metrics_get_approximate_char_width(long /*int*/ metrics); |
| public static final int pango_font_metrics_get_approximate_char_width(long /*int*/ metrics) { |
| lock.lock(); |
| try { |
| return _pango_font_metrics_get_approximate_char_width(metrics); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param metrics cast=(PangoFontMetrics *) */ |
| public static final native int _pango_font_metrics_get_ascent(long /*int*/ metrics); |
| public static final int pango_font_metrics_get_ascent(long /*int*/ metrics) { |
| lock.lock(); |
| try { |
| return _pango_font_metrics_get_ascent(metrics); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param metrics cast=(PangoFontMetrics *) */ |
| public static final native int _pango_font_metrics_get_descent(long /*int*/ metrics); |
| public static final int pango_font_metrics_get_descent(long /*int*/ metrics) { |
| lock.lock(); |
| try { |
| return _pango_font_metrics_get_descent(metrics); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param metrics cast=(PangoFontMetrics *) */ |
| public static final native void _pango_font_metrics_unref(long /*int*/ metrics); |
| public static final void pango_font_metrics_unref(long /*int*/ metrics) { |
| lock.lock(); |
| try { |
| _pango_font_metrics_unref(metrics); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout *) */ |
| public static final native void _pango_layout_context_changed(long /*int*/ layout); |
| public static final void pango_layout_context_changed(long /*int*/ layout) { |
| lock.lock(); |
| try { |
| _pango_layout_context_changed(layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout*) */ |
| public static final native int _pango_layout_get_alignment(long /*int*/ layout); |
| public static final int pango_layout_get_alignment(long /*int*/ layout) { |
| lock.lock(); |
| try { |
| return _pango_layout_get_alignment(layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout *) */ |
| public static final native long /*int*/ _pango_layout_get_context(long /*int*/ layout); |
| public static final long /*int*/ pango_layout_get_context(long /*int*/ layout) { |
| lock.lock(); |
| try { |
| return _pango_layout_get_context(layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout*) */ |
| public static final native int _pango_layout_get_indent(long /*int*/ layout); |
| public static final int pango_layout_get_indent(long /*int*/ layout) { |
| lock.lock(); |
| try { |
| return _pango_layout_get_indent(layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout*) */ |
| public static final native long /*int*/ _pango_layout_get_iter(long /*int*/ layout); |
| public static final long /*int*/ pango_layout_get_iter(long /*int*/ layout) { |
| lock.lock(); |
| try { |
| return _pango_layout_get_iter(layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout*) */ |
| public static final native boolean _pango_layout_get_justify(long /*int*/ layout); |
| public static final boolean pango_layout_get_justify(long /*int*/ layout) { |
| lock.lock(); |
| try { |
| return _pango_layout_get_justify(layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout *) */ |
| public static final native long /*int*/ _pango_layout_get_line(long /*int*/ layout, int line); |
| public static final long /*int*/ pango_layout_get_line(long /*int*/ layout, int line) { |
| lock.lock(); |
| try { |
| return _pango_layout_get_line(layout, line); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout*) */ |
| public static final native int _pango_layout_get_line_count(long /*int*/ layout); |
| public static final int pango_layout_get_line_count(long /*int*/ layout) { |
| lock.lock(); |
| try { |
| return _pango_layout_get_line_count(layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param layout cast=(PangoLayout*) |
| * @param attrs cast=(PangoLogAttr **) |
| * @param n_attrs cast=(int *) |
| */ |
| public static final native void _pango_layout_get_log_attrs(long /*int*/ layout, long /*int*/[] attrs, int[] n_attrs); |
| public static final void pango_layout_get_log_attrs(long /*int*/ layout, long /*int*/[] attrs, int[] n_attrs) { |
| lock.lock(); |
| try { |
| _pango_layout_get_log_attrs(layout, attrs, n_attrs); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param layout cast=(PangoLayout *) |
| * @param width cast=(int *) |
| * @param height cast=(int *) |
| */ |
| public static final native void _pango_layout_get_size(long /*int*/ layout, int[] width, int[] height); |
| public static final void pango_layout_get_size(long /*int*/ layout, int[] width, int[] height) { |
| lock.lock(); |
| try { |
| _pango_layout_get_size(layout, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param layout cast=(PangoLayout *) |
| * @param width cast=(int *) |
| * @param height cast=(int *) |
| */ |
| public static final native void _pango_layout_get_pixel_size(long /*int*/ layout, int[] width, int[] height); |
| public static final void pango_layout_get_pixel_size(long /*int*/ layout, int[] width, int[] height) { |
| lock.lock(); |
| try { |
| _pango_layout_get_pixel_size(layout, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout*) */ |
| public static final native int _pango_layout_get_spacing(long /*int*/ layout); |
| public static final int pango_layout_get_spacing(long /*int*/ layout) { |
| lock.lock(); |
| try { |
| return _pango_layout_get_spacing(layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout *) */ |
| public static final native long /*int*/ _pango_layout_get_text(long /*int*/ layout); |
| public static final long /*int*/ pango_layout_get_text(long /*int*/ layout) { |
| lock.lock(); |
| try { |
| return _pango_layout_get_text(layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout *) */ |
| public static final native int _pango_layout_get_width(long /*int*/ layout); |
| public static final int pango_layout_get_width(long /*int*/ layout) { |
| lock.lock(); |
| try { |
| return _pango_layout_get_width(layout); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param layout cast=(PangoLayout*) |
| * @param pos flags=no_in |
| */ |
| public static final native void _pango_layout_index_to_pos(long /*int*/ layout, int index, PangoRectangle pos); |
| public static final void pango_layout_index_to_pos(long /*int*/ layout, int index, PangoRectangle pos) { |
| lock.lock(); |
| try { |
| _pango_layout_index_to_pos(layout, index, pos); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param iter cast=(PangoLayoutIter*) */ |
| public static final native void _pango_layout_iter_free(long /*int*/ iter); |
| public static final void pango_layout_iter_free(long /*int*/ iter) { |
| lock.lock(); |
| try { |
| _pango_layout_iter_free(iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param iter cast=(PangoLayoutIter*) |
| * @param ink_rect flags=no_in |
| * @param logical_rect flags=no_in |
| */ |
| public static final native void _pango_layout_iter_get_line_extents(long /*int*/ iter, PangoRectangle ink_rect, PangoRectangle logical_rect); |
| public static final void pango_layout_iter_get_line_extents(long /*int*/ iter, PangoRectangle ink_rect, PangoRectangle logical_rect) { |
| lock.lock(); |
| try { |
| _pango_layout_iter_get_line_extents(iter, ink_rect, logical_rect); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param iter cast=(PangoLayoutIter*) */ |
| public static final native int _pango_layout_iter_get_index(long /*int*/ iter); |
| public static final int pango_layout_iter_get_index(long /*int*/ iter) { |
| lock.lock(); |
| try { |
| return _pango_layout_iter_get_index(iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param iter cast=(PangoLayoutIter*) */ |
| public static final native long /*int*/ _pango_layout_iter_get_run(long /*int*/ iter); |
| public static final long /*int*/ pango_layout_iter_get_run(long /*int*/ iter) { |
| lock.lock(); |
| try { |
| return _pango_layout_iter_get_run(iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param iter cast=(PangoLayoutIter*) */ |
| public static final native boolean _pango_layout_iter_next_line(long /*int*/ iter); |
| public static final boolean pango_layout_iter_next_line(long /*int*/ iter) { |
| lock.lock(); |
| try { |
| return _pango_layout_iter_next_line(iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param iter cast=(PangoLayoutIter*) */ |
| public static final native boolean _pango_layout_iter_next_run(long /*int*/ iter); |
| public static final boolean pango_layout_iter_next_run(long /*int*/ iter) { |
| lock.lock(); |
| try { |
| return _pango_layout_iter_next_run(iter); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param line cast=(PangoLayoutLine*) |
| * @param ink_rect cast=(PangoRectangle *),flags=no_in |
| * @param logical_rect cast=(PangoRectangle *),flags=no_in |
| */ |
| public static final native void _pango_layout_line_get_extents(long /*int*/ line, PangoRectangle ink_rect, PangoRectangle logical_rect); |
| public static final void pango_layout_line_get_extents(long /*int*/ line, PangoRectangle ink_rect, PangoRectangle logical_rect) { |
| lock.lock(); |
| try { |
| _pango_layout_line_get_extents(line, ink_rect, logical_rect); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param context cast=(PangoContext *) */ |
| public static final native long /*int*/ _pango_layout_new(long /*int*/ context); |
| public static final long /*int*/ pango_layout_new(long /*int*/ context) { |
| lock.lock(); |
| try { |
| return _pango_layout_new(context); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout *) */ |
| public static final native void _pango_layout_set_alignment (long /*int*/ layout, int alignment); |
| public static final void pango_layout_set_alignment (long /*int*/ layout, int alignment) { |
| lock.lock(); |
| try { |
| _pango_layout_set_alignment(layout, alignment); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param layout cast=(PangoLayout *) |
| * @param attrs cast=(PangoAttrList *) |
| */ |
| public static final native void _pango_layout_set_attributes(long /*int*/ layout, long /*int*/ attrs); |
| public static final void pango_layout_set_attributes(long /*int*/ layout, long /*int*/ attrs) { |
| lock.lock(); |
| try { |
| _pango_layout_set_attributes(layout, attrs); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param layout cast=(PangoLayout *) |
| */ |
| public static final native void _pango_layout_set_auto_dir(long /*int*/ layout, boolean auto_dir); |
| public static final void pango_layout_set_auto_dir(long /*int*/ layout, boolean auto_dir) { |
| lock.lock(); |
| try { |
| _pango_layout_set_auto_dir(layout, auto_dir); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(PangoLayout *) |
| * @param descr cast=(PangoFontDescription *) |
| */ |
| public static final native void _pango_layout_set_font_description(long /*int*/ context, long /*int*/ descr); |
| public static final void pango_layout_set_font_description(long /*int*/ context, long /*int*/ descr) { |
| lock.lock(); |
| try { |
| _pango_layout_set_font_description(context, descr); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout*) */ |
| public static final native void _pango_layout_set_indent(long /*int*/ layout, int indent); |
| public static final void pango_layout_set_indent(long /*int*/ layout, int indent) { |
| lock.lock(); |
| try { |
| _pango_layout_set_indent(layout, indent); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout*) */ |
| public static final native void _pango_layout_set_justify(long /*int*/ layout, boolean justify); |
| public static final void pango_layout_set_justify(long /*int*/ layout, boolean justify) { |
| lock.lock(); |
| try { |
| _pango_layout_set_justify(layout, justify); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param context cast=(PangoLayout *) |
| * @param setting cast=(gboolean) |
| */ |
| public static final native void _pango_layout_set_single_paragraph_mode(long /*int*/ context, boolean setting); |
| public static final void pango_layout_set_single_paragraph_mode(long /*int*/ context, boolean setting) { |
| lock.lock(); |
| try { |
| _pango_layout_set_single_paragraph_mode(context, setting); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout *) */ |
| public static final native void _pango_layout_set_spacing(long /*int*/ layout, int spacing); |
| public static final void pango_layout_set_spacing(long /*int*/ layout, int spacing) { |
| lock.lock(); |
| try { |
| _pango_layout_set_spacing(layout, spacing); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param layout cast=(PangoLayout *) |
| * @param tabs cast=(PangoTabArray *) |
| */ |
| public static final native void _pango_layout_set_tabs(long /*int*/ layout, long /*int*/ tabs); |
| public static final void pango_layout_set_tabs(long /*int*/ layout, long /*int*/ tabs) { |
| lock.lock(); |
| try { |
| _pango_layout_set_tabs(layout, tabs); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param layout cast=(PangoLayout *) |
| * @param text cast=(const char *),flags=no_out critical |
| * @param length cast=(int) |
| */ |
| public static final native void _pango_layout_set_text(long /*int*/ layout, byte[] text, int length); |
| public static final void pango_layout_set_text(long /*int*/ layout, byte[] text, int length) { |
| lock.lock(); |
| try { |
| _pango_layout_set_text(layout, text, length); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout *) */ |
| public static final native void _pango_layout_set_width(long /*int*/ layout, int width); |
| public static final void pango_layout_set_width(long /*int*/ layout, int width) { |
| lock.lock(); |
| try { |
| _pango_layout_set_width(layout, width); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param layout cast=(PangoLayout *) */ |
| public static final native void _pango_layout_set_wrap (long /*int*/ layout, int wrap); |
| public static final void pango_layout_set_wrap (long /*int*/ layout, int wrap) { |
| lock.lock(); |
| try { |
| _pango_layout_set_wrap(layout, wrap); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param layout cast=(PangoLayout *) |
| * @param index cast=(int *) |
| * @param trailing cast=(int *) |
| */ |
| public static final native boolean _pango_layout_xy_to_index(long /*int*/ layout, int x, int y, int[] index, int[] trailing); |
| public static final boolean pango_layout_xy_to_index(long /*int*/ layout, int x, int y, int[] index, int[] trailing) { |
| lock.lock(); |
| try { |
| return _pango_layout_xy_to_index(layout, x, y, index, trailing); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** @param tab_array cast=(PangoTabArray *) */ |
| public static final native void _pango_tab_array_free(long /*int*/ tab_array); |
| public static final void pango_tab_array_free(long /*int*/ tab_array) { |
| lock.lock(); |
| try { |
| _pango_tab_array_free(tab_array); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param initial_size cast=(gint) |
| * @param positions_in_pixels cast=(gboolean) |
| */ |
| public static final native long /*int*/ _pango_tab_array_new(int initial_size, boolean positions_in_pixels); |
| public static final long /*int*/ pango_tab_array_new(int initial_size, boolean positions_in_pixels) { |
| lock.lock(); |
| try { |
| return _pango_tab_array_new(initial_size, positions_in_pixels); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param tab_array cast=(PangoTabArray *) |
| * @param tab_index cast=(gint) |
| * @param alignment cast=(PangoTabAlign) |
| * @param location cast=(gint) |
| */ |
| public static final native void _pango_tab_array_set_tab(long /*int*/ tab_array, int tab_index, long /*int*/ alignment, int location); |
| public static final void pango_tab_array_set_tab(long /*int*/ tab_array, int tab_index, long /*int*/ alignment, int location) { |
| lock.lock(); |
| try { |
| _pango_tab_array_set_tab(tab_array, tab_index, alignment, location); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native long /*int*/_ubuntu_menu_proxy_get(); |
| public static final long /*int*/ ubuntu_menu_proxy_get() { |
| lock.lock(); |
| try { |
| return _ubuntu_menu_proxy_get(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param object cast=(AtkObject *) |
| * @param relationship cast=(AtkRelationType) |
| * @param target cast=(AtkObject *) |
| */ |
| public static final native boolean _atk_object_add_relationship (long /*int*/ object, int relationship, long /*int*/ target); |
| public static final boolean atk_object_add_relationship (long /*int*/ object, int relationship, long /*int*/ target) { |
| lock.lock(); |
| try { |
| return _atk_object_add_relationship(object, relationship, target); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @method flags=dynamic |
| * @param object cast=(AtkObject *) |
| * @param relationship cast=(AtkRelationType) |
| * @param target cast=(AtkObject *) |
| */ |
| public static final native boolean _atk_object_remove_relationship (long /*int*/ object, int relationship, long /*int*/ target); |
| public static final boolean atk_object_remove_relationship (long /*int*/ object, int relationship, long /*int*/ target) { |
| lock.lock(); |
| try { |
| return _atk_object_remove_relationship(object, relationship, target); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param path cast=(const char*) |
| */ |
| public static final native int _access (byte [] path, int amode); |
| public static final int access (byte [] path, int amode) { |
| lock.lock(); |
| try { |
| return _access(path, amode); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param s1 cast=(const char*) |
| * @param s2 cast=(const char*) |
| */ |
| public static final native int strcmp (long /*int*/ s1, byte [] s2); |
| |
| |
| //Add ability to debug gtk warnings for SWT snippets via SWT_FATAL_WARNINGS=1 |
| // env variable. Please see Eclipse bug 471477 |
| // NOTE: this is a custom function in os_custom.h/c. |
| public static final native void _swt_debug_on_fatal_warnings(); |
| public static final void swt_debug_on_fatal_warnings() { |
| lock.lock(); |
| try { |
| _swt_debug_on_fatal_warnings (); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| public static final native long /*int*/ _swt_fixed_get_type(); |
| public static final long /*int*/ swt_fixed_get_type() { |
| lock.lock(); |
| try { |
| return _swt_fixed_get_type(); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param fixed cast=(SwtFixed*) |
| * @param widget cast=(GtkWidget*) |
| * @param sibling cast=(GtkWidget*) |
| */ |
| public static final native void _swt_fixed_restack(long /*int*/ fixed, long /*int*/ widget, long /*int*/ sibling, boolean above); |
| public static final void swt_fixed_restack(long /*int*/ fixed, long /*int*/ widget, long /*int*/ sibling, boolean above) { |
| lock.lock(); |
| try { |
| _swt_fixed_restack(fixed, widget, sibling, above); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param fixed cast=(SwtFixed*) |
| * @param widget cast=(GtkWidget*) |
| */ |
| public static final native void _swt_fixed_move(long /*int*/ fixed, long /*int*/ widget, int x, int y); |
| public static final void swt_fixed_move(long /*int*/ fixed, long /*int*/ widget, int x, int y) { |
| lock.lock(); |
| try { |
| _swt_fixed_move(fixed, widget, x, y); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| /** |
| * @param fixed cast=(SwtFixed*) |
| * @param widget cast=(GtkWidget*) |
| */ |
| public static final native void _swt_fixed_resize(long /*int*/ fixed, long /*int*/ widget, int width, int height); |
| public static final void swt_fixed_resize(long /*int*/ fixed, long /*int*/ widget, int width, int height) { |
| lock.lock(); |
| try { |
| _swt_fixed_resize(fixed, widget, width, height); |
| } finally { |
| lock.unlock(); |
| } |
| } |
| |
| public static final String getThemeName() { |
| byte[] themeNameBytes = getThemeNameBytes(); |
| String themeName = "unknown"; |
| if (themeNameBytes != null && themeNameBytes.length > 0) { |
| themeName = new String (Converter.mbcsToWcs (themeNameBytes)); |
| } |
| return themeName; |
| } |
| |
| public static final byte [] getThemeNameBytes() { |
| byte [] buffer = null; |
| int length; |
| long /*int*/ settings = OS.gtk_settings_get_default (); |
| long /*int*/ [] ptr = new long /*int*/ [1]; |
| OS.g_object_get (settings, OS.gtk_theme_name, ptr, 0); |
| if (ptr [0] == 0) { |
| return buffer; |
| } |
| length = OS.strlen (ptr [0]); |
| if (length == 0) { |
| return buffer; |
| } |
| buffer = new byte [length]; |
| OS.memmove (buffer, ptr [0], length); |
| OS.g_free (ptr [0]); |
| return buffer; |
| } |
| |
| /** |
| * Hint GTK 3 to natively prefer a dark or light theme. |
| * <p> |
| * Note: This method gets called from the org.eclipse.e4.ui.swt.gtk fragment. |
| * </p> |
| * |
| * @since 3.104 |
| */ |
| public static final void setDarkThemePreferred(boolean preferred){ |
| if (!GTK3) return; //only applicable to GTK3 |
| gdk_flush(); |
| g_object_set(gtk_settings_get_default(), gtk_application_prefer_dark_theme, |
| preferred, 0); |
| g_object_notify(gtk_settings_get_default(), |
| gtk_application_prefer_dark_theme); |
| } |
| } |