0001: /*******************************************************************************
0002: * Copyright (c) 2000, 2003 IBM Corporation and others. All rights reserved.
0003: * The contents of this file are made available under the terms
0004: * of the GNU Lesser General Public License (LGPL) Version 2.1 that
0005: * accompanies this distribution (lgpl-v21.txt). The LGPL is also
0006: * available at http://www.gnu.org/licenses/lgpl.html. If the version
0007: * of the LGPL at http://www.gnu.org is different to the version of
0008: * the LGPL accompanying this distribution and there is any conflict
0009: * between the two license versions, the terms of the LGPL accompanying
0010: * this distribution shall govern.
0011: *******************************************************************************/package org.eclipse.swt.internal.gtk;
0012:
0013: import org.eclipse.swt.internal.Library;
0014:
0015: public class OS {
0016: static {
0017: Library.loadLibrary("swt-pi");
0018: }
0019:
0020: /** Constants */
0021: public static final int G_SIGNAL_MATCH_DATA = 1 << 4;
0022: public static final int G_SIGNAL_MATCH_ID = 1 << 0;
0023: public static final int GDK_2BUTTON_PRESS = 0x5;
0024: public static final int GDK_3BUTTON_PRESS = 0x6;
0025: public static final int GDK_ACTION_COPY = 1 << 1;
0026: public static final int GDK_ACTION_MOVE = 1 << 2;
0027: public static final int GDK_ACTION_LINK = 1 << 3;
0028: public static final int GDK_Alt_L = 0xffe9;
0029: public static final int GDK_Alt_R = 0xffea;
0030: public static final int GDK_AND = 4;
0031: public static final int GDK_BackSpace = 0xff08;
0032: public static final int GDK_BOTTOM_LEFT_CORNER = 0xc;
0033: public static final int GDK_BOTTOM_RIGHT_CORNER = 0xe;
0034: public static final int GDK_BOTTOM_SIDE = 0x10;
0035: public static final int GDK_BUTTON1_MASK = 0x100;
0036: public static final int GDK_BUTTON2_MASK = 0x200;
0037: public static final int GDK_BUTTON3_MASK = 0x400;
0038: public static final int GDK_BUTTON_PRESS = 0x4;
0039: public static final int GDK_BUTTON_PRESS_MASK = 0x100;
0040: public static final int GDK_BUTTON_RELEASE = 0x7;
0041: public static final int GDK_BUTTON_RELEASE_MASK = 0x200;
0042: public static final int GDK_CAP_BUTT = 0x1;
0043: public static final int GDK_COLORSPACE_RGB = 0;
0044: public static final int GDK_CONTROL_MASK = 0x4;
0045: public static final int GDK_COPY = 0x0;
0046: public static final int GDK_CROSS = 0x1e;
0047: public static final int GDK_CROSSING_NORMAL = 0;
0048: public static final int GDK_Break = 0xff6b;
0049: public static final int GDK_Cancel = 0xff69;
0050: public static final int GDK_Caps_Lock = 0xffE5;
0051: public static final int GDK_Clear = 0xff0B;
0052: public static final int GDK_Control_L = 0xffe3;
0053: public static final int GDK_Control_R = 0xffe4;
0054: public static final int GDK_CURRENT_TIME = 0x0;
0055: public static final int GDK_DECOR_BORDER = 0x2;
0056: public static final int GDK_DECOR_MAXIMIZE = 0x40;
0057: public static final int GDK_DECOR_MENU = 0x10;
0058: public static final int GDK_DECOR_MINIMIZE = 0x20;
0059: public static final int GDK_DECOR_RESIZEH = 0x4;
0060: public static final int GDK_DECOR_TITLE = 0x8;
0061: public static final int GDK_DIAMOND_CROSS = 0x24;
0062: public static final int GDK_DOUBLE_ARROW = 0x2a;
0063: public static final int GDK_Delete = 0xffff;
0064: public static final int GDK_Down = 0xff54;
0065: public static final int GDK_ENTER_NOTIFY_MASK = 0x1000;
0066: public static final int GDK_EVEN_ODD_RULE = 0;
0067: public static final int GDK_EXPOSURE_MASK = 0x2;
0068: public static final int GDK_End = 0xff57;
0069: public static final int GDK_Escape = 0xff1b;
0070: public static final int GDK_F1 = 0xffbe;
0071: public static final int GDK_F10 = 0xffc7;
0072: public static final int GDK_F11 = 0xffc8;
0073: public static final int GDK_F12 = 0xffc9;
0074: public static final int GDK_F13 = 0xffca;
0075: public static final int GDK_F14 = 0xffcb;
0076: public static final int GDK_F15 = 0xffcc;
0077: public static final int GDK_F2 = 0xffbf;
0078: public static final int GDK_F3 = 0xffc0;
0079: public static final int GDK_F4 = 0xffc1;
0080: public static final int GDK_F5 = 0xffc2;
0081: public static final int GDK_F6 = 0xffc3;
0082: public static final int GDK_F7 = 0xffc4;
0083: public static final int GDK_F8 = 0xffc5;
0084: public static final int GDK_F9 = 0xffc6;
0085: public static final int GDK_FOCUS_CHANGE = 0xc;
0086: public static final int GDK_FOCUS_CHANGE_MASK = 0x4000;
0087: public static final int GDK_GC_CLIP_MASK = 0x80;
0088: public static final int GDK_GC_CLIP_X_ORIGIN = 0x800;
0089: public static final int GDK_GC_CLIP_Y_ORIGIN = 0x1000;
0090: public static final int GDK_GRAB_SUCCESS = 0x0;
0091: public static final int GDK_HAND1 = 0x3a;
0092: public static final int GDK_Help = 0xFF6A;
0093: public static final int GDK_Home = 0xff50;
0094: public static final int GDK_INCLUDE_INFERIORS = 0x1;
0095: public static final int GDK_INTERP_BILINEAR = 0x2;
0096: public static final int GDK_Insert = 0xff63;
0097: public static final int GDK_ISO_Left_Tab = 0xfe20;
0098: public static final int GDK_JOIN_MITER = 0x0;
0099: public static final int GDK_KEY_PRESS = 0x8;
0100: public static final int GDK_KEY_PRESS_MASK = 0x400;
0101: public static final int GDK_KEY_RELEASE = 0x9;
0102: public static final int GDK_KEY_RELEASE_MASK = 0x800;
0103: public static final int GDK_KP_0 = 0xffb0;
0104: public static final int GDK_KP_1 = 0xffb1;
0105: public static final int GDK_KP_2 = 0xffb2;
0106: public static final int GDK_KP_3 = 0xffb3;
0107: public static final int GDK_KP_4 = 0xffb4;
0108: public static final int GDK_KP_5 = 0xffb5;
0109: public static final int GDK_KP_6 = 0xffb6;
0110: public static final int GDK_KP_7 = 0xffb7;
0111: public static final int GDK_KP_8 = 0xffb8;
0112: public static final int GDK_KP_9 = 0xffb9;
0113: public static final int GDK_KP_Add = 0xffab;
0114: public static final int GDK_KP_Decimal = 0xffae;
0115: public static final int GDK_KP_Delete = 0xFF9F;
0116: public static final int GDK_KP_Divide = 0xffaf;
0117: public static final int GDK_KP_Down = 0xFF99;
0118: public static final int GDK_KP_End = 0xFF9C;
0119: public static final int GDK_KP_Enter = 0xff8d;
0120: public static final int GDK_KP_Equal = 0xffbd;
0121: public static final int GDK_KP_Home = 0xFF95;
0122: public static final int GDK_KP_Insert = 0xFF9E;
0123: public static final int GDK_KP_Left = 0xFF96;
0124: public static final int GDK_KP_Multiply = 0xffaa;
0125: public static final int GDK_KP_Page_Down = 0xFF9B;
0126: public static final int GDK_KP_Page_Up = 0xFF9A;
0127: public static final int GDK_KP_Right = 0xFF98;
0128: public static final int GDK_KP_Subtract = 0xffad;
0129: public static final int GDK_KP_Up = 0xFF97;
0130: public static final int GDK_LEAVE_NOTIFY_MASK = 0x2000;
0131: public static final int GDK_LEFT_PTR = 0x44;
0132: public static final int GDK_LEFT_SIDE = 0x46;
0133: public static final int GDK_LINE_ON_OFF_DASH = 0x1;
0134: public static final int GDK_LINE_SOLID = 0x0;
0135: public static final int GDK_Linefeed = 0xff0A;
0136: public static final int GDK_LSB_FIRST = 0x0;
0137: public static final int GDK_Left = 0xff51;
0138: public static final int GDK_Meta_L = 0xFFE7;
0139: public static final int GDK_Meta_R = 0xFFE8;
0140: public static final int GDK_MOD1_MASK = 0x8;
0141: public static final int GDK_MOTION_NOTIFY = 0x3;
0142: public static final int GDK_NONE = 0;
0143: public static final int GDK_Num_Lock = 0xFF7F;
0144: public static final int GDK_OVERLAP_RECTANGLE_OUT = 0x1;
0145: public static final int GDK_PIXBUF_ALPHA_BILEVEL = 0x0;
0146: public static final int GDK_POINTER_MOTION_HINT_MASK = 0x8;
0147: public static final int GDK_POINTER_MOTION_MASK = 0x4;
0148: public static final int GDK_Page_Down = 0xff56;
0149: public static final int GDK_Page_Up = 0xff55;
0150: public static final int GDK_Pause = 0xff13;
0151: public static final int GDK_Print = 0xff61;
0152: public static final int GDK_QUESTION_ARROW = 0x5c;
0153: public static final int GDK_RGB_DITHER_NORMAL = 0x1;
0154: public static final int GDK_RIGHT_SIDE = 0x60;
0155: public static final int GDK_Return = 0xff0d;
0156: public static final int GDK_Right = 0xff53;
0157: public static final int GDK_space = 0x20;
0158: public static final int GDK_SB_H_DOUBLE_ARROW = 0x6c;
0159: public static final int GDK_SB_UP_ARROW = 0x72;
0160: public static final int GDK_SB_V_DOUBLE_ARROW = 0x74;
0161: public static final int GDK_SHIFT_MASK = 0x1;
0162: public static final int GDK_SIZING = 0x78;
0163: public static final int GDK_STIPPLED = 0x2;
0164: public static final int GDK_Shift_L = 0xffe1;
0165: public static final int GDK_Shift_R = 0xffe2;
0166: public static final int GDK_Scroll_Lock = 0xff14;
0167: public static final int GDK_TOP_LEFT_CORNER = 0x86;
0168: public static final int GDK_TOP_RIGHT_CORNER = 0x88;
0169: public static final int GDK_TOP_SIDE = 0x8a;
0170: public static final int GDK_Tab = 0xff09;
0171: public static final int GDK_Up = 0xff52;
0172: public static final int GDK_WATCH = 0x96;
0173: public static final int GDK_XOR = 0x2;
0174: public static final int GDK_XTERM = 0x98;
0175: public static final int GDK_X_CURSOR = 0x0;
0176: public static final int GDK_WINDOW_STATE_ICONIFIED = 1 << 1;
0177: public static final int GDK_WINDOW_STATE_MAXIMIZED = 1 << 2;
0178: public static final int GTK_ACCEL_VISIBLE = 0x1;
0179: public static final int GTK_ARROW_DOWN = 0x1;
0180: public static final int GTK_ARROW_LEFT = 0x2;
0181: public static final int GTK_ARROW_RIGHT = 0x3;
0182: public static final int GTK_ARROW_UP = 0x0;
0183: public static final int GTK_CAN_DEFAULT = 0x2000;
0184: public static final int GTK_CAN_FOCUS = 0x800;
0185: public static final int GTK_CELL_RENDERER_MODE_ACTIVATABLE = 1;
0186: public static final int GTK_CLIST_SHOW_TITLES = 0x4;
0187: public static final int GTK_CORNER_TOP_LEFT = 0x0;
0188: public static final int GTK_CORNER_TOP_RIGHT = 0x2;
0189: public static final int GTK_DIALOG_DESTROY_WITH_PARENT = 1 << 1;
0190: public static final int GTK_DIALOG_MODAL = 1 << 0;
0191: public static final int GTK_JUSTIFY_CENTER = 0x2;
0192: public static final int GTK_JUSTIFY_LEFT = 0x0;
0193: public static final int GTK_JUSTIFY_RIGHT = 0x1;
0194: public static final int GTK_MESSAGE_INFO = 0;
0195: public static final int GTK_MESSAGE_WARNING = 1;
0196: public static final int GTK_MESSAGE_QUESTION = 2;
0197: public static final int GTK_MESSAGE_ERROR = 3;
0198: public static final int GTK_ORIENTATION_HORIZONTAL = 0x0;
0199: public static final int GTK_ORIENTATION_VERTICAL = 0x1;
0200: public static final int GTK_POLICY_ALWAYS = 0x0;
0201: public static final int GTK_POLICY_AUTOMATIC = 0x1;
0202: public static final int GTK_POLICY_NEVER = 0x2;
0203: public static final int GTK_POS_BOTTOM = 0x3;
0204: public static final int GTK_PROGRESS_CONTINUOUS = 0x0;
0205: public static final int GTK_PROGRESS_DISCRETE = 0x1;
0206: public static final int GTK_PROGRESS_LEFT_TO_RIGHT = 0x0;
0207: public static final int GTK_PROGRESS_BOTTOM_TO_TOP = 0x2;
0208: public static final int GTK_REALIZED = 1 << 6;
0209: public static final int GTK_RELIEF_NONE = 0x2;
0210: public static final int GTK_RESPONSE_OK = 0xfffffffb;
0211: public static final int GTK_SELECTION_BROWSE = 0x2;
0212: public static final int GTK_SELECTION_MULTIPLE = 0x3;
0213: public static final int GTK_SENSITIVE = 0x200;
0214: public static final int GTK_SHADOW_ETCHED_IN = 0x3;
0215: public static final int GTK_SHADOW_ETCHED_OUT = 0x4;
0216: public static final int GTK_SHADOW_IN = 0x1;
0217: public static final int GTK_SHADOW_NONE = 0x0;
0218: public static final int GTK_SHADOW_OUT = 0x2;
0219: public static final int GTK_STATE_INSENSITIVE = 0x4;
0220: public static final int GTK_STATE_NORMAL = 0x0;
0221: public static final int GTK_TEXT_DIR_LTR = 1;
0222: public static final int GTK_TEXT_DIR_NONE = 0;
0223: public static final int GTK_TEXT_DIR_RTL = 2;
0224: public static final int GTK_TEXT_WINDOW_TEXT = 2;
0225: public static final int GTK_TOOLBAR_CHILD_BUTTON = 0x1;
0226: public static final int GTK_TOOLBAR_CHILD_RADIOBUTTON = 0x3;
0227: public static final int GTK_TOOLBAR_CHILD_TOGGLEBUTTON = 0x2;
0228: public static final int GTK_TREE_VIEW_COLUMN_GROW_ONLY = 0;
0229: public static final int GTK_TREE_VIEW_COLUMN_AUTOSIZE = 1;
0230: public static final int GTK_TREE_VIEW_COLUMN_FIXED = 2;
0231: public static final int GTK_TREE_VIEW_DROP_BEFORE = 0;
0232: public static final int GTK_TREE_VIEW_DROP_AFTER = 1;
0233: public static final int GTK_TREE_VIEW_DROP_INTO_OR_BEFORE = 2;
0234: public static final int GTK_TREE_VIEW_DROP_INTO_OR_AFTER = 3;
0235: public static final int GTK_VISIBILITY_FULL = 0x2;
0236: public static final int GTK_VISIBILITY_NONE = 0x0;
0237: public static final int GTK_VISIBLE = 0x100;
0238: public static final int GTK_WINDOW_POPUP = 0x1;
0239: public static final int GTK_WINDOW_TOPLEVEL = 0x0;
0240: public static final int GTK_WRAP_NONE = 0;
0241: public static final int GTK_WRAP_WORD = 2;
0242: public static final int G_LOG_FLAG_FATAL = 0x2;
0243: public static final int G_LOG_FLAG_RECURSION = 0x1;
0244: public static final int G_LOG_LEVEL_MASK = 0xfffffffc;
0245: public static final int None = 0;
0246: public static final int PANGO_COVERAGE_EXACT = 3;
0247: public static final int PANGO_DIRECTION_LTR = 0;
0248: public static final int PANGO_DIRECTION_RTL = 1;
0249: public static final int PANGO_DIRECTION_TTB_LTR = 2;
0250: public static final int PANGO_DIRECTION_TTB_RTL = 3;
0251: public static final int PANGO_SCALE = 1024;
0252: public static final int PANGO_STRETCH_NORMAL = 0x4;
0253: public static final int PANGO_STYLE_ITALIC = 0x2;
0254: public static final int PANGO_STYLE_NORMAL = 0x0;
0255: public static final int PANGO_STYLE_OBLIQUE = 0x1;
0256: public static final int PANGO_TAB_LEFT = 0;
0257: public static final int PANGO_UNDERLINE_LOW = 3;
0258: public static final int PANGO_WEIGHT_BOLD = 0x2bc;
0259: public static final int PANGO_WEIGHT_NORMAL = 0x190;
0260: public static final int XA_CARDINAL = 0x6;
0261:
0262: /** Signals */
0263: public static final byte[] activate = signal("activate");
0264: public static final byte[] button_press_event = signal("button_press_event");
0265: public static final byte[] button_release_event = signal("button_release_event");
0266: public static final byte[] changed = signal("changed");
0267: public static final byte[] clicked = signal("clicked");
0268: public static final byte[] commit = signal("commit");
0269: public static final byte[] configure_event = signal("configure_event");
0270: public static final byte[] delete_event = signal("delete_event");
0271: public static final byte[] delete_range = signal("delete_range");
0272: public static final byte[] delete_text = signal("delete_text");
0273: public static final byte[] direction_changed = signal("direction_changed");
0274: public static final byte[] enter_notify_event = signal("enter_notify_event");
0275: public static final byte[] event = signal("event");
0276: public static final byte[] event_after = signal("event_after");
0277: public static final byte[] expose_event = signal("expose_event");
0278: public static final byte[] focus = signal("focus");
0279: public static final byte[] focus_in_event = signal("focus_in_event");
0280: public static final byte[] focus_out_event = signal("focus_out_event");
0281: public static final byte[] hide = signal("hide");
0282: public static final byte[] insert_text = signal("insert_text");
0283: public static final byte[] key_press_event = signal("key_press_event");
0284: public static final byte[] key_release_event = signal("key_release_event");
0285: public static final byte[] leave_notify_event = signal("leave_notify_event");
0286: public static final byte[] map_event = signal("map_event");
0287: public static final byte[] mnemonic_activate = signal("mnemonic_activate");
0288: public static final byte[] motion_notify_event = signal("motion_notify_event");
0289: public static final byte[] popup_menu = signal("popup_menu");
0290: public static final byte[] preedit_changed = signal("preedit_changed");
0291: public static final byte[] realize = signal("realize");
0292: public static final byte[] row_activated = signal("row_activated");
0293: public static final byte[] select = signal("select");
0294: public static final byte[] show = signal("show");
0295: public static final byte[] show_help = signal("show_help");
0296: public static final byte[] size_allocate = signal("size_allocate");
0297: public static final byte[] switch_page = signal("switch_page");
0298: public static final byte[] test_collapse_row = signal("test_collapse_row");
0299: public static final byte[] test_expand_row = signal("test_expand_row");
0300: public static final byte[] toggled = signal("toggled");
0301: public static final byte[] unmap_event = signal("unmap_event");
0302: public static final byte[] unrealize = signal("unrealize");
0303: public static final byte[] value_changed = signal("value_changed");
0304: public static final byte[] window_state_event = signal("window_state_event");
0305:
0306: /** Properties */
0307: public static final byte[] background_gdk = signal("background-gdk");
0308: public static final byte[] button_relief = signal("button_relief");
0309: public static final byte[] focus_line_width = signal("focus_line_width");
0310: public static final byte[] foreground_gdk = signal("foreground-gdk");
0311: public static final byte[] interior_focus = signal("interior_focus");
0312: public static final byte[] mode = signal("mode");
0313: public static final byte[] xalign = signal("xalign");
0314:
0315: protected static byte[] signal(String name) {
0316: int length = name.length();
0317: char[] chars = new char[length];
0318: name.getChars(0, length, chars, 0);
0319: byte[] buffer = new byte[length + 1];
0320: for (int i = 0; i < length; i++) {
0321: buffer[i] = (byte) chars[i];
0322: }
0323: return buffer;
0324: }
0325:
0326: /** Object private fields accessors */
0327: public static final synchronized native int GTK_WIDGET_HEIGHT(
0328: int widget);
0329:
0330: public static final synchronized native int GTK_WIDGET_WIDTH(
0331: int widget);
0332:
0333: public static final synchronized native int GTK_WIDGET_WINDOW(
0334: int widget);
0335:
0336: public static final synchronized native int GTK_WIDGET_X(int widget);
0337:
0338: public static final synchronized native int GTK_WIDGET_Y(int widget);
0339:
0340: public static final synchronized native int GTK_SCROLLED_WINDOW_HSCROLLBAR(
0341: int widget);
0342:
0343: public static final synchronized native int GTK_SCROLLED_WINDOW_VSCROLLBAR(
0344: int widget);
0345:
0346: public static final synchronized native int GTK_SCROLLED_WINDOW_SCROLLBAR_SPACING(
0347: int widget);
0348:
0349: public static final synchronized native void GTK_ACCEL_LABEL_ACCEL_STRING(
0350: int acce_label, int string);
0351:
0352: public static final synchronized native int GTK_ACCEL_LABEL_ACCEL_STRING(
0353: int acce_label);
0354:
0355: public static final synchronized native int GTK_ENTRY_IM_CONTEXT(
0356: int widget);
0357:
0358: public static final synchronized native int GTK_TEXTVIEW_IM_CONTEXT(
0359: int widget);
0360:
0361: /** X11 Native methods and constants */
0362: public static final int RevertToParent = 2;
0363:
0364: public static final native boolean GDK_WINDOWING_X11();
0365:
0366: public static final synchronized native int XSetInputFocus(
0367: int display, int window, int revert, int time);
0368:
0369: public static final synchronized native int gdk_x11_drawable_get_xdisplay(
0370: int drawable);
0371:
0372: public static final synchronized native int gdk_x11_drawable_get_xid(
0373: int drawable);
0374:
0375: /** Native methods */
0376: public static final synchronized native int GDK_ROOT_PARENT();
0377:
0378: public static final synchronized native int GDK_TYPE_COLOR();
0379:
0380: public static final synchronized native int GDK_TYPE_PIXBUF();
0381:
0382: public static final synchronized native boolean GTK_IS_CELL_RENDERER_PIXBUF(
0383: int obj);
0384:
0385: public static final synchronized native boolean GTK_IS_IMAGE_MENU_ITEM(
0386: int obj);
0387:
0388: public static final synchronized native int GTK_WIDGET_FLAGS(int wid);
0389:
0390: public static final synchronized native boolean GTK_WIDGET_HAS_DEFAULT(
0391: int wid);
0392:
0393: public static final synchronized native boolean GTK_WIDGET_HAS_FOCUS(
0394: int wid);
0395:
0396: public static final synchronized native boolean GTK_WIDGET_IS_SENSITIVE(
0397: int wid);
0398:
0399: public static final synchronized native boolean GTK_WIDGET_MAPPED(
0400: int wid);
0401:
0402: public static final synchronized native boolean GTK_WIDGET_SENSITIVE(
0403: int wid);
0404:
0405: public static final synchronized native void GTK_WIDGET_SET_FLAGS(
0406: int wid, int flag);
0407:
0408: public static final synchronized native void GTK_WIDGET_UNSET_FLAGS(
0409: int wid, int flag);
0410:
0411: public static final synchronized native boolean GTK_WIDGET_VISIBLE(
0412: int wid);
0413:
0414: public static final synchronized native int G_TYPE_BOOLEAN();
0415:
0416: public static final synchronized native int G_TYPE_INT();
0417:
0418: public static final synchronized native int G_TYPE_STRING();
0419:
0420: public static final synchronized native int GtkTreeIter_sizeof();
0421:
0422: public static final synchronized native int PANGO_PIXELS(
0423: int dimension);
0424:
0425: public static final native void XChangeKeyboardMapping(int display,
0426: int first_keycode, int keysyms_per_keycode, int[] keysyms,
0427: int num_codes);
0428:
0429: public static final native void XDisplayKeycodes(int display,
0430: int[] min_keycodes_return, int[] max_keycodes_return);
0431:
0432: public static final native void XFree(int data);
0433:
0434: public static final native void XFreeModifiermap(int modmap);
0435:
0436: public static final native int XGetKeyboardMapping(int display,
0437: int first_keycode, int keycode_count,
0438: int[] keysyms_per_keycode_return);
0439:
0440: public static final native int XGetModifierMapping(int display);
0441:
0442: public static final native int XSetModifierMapping(int display,
0443: int modmap);
0444:
0445: public static final synchronized native int g_filename_to_utf8(
0446: int opsysstring, int len, int[] bytes_read,
0447: int[] bytes_written, int[] error);
0448:
0449: public static final synchronized native int g_filename_to_uri(
0450: int filename, int hostname, int[] error);
0451:
0452: public static final synchronized native int g_filename_from_utf8(
0453: int opsysstring, int len, int[] bytes_read,
0454: int[] bytes_written, int[] error);
0455:
0456: public static final synchronized native int g_filename_from_uri(
0457: int uri, int[] hostname, int[] error);
0458:
0459: public static final synchronized native void g_free(int mem);
0460:
0461: public static final synchronized native int g_list_append(int list,
0462: int data);
0463:
0464: public static final synchronized native void g_list_free(int list);
0465:
0466: public static final synchronized native void g_list_free_1(int list);
0467:
0468: public static final synchronized native int g_list_length(int list);
0469:
0470: public static final synchronized native void g_list_next(int list,
0471: int llist);
0472:
0473: public static final synchronized native int g_list_next(int list);
0474:
0475: public static final synchronized native int g_list_nth(int list,
0476: int n);
0477:
0478: public static final synchronized native int g_list_nth_data(
0479: int list, int n);
0480:
0481: public static final synchronized native int g_list_prepend(
0482: int list, int data);
0483:
0484: public static final synchronized native void g_list_previous(
0485: int list, int llist);
0486:
0487: public static final synchronized native int g_list_previous(int list);
0488:
0489: public static final synchronized native int g_list_remove_link(
0490: int list, int link);
0491:
0492: public static final synchronized native int g_list_reverse(int list);
0493:
0494: public static final synchronized native int g_locale_from_utf8(
0495: int utf8string, int len, int[] bytes_read,
0496: int[] bytes_written, int[] error);
0497:
0498: public static final synchronized native int g_locale_to_utf8(
0499: int opsysstring, int len, int[] bytes_read,
0500: int[] bytes_written, int[] error);
0501:
0502: public static final synchronized native void g_log_default_handler(
0503: int log_domain, int log_levels, int message, int unused_data);
0504:
0505: public static final synchronized native void g_log_remove_handler(
0506: byte[] log_domain, int handler_id);
0507:
0508: public static final synchronized native int g_log_set_handler(
0509: byte[] log_domain, int log_levels, int log_func,
0510: int user_data);
0511:
0512: public static final synchronized native int g_malloc(int size);
0513:
0514: public static final synchronized native int g_object_get_qdata(
0515: int object, int quark);
0516:
0517: public static final synchronized native int g_object_ref(int object);
0518:
0519: public static final synchronized native void g_object_set(
0520: int object, byte[] first_property_name, int data,
0521: int terminator);
0522:
0523: public static final synchronized native void g_object_set(
0524: int object, byte[] first_property_name, float data,
0525: int terminator);
0526:
0527: public static final synchronized native void g_object_set_qdata(
0528: int object, int quark, int data);
0529:
0530: public static final synchronized native void g_object_unref(
0531: int object);
0532:
0533: public static final synchronized native int g_quark_from_string(
0534: byte[] string);
0535:
0536: public static final synchronized native int g_signal_connect(
0537: int instance, byte[] detailed_signal, int proc, int data);
0538:
0539: public static final synchronized native int g_signal_connect_after(
0540: int instance, byte[] detailed_signal, int proc, int data);
0541:
0542: public static final synchronized native void g_signal_emit_by_name(
0543: int instance, byte[] detailed_signal);
0544:
0545: public static final synchronized native void g_signal_emit_by_name(
0546: int instance, byte[] detailed_signal, int data);
0547:
0548: public static final synchronized native void g_signal_emit_by_name(
0549: int instance, byte[] detailed_signal, int data1, int data2);
0550:
0551: public static final synchronized native void g_signal_emit_by_name(
0552: int instance, byte[] detailed_signal, byte[] data);
0553:
0554: public static final synchronized native void g_signal_handler_disconnect(
0555: int instance, int handler_id);
0556:
0557: public static final synchronized native int g_signal_handlers_block_matched(
0558: int instance, int mask, int signal_id, int detail,
0559: int closure, int func, int data);
0560:
0561: public static final synchronized native int g_signal_handlers_disconnect_matched(
0562: int instance, int mask, int signal_id, int detail,
0563: int closure, int func, int data);
0564:
0565: public static final synchronized native int g_signal_handlers_unblock_matched(
0566: int instance, int mask, int signal_id, int detail,
0567: int closure, int func, int data);
0568:
0569: public static final synchronized native int g_signal_lookup(
0570: byte[] name, int itype);
0571:
0572: public static final synchronized native void g_signal_stop_emission_by_name(
0573: int instance, byte[] detailed_signal);
0574:
0575: public static final synchronized native void g_strfreev(
0576: int string_array);
0577:
0578: public static final synchronized native void g_thread_init(
0579: int vtable);
0580:
0581: public static final synchronized native boolean g_thread_supported();
0582:
0583: public static final synchronized native int g_utf16_to_utf8(
0584: char[] str, int len, int[] items_read, int[] items_written,
0585: int[] error);
0586:
0587: public static final synchronized native int g_utf8_to_utf16(
0588: byte[] str, int len, int[] items_read, int[] items_written,
0589: int[] error);
0590:
0591: public static final synchronized native int g_utf8_to_utf16(
0592: int str, int len, int[] items_read, int[] items_written,
0593: int[] error);
0594:
0595: public static final synchronized native int g_utf8_strlen(
0596: byte[] str, int max);
0597:
0598: public static final synchronized native int gdk_atom_intern(
0599: byte[] atom_name, boolean only_if_exists);
0600:
0601: public static final synchronized native int gdk_atom_name(int atom);
0602:
0603: public static final synchronized native void gdk_beep();
0604:
0605: public static final synchronized native int gdk_bitmap_create_from_data(
0606: int window, byte[] data, int width, int height);
0607:
0608: public static final synchronized native boolean gdk_color_white(
0609: int colormap, GdkColor color);
0610:
0611: public static final synchronized native boolean gdk_colormap_alloc_color(
0612: int colormap, GdkColor color, boolean writeable,
0613: boolean best_match);
0614:
0615: public static final synchronized native void gdk_colormap_free_colors(
0616: int colormap, GdkColor colors, int ncolors);
0617:
0618: public static final synchronized native int gdk_colormap_get_system();
0619:
0620: public static final synchronized native void gdk_colormap_query_color(
0621: int colormap, int pixel, GdkColor result);
0622:
0623: public static final synchronized native void gdk_cursor_destroy(
0624: int cursor);
0625:
0626: public static final synchronized native int gdk_cursor_new(
0627: int cursor_type);
0628:
0629: public static final synchronized native int gdk_cursor_new_from_pixmap(
0630: int source, int mask, GdkColor fg, GdkColor bg, int x, int y);
0631:
0632: public static final synchronized native void gdk_drag_status(
0633: int context, int action, int time);
0634:
0635: public static final synchronized native void gdk_draw_arc(
0636: int drawable, int gc, int filled, int x, int y, int width,
0637: int height, int angle1, int angle2);
0638:
0639: public static final synchronized native void gdk_draw_drawable(
0640: int drawable, int gc, int src, int xsrc, int ysrc,
0641: int xdest, int ydest, int width, int height);
0642:
0643: public static final synchronized native void gdk_draw_layout(
0644: int drawable, int gc, int x, int y, int layout);
0645:
0646: public static final synchronized native void gdk_draw_layout_with_colors(
0647: int drawable, int gc, int x, int y, int layout,
0648: GdkColor foreground, GdkColor background);
0649:
0650: public static final synchronized native void gdk_draw_line(
0651: int drawable, int gc, int x1, int y1, int x2, int y2);
0652:
0653: public static final synchronized native void gdk_draw_lines(
0654: int drawable, int gc, int[] points, int npoints);
0655:
0656: public static final synchronized native void gdk_draw_polygon(
0657: int drawable, int gc, int filled, int[] points, int npoints);
0658:
0659: public static final synchronized native void gdk_draw_rectangle(
0660: int drawable, int gc, int filled, int x, int y, int width,
0661: int height);
0662:
0663: public static final synchronized native int gdk_drawable_get_image(
0664: int drawable, int x, int y, int width, int height);
0665:
0666: public static final synchronized native void gdk_drawable_get_size(
0667: int drawable, int[] width, int[] height);
0668:
0669: public static final synchronized native int gdk_drawable_get_visible_region(
0670: int drawable);
0671:
0672: public static final synchronized native int gdk_event_copy(int event);
0673:
0674: public static final synchronized native void gdk_event_free(
0675: int event);
0676:
0677: public static final synchronized native int gdk_event_get();
0678:
0679: public static final synchronized native boolean gdk_event_get_root_coords(
0680: int event, double[] px, double[] py);
0681:
0682: public static final synchronized native boolean gdk_event_get_coords(
0683: int event, double[] px, double[] py);
0684:
0685: public static final synchronized native int gdk_event_get_graphics_expose(
0686: int window);
0687:
0688: public static final synchronized native boolean gdk_event_get_state(
0689: int event, int[] pmod);
0690:
0691: public static final synchronized native int gdk_event_get_time(
0692: int event);
0693:
0694: public static final synchronized native void gdk_event_handler_set(
0695: int func, int data, int notify);
0696:
0697: public static final synchronized native void gdk_error_trap_push();
0698:
0699: public static final synchronized native int gdk_error_trap_pop();
0700:
0701: public static final synchronized native void gdk_flush();
0702:
0703: public static final synchronized native void gdk_free_text_list(
0704: int list);
0705:
0706: public static final synchronized native void gdk_gc_get_values(
0707: int gc, GdkGCValues values);
0708:
0709: public static final synchronized native int gdk_gc_new(int window);
0710:
0711: public static final synchronized native void gdk_gc_set_background(
0712: int gc, GdkColor color);
0713:
0714: public static final synchronized native void gdk_gc_set_clip_mask(
0715: int gc, int mask);
0716:
0717: public static final synchronized native void gdk_gc_set_clip_origin(
0718: int gc, int x, int y);
0719:
0720: public static final synchronized native void gdk_gc_set_clip_rectangle(
0721: int gc, GdkRectangle rectangle);
0722:
0723: public static final synchronized native void gdk_gc_set_clip_region(
0724: int gc, int region);
0725:
0726: public static final synchronized native void gdk_gc_set_dashes(
0727: int gc, int dash_offset, byte[] dash_list, int n);
0728:
0729: public static final synchronized native void gdk_gc_set_exposures(
0730: int gc, boolean exposures);
0731:
0732: public static final synchronized native void gdk_gc_set_fill(
0733: int gc, int fill);
0734:
0735: public static final synchronized native void gdk_gc_set_foreground(
0736: int gc, GdkColor color);
0737:
0738: public static final synchronized native void gdk_gc_set_function(
0739: int gc, int function);
0740:
0741: public static final synchronized native void gdk_gc_set_line_attributes(
0742: int gc, int line_width, int line_style, int cap_style,
0743: int join_style);
0744:
0745: public static final synchronized native void gdk_gc_set_stipple(
0746: int gc, int stipple);
0747:
0748: public static final synchronized native void gdk_gc_set_subwindow(
0749: int gc, int mode);
0750:
0751: public static final synchronized native void gdk_gc_set_values(
0752: int gc, GdkGCValues values, int values_mask);
0753:
0754: public static final synchronized native int gdk_image_get(
0755: int window, int x, int y, int width, int height);
0756:
0757: public static final synchronized native int gdk_image_get_pixel(
0758: int image, int x, int y);
0759:
0760: public static final synchronized native void gdk_keyboard_ungrab(
0761: int time);
0762:
0763: public static final synchronized native int gdk_keymap_get_default();
0764:
0765: public static final synchronized native boolean gdk_keymap_translate_keyboard_state(
0766: int keymap, int hardware_keycode, int state, int group,
0767: int[] keyval, int[] effective_group, int[] level,
0768: int[] consumed_modifiers);
0769:
0770: public static final synchronized native int gdk_keyval_to_lower(
0771: int keyval);
0772:
0773: public static final synchronized native int gdk_keyval_to_unicode(
0774: int keyval);
0775:
0776: public static final synchronized native int gdk_pango_context_get();
0777:
0778: public static final synchronized native void gdk_pango_context_set_colormap(
0779: int context, int colormap);
0780:
0781: public static final synchronized native int gdk_pixbuf_get_from_drawable(
0782: int dest, int src, int cmap, int src_x, int src_y,
0783: int dest_x, int dest_y, int width, int height);
0784:
0785: public static final synchronized native int gdk_pixbuf_get_pixels(
0786: int pixbuf);
0787:
0788: public static final synchronized native int gdk_pixbuf_get_rowstride(
0789: int pixbuf);
0790:
0791: public static final synchronized native int gdk_pixbuf_new(
0792: int colorspace, boolean has_alpha, int bits_per_sample,
0793: int width, int height);
0794:
0795: public static final synchronized native void gdk_pixbuf_render_to_drawable(
0796: int pixbuf, int drawable, int gc, int src_x, int src_y,
0797: int dest_x, int dest_y, int width, int height, int dither,
0798: int x_dither, int y_dither);
0799:
0800: public static final synchronized native void gdk_pixbuf_render_to_drawable_alpha(
0801: int pixbuf, int drawable, int src_x, int src_y, int dest_x,
0802: int dest_y, int width, int height, int alpha_mode,
0803: int alpha_threshold, int dither, int x_dither, int y_dither);
0804:
0805: public static final synchronized native void gdk_pixbuf_render_pixmap_and_mask(
0806: int pixbuf, int[] pixmap_return, int[] mask_return,
0807: int alpha_threshold);
0808:
0809: public static final synchronized native void gdk_pixbuf_scale(
0810: int src, int dest, int dest_x, int dest_y, int dest_width,
0811: int dest_height, double offset_x, double offset_y,
0812: double scale_x, double scale_y, int interp_type);
0813:
0814: public static final synchronized native int gdk_pixbuf_scale_simple(
0815: int src, int dest_width, int dest_height, int interp_type);
0816:
0817: public static final synchronized native int gdk_pixmap_new(
0818: int window, int width, int height, int depth);
0819:
0820: public static final synchronized native int gdk_pointer_grab(
0821: int window, boolean owner_events, int event_mask,
0822: int confine_to, int cursor, int time);
0823:
0824: public static final synchronized native boolean gdk_pointer_is_grabbed();
0825:
0826: public static final synchronized native void gdk_pointer_ungrab(
0827: int time);
0828:
0829: public static final synchronized native boolean gdk_property_get(
0830: int window, int property, int type, int offset, int length,
0831: int pdelete, int[] actual_property_type,
0832: int[] actual_format, int[] actual_length, int[] data);
0833:
0834: public static final synchronized native void gdk_region_destroy(
0835: int region);
0836:
0837: public static final synchronized native boolean gdk_region_empty(
0838: int region);
0839:
0840: public static final synchronized native void gdk_region_get_clipbox(
0841: int region, GdkRectangle rectangle);
0842:
0843: public static final synchronized native void gdk_region_get_rectangles(
0844: int region, int[] rectangles, int[] n_rectangles);
0845:
0846: public static final synchronized native void gdk_region_intersect(
0847: int source1, int source2);
0848:
0849: public static final synchronized native int gdk_region_new();
0850:
0851: public static final synchronized native void gdk_region_offset(
0852: int region, int dx, int dy);
0853:
0854: public static final synchronized native boolean gdk_region_point_in(
0855: int region, int x, int y);
0856:
0857: public static final synchronized native int gdk_region_polygon(
0858: int[] points, int npoints, int fill_rule);
0859:
0860: public static final synchronized native int gdk_region_rectangle(
0861: GdkRectangle rectangle);
0862:
0863: public static final synchronized native int gdk_region_rect_in(
0864: int region, GdkRectangle rect);
0865:
0866: public static final synchronized native void gdk_region_subtract(
0867: int source1, int source2);
0868:
0869: public static final synchronized native void gdk_region_union(
0870: int source1, int source2);
0871:
0872: public static final synchronized native void gdk_region_union_with_rect(
0873: int region, GdkRectangle rect);
0874:
0875: public static final synchronized native void gdk_rgb_init();
0876:
0877: public static final synchronized native int gdk_screen_get_default();
0878:
0879: public static final synchronized native int gdk_screen_get_monitor_at_window(
0880: int screen, int window);
0881:
0882: public static final synchronized native void gdk_screen_get_monitor_geometry(
0883: int screen, int monitor_num, GdkRectangle dest);
0884:
0885: public static final synchronized native int gdk_screen_get_n_monitors(
0886: int screen);
0887:
0888: public static final synchronized native int gdk_screen_height();
0889:
0890: public static final synchronized native int gdk_screen_width();
0891:
0892: public static final synchronized native int gdk_screen_width_mm();
0893:
0894: public static final synchronized native void gdk_set_program_class(
0895: byte[] program_class);
0896:
0897: public static final synchronized native boolean gdk_utf8_to_compound_text(
0898: byte[] str, int[] encoding, int[] format, int[] ctext,
0899: int[] length);
0900:
0901: public static final synchronized native int gdk_text_property_to_utf8_list(
0902: int encoding, int format, int text, int length, int[] list);
0903:
0904: public static final synchronized native void gdk_threads_enter();
0905:
0906: public static final synchronized native void gdk_threads_init();
0907:
0908: public static final synchronized native void gdk_threads_leave();
0909:
0910: public static final synchronized native int gdk_unicode_to_keyval(
0911: int wc);
0912:
0913: public static final synchronized native int gdk_visual_get_system();
0914:
0915: public static final synchronized native int gdk_window_at_pointer(
0916: int[] win_x, int[] win_y);
0917:
0918: public static final synchronized native void gdk_window_focus(
0919: int window, int timestamp);
0920:
0921: public static final synchronized native void gdk_window_get_frame_extents(
0922: int window, GdkRectangle rect);
0923:
0924: public static final synchronized native int gdk_window_get_origin(
0925: int window, int[] x, int[] y);
0926:
0927: public static final synchronized native int gdk_window_get_parent(
0928: int window);
0929:
0930: public static final synchronized native int gdk_window_get_pointer(
0931: int window, int[] x, int[] y, int[] mask);
0932:
0933: public static final synchronized native void gdk_window_get_user_data(
0934: int window, int[] data);
0935:
0936: public static final synchronized native void gdk_window_invalidate_rect(
0937: int window, GdkRectangle rectangle,
0938: boolean invalidate_children);
0939:
0940: public static final synchronized native void gdk_window_invalidate_region(
0941: int window, int region, boolean invalidate_children);
0942:
0943: public static final synchronized native void gdk_window_lower(
0944: int window);
0945:
0946: public static final synchronized native void gdk_window_process_updates(
0947: int window, boolean update_children);
0948:
0949: public static final synchronized native void gdk_window_raise(
0950: int window);
0951:
0952: public static final synchronized native void gdk_window_set_back_pixmap(
0953: int window, int pixmap, boolean parent_relative);
0954:
0955: public static final synchronized native void gdk_window_set_cursor(
0956: int window, int cursor);
0957:
0958: public static final synchronized native void gdk_window_set_decorations(
0959: int window, int decorations);
0960:
0961: public static final synchronized native void gdk_window_set_icon(
0962: int window, int icon_window, int pixmap, int mask);
0963:
0964: public static final synchronized native void gdk_window_set_override_redirect(
0965: int window, boolean override_redirect);
0966:
0967: public static final synchronized native void gdk_window_shape_combine_region(
0968: int window, int shape_region, int offset_x, int offset_y);
0969:
0970: public static final synchronized native void gdk_window_show(
0971: int window);
0972:
0973: public static final native int gdk_x11_get_default_xdisplay();
0974:
0975: public static final synchronized native int gtk_accel_group_new();
0976:
0977: public static final synchronized native boolean gtk_accel_groups_activate(
0978: int accelGroup, int accelKey, int accelMods);
0979:
0980: public static final synchronized native void gtk_accel_label_set_accel_widget(
0981: int accel_label, int accel_widget);
0982:
0983: public static final synchronized native void gtk_adjustment_changed(
0984: int adjustment);
0985:
0986: public static final synchronized native int gtk_adjustment_new(
0987: double value, double lower, double upper,
0988: double step_increment, double page_increment,
0989: double page_size);
0990:
0991: public static final synchronized native void gtk_adjustment_set_value(
0992: int adjustment, double value);
0993:
0994: public static final synchronized native void gtk_adjustment_value_changed(
0995: int adjustment);
0996:
0997: public static final synchronized native int gtk_arrow_new(
0998: int arrow_type, int shadow_type);
0999:
1000: public static final synchronized native void gtk_arrow_set(
1001: int arrow, int arrow_type, int shadow_type);
1002:
1003: public static final synchronized native int gtk_bin_get_child(
1004: int bin);
1005:
1006: public static final synchronized native int gtk_button_new();
1007:
1008: public static final synchronized native void gtk_button_set_relief(
1009: int button, int newstyle);
1010:
1011: public static final synchronized native void gtk_cell_renderer_get_size(
1012: int cell, int widget, GdkRectangle area, int[] x_offset,
1013: int[] y_offset, int[] width, int[] height);
1014:
1015: public static final synchronized native int gtk_cell_renderer_pixbuf_new();
1016:
1017: public static final synchronized native int gtk_cell_renderer_text_new();
1018:
1019: public static final synchronized native int gtk_cell_renderer_toggle_new();
1020:
1021: public static final synchronized native int gtk_check_button_new();
1022:
1023: public static final synchronized native boolean gtk_check_menu_item_get_active(
1024: int wid);
1025:
1026: public static final synchronized native int gtk_check_menu_item_new_with_label(
1027: byte[] label);
1028:
1029: public static final synchronized native void gtk_check_menu_item_set_active(
1030: int wid, boolean active);
1031:
1032: public static final synchronized native int gtk_check_version(
1033: int required_major, int required_minor, int required_micro);
1034:
1035: public static final synchronized native void gtk_clipboard_clear(
1036: int clipboard);
1037:
1038: public static final synchronized native int gtk_clipboard_get(
1039: int selection);
1040:
1041: public static final synchronized native boolean gtk_clipboard_set_with_data(
1042: int clipboard, int target, int n_targets, int get_func,
1043: int clear_func, int user_data);
1044:
1045: public static final synchronized native int gtk_clipboard_wait_for_contents(
1046: int clipboard, int target);
1047:
1048: public static final synchronized native int gtk_color_selection_dialog_new(
1049: byte[] title);
1050:
1051: public static final synchronized native void gtk_color_selection_get_current_color(
1052: int colorsel, GdkColor color);
1053:
1054: public static final synchronized native void gtk_color_selection_set_current_color(
1055: int colorsel, GdkColor color);
1056:
1057: public static final synchronized native void gtk_combo_disable_activate(
1058: int combo);
1059:
1060: public static final synchronized native int gtk_combo_new();
1061:
1062: public static final synchronized native void gtk_combo_set_case_sensitive(
1063: int combo, boolean val);
1064:
1065: public static final synchronized native void gtk_combo_set_popdown_strings(
1066: int combo, int strings);
1067:
1068: public static final synchronized native void gtk_container_add(
1069: int container, int widget);
1070:
1071: public static final synchronized native int gtk_container_get_border_width(
1072: int container);
1073:
1074: public static final synchronized native int gtk_container_get_children(
1075: int container);
1076:
1077: public static final synchronized native void gtk_container_remove(
1078: int container, int widget);
1079:
1080: public static final synchronized native void gtk_container_resize_children(
1081: int container);
1082:
1083: public static final synchronized native void gtk_container_set_border_width(
1084: int container, int border_width);
1085:
1086: public static final synchronized native int gtk_dialog_add_button(
1087: int dialog, String button_text, int response_id);
1088:
1089: public static final synchronized native int gtk_dialog_run(
1090: int dialog);
1091:
1092: public static final synchronized native int gtk_drag_begin(
1093: int widget, int targets, int actions, int button, int event);
1094:
1095: public static final synchronized native boolean gtk_drag_check_threshold(
1096: int widget, int start_x, int start_y, int current_x,
1097: int current_y);
1098:
1099: public static final synchronized native int gtk_drag_dest_find_target(
1100: int widget, int context, int target_list);
1101:
1102: public static final synchronized native void gtk_drag_dest_set(
1103: int widget, int flags, int targets, int n_targets,
1104: int actions);
1105:
1106: public static final synchronized native void gtk_drag_dest_unset(
1107: int widget);
1108:
1109: public static final synchronized native void gtk_drag_finish(
1110: int context, boolean success, boolean delete, int time);
1111:
1112: public static final synchronized native void gtk_drag_get_data(
1113: int widget, int context, int target, int time);
1114:
1115: public static final synchronized native int gtk_drawing_area_new();
1116:
1117: public static final synchronized native void gtk_editable_copy_clipboard(
1118: int editable);
1119:
1120: public static final synchronized native void gtk_editable_cut_clipboard(
1121: int editable);
1122:
1123: public static final synchronized native void gtk_editable_delete_selection(
1124: int editable);
1125:
1126: public static final synchronized native void gtk_editable_delete_text(
1127: int editable, int start_pos, int end_pos);
1128:
1129: public static final synchronized native int gtk_editable_get_chars(
1130: int editable, int start_pos, int end_pos);
1131:
1132: public static final synchronized native boolean gtk_editable_get_editable(
1133: int editable);
1134:
1135: public static final synchronized native int gtk_editable_get_position(
1136: int editable);
1137:
1138: public static final synchronized native boolean gtk_editable_get_selection_bounds(
1139: int editable, int[] start, int[] end);
1140:
1141: public static final synchronized native void gtk_editable_insert_text(
1142: int editable, byte[] new_text, int new_text_length,
1143: int[] position);
1144:
1145: public static final synchronized native void gtk_editable_paste_clipboard(
1146: int editable);
1147:
1148: public static final synchronized native void gtk_editable_select_region(
1149: int editable, int start, int end);
1150:
1151: public static final synchronized native void gtk_editable_set_editable(
1152: int entry, boolean editable);
1153:
1154: public static final synchronized native void gtk_editable_set_position(
1155: int editable, int position);
1156:
1157: public static final synchronized native char gtk_entry_get_invisible_char(
1158: int entry);
1159:
1160: public static final synchronized native int gtk_entry_get_layout(
1161: int entry);
1162:
1163: public static final synchronized native int gtk_entry_get_max_length(
1164: int entry);
1165:
1166: public static final synchronized native int gtk_entry_get_text(
1167: int entry);
1168:
1169: public static final synchronized native boolean gtk_entry_get_visibility(
1170: int entry);
1171:
1172: public static final synchronized native int gtk_entry_new();
1173:
1174: public static final synchronized native void gtk_entry_set_activates_default(
1175: int entry, boolean setting);
1176:
1177: public static final synchronized native void gtk_entry_set_has_frame(
1178: int entry, boolean setting);
1179:
1180: public static final synchronized native void gtk_entry_set_invisible_char(
1181: int entry, char ch);
1182:
1183: public static final synchronized native void gtk_entry_set_max_length(
1184: int entry, int max);
1185:
1186: public static final synchronized native void gtk_entry_set_text(
1187: int entry, byte[] text);
1188:
1189: public static final synchronized native void gtk_entry_set_visibility(
1190: int entry, boolean visible);
1191:
1192: public static final synchronized native int gtk_events_pending();
1193:
1194: public static final synchronized native void gtk_file_selection_complete(
1195: int filesel, byte[] pattern);
1196:
1197: public static final synchronized native int gtk_file_selection_get_filename(
1198: int filesel);
1199:
1200: public static final synchronized native int gtk_file_selection_get_selections(
1201: int filesel);
1202:
1203: public static final synchronized native void gtk_file_selection_hide_fileop_buttons(
1204: int filesel);
1205:
1206: public static final synchronized native int gtk_file_selection_new(
1207: byte[] title);
1208:
1209: public static final synchronized native void gtk_file_selection_set_filename(
1210: int filesel, int filename);
1211:
1212: public static final synchronized native void gtk_file_selection_set_select_multiple(
1213: int filesel, boolean select_multiple);
1214:
1215: public static final synchronized native void gtk_fixed_move(
1216: int fixed, int widget, int x, int y);
1217:
1218: public static final synchronized native int gtk_fixed_new();
1219:
1220: public static final synchronized native void gtk_fixed_set_has_window(
1221: int fixed, boolean has_window);
1222:
1223: public static final synchronized native int gtk_font_selection_dialog_get_font_name(
1224: int fsd);
1225:
1226: public static final synchronized native int gtk_font_selection_dialog_new(
1227: byte[] title);
1228:
1229: public static final synchronized native boolean gtk_font_selection_dialog_set_font_name(
1230: int fsd, byte[] fontname);
1231:
1232: public static final synchronized native int gtk_frame_new(
1233: byte[] label);
1234:
1235: public static final synchronized native int gtk_frame_get_label_widget(
1236: int frame);
1237:
1238: public static final synchronized native void gtk_frame_set_label(
1239: int frame, byte[] label);
1240:
1241: public static final synchronized native void gtk_frame_set_label_widget(
1242: int frame, int label_widget);
1243:
1244: public static final synchronized native void gtk_frame_set_shadow_type(
1245: int frame, int type);
1246:
1247: public static final synchronized native int gtk_get_current_event();
1248:
1249: public static final synchronized native boolean gtk_get_current_event_state(
1250: int[] state);
1251:
1252: public static final synchronized native int gtk_get_current_event_time();
1253:
1254: public static final synchronized native int gtk_get_default_language();
1255:
1256: public static final synchronized native int gtk_grab_get_current();
1257:
1258: public static final synchronized native void gtk_grab_remove(
1259: int widget);
1260:
1261: public static final synchronized native int gtk_hbox_new(
1262: boolean homogeneous, int spacing);
1263:
1264: public static final synchronized native int gtk_hscale_new(
1265: int adjustment);
1266:
1267: public static final synchronized native int gtk_hscrollbar_new(
1268: int adjustment);
1269:
1270: public static final synchronized native int gtk_hseparator_new();
1271:
1272: public static final synchronized native boolean gtk_im_context_filter_keypress(
1273: int context, int event);
1274:
1275: public static final synchronized native void gtk_im_context_focus_in(
1276: int context);
1277:
1278: public static final synchronized native void gtk_im_context_focus_out(
1279: int context);
1280:
1281: public static final synchronized native void gtk_im_context_get_preedit_string(
1282: int context, int[] str, int[] attrs, int[] cursor_pos);
1283:
1284: public static final synchronized native int gtk_im_context_get_type();
1285:
1286: public static final synchronized native void gtk_im_context_reset(
1287: int context);
1288:
1289: public static final synchronized native void gtk_im_context_set_client_window(
1290: int context, int window);
1291:
1292: public static final synchronized native void gtk_im_context_set_cursor_location(
1293: int context, GdkRectangle area);
1294:
1295: public static final synchronized native void gtk_im_multicontext_append_menuitems(
1296: int context, int menushell);
1297:
1298: public static final synchronized native int gtk_im_multicontext_new();
1299:
1300: public static final synchronized native int gtk_image_menu_item_new_with_label(
1301: byte[] label);
1302:
1303: public static final synchronized native void gtk_image_menu_item_set_image(
1304: int menu_item, int image);
1305:
1306: public static final synchronized native int gtk_image_new();
1307:
1308: public static final synchronized native int gtk_image_new_from_pixmap(
1309: int pixmap, int mask);
1310:
1311: public static final synchronized native void gtk_image_set_from_pixmap(
1312: int image, int pixmap, int mask);
1313:
1314: public static final synchronized native boolean gtk_init_check(
1315: int[] argc, int[] argv);
1316:
1317: public static final synchronized native int gtk_label_get_mnemonic_keyval(
1318: int label);
1319:
1320: public static final synchronized native int gtk_label_new(
1321: byte[] label);
1322:
1323: public static final synchronized native int gtk_label_new_with_mnemonic(
1324: byte[] str);
1325:
1326: public static final synchronized native void gtk_label_set_attributes(
1327: int label, int attrs);
1328:
1329: public static final synchronized native void gtk_label_set_justify(
1330: int label, int jtype);
1331:
1332: public static final synchronized native void gtk_label_set_line_wrap(
1333: int label, boolean wrap);
1334:
1335: public static final synchronized native void gtk_label_set_text(
1336: int label, int str);
1337:
1338: public static final synchronized native void gtk_label_set_text_with_mnemonic(
1339: int label, byte[] str);
1340:
1341: public static final synchronized native void gtk_list_store_append(
1342: int list_store, int iter);
1343:
1344: public static final synchronized native void gtk_list_store_clear(
1345: int store);
1346:
1347: public static final synchronized native void gtk_list_store_insert(
1348: int list_store, int iter, int position);
1349:
1350: public static final synchronized native int gtk_list_store_newv(
1351: int numColumns, int[] types);
1352:
1353: public static final synchronized native void gtk_list_store_remove(
1354: int list_store, int iter);
1355:
1356: public static final synchronized native void gtk_list_store_set(
1357: int store, int iter, int column, byte[] value,
1358: int terminator);
1359:
1360: public static final synchronized native void gtk_list_store_set(
1361: int store, int iter, int column, int value, int terminator);
1362:
1363: public static final synchronized native void gtk_list_store_set(
1364: int store, int iter, int column, GdkColor value,
1365: int terminator);
1366:
1367: public static final synchronized native void gtk_list_store_set(
1368: int store, int iter, int column, boolean value,
1369: int terminator);
1370:
1371: public static final synchronized native int gtk_major_version();
1372:
1373: public static final synchronized native int gtk_minor_version();
1374:
1375: public static final synchronized native int gtk_micro_version();
1376:
1377: public static final synchronized native void gtk_main();
1378:
1379: public static final synchronized native int gtk_main_iteration();
1380:
1381: public static final synchronized native void gtk_main_do_event(
1382: int event);
1383:
1384: public static final synchronized native int gtk_menu_bar_new();
1385:
1386: public static final synchronized native void gtk_menu_item_remove_submenu(
1387: int menu_item);
1388:
1389: public static final synchronized native void gtk_menu_item_set_submenu(
1390: int menu_item, int submenu);
1391:
1392: public static final synchronized native int gtk_menu_new();
1393:
1394: public static final synchronized native void gtk_menu_popdown(
1395: int menu);
1396:
1397: public static final synchronized native void gtk_menu_popup(
1398: int menu, int parent_menu_shell, int parent_menu_item,
1399: int func, int data, int button, int activate_time);
1400:
1401: public static final synchronized native void gtk_menu_shell_deactivate(
1402: int menu_shell);
1403:
1404: public static final synchronized native void gtk_menu_shell_insert(
1405: int menu_shell, int child, int position);
1406:
1407: public static final synchronized native void gtk_menu_shell_select_item(
1408: int menu_shell, int menu_item);
1409:
1410: public static final synchronized native int gtk_message_dialog_new(
1411: int parent, int flags, int type, int buttons,
1412: String message_format);
1413:
1414: public static final synchronized native void gtk_misc_set_alignment(
1415: int misc, float xalign, float yalign);
1416:
1417: public static final synchronized native int gtk_notebook_get_current_page(
1418: int notebook);
1419:
1420: public static final synchronized native boolean gtk_notebook_get_scrollable(
1421: int notebook);
1422:
1423: public static final synchronized native void gtk_notebook_insert_page(
1424: int notebook, int child, int tab_label, int position);
1425:
1426: public static final synchronized native int gtk_notebook_new();
1427:
1428: public static final synchronized native void gtk_notebook_remove_page(
1429: int notebook, int page_num);
1430:
1431: public static final synchronized native void gtk_notebook_set_current_page(
1432: int notebook, int page_num);
1433:
1434: public static final synchronized native void gtk_notebook_set_scrollable(
1435: int notebook, boolean scrollable);
1436:
1437: public static final synchronized native void gtk_notebook_set_show_tabs(
1438: int notebook, boolean show_tabs);
1439:
1440: public static final synchronized native void gtk_notebook_set_tab_pos(
1441: int notebook, int pos);
1442:
1443: public static final synchronized native void gtk_object_sink(
1444: int object);
1445:
1446: public static final synchronized native int gtk_plug_new(
1447: int socket_id);
1448:
1449: public static final synchronized native int gtk_progress_bar_new();
1450:
1451: public static final synchronized native void gtk_progress_bar_pulse(
1452: int pbar);
1453:
1454: public static final synchronized native void gtk_progress_bar_set_bar_style(
1455: int pbar, int style);
1456:
1457: public static final synchronized native void gtk_progress_bar_set_fraction(
1458: int pbar, double fraction);
1459:
1460: public static final synchronized native void gtk_progress_bar_set_orientation(
1461: int pbar, int orientation);
1462:
1463: public static final synchronized native int gtk_radio_button_get_group(
1464: int radio_button);
1465:
1466: public static final synchronized native int gtk_radio_button_new(
1467: int group);
1468:
1469: public static final synchronized native int gtk_radio_menu_item_new_with_label(
1470: int group, byte[] label);
1471:
1472: public static final synchronized native int gtk_range_get_adjustment(
1473: int range);
1474:
1475: public static final synchronized native void gtk_range_set_increments(
1476: int range, double step, double page);
1477:
1478: public static final synchronized native void gtk_range_set_range(
1479: int range, double min, double max);
1480:
1481: public static final synchronized native void gtk_range_set_value(
1482: int range, double value);
1483:
1484: public static final synchronized native void gtk_rc_style_set_xthickness(
1485: int style, int thickness);
1486:
1487: public static final synchronized native void gtk_rc_style_set_ythickness(
1488: int style, int thickness);
1489:
1490: public static final synchronized native void gtk_scale_set_digits(
1491: int scale, int digits);
1492:
1493: public static final synchronized native void gtk_scale_set_draw_value(
1494: int scale, boolean draw_value);
1495:
1496: public static final synchronized native int gtk_scrolled_window_get_hadjustment(
1497: int scrolled_window);
1498:
1499: public static final synchronized native void gtk_scrolled_window_get_policy(
1500: int scrolled_window, int[] hscrollbar_policy,
1501: int[] vscrollbar_policy);
1502:
1503: public static final synchronized native int gtk_scrolled_window_get_shadow_type(
1504: int scrolled_window);
1505:
1506: public static final synchronized native int gtk_scrolled_window_get_vadjustment(
1507: int scrolled_window);
1508:
1509: public static final synchronized native int gtk_scrolled_window_new(
1510: int hadjustment, int vadjustment);
1511:
1512: public static final synchronized native void gtk_scrolled_window_set_placement(
1513: int scrolled_window, int placement);
1514:
1515: public static final synchronized native void gtk_scrolled_window_set_policy(
1516: int scrolled_window, int hscrollbar_policy,
1517: int vscrollbar_policy);
1518:
1519: public static final synchronized native void gtk_scrolled_window_set_shadow_type(
1520: int scrolled_window, int type);
1521:
1522: public static final synchronized native void gtk_selection_data_free(
1523: int selection_data);
1524:
1525: public static final synchronized native void gtk_selection_data_set(
1526: int selection_data, int type, int format, int data,
1527: int length);
1528:
1529: public static final synchronized native int gtk_separator_menu_item_new();
1530:
1531: public static final synchronized native int gtk_set_locale();
1532:
1533: public static final synchronized native int gtk_socket_get_id(
1534: int socket);
1535:
1536: public static final synchronized native int gtk_socket_new();
1537:
1538: public static final synchronized native void gtk_style_get_base(
1539: int style, int index, GdkColor color);
1540:
1541: public static final synchronized native void gtk_style_get_black(
1542: int style, GdkColor color);
1543:
1544: public static final synchronized native void gtk_style_get_bg(
1545: int style, int index, GdkColor color);
1546:
1547: public static final synchronized native void gtk_style_get_dark(
1548: int style, int index, GdkColor color);
1549:
1550: public static final synchronized native void gtk_style_get_fg(
1551: int style, int index, GdkColor color);
1552:
1553: public static final synchronized native int gtk_style_get_font_desc(
1554: int style);
1555:
1556: public static final synchronized native void gtk_style_get_light(
1557: int style, int index, GdkColor color);
1558:
1559: public static final synchronized native void gtk_style_get_text(
1560: int style, int index, GdkColor color);
1561:
1562: public static final synchronized native int gtk_style_get_xthickness(
1563: int style);
1564:
1565: public static final synchronized native int gtk_style_get_ythickness(
1566: int style);
1567:
1568: public static final synchronized native int gtk_target_list_new(
1569: int targets, int ntargets);
1570:
1571: public static final synchronized native void gtk_target_list_unref(
1572: int list);
1573:
1574: public static final synchronized native void gtk_text_buffer_copy_clipboard(
1575: int buffer, int clipboard);
1576:
1577: public static final synchronized native void gtk_text_buffer_cut_clipboard(
1578: int buffer, int clipboard, boolean default_editable);
1579:
1580: public static final synchronized native void gtk_text_buffer_delete(
1581: int buffer, byte[] start, byte[] end);
1582:
1583: public static final synchronized native void gtk_text_buffer_get_bounds(
1584: int buffer, byte[] start, byte[] end);
1585:
1586: public static final synchronized native int gtk_text_buffer_get_char_count(
1587: int buffer);
1588:
1589: public static final synchronized native void gtk_text_buffer_get_end_iter(
1590: int buffer, byte[] iter);
1591:
1592: public static final synchronized native int gtk_text_buffer_get_insert(
1593: int buffer);
1594:
1595: public static final synchronized native void gtk_text_buffer_get_iter_at_line(
1596: int buffer, byte[] iter, int line_number);
1597:
1598: public static final synchronized native void gtk_text_buffer_get_iter_at_mark(
1599: int buffer, byte[] iter, int mark);
1600:
1601: public static final synchronized native void gtk_text_buffer_get_iter_at_offset(
1602: int buffer, byte[] iter, int char_offset);
1603:
1604: public static final synchronized native int gtk_text_buffer_get_line_count(
1605: int buffer);
1606:
1607: public static final synchronized native int gtk_text_buffer_get_selection_bound(
1608: int buffer);
1609:
1610: public static final synchronized native boolean gtk_text_buffer_get_selection_bounds(
1611: int buffer, byte[] start, byte[] end);
1612:
1613: public static final synchronized native int gtk_text_buffer_get_text(
1614: int buffer, byte[] start, byte[] end,
1615: boolean include_hidden_chars);
1616:
1617: public static final synchronized native void gtk_text_buffer_insert(
1618: int buffer, byte[] iter, byte[] text, int len);
1619:
1620: public static final synchronized native void gtk_text_buffer_insert(
1621: int buffer, int iter, byte[] text, int len);
1622:
1623: public static final synchronized native void gtk_text_buffer_move_mark(
1624: int buffer, int mark, byte[] where);
1625:
1626: public static final synchronized native void gtk_text_buffer_paste_clipboard(
1627: int buffer, int clipboard, byte[] override_location,
1628: boolean default_editable);
1629:
1630: public static final synchronized native void gtk_text_buffer_place_cursor(
1631: int buffer, byte[] where);
1632:
1633: public static final synchronized native void gtk_text_buffer_set_text(
1634: int buffer, byte[] text, int len);
1635:
1636: public static final synchronized native int gtk_text_iter_get_line(
1637: byte[] iter);
1638:
1639: public static final synchronized native int gtk_text_iter_get_offset(
1640: byte[] iter);
1641:
1642: public static final synchronized native void gtk_text_view_buffer_to_window_coords(
1643: int text_view, int win, int buffer_x, int buffer_y,
1644: int[] window_x, int[] window_y);
1645:
1646: public static final synchronized native int gtk_text_view_get_buffer(
1647: int text_view);
1648:
1649: public static final synchronized native boolean gtk_text_view_get_editable(
1650: int text_view);
1651:
1652: public static final synchronized native void gtk_text_view_get_iter_location(
1653: int text_view, byte[] iter, GdkRectangle location);
1654:
1655: public static final synchronized native void gtk_text_view_get_line_at_y(
1656: int text_view, byte[] target_iter, int y, int[] line_top);
1657:
1658: public static final synchronized native void gtk_text_view_get_visible_rect(
1659: int text_view, GdkRectangle visible_rect);
1660:
1661: public static final synchronized native int gtk_text_view_get_window(
1662: int text_view, int win);
1663:
1664: public static final synchronized native int gtk_text_view_new();
1665:
1666: public static final synchronized native void gtk_text_view_scroll_mark_onscreen(
1667: int text_view, int mark);
1668:
1669: public static final synchronized native boolean gtk_text_view_scroll_to_iter(
1670: int text_view, byte[] iter, double within_margin,
1671: boolean use_align, double xalign, double yalign);
1672:
1673: public static final synchronized native void gtk_text_view_set_editable(
1674: int text_view, boolean setting);
1675:
1676: public static final synchronized native void gtk_text_view_set_justification(
1677: int text_view, int justification);
1678:
1679: public static final synchronized native void gtk_text_view_set_tabs(
1680: int text_view, int tabs);
1681:
1682: public static final synchronized native void gtk_text_view_set_wrap_mode(
1683: int text_view, int wrap_mode);
1684:
1685: public static final synchronized native int gtk_timeout_add(
1686: int interval, int function, int data);
1687:
1688: public static final synchronized native void gtk_timeout_remove(
1689: int timeout_handler_id);
1690:
1691: public static final synchronized native boolean gtk_toggle_button_get_active(
1692: int toggle_button);
1693:
1694: public static final synchronized native int gtk_toggle_button_new();
1695:
1696: public static final synchronized native void gtk_toggle_button_set_active(
1697: int toggle_button, boolean is_active);
1698:
1699: public static final synchronized native void gtk_toggle_button_set_mode(
1700: int toggle_button, boolean draw_indicator);
1701:
1702: public static final synchronized native void gtk_toolbar_insert_widget(
1703: int toolbar, int widget, byte[] tooltip_text,
1704: byte[] tooltip_private_text, int position);
1705:
1706: public static final synchronized native int gtk_toolbar_new();
1707:
1708: public static final synchronized native void gtk_toolbar_set_orientation(
1709: int toolbar, int orientation);
1710:
1711: public static final synchronized native void gtk_tooltips_disable(
1712: int tooltips);
1713:
1714: public static final synchronized native void gtk_tooltips_enable(
1715: int tooltips);
1716:
1717: public static final synchronized native int gtk_tooltips_new();
1718:
1719: public static final synchronized native void gtk_tooltips_set_tip(
1720: int tooltips, int widget, byte[] tip_text,
1721: byte[] tip_private);
1722:
1723: public static final synchronized native void gtk_tree_model_get(
1724: int tree_model, int iter, int column, int[] ptr,
1725: int terminator);
1726:
1727: public static final synchronized native boolean gtk_tree_model_get_iter(
1728: int tree_model, int iter, int path);
1729:
1730: public static final synchronized native int gtk_tree_model_get_n_columns(
1731: int tree_model);
1732:
1733: public static final synchronized native int gtk_tree_model_get_path(
1734: int tree_model, int iter);
1735:
1736: public static final synchronized native boolean gtk_tree_model_iter_children(
1737: int model, int iter, int parent);
1738:
1739: public static final synchronized native int gtk_tree_model_iter_n_children(
1740: int model, int iter);
1741:
1742: public static final synchronized native boolean gtk_tree_model_iter_next(
1743: int model, int iter);
1744:
1745: public static final synchronized native boolean gtk_tree_model_iter_nth_child(
1746: int tree_model, int iter, int parent, int n);
1747:
1748: public static final synchronized native void gtk_tree_path_append_index(
1749: int path, int index);
1750:
1751: public static final synchronized native void gtk_tree_path_free(
1752: int path);
1753:
1754: public static final synchronized native int gtk_tree_path_get_depth(
1755: int path);
1756:
1757: public static final synchronized native int gtk_tree_path_get_indices(
1758: int path);
1759:
1760: public static final synchronized native int gtk_tree_path_new();
1761:
1762: public static final synchronized native int gtk_tree_path_new_first();
1763:
1764: public static final synchronized native int gtk_tree_path_new_from_string(
1765: byte[] path);
1766:
1767: public static final synchronized native int gtk_tree_path_new_from_string(
1768: int path);
1769:
1770: public static final synchronized native boolean gtk_tree_path_up(
1771: int path);
1772:
1773: public static final synchronized native boolean gtk_tree_selection_get_selected(
1774: int selection, int[] model, int iter);
1775:
1776: public static final synchronized native boolean gtk_tree_selection_path_is_selected(
1777: int selection, int path);
1778:
1779: public static final synchronized native void gtk_tree_selection_select_all(
1780: int selection);
1781:
1782: public static final synchronized native void gtk_tree_selection_select_iter(
1783: int selection, int iter);
1784:
1785: public static final synchronized native void gtk_tree_selection_selected_foreach(
1786: int selection, int func, int data);
1787:
1788: public static final synchronized native void gtk_tree_selection_set_mode(
1789: int selection, int mode);
1790:
1791: public static final synchronized native void gtk_tree_selection_unselect_all(
1792: int selection);
1793:
1794: public static final synchronized native void gtk_tree_selection_unselect_iter(
1795: int selection, int iter);
1796:
1797: public static final synchronized native void gtk_tree_store_append(
1798: int store, int iter, int parent);
1799:
1800: public static final synchronized native void gtk_tree_store_clear(
1801: int store);
1802:
1803: public static final synchronized native void gtk_tree_store_insert(
1804: int store, int iter, int parent, int position);
1805:
1806: public static final synchronized native int gtk_tree_store_newv(
1807: int numColumns, int[] types);
1808:
1809: public static final synchronized native void gtk_tree_store_remove(
1810: int store, int iter);
1811:
1812: public static final synchronized native void gtk_tree_store_set(
1813: int store, int iter, int column, byte[] value,
1814: int terminator);
1815:
1816: public static final synchronized native void gtk_tree_store_set(
1817: int store, int iter, int column, int value, int terminator);
1818:
1819: public static final synchronized native void gtk_tree_store_set(
1820: int store, int iter, int column, GdkColor value,
1821: int terminator);
1822:
1823: public static final synchronized native void gtk_tree_store_set(
1824: int store, int iter, int column, boolean value,
1825: int terminator);
1826:
1827: public static final synchronized native boolean gtk_tree_view_collapse_row(
1828: int view, int path);
1829:
1830: public static final synchronized native void gtk_tree_view_column_add_attribute(
1831: int treeColumn, int cellRenderer, String attribute,
1832: int column);
1833:
1834: public static final synchronized native boolean gtk_tree_view_column_cell_get_position(
1835: int tree_column, int cell_renderer, int[] start_pos,
1836: int[] width);
1837:
1838: public static final synchronized native void gtk_tree_view_column_cell_set_cell_data(
1839: int tree_column, int tree_model, int iter,
1840: boolean is_expander, boolean is_expanded);
1841:
1842: public static final synchronized native void gtk_tree_view_column_clear(
1843: int tree_column);
1844:
1845: public static final synchronized native int gtk_tree_view_column_get_cell_renderers(
1846: int tree_column);
1847:
1848: public static final synchronized native boolean gtk_tree_view_column_get_resizable(
1849: int column);
1850:
1851: public static final synchronized native int gtk_tree_view_column_get_spacing(
1852: int tree_column);
1853:
1854: public static final synchronized native boolean gtk_tree_view_column_get_visible(
1855: int column);
1856:
1857: public static final synchronized native int gtk_tree_view_column_get_width(
1858: int column);
1859:
1860: public static final synchronized native int gtk_tree_view_column_new();
1861:
1862: public static final synchronized native void gtk_tree_view_column_pack_start(
1863: int tree_column, int cell_renderer, boolean expand);
1864:
1865: public static final synchronized native void gtk_tree_view_column_pack_end(
1866: int tree_column, int cell_renderer, boolean expand);
1867:
1868: public static final synchronized native void gtk_tree_view_column_set_alignment(
1869: int tree_column, float xalign);
1870:
1871: public static final synchronized native void gtk_tree_view_column_set_cell_data_func(
1872: int tree_column, int cell_renderer, int func,
1873: int func_data, int destroy);
1874:
1875: public static final synchronized native void gtk_tree_view_column_set_clickable(
1876: int column, boolean clickable);
1877:
1878: public static final synchronized native void gtk_tree_view_column_set_fixed_width(
1879: int column, int fixed_width);
1880:
1881: public static final synchronized native void gtk_tree_view_column_set_resizable(
1882: int column, boolean resizable);
1883:
1884: public static final synchronized native void gtk_tree_view_column_set_sizing(
1885: int column, int type);
1886:
1887: public static final synchronized native void gtk_tree_view_column_set_title(
1888: int tree_column, byte[] title);
1889:
1890: public static final synchronized native void gtk_tree_view_column_set_visible(
1891: int tree_column, boolean visible);
1892:
1893: public static final synchronized native void gtk_tree_view_column_set_widget(
1894: int tree_column, int widget);
1895:
1896: public static final synchronized native void gtk_tree_view_set_drag_dest_row(
1897: int view, int path, int pos);
1898:
1899: public static final synchronized native boolean gtk_tree_view_expand_row(
1900: int view, int path, boolean open_all);
1901:
1902: public static final synchronized native int gtk_tree_view_get_bin_window(
1903: int tree_view);
1904:
1905: public static final synchronized native void gtk_tree_view_get_cell_area(
1906: int tree_view, int path, int column, GdkRectangle rect);
1907:
1908: public static final synchronized native int gtk_tree_view_get_column(
1909: int tree_view, int n);
1910:
1911: public static final synchronized native void gtk_tree_view_get_cursor(
1912: int tree_view, int[] path, int[] focus_column);
1913:
1914: public static final synchronized native boolean gtk_tree_view_get_headers_visible(
1915: int tree_view);
1916:
1917: public static final synchronized native boolean gtk_tree_view_get_path_at_pos(
1918: int tree_view, int x, int y, int[] path, int[] column,
1919: int[] cell_x, int[] cell_y);
1920:
1921: public static final synchronized native boolean gtk_tree_view_get_rules_hint(
1922: int tree_view);
1923:
1924: public static final synchronized native int gtk_tree_view_get_selection(
1925: int tree_view);
1926:
1927: public static final synchronized native void gtk_tree_view_get_visible_rect(
1928: int tree_view, GdkRectangle visible_rect);
1929:
1930: public static final synchronized native int gtk_tree_view_insert_column(
1931: int tree_view, int column, int position);
1932:
1933: public static final synchronized native int gtk_tree_view_new_with_model(
1934: int model);
1935:
1936: public static final synchronized native void gtk_tree_view_remove_column(
1937: int tree_view, int column);
1938:
1939: public static final synchronized native boolean gtk_tree_view_row_expanded(
1940: int view, int path);
1941:
1942: public static final synchronized native void gtk_tree_view_scroll_to_cell(
1943: int tree_view, int path, int column, boolean use_align,
1944: float row_aligh, float column_align);
1945:
1946: public static final synchronized native void gtk_tree_view_set_cursor(
1947: int tree_view, int path, int focus_column,
1948: boolean start_editing);
1949:
1950: public static final synchronized native void gtk_tree_view_set_headers_visible(
1951: int tree_view, boolean visible);
1952:
1953: public static final synchronized native void gtk_tree_view_set_model(
1954: int tree_view, int model);
1955:
1956: public static final synchronized native void gtk_tree_view_set_rules_hint(
1957: int tree_view, boolean setting);
1958:
1959: public static final synchronized native void gtk_tree_view_unset_rows_drag_dest(
1960: int tree_view);
1961:
1962: public static final synchronized native void gtk_tree_view_widget_to_tree_coords(
1963: int tree_view, int wx, int wy, int[] tx, int[] ty);
1964:
1965: public static final synchronized native int gtk_vbox_new(
1966: boolean homogeneous, int spacing);
1967:
1968: public static final synchronized native int gtk_vscale_new(
1969: int adjustment);
1970:
1971: public static final synchronized native int gtk_vscrollbar_new(
1972: int adjustment);
1973:
1974: public static final synchronized native int gtk_vseparator_new();
1975:
1976: public static final synchronized native void gtk_widget_add_accelerator(
1977: int widget, byte[] accel_signal, int accel_group,
1978: int accel_key, int accel_mods, int accel_flags);
1979:
1980: public static final synchronized native void gtk_widget_add_events(
1981: int widget, int events);
1982:
1983: public static final synchronized native int gtk_widget_create_pango_layout(
1984: int widget, byte[] text);
1985:
1986: public static final synchronized native int gtk_widget_create_pango_layout(
1987: int widget, int text);
1988:
1989: public static final synchronized native void gtk_widget_destroy(
1990: int widget);
1991:
1992: public static final synchronized native boolean gtk_widget_event(
1993: int widget, int event);
1994:
1995: public static final synchronized native int gtk_widget_get_default_direction();
1996:
1997: public static final synchronized native int gtk_widget_get_default_style();
1998:
1999: public static final synchronized native int gtk_widget_get_direction(
2000: int widget);
2001:
2002: public static final synchronized native int gtk_widget_get_modifier_style(
2003: int widget);
2004:
2005: public static final synchronized native int gtk_widget_get_pango_context(
2006: int widget);
2007:
2008: public static final synchronized native int gtk_widget_get_parent(
2009: int widget);
2010:
2011: public static final synchronized native int gtk_widget_get_style(
2012: int widget);
2013:
2014: public static final synchronized native void gtk_widget_grab_focus(
2015: int widget);
2016:
2017: public static final synchronized native void gtk_widget_hide(
2018: int widget);
2019:
2020: public static final synchronized native boolean gtk_widget_is_focus(
2021: int widget);
2022:
2023: public static final synchronized native boolean gtk_widget_mnemonic_activate(
2024: int widget, boolean group_cycling);
2025:
2026: public static final synchronized native void gtk_widget_modify_base(
2027: int widget, int state, GdkColor color);
2028:
2029: public static final synchronized native void gtk_widget_modify_bg(
2030: int widget, int state, GdkColor color);
2031:
2032: public static final synchronized native void gtk_widget_modify_fg(
2033: int widget, int state, GdkColor color);
2034:
2035: public static final synchronized native void gtk_widget_modify_font(
2036: int widget, int pango_font_descr);
2037:
2038: public static final synchronized native void gtk_widget_modify_style(
2039: int widget, int style);
2040:
2041: public static final synchronized native void gtk_widget_modify_text(
2042: int widget, int state, GdkColor color);
2043:
2044: public static final synchronized native void gtk_widget_realize(
2045: int widget);
2046:
2047: public static final synchronized native void gtk_widget_remove_accelerator(
2048: int widget, int accel_group, int accel_key, int accel_mods);
2049:
2050: public static final synchronized native void gtk_widget_reparent(
2051: int widget, int new_parent);
2052:
2053: public static final synchronized native void gtk_widget_set_default_direction(
2054: int dir);
2055:
2056: public static final synchronized native void gtk_widget_set_direction(
2057: int widget, int dir);
2058:
2059: public static final synchronized native void gtk_widget_set_double_buffered(
2060: int widget, boolean double_buffered);
2061:
2062: public static final synchronized native void gtk_widget_set_name(
2063: int widget, byte[] name);
2064:
2065: public static final synchronized native void gtk_widget_set_redraw_on_allocate(
2066: int widget, boolean redraw);
2067:
2068: public static final synchronized native void gtk_widget_set_sensitive(
2069: int widget, boolean sensitive);
2070:
2071: public static final synchronized native void gtk_widget_set_size_request(
2072: int widget, int width, int height);
2073:
2074: public static final synchronized native void gtk_widget_set_state(
2075: int widget, int state);
2076:
2077: public static final synchronized native void gtk_widget_shape_combine_mask(
2078: int widget, int shape_mask, int offset_x, int offset_y);
2079:
2080: public static final synchronized native void gtk_widget_show(
2081: int widget);
2082:
2083: public static final synchronized native void gtk_widget_show_now(
2084: int widget);
2085:
2086: public static final synchronized native void gtk_widget_size_allocate(
2087: int widget, GtkAllocation allocation);
2088:
2089: public static final synchronized native void gtk_widget_size_request(
2090: int widget, GtkRequisition requisition);
2091:
2092: public static final synchronized native void gtk_widget_style_get(
2093: int widget, byte[] property_name, int[] value,
2094: int null_terminator);
2095:
2096: public static final synchronized native void gtk_widget_unrealize(
2097: int widget);
2098:
2099: public static final synchronized native boolean gtk_window_activate_default(
2100: int window);
2101:
2102: public static final synchronized native void gtk_window_add_accel_group(
2103: int window, int accel_group);
2104:
2105: public static final synchronized native void gtk_window_deiconify(
2106: int handle);
2107:
2108: public static final synchronized native int gtk_window_get_focus(
2109: int window);
2110:
2111: public static final synchronized native int gtk_window_get_mnemonic_modifier(
2112: int window);
2113:
2114: public static final synchronized native void gtk_window_get_position(
2115: int handle, int[] x, int[] y);
2116:
2117: public static final synchronized native void gtk_window_get_size(
2118: int handle, int[] x, int[] y);
2119:
2120: public static final synchronized native void gtk_window_iconify(
2121: int handle);
2122:
2123: public static final synchronized native void gtk_window_maximize(
2124: int handle);
2125:
2126: public static final synchronized native void gtk_window_move(
2127: int handle, int x, int y);
2128:
2129: public static final synchronized native int gtk_window_new(int type);
2130:
2131: public static final synchronized native void gtk_window_present(
2132: int window);
2133:
2134: public static final synchronized native void gtk_window_remove_accel_group(
2135: int window, int accel_group);
2136:
2137: public static final synchronized native void gtk_window_resize(
2138: int handle, int x, int y);
2139:
2140: public static final synchronized native void gtk_window_set_default(
2141: int window, int widget);
2142:
2143: public static final synchronized native void gtk_window_set_destroy_with_parent(
2144: int window, boolean setting);
2145:
2146: public static final synchronized native void gtk_window_set_modal(
2147: int window, boolean modal);
2148:
2149: public static final synchronized native void gtk_window_set_resizable(
2150: int window, boolean resizable);
2151:
2152: public static final synchronized native void gtk_window_set_title(
2153: int window, byte[] title);
2154:
2155: public static final synchronized native void gtk_window_set_transient_for(
2156: int window, int parent);
2157:
2158: public static final synchronized native void gtk_window_unmaximize(
2159: int handle);
2160:
2161: public static final native void memmove(int dest,
2162: GtkTargetEntry src, int size);
2163:
2164: public static final native void memmove(int dest, GtkAdjustment src);
2165:
2166: public static final native void memmove(int dest,
2167: GdkEventButton src, int size);
2168:
2169: public static final native void memmove(int dest,
2170: PangoAttribute src, int size);
2171:
2172: public static final native void memmove(
2173: GtkColorSelectionDialog dest, int src);
2174:
2175: public static final native void memmove(GtkFileSelection dest,
2176: int src);
2177:
2178: public static final native void memmove(GdkDragContext dest,
2179: int src, int size);
2180:
2181: public static final native void memmove(GtkSelectionData dest,
2182: int src, int size);
2183:
2184: public static final native void memmove(GtkTargetPair dest,
2185: int src, int size);
2186:
2187: public static final native void memmove(GtkCombo dest, int src);
2188:
2189: public static final native void memmove(GtkAdjustment dest, int src);
2190:
2191: public static final native void memmove(GdkColor dest, int src,
2192: int size);
2193:
2194: public static final native void memmove(GdkEvent dest, int src,
2195: int size);
2196:
2197: public static final native void memmove(GdkEventButton dest,
2198: int src, int size);
2199:
2200: public static final native void memmove(GdkEventCrossing dest,
2201: int src, int size);
2202:
2203: public static final native void memmove(GdkEventExpose dest,
2204: int src, int size);
2205:
2206: public static final native void memmove(GdkEventFocus dest,
2207: int src, int size);
2208:
2209: public static final native void memmove(GdkEventKey dest, int src,
2210: int size);
2211:
2212: public static final native void memmove(GdkEventWindowState dest,
2213: int src, int size);
2214:
2215: public static final native void memmove(GtkFixed dest, int src);
2216:
2217: public static final native void memmove(int dest, GtkFixed src);
2218:
2219: public static final native void memmove(GdkVisual dest, int src);
2220:
2221: public static final native void memmove(GdkImage dest, int src);
2222:
2223: public static final native void memmove(GdkRectangle dest, int src,
2224: int size);
2225:
2226: public static final native void memmove(PangoAttribute dest,
2227: int src, int size);
2228:
2229: public static final native void memmove(PangoGlyphItem dest,
2230: int src, int size);
2231:
2232: public static final native void memmove(PangoLayoutLine dest,
2233: int src, int size);
2234:
2235: public static final native void memmove(int dest, int[] src,
2236: int size);
2237:
2238: public static final native void memmove(int dest, byte[] src,
2239: int size);
2240:
2241: public static final native void memmove(int[] dest, byte[] src,
2242: int size);
2243:
2244: public static final native void memmove(byte[] dest, int src,
2245: int size);
2246:
2247: public static final native void memmove(char[] dest, int src,
2248: int size);
2249:
2250: public static final native void memmove(int[] dest, int src,
2251: int size);
2252:
2253: public static final native void memmove(int dest,
2254: PangoGlyphString src, int size);
2255:
2256: public static final native void memmove(PangoGlyphInfo dest,
2257: int src, int size);
2258:
2259: public static final native void memmove(PangoGlyphString dest,
2260: int src, int size);
2261:
2262: public static final native void memmove(PangoItem dest, int src,
2263: int size);
2264:
2265: public static final native void memset(int buffer, char c, int num);
2266:
2267: public static final synchronized native void pango_attr_list_insert(
2268: int list, int attr);
2269:
2270: public static final synchronized native int pango_attr_list_new();
2271:
2272: public static final synchronized native void pango_attr_list_unref(
2273: int list);
2274:
2275: public static final synchronized native int pango_attr_underline_new(
2276: int underline);
2277:
2278: public static final synchronized native int pango_context_get_language(
2279: int context);
2280:
2281: public static final synchronized native int pango_context_get_metrics(
2282: int context, int desc, int language);
2283:
2284: public static final synchronized native void pango_context_list_families(
2285: int context, int[] families, int[] n_families);
2286:
2287: public static final synchronized native int pango_context_load_font(
2288: int context, int desc);
2289:
2290: public static final synchronized native void pango_context_set_base_dir(
2291: int context, int direction);
2292:
2293: public static final synchronized native void pango_context_set_font_description(
2294: int context, int desc);
2295:
2296: public static final synchronized native void pango_context_set_language(
2297: int context, int language);
2298:
2299: public static final synchronized native int pango_coverage_get(
2300: int coverage, int index);
2301:
2302: public static final synchronized native void pango_coverage_unref(
2303: int coverage);
2304:
2305: public static final synchronized native int pango_font_description_copy(
2306: int desc);
2307:
2308: public static final synchronized native void pango_font_description_free(
2309: int desc);
2310:
2311: public static final synchronized native int pango_font_description_from_string(
2312: byte[] str);
2313:
2314: public static final synchronized native int pango_font_description_get_family(
2315: int desc);
2316:
2317: public static final synchronized native int pango_font_description_get_size(
2318: int desc);
2319:
2320: public static final synchronized native int pango_font_description_get_style(
2321: int desc);
2322:
2323: public static final synchronized native int pango_font_description_get_weight(
2324: int desc);
2325:
2326: public static final synchronized native int pango_font_description_new();
2327:
2328: public static final synchronized native void pango_font_description_set_family(
2329: int desc, byte[] family);
2330:
2331: public static final synchronized native void pango_font_description_set_size(
2332: int desc, int size);
2333:
2334: public static final synchronized native void pango_font_description_set_stretch(
2335: int desc, int stretch);
2336:
2337: public static final synchronized native void pango_font_description_set_style(
2338: int desc, int weight);
2339:
2340: public static final synchronized native void pango_font_description_set_weight(
2341: int desc, int weight);
2342:
2343: public static final synchronized native int pango_font_description_to_string(
2344: int desc);
2345:
2346: public static final synchronized native int pango_font_face_describe(
2347: int face);
2348:
2349: public static final synchronized native void pango_font_family_list_faces(
2350: int family, int[] faces, int[] n_faces);
2351:
2352: public static final synchronized native int pango_font_find_shaper(
2353: int font, int language, int ch);
2354:
2355: public static final synchronized native int pango_font_get_coverage(
2356: int font, int language);
2357:
2358: public static final synchronized native int pango_font_map_load_font(
2359: int fontmap, int context, int desc);
2360:
2361: public static final synchronized native int pango_font_metrics_get_approximate_char_width(
2362: int metrics);
2363:
2364: public static final synchronized native int pango_font_metrics_get_ascent(
2365: int metrics);
2366:
2367: public static final synchronized native int pango_font_metrics_get_descent(
2368: int metrics);
2369:
2370: public static final synchronized native void pango_font_metrics_unref(
2371: int metrics);
2372:
2373: public static final synchronized native int pango_language_from_string(
2374: byte[] language);
2375:
2376: public static final synchronized native int pango_layout_get_context(
2377: int layout);
2378:
2379: public static final synchronized native int pango_layout_get_line(
2380: int layout, int line);
2381:
2382: public static final synchronized native void pango_layout_get_size(
2383: int layout, int[] width, int[] height);
2384:
2385: public static final synchronized native int pango_layout_new(
2386: int context);
2387:
2388: public static final synchronized native void pango_layout_set_attributes(
2389: int layout, int attrs);
2390:
2391: public static final synchronized native void pango_layout_set_font_description(
2392: int context, int descr);
2393:
2394: public static final synchronized native void pango_layout_set_single_paragraph_mode(
2395: int context, boolean setting);
2396:
2397: public static final synchronized native void pango_layout_set_tabs(
2398: int layout, int tabs);
2399:
2400: public static final synchronized native void pango_layout_set_text(
2401: int layout, byte[] text, int length);
2402:
2403: public static final synchronized native void pango_layout_set_width(
2404: int layout, int width);
2405:
2406: public static final synchronized native void pango_tab_array_free(
2407: int tab_array);
2408:
2409: public static final synchronized native int pango_tab_array_new(
2410: int initial_size, boolean positions_in_pixels);
2411:
2412: public static final synchronized native void pango_tab_array_set_tab(
2413: int tab_array, int tab_index, int alignment, int location);
2414:
2415: public static final native int strlen(int str);
2416: }
|