| /******************************************************************************* |
| * Copyright (c) 2018 Red Hat Inc. and others. All rights reserved. |
| * The contents of this file are made available under the terms |
| * of the GNU Lesser General Public License (LGPL) Version 2.1 that |
| * accompanies this distribution (lgpl-v21.txt). The LGPL is also |
| * available at http://www.gnu.org/licenses/lgpl.html. If the version |
| * of the LGPL at http://www.gnu.org is different to the version of |
| * the LGPL accompanying this distribution and there is any conflict |
| * between the two license versions, the terms of the LGPL accompanying |
| * this distribution shall govern. |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.swt.internal.gtk; |
| |
| /** |
| * This class contains GTK specific native functions. |
| * |
| * In contrast to OS.java, dynamic functions are automatically linked, no need to add os_custom.h entries. |
| */ |
| public class GTK extends OS { |
| |
| public static final int GTK_VERSION = OS.VERSION(GTK.gtk_get_major_version(), GTK.gtk_get_minor_version(), GTK.gtk_get_micro_version()); |
| public static final boolean GTK4 = GTK_VERSION >= OS.VERSION(4, 0, 0); |
| |
| /** Constants */ |
| public static final int GTK_ACCEL_VISIBLE = 0x1; |
| public static final int GTK_ALIGN_FILL = 0x0; //Gtk3 GtkAlign Enum |
| public static final int GTK_ALIGN_START = 0x1; |
| public static final int GTK_ALIGN_END = 0x2; |
| public static final int GTK_ALIGN_CENTER = 0x3; |
| public static final int GTK_ALIGN_BASELINE = 0x4; |
| public static final int GTK_CALENDAR_SHOW_HEADING = 1 << 0; |
| public static final int GTK_CALENDAR_SHOW_DAY_NAMES = 1 << 1; |
| public static final int GTK_CALENDAR_NO_MONTH_CHANGE = 1 << 2; |
| public static final int GTK_CALENDAR_SHOW_WEEK_NUMBERS = 1 << 3; |
| public static final int GTK_CALENDAR_WEEK_START_MONDAY = 1 << 4; |
| public static final int GTK_CELL_RENDERER_MODE_ACTIVATABLE = 1; |
| public static final int GTK_CELL_RENDERER_SELECTED = 1 << 0; |
| public static final int GTK_CELL_RENDERER_FOCUSED = 1 << 4; |
| public static final int GTK_DIALOG_DESTROY_WITH_PARENT = 1 << 1; |
| public static final int GTK_DIALOG_MODAL = 1 << 0; |
| public static final int GTK_DIR_TAB_FORWARD = 0; |
| public static final int GTK_DIR_TAB_BACKWARD = 1; |
| public static final int GTK_ENTRY_ICON_PRIMARY = 0; |
| public static final int GTK_ENTRY_ICON_SECONDARY = 1; |
| public static final int GTK_FILE_CHOOSER_ACTION_OPEN = 0; |
| public static final int GTK_FILE_CHOOSER_ACTION_SAVE = 1; |
| public static final int GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER = 2; |
| public static final int GTK_ICON_SIZE_MENU = 1; |
| public static final int GTK_ICON_SIZE_SMALL_TOOLBAR = 2; |
| public static final int GTK_ICON_SIZE_DIALOG = 6; |
| public static final int GTK_ICON_LOOKUP_FORCE_SIZE = 4; |
| public static final int GTK_ICON_LOOKUP_FORCE_REGULAR = 0; |
| public static final int GTK_JUSTIFY_CENTER = 0x2; |
| public static final int GTK_JUSTIFY_LEFT = 0x0; |
| public static final int GTK_JUSTIFY_RIGHT = 0x1; |
| public static final int GTK_MESSAGE_INFO = 0; |
| public static final int GTK_MESSAGE_WARNING = 1; |
| public static final int GTK_MESSAGE_QUESTION = 2; |
| public static final int GTK_MESSAGE_ERROR = 3; |
| public static final int GTK_MOVEMENT_VISUAL_POSITIONS = 1; |
| public static final int GTK_ORIENTATION_HORIZONTAL = 0x0; |
| public static final int GTK_ORIENTATION_VERTICAL = 0x1; |
| public static final int GTK_PACK_END = 1; |
| public static final int GTK_PACK_START = 0; |
| public static final int GTK_PAGE_ORIENTATION_PORTRAIT = 0; |
| public static final int GTK_PAGE_ORIENTATION_LANDSCAPE = 1; |
| public static final int GTK_POLICY_ALWAYS = 0x0; |
| public static final int GTK_POLICY_AUTOMATIC = 0x1; |
| public static final int GTK_POLICY_NEVER = 0x2; |
| public static final int GTK_POLICY_EXTERNAL = 0x3; |
| public static final int GTK_POS_TOP = 0x2; |
| public static final int GTK_POS_BOTTOM = 0x3; |
| public static final int GTK_PRINT_CAPABILITY_PAGE_SET = 1 << 0; |
| public static final int GTK_PRINT_CAPABILITY_COPIES = 1 << 1; |
| public static final int GTK_PRINT_CAPABILITY_COLLATE = 1 << 2; |
| public static final int GTK_PRINT_PAGES_ALL = 0; |
| public static final int GTK_PRINT_PAGES_CURRENT = 1; |
| public static final int GTK_PRINT_PAGES_RANGES = 2; |
| public static final int GTK_PRINT_PAGES_SELECTION = 3; |
| public static final int GTK_PRINT_DUPLEX_SIMPLEX = 0; |
| public static final int GTK_PRINT_DUPLEX_HORIZONTAL = 1; |
| public static final int GTK_PRINT_DUPLEX_VERTICAL = 2; |
| public static final int GTK_EVENT_CONTROLLER_SCROLL_BOTH_AXES = 5; |
| public static final int GTK_PHASE_CAPTURE = 1; |
| public static final int GTK_PHASE_BUBBLE = 2; |
| public static final int GTK_PHASE_TARGET = 3; |
| public static final int GTK_PROGRESS_LEFT_TO_RIGHT = 0x0; |
| public static final int GTK_PROGRESS_BOTTOM_TO_TOP = 0x2; |
| public static final int GTK_POPOVER_MENU_NESTED = 1; |
| public static final int GTK_RESPONSE_CANCEL = 0xfffffffa; |
| public static final int GTK_RESPONSE_OK = 0xfffffffb; |
| public static final int GTK_RESPONSE_ACCEPT = -3; |
| public static final int GTK_SCROLL_NONE = 0; |
| public static final int GTK_SCROLL_JUMP = 1; |
| public static final int GTK_SCROLL_STEP_BACKWARD = 2; |
| public static final int GTK_SCROLL_STEP_FORWARD = 3; |
| public static final int GTK_SCROLL_PAGE_BACKWARD = 4; |
| public static final int GTK_SCROLL_PAGE_FORWARD = 5; |
| public static final int GTK_SCROLL_STEP_UP = 6; |
| public static final int GTK_SCROLL_STEP_DOWN = 7; |
| public static final int GTK_SCROLL_PAGE_UP = 8; |
| public static final int GTK_SCROLL_PAGE_DOWN = 9; |
| public static final int GTK_SCROLL_STEP_LEFT = 10; |
| public static final int GTK_SCROLL_STEP_RIGHT = 11; |
| public static final int GTK_SCROLL_PAGE_LEFT = 12; |
| public static final int GTK_SCROLL_PAGE_RIGHT = 13; |
| public static final int GTK_SCROLL_START = 14; |
| public static final int GTK_SCROLL_END = 15; |
| public static final int GTK_SELECTION_BROWSE = 0x2; |
| public static final int GTK_SELECTION_MULTIPLE = 0x3; |
| public static final int GTK_SHADOW_ETCHED_IN = 0x3; |
| public static final int GTK_SHADOW_ETCHED_OUT = 0x4; |
| public static final int GTK_SHADOW_IN = 0x1; |
| public static final int GTK_SHADOW_NONE = 0x0; |
| public static final int GTK_SHADOW_OUT = 0x2; |
| public static final int GTK_STATE_FLAG_NORMAL = 0; |
| public static final int GTK_STATE_FLAG_ACTIVE = 1 << 0; |
| public static final int GTK_STATE_FLAG_PRELIGHT = 1 << 1; |
| public static final int GTK_STATE_FLAG_SELECTED = 1 << 2; |
| public static final int GTK_STATE_FLAG_INSENSITIVE = 1 << 3; |
| public static final int GTK_STATE_FLAG_INCONSISTENT = 1 << 4; |
| public static final int GTK_STATE_FLAG_FOCUSED = 1 << 5; |
| public static final int GTK_STATE_FLAG_BACKDROP = 1 << 6; |
| public static final int GTK_STATE_FLAG_LINK = 1 << 9; |
| public static final int GTK_TEXT_DIR_LTR = 1; |
| public static final int GTK_TEXT_DIR_RTL = 2; |
| public static final int GTK_TEXT_WINDOW_TEXT = 2; |
| public static final int GTK_TOOLBAR_ICONS = 0; |
| public static final int GTK_TOOLBAR_TEXT = 1; |
| public static final int GTK_TOOLBAR_BOTH = 2; |
| public static final int GTK_TOOLBAR_BOTH_HORIZ = 3; |
| public static final int GTK_TREE_VIEW_COLUMN_GROW_ONLY = 0; |
| public static final int GTK_TREE_VIEW_COLUMN_AUTOSIZE = 1; |
| public static final int GTK_TREE_VIEW_COLUMN_FIXED = 2; |
| public static final int GTK_TREE_VIEW_DROP_BEFORE = 0; |
| public static final int GTK_TREE_VIEW_DROP_AFTER = 1; |
| public static final int GTK_TREE_VIEW_DROP_INTO_OR_BEFORE = 2; |
| public static final int GTK_TREE_VIEW_DROP_INTO_OR_AFTER = 3; |
| public static final int GTK_TREE_VIEW_GRID_LINES_NONE = 0; |
| public static final int GTK_TREE_VIEW_GRID_LINES_HORIZONTAL = 1; |
| public static final int GTK_TREE_VIEW_GRID_LINES_VERTICAL = 2; |
| public static final int GTK_TREE_VIEW_GRID_LINES_BOTH = 3; |
| public static final int GTK_STYLE_PROVIDER_PRIORITY_APPLICATION = 600; |
| public static final int GTK_STYLE_PROVIDER_PRIORITY_USER = 800; |
| public static final int GTK_UNIT_PIXEL = 0; |
| public static final int GTK_UNIT_POINTS = 1; |
| public static final int GTK_UNIT_INCH = 2; |
| public static final int GTK_UNIT_MM = 3; |
| public static final int GTK_WINDOW_POPUP = 0x1; |
| public static final int GTK_WINDOW_TOPLEVEL = 0x0; |
| public static final int GTK_WRAP_NONE = 0; |
| public static final int GTK_WRAP_WORD = 2; |
| public static final int GTK_WRAP_WORD_CHAR = 3; |
| public static final int GTK_SHORTCUT_SCOPE_GLOBAL = 2; |
| public static final int GTK_INPUT_HINT_NO_EMOJI = 1024; |
| |
| /** Classes */ |
| public static final byte[] GTK_STYLE_CLASS_VIEW = OS.ascii("view"); |
| public static final byte[] GTK_STYLE_CLASS_CELL = OS.ascii("cell"); |
| public static final byte[] GTK_STYLE_CLASS_PANE_SEPARATOR = OS.ascii("pane-separator"); |
| public static final byte[] GTK_STYLE_CLASS_SUGGESTED_ACTION = OS.ascii("suggested-action"); |
| public static final byte[] GTK_STYLE_CLASS_FRAME = OS.ascii("frame"); |
| |
| /** Properties */ |
| public static final byte[] gtk_alternative_button_order = OS.ascii("gtk-alternative-button-order"); |
| public static final byte[] gtk_cursor_blink = OS.ascii("gtk-cursor-blink"); |
| public static final byte[] gtk_cursor_blink_time = OS.ascii("gtk-cursor-blink-time"); |
| public static final byte[] gtk_double_click_time = OS.ascii("gtk-double-click-time"); |
| public static final byte[] gtk_entry_select_on_focus = OS.ascii("gtk-entry-select-on-focus"); |
| public static final byte[] gtk_style_property_font = GTK.GTK4 ? OS.ascii("gtk-font-name") : OS.ascii("font"); |
| public static final byte[] gtk_menu_bar_accel = OS.ascii("gtk-menu-bar-accel"); |
| public static final byte[] gtk_theme_name = OS.ascii("gtk-theme-name"); |
| public static final byte[] gtk_im_module = OS.ascii("gtk-im-module"); |
| |
| /** Misc **/ |
| public static final byte[] GTK_PRINT_SETTINGS_OUTPUT_URI = OS.ascii("output-uri"); |
| |
| /** |
| * Needed to tell GTK 3 to prefer a dark or light theme in the UI. |
| * Improves the look of the Eclipse Dark theme in GTK 3 systems. |
| */ |
| public static final byte[] gtk_application_prefer_dark_theme = OS.ascii("gtk-application-prefer-dark-theme"); |
| |
| /** Named icons. |
| * See https://docs.google.com/spreadsheet/pub?key=0AsPAM3pPwxagdGF4THNMMUpjUW5xMXZfdUNzMXhEa2c&output=html |
| * See http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html#names |
| * Icon preview tool: gtk3-icon-browser |
| * Snippets often demonstrate usage of these. E.x 309, 258. |
| * */ |
| public static final byte[] GTK_NAMED_ICON_GO_UP = OS.ascii ("go-up-symbolic"); |
| public static final byte[] GTK_NAMED_ICON_GO_DOWN = OS.ascii ("go-down-symbolic"); |
| public static final byte[] GTK_NAMED_ICON_GO_NEXT = OS.ascii ("go-next-symbolic"); |
| public static final byte[] GTK_NAMED_ICON_GO_PREVIOUS = OS.ascii ("go-previous-symbolic"); |
| public static final byte[] GTK_NAMED_ICON_PAN_DOWN = OS.ascii ("pan-down-symbolic"); |
| public static final byte[] GTK_NAMED_LABEL_OK = OS.ascii("_OK"); |
| public static final byte[] GTK_NAMED_LABEL_CANCEL = OS.ascii("_Cancel"); |
| |
| /** SWT Tools translates TYPE_sizeof() into sizeof(TYPE) at native level. os.c will have a binding to functions auto-generated in os_structs.h */ |
| public static final native int GtkAllocation_sizeof(); |
| public static final native int GtkBorder_sizeof(); |
| public static final native int GtkRequisition_sizeof(); |
| public static final native int GtkTargetEntry_sizeof(); |
| public static final native int GtkTextIter_sizeof(); |
| public static final native int GtkCellRendererText_sizeof(); |
| public static final native int GtkCellRendererTextClass_sizeof(); |
| public static final native int GtkTreeIter_sizeof(); |
| |
| /** GTK3 sizeof() [if-def'd in os.h] */ |
| public static final native int GtkCellRendererPixbuf_sizeof(); |
| public static final native int GtkCellRendererPixbufClass_sizeof(); |
| public static final native int GtkCellRendererToggle_sizeof(); |
| public static final native int GtkCellRendererToggleClass_sizeof(); |
| |
| |
| /** |
| * Macros. |
| * |
| * Some of these are not found in dev documentation, only in the sources. |
| */ |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long GTK_WIDGET_GET_CLASS(long widget); |
| /** @method flags=const */ |
| public static final native long GTK_TYPE_TEXT_VIEW_ACCESSIBLE (); |
| public static final native boolean GTK_IS_BOX(long obj); |
| public static final native boolean GTK_IS_BUTTON(long obj); |
| public static final native boolean GTK_IS_LABEL(long obj); |
| public static final native boolean GTK_IS_IM_CONTEXT(long obj); |
| public static final native boolean GTK_IS_SCROLLED_WINDOW(long obj); |
| public static final native boolean GTK_IS_WINDOW(long obj); |
| public static final native boolean GTK_IS_CELL_RENDERER_PIXBUF(long obj); |
| public static final native boolean GTK_IS_CELL_RENDERER_TEXT(long obj); |
| public static final native boolean GTK_IS_CELL_RENDERER_TOGGLE(long obj); |
| public static final native boolean GTK_IS_PLUG(long obj); |
| /** @method flags=const */ |
| public static final native long GTK_TYPE_CELL_RENDERER_TEXT(); |
| /** @method flags=const */ |
| public static final native long GTK_TYPE_CELL_RENDERER_PIXBUF(); |
| /** @method flags=const */ |
| public static final native long GTK_TYPE_CELL_RENDERER_TOGGLE(); |
| /** @method flags=const */ |
| public static final native long GTK_TYPE_IM_MULTICONTEXT(); |
| /** @method flags=const */ |
| public static final native long GTK_TYPE_WIDGET(); |
| /** @method flags=const */ |
| public static final native long GTK_TYPE_WINDOW(); |
| |
| /** GTK3 Macros [if-def'd in os.h] */ |
| public static final native boolean GTK_IS_ACCEL_LABEL(long obj); |
| public static final native boolean GTK_IS_CONTAINER(long obj); |
| |
| // See os_custom.h |
| // Dynamically get's the function pointer to gtk_false(). Gtk2/Gtk3. |
| public static final native long GET_FUNCTION_POINTER_gtk_false(); |
| |
| |
| /* GtkButton */ |
| public static final native long gtk_button_new(); |
| /** |
| * @method flags=dynamic |
| * @param button cast=(GtkButton *) |
| * @param label cast=(const char *) |
| */ |
| public static final native void gtk_button_set_label(long button, byte[] label); |
| /** @param button cast=(GtkButton *) */ |
| public static final native void gtk_button_set_use_underline(long button, boolean use_underline); |
| |
| /* Keyboard Accelerators */ |
| public static final native int gtk_accelerator_get_default_mod_mask(); |
| /** |
| * @param accelerator cast=(const gchar *) |
| * @param accelerator_key cast=(guint *) |
| * @param accelerator_mods cast=(GdkModifierType *) |
| */ |
| public static final native void gtk_accelerator_parse(long accelerator, int [] accelerator_key, int [] accelerator_mods); |
| /** |
| * @param accelerator_key cast=(guint) |
| * @param accelerator_mods cast=(GdkModifierType) |
| */ |
| public static final native long gtk_accelerator_name(int accelerator_key, int accelerator_mods); |
| /** |
| * @param accelerator cast=(const gchar *) |
| * @param accelerator_key cast=(guint *) |
| * @param accelerator_mods cast=(GdkModifierType *) |
| */ |
| public static final native void gtk_accelerator_parse(byte[] accelerator, int[] accelerator_key, int[] accelerator_mods); |
| /** @method flags=dynamic */ |
| public static final native long gtk_accel_group_new(); |
| |
| /* GtkAdjustment */ |
| /** @param adjustment cast=(GtkAdjustment *) */ |
| public static final native void gtk_adjustment_configure(long adjustment, double value, double lower, double upper, double step_increment, double page_increment, double page_size); |
| /** |
| * @param value cast=(gdouble) |
| * @param lower cast=(gdouble) |
| * @param upper cast=(gdouble) |
| * @param step_increment cast=(gdouble) |
| * @param page_increment cast=(gdouble) |
| * @param page_size cast=(gdouble) |
| */ |
| public static final native long gtk_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size); |
| /** @param adjustment cast=(GtkAdjustment *) */ |
| public static final native double gtk_adjustment_get_lower(long adjustment); |
| /** @param adjustment cast=(GtkAdjustment *) */ |
| public static final native double gtk_adjustment_get_page_increment(long adjustment); |
| /** @param adjustment cast=(GtkAdjustment *) */ |
| public static final native double gtk_adjustment_get_page_size(long adjustment); |
| /** @param adjustment cast=(GtkAdjustment *) */ |
| public static final native double gtk_adjustment_get_step_increment(long adjustment); |
| /** @param adjustment cast=(GtkAdjustment *) */ |
| public static final native double gtk_adjustment_get_upper(long adjustment); |
| /** @param adjustment cast=(GtkAdjustment *) */ |
| public static final native double gtk_adjustment_get_value(long adjustment); |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| * @param value cast=(gdouble) |
| */ |
| public static final native void gtk_adjustment_set_value(long adjustment, double value); |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| * @param value cast=(gdouble) |
| */ |
| public static final native void gtk_adjustment_set_step_increment(long adjustment, double value); |
| /** |
| * @param adjustment cast=(GtkAdjustment *) |
| * @param value cast=(gdouble) |
| */ |
| public static final native void gtk_adjustment_set_page_increment(long adjustment, double value); |
| |
| /* GtkBorder */ |
| /** @param border cast=(GtkBorder *) */ |
| public static final native void gtk_border_free(long border); |
| |
| /* GtkBox */ |
| /** @param box cast=(GtkBox *) */ |
| public static final native void gtk_box_set_spacing(long box, int spacing); |
| /** |
| * @param orientation cast=(GtkOrientation) |
| * @param spacing cast=(gint) |
| */ |
| public static final native long gtk_box_new(int orientation, int spacing); |
| /** |
| * @param box cast=(GtkBox *) |
| * @param homogeneous cast=(gboolean) |
| */ |
| public static final native void gtk_box_set_homogeneous(long box, boolean homogeneous); |
| |
| /* GtkCalendar */ |
| public static final native long gtk_calendar_new(); |
| /** |
| * @param calendar cast=(GtkCalendar *) |
| * @param day cast=(guint) |
| */ |
| public static final native void gtk_calendar_mark_day(long calendar, int day); |
| /** |
| * @param calendar cast=(GtkCalendar *) |
| */ |
| public static final native void gtk_calendar_clear_marks(long calendar); |
| |
| |
| /** @param cell_layout cast=(GtkCellLayout *) */ |
| public static final native void gtk_cell_layout_clear(long cell_layout); |
| /** @param cell_layout cast=(GtkCellLayout *) */ |
| public static final native long gtk_cell_layout_get_cells(long cell_layout); |
| /** |
| * @param cell_layout cast=(GtkCellLayout *) |
| * @param cell cast=(GtkCellRenderer *) |
| * @param sentinel cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void gtk_cell_layout_set_attributes(long cell_layout, long cell, byte[] attribute, int column, long sentinel); |
| /** |
| * @param cell_layout cast=(GtkCellLayout *) |
| * @param cell cast=(GtkCellRenderer *) |
| */ |
| public static final native void gtk_cell_layout_pack_start(long cell_layout, long cell, boolean expand); |
| /** |
| * @param cell cast=(GtkCellRenderer *) |
| * @param widget cast=(GtkWidget *) |
| * @param minimum_size cast=(GtkRequisition *) |
| * @param natural_size cast=(GtkRequisition *) |
| */ |
| public static final native void gtk_cell_renderer_get_preferred_size(long cell, long widget, GtkRequisition minimum_size, GtkRequisition natural_size); |
| /** |
| * @param cell cast=(GtkCellRenderer *) |
| * @param xpad cast=(gint *) |
| * @param ypad cast=(gint *) |
| */ |
| public static final native void gtk_cell_renderer_get_padding(long cell, int [] xpad, int [] ypad); |
| /** |
| * @param cell cast=(GtkCellRenderer *) |
| * @param widget cast=(GtkWidget *) |
| * @param width cast=(gint) |
| * @param minimum_height cast=(gint *) |
| * @param natural_height cast=(gint *) |
| */ |
| public static final native void gtk_cell_renderer_get_preferred_height_for_width(long cell, long widget, int width, int[] minimum_height, int[] natural_height); |
| /** |
| * @param cell cast=(GtkCellRenderer *) |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| */ |
| public static final native void gtk_cell_renderer_set_fixed_size(long cell, int width, int height); |
| /** |
| * @param cell cast=(GtkCellRenderer *) |
| * @param width cast=(gint *) |
| * @param height cast=(gint *) |
| */ |
| public static final native void gtk_cell_renderer_get_fixed_size(long cell, int[] width, int[] height); |
| public static final native long gtk_cell_renderer_pixbuf_new(); |
| public static final native long gtk_cell_renderer_text_new(); |
| public static final native long gtk_cell_renderer_toggle_new(); |
| /** |
| * @param cell_view cast=(GtkCellView *) |
| * @param fit_model cast=(gboolean) |
| */ |
| public static final native void gtk_cell_view_set_fit_model(long cell_view, boolean fit_model); |
| |
| |
| /* GtkCheckButton */ |
| public static final native long gtk_check_button_new(); |
| |
| |
| public static final native long gtk_check_version(int required_major, int required_minor, int required_micro); |
| /* GtkColorChooser Interface */ |
| /** |
| * @param chooser cast=(GtkColorChooser *) |
| * @param orientation cast=(GtkOrientation) |
| * @param colors_per_line cast=(gint) |
| * @param n_colors cast=(gint) |
| * @param colors cast=(GdkRGBA *) |
| */ |
| public static final native void gtk_color_chooser_add_palette(long chooser, int orientation, int colors_per_line, int n_colors, long colors); |
| /** |
| * @param chooser cast=(GtkColorChooser *) |
| * @param use_alpha cast=(gboolean) |
| */ |
| public static final native void gtk_color_chooser_set_use_alpha(long chooser, boolean use_alpha); |
| /** |
| * @param chooser cast=(GtkColorChooser *) |
| */ |
| public static final native boolean gtk_color_chooser_get_use_alpha(long chooser); |
| /** |
| * @param chooser cast=(GtkColorChooser *) |
| * @param color cast=(GdkRGBA *) |
| */ |
| public static final native void gtk_color_chooser_set_rgba(long chooser, GdkRGBA color); |
| /** |
| * @param chooser cast=(GtkColorChooser *) |
| * @param color cast=(GdkRGBA *) |
| */ |
| public static final native void gtk_color_chooser_get_rgba(long chooser, GdkRGBA color); |
| /** |
| * @param title cast=(const gchar *) |
| * @param parent cast=(GtkWindow *) |
| */ |
| public static final native long gtk_color_chooser_dialog_new(byte[] title, long parent); |
| |
| /* GtkComboBox */ |
| public static final native long gtk_combo_box_text_new(); |
| public static final native long gtk_combo_box_text_new_with_entry(); |
| /** |
| * @param combo_box cast=(GtkComboBoxText *) |
| * @param position cast=(gint) |
| * @param id cast=(const gchar *) |
| * @param text cast=(const gchar *) |
| */ |
| /* Do not call directly, instead use Combo.gtk_combo_box_insert(..) */ |
| public static final native void gtk_combo_box_text_insert(long combo_box, int position, byte[] id, byte[] text); |
| /** @param combo_box cast=(GtkComboBoxText *) */ |
| public static final native void gtk_combo_box_text_remove(long combo_box, int position); |
| /** |
| * @param combo_box cast=(GtkComboBoxText *) |
| */ |
| /* Do not call directly. Call Combo.gtk_combo_box_text_remove_all(..) instead). */ |
| public static final native void gtk_combo_box_text_remove_all(long combo_box); |
| /** |
| * @param combo_box cast=(GtkComboBox *) |
| */ |
| public static final native int gtk_combo_box_get_active(long combo_box); |
| /** |
| * @param combo_box cast=(GtkComboBox *) |
| */ |
| public static final native long gtk_combo_box_get_model(long combo_box); |
| /** |
| * @param combo_box cast=(GtkComboBox *) |
| * @param index cast=(gint) |
| */ |
| public static final native void gtk_combo_box_set_active(long combo_box, int index); |
| |
| /** |
| * @param combo_box cast=(GtkComboBox *) |
| */ |
| public static final native void gtk_combo_box_popup(long combo_box); |
| /** |
| * @param combo_box cast=(GtkComboBox *) |
| */ |
| public static final native void gtk_combo_box_popdown(long combo_box); |
| |
| /* GtkDialog */ |
| /** |
| * @param dialog cast=(GtkDialog *) |
| * @param button_text cast=(const gchar *) |
| * @param response_id cast=(gint) |
| */ |
| public static final native long gtk_dialog_add_button(long dialog, byte[] button_text, int response_id); |
| |
| /* GtkEditable Interface */ |
| /** |
| * @param editable cast=(GtkEditable *) |
| * @param start cast=(gint) |
| * @param end cast=(gint) |
| */ |
| public static final native void gtk_editable_select_region(long editable, int start, int end); |
| /** @param editable cast=(GtkEditable *) */ |
| public static final native void gtk_editable_delete_selection(long editable); |
| /** |
| * @param editable cast=(GtkEditable *) |
| * @param start_pos cast=(gint) |
| * @param end_pos cast=(gint) |
| */ |
| public static final native void gtk_editable_delete_text(long editable, int start_pos, int end_pos); |
| /** |
| * @param entry cast=(GtkEditable *) |
| * @param editable cast=(gboolean) |
| */ |
| public static final native void gtk_editable_set_editable(long entry, boolean editable); |
| /** @param editable cast=(GtkEditable *) */ |
| public static final native boolean gtk_editable_get_editable(long editable); |
| /** |
| * @param editable cast=(GtkEditable *) |
| * @param position cast=(gint) |
| */ |
| public static final native void gtk_editable_set_position(long editable, int position); |
| /** @param editable cast=(GtkEditable *) */ |
| public static final native int gtk_editable_get_position(long editable); |
| /** |
| * @param editable cast=(GtkEditable *) |
| * @param start cast=(gint *) |
| * @param end cast=(gint *) |
| */ |
| public static final native boolean gtk_editable_get_selection_bounds(long editable, int[] start, int[] end); |
| /** |
| * @param editable cast=(GtkEditable *) |
| * @param new_text cast=(gchar *) |
| * @param new_text_length cast=(gint) |
| * @param position cast=(gint *) |
| */ |
| public static final native void gtk_editable_insert_text(long editable, byte[] new_text, int new_text_length, int[] position); |
| |
| /* GtkEntry */ |
| public static final native long gtk_entry_new(); |
| /** @param entry cast=(GtkEntry *) */ |
| public static final native char gtk_entry_get_invisible_char(long entry); |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param ch cast=(gint) |
| */ |
| public static final native void gtk_entry_set_invisible_char(long entry, char ch); |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param icon_pos cast=(gint) |
| * @param icon_area cast=(GdkRectangle *),flags=no_in |
| */ |
| public static final native void gtk_entry_get_icon_area(long entry, int icon_pos, GdkRectangle icon_area); |
| /** @param entry cast=(GtkEntry *) */ |
| public static final native int gtk_entry_get_max_length(long entry); |
| /** @param entry cast=(GtkEntry *) */ |
| public static final native boolean gtk_entry_get_visibility(long entry); |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param visible cast=(gboolean) |
| */ |
| public static final native void gtk_entry_set_visibility(long entry, boolean visible); |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param xalign cast=(gfloat) |
| */ |
| public static final native void gtk_entry_set_alignment(long entry, float xalign); |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param setting cast=(gboolean) |
| */ |
| public static final native void gtk_entry_set_has_frame(long entry, boolean setting); |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param iconPos cast=(gint) |
| * @param stock cast=(const gchar *) |
| */ |
| public static final native void gtk_entry_set_icon_from_icon_name(long entry, int iconPos, byte[] stock); |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param icon_pos cast=(GtkEntryIconPosition) |
| * @param activatable cast=(gboolean) |
| */ |
| public static final native void gtk_entry_set_icon_activatable(long entry, int icon_pos, boolean activatable); |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param icon_pos cast=(GtkEntryIconPosition) |
| * @param sensitive cast=(gboolean) |
| */ |
| public static final native void gtk_entry_set_icon_sensitive(long entry, int icon_pos, boolean sensitive); |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param text cast=(const gchar *) |
| */ |
| public static final native void gtk_entry_set_placeholder_text(long entry, byte[] text); |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param max cast=(gint) |
| */ |
| public static final native void gtk_entry_set_max_length(long entry, int max); |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param tabs cast=(PangoTabArray *) |
| */ |
| public static final native void gtk_entry_set_tabs(long entry, long tabs); |
| |
| /** |
| * @param entry cast=(GtkEntry *) |
| * @param hint cast=(GtkInputHints) |
| */ |
| public static final native void gtk_entry_set_input_hints(long entry, int hint); |
| |
| /* GtkEntryBuffer */ |
| /** |
| * @param buffer cast=(GtkEntryBuffer *) |
| * @param position cast=(guint) |
| */ |
| public static final native int gtk_entry_buffer_delete_text(long buffer, int position, int n_chars); |
| /** |
| * @param buffer cast=(GtkEntryBuffer *) |
| * @param chars cast=(const char *) |
| */ |
| public static final native void gtk_entry_buffer_set_text(long buffer, byte[] chars, int n_chars); |
| /** @param buffer cast=(GtkEntryBuffer *) */ |
| public static final native long gtk_entry_buffer_get_text(long buffer); |
| |
| /* GtkExpander */ |
| /** @param label cast=(const gchar *) */ |
| public static final native long gtk_expander_new(byte[] label); |
| /** @param expander cast=(GtkExpander *) */ |
| public static final native boolean gtk_expander_get_expanded(long expander); |
| /** @param expander cast=(GtkExpander *) */ |
| public static final native void gtk_expander_set_expanded(long expander, boolean expanded); |
| /** |
| * @param expander cast=(GtkExpander *) |
| * @param label_widget cast=(GtkWidget *) |
| */ |
| public static final native void gtk_expander_set_label_widget(long expander, long label_widget); |
| /** @param expander cast=(GtkExpander *) */ |
| public static final native long gtk_expander_get_label_widget(long expander); |
| |
| /* GtkFileChooser */ |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param filter cast=(GtkFileFilter *) |
| */ |
| public static final native void gtk_file_chooser_add_filter(long chooser, long filter); |
| /** @param chooser cast=(GtkFileChooser *) */ |
| public static final native long gtk_file_chooser_get_filter(long chooser); |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param name cast=(const gchar *) |
| */ |
| public static final native void gtk_file_chooser_set_current_name(long chooser, byte[] name); |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param filter cast=(GtkFileFilter *) |
| */ |
| public static final native void gtk_file_chooser_set_filter(long chooser, long filter); |
| /** |
| * @param chooser cast=(GtkFileChooser *) |
| * @param select_multiple cast=(gboolean) |
| */ |
| public static final native void gtk_file_chooser_set_select_multiple(long chooser, boolean select_multiple); |
| |
| /* GtkEventController */ |
| /** |
| * @param controller cast=(GtkEventController *) |
| * @param phase cast=(GtkPropagationPhase) |
| */ |
| public static final native void gtk_event_controller_set_propagation_phase(long controller, int phase); |
| /** @param controller cast=(GtkEventController *) */ |
| public static final native long gtk_event_controller_get_widget(long controller); |
| |
| /* GtkGestureSingle */ |
| /** @method flags=dynamic */ |
| public static final native void gtk_gesture_single_set_button(long gesture, int button); |
| /** @param gesture cast=(GtkGestureSingle *) */ |
| public static final native int gtk_gesture_single_get_current_button(long gesture); |
| |
| /* GtkFileChooserNative */ |
| /** |
| * @method flags=dynamic |
| * @param title cast=(const gchar *),flags=no_out |
| * @param parent cast=(GtkWindow *) |
| * @param accept_label cast=(const gchar *),flags=no_out |
| * @param cancel_label cast=(const gchar *),flags=no_out |
| */ |
| public static final native long gtk_file_chooser_native_new(byte[] title, long parent, int action, byte[] accept_label, byte[] cancel_label); |
| |
| /** |
| * @param filter cast=(GtkFileFilter *) |
| * @param pattern cast=(const gchar *) |
| */ |
| public static final native void gtk_file_filter_add_pattern(long filter, byte[] pattern); |
| public static final native long gtk_file_filter_new(); |
| /** @param filter cast=(GtkFileFilter *) */ |
| public static final native long gtk_file_filter_get_name(long filter); |
| /** |
| * @param filter cast=(GtkFileFilter *) |
| * @param name cast=(const gchar *) |
| */ |
| public static final native void gtk_file_filter_set_name(long filter, byte[] name); |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native boolean gtk_gesture_drag_get_start_point(long gesture, double[] x, double [] y); |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native boolean gtk_gesture_is_recognized(long gesture); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native long gtk_gesture_drag_new(long widget); |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native long gtk_gesture_get_last_updated_sequence(long gesture); |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native boolean gtk_gesture_get_point(long gesture, long sequence, double[] x, double [] y); |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native boolean gtk_gesture_swipe_get_velocity(long gesture, double [] velocity_x, double[] velocity_y); |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native void gtk_gesture_drag_get_offset(long gesture, double[] x, double[] y); |
| /** |
| * @method flags=dynamic |
| */ |
| |
| public static final native double gtk_gesture_rotate_get_angle_delta(long gesture); |
| /** |
| * @method flags=dynamic |
| */ |
| |
| public static final native long gtk_gesture_rotate_new(long widget); |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native long gtk_gesture_zoom_new(long widget); |
| /** |
| * @method flags=dynamic |
| */ |
| public static final native double gtk_gesture_zoom_get_scale_delta(long gesture); |
| |
| |
| /** |
| * @param title cast=(const gchar *) |
| * @param parent cast=(GtkWindow *) |
| */ |
| public static final native long gtk_font_chooser_dialog_new(byte[] title, long parent); |
| /** |
| * @param fontchooser cast=(GtkFontChooser *) |
| */ |
| public static final native long gtk_font_chooser_get_font(long fontchooser); |
| /** |
| * @param fsd cast=(GtkFontChooser *) |
| * @param fontname cast=(const gchar *) |
| */ |
| public static final native void gtk_font_chooser_set_font(long fsd, byte[] fontname); |
| |
| /* GtkFrame */ |
| /** @param label cast=(const gchar *) */ |
| public static final native long gtk_frame_new(byte[] label); |
| /** @param frame cast=(GtkFrame *) */ |
| public static final native long gtk_frame_get_label_widget(long frame); |
| /** |
| * @param frame cast=(GtkFrame *) |
| * @param label_widget cast=(GtkWidget *) |
| */ |
| public static final native void gtk_frame_set_label_widget(long frame, long label_widget); |
| |
| /* GTK Initialization */ |
| public static final native long gtk_get_default_language(); |
| |
| /* GtkScale */ |
| /** |
| * @param orientation cast=(GtkOrientation) |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native long gtk_scale_new(int orientation, long adjustment); |
| /** |
| * @param scale cast=(GtkScale *) |
| * @param digits cast=(gint) |
| */ |
| public static final native void gtk_scale_set_digits(long scale, int digits); |
| /** |
| * @param scale cast=(GtkScale *) |
| * @param draw_value cast=(gboolean) |
| */ |
| public static final native void gtk_scale_set_draw_value(long scale, boolean draw_value); |
| |
| /* GtkScrollbar */ |
| /** |
| * @param orientation cast=(GtkOrientation) |
| * @param adjustment cast=(GtkAdjustment *) |
| */ |
| public static final native long gtk_scrollbar_new(int orientation, long adjustment); |
| |
| |
| public static final native long gtk_search_entry_new(); |
| /** |
| * @param orientation cast=(GtkOrientation) |
| */ |
| public static final native long gtk_separator_new(int orientation); |
| // Get function pointer to gtk_status_icon_position_menu |
| // See os_custom.h |
| public static final native long gtk_status_icon_position_menu_func(); |
| |
| /** @param context cast=(GtkIMContext *) */ |
| public static final native void gtk_im_context_focus_in(long context); |
| /** @param context cast=(GtkIMContext *) */ |
| public static final native void gtk_im_context_focus_out(long context); |
| /** |
| * @param context cast=(GtkIMContext *) |
| * @param str cast=(gchar **) |
| * @param attrs cast=(PangoAttrList **) |
| * @param cursor_pos cast=(gint *) |
| */ |
| public static final native void gtk_im_context_get_preedit_string(long context, long [] str, long [] attrs, int[] cursor_pos); |
| public static final native long gtk_im_context_get_type(); |
| /** @param context cast=(GtkIMContext *) */ |
| public static final native void gtk_im_context_reset(long context); |
| /** |
| * @param context cast=(GtkIMContext *) |
| * @param window cast=(GdkWindow *) |
| */ |
| public static final native void gtk_im_context_set_client_window(long context, long window); |
| /** |
| * @param context cast=(GtkIMContext *) |
| * @param area cast=(GdkRectangle *),flags=no_out |
| */ |
| public static final native void gtk_im_context_set_cursor_location(long context, GdkRectangle area); |
| public static final native long gtk_im_multicontext_new(); |
| |
| /* GtkImage */ |
| public static final native long gtk_image_new(); |
| /** |
| * @param image cast=(GtkImage *) |
| * @param pixel_size cast=(gint) |
| */ |
| public static final native void gtk_image_set_pixel_size(long image, int pixel_size); |
| |
| /* GtkLabel */ |
| public static final native long gtk_label_get_type(); |
| /** @param label cast=(const gchar *) */ |
| public static final native long gtk_label_new(byte[] label); |
| /** @param str cast=(const gchar *) */ |
| public static final native long gtk_label_new_with_mnemonic(byte[] str); |
| /** @param label cast=(GtkLabel *) */ |
| public static final native long gtk_label_get_layout(long label); |
| /** @param label cast=(GtkLabel *) */ |
| public static final native int gtk_label_get_mnemonic_keyval(long label); |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param attrs cast=(PangoAttrList *) |
| */ |
| public static final native void gtk_label_set_attributes(long label, long attrs); |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param jtype cast=(GtkJustification) |
| */ |
| public static final native void gtk_label_set_justify(long label, int jtype); |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param str cast=(const gchar *) |
| */ |
| public static final native void gtk_label_set_text(long label, long str); |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param str cast=(const gchar *) |
| */ |
| public static final native void gtk_label_set_text(long label, byte[] str); |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param str cast=(const gchar *) |
| */ |
| public static final native void gtk_label_set_text_with_mnemonic(long label, byte[] str); |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param xalign cast=(gfloat) |
| * |
| */ |
| public static final native void gtk_label_set_xalign(long label, float xalign); |
| /** |
| * @param label cast=(GtkLabel *) |
| * @param yalign cast=(gfloat) |
| * |
| */ |
| public static final native void gtk_label_set_yalign(long label, float yalign); |
| |
| /* GtkLabel [GTK3 only] */ |
| /** |
| * @method flags=dynamic |
| * @param label cast=(GtkLabel *) |
| * @param wrap cast=(gboolean) |
| */ |
| public static final native void gtk_label_set_line_wrap(long label, boolean wrap); |
| /** |
| * @method flags=dynamic |
| * @param label cast=(GtkLabel *) |
| * @param wrap_mode cast=(PangoWrapMode) |
| */ |
| public static final native void gtk_label_set_line_wrap_mode(long label, int wrap_mode); |
| |
| /* GtkLabel [GTK4 only] */ |
| /** |
| * @method flags=dynamic |
| * @param label cast=(GtkLabel *) |
| * @param wrap cast=(gboolean) |
| */ |
| public static final native void gtk_label_set_wrap(long label, boolean wrap); |
| /** |
| * @method flags=dynamic |
| * @param label cast=(GtkLabel *) |
| * @param wrap_mode cast=(PangoWrapMode) |
| */ |
| public static final native void gtk_label_set_wrap_mode(long label, int wrap_mode); |
| |
| |
| /** |
| * @param list_store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_list_store_append(long list_store, long iter); |
| /** @param store cast=(GtkListStore *) */ |
| public static final native void gtk_list_store_clear(long store); |
| /** |
| * @param list_store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param position cast=(gint) |
| */ |
| public static final native void gtk_list_store_insert(long list_store, long iter, int position); |
| /** |
| * @param numColumns cast=(gint) |
| * @param types cast=(GType *) |
| */ |
| public static final native long gtk_list_store_newv(int numColumns, long [] types); |
| /** |
| * @param css_provider cast=(GtkCssProvider *) |
| * @param data cast=(const gchar *) |
| * @param length cast=(gssize) |
| * @param error cast=(GError **) |
| */ |
| /* [GTK3 only, if-def'd in os.h] */ |
| public static final native boolean gtk_css_provider_load_from_data(long css_provider, byte[] data, long length, long error[]); |
| /** |
| * @param css_provider cast=(GtkCssProvider *) |
| * @param data cast=(const gchar *) |
| * @param length cast=(gssize) |
| */ |
| /* [GTK4 only, if-def'd in os.h] */ |
| public static final native void gtk_css_provider_load_from_data(long css_provider, byte[] data, long length); |
| public static final native long gtk_css_provider_new(); |
| /** |
| * @param provider cast=(GtkCssProvider *) |
| */ |
| public static final native long gtk_css_provider_to_string(long provider); |
| /** |
| * @param screen cast=(GdkScreen *) |
| * @param provider cast=(GtkStyleProvider *) |
| * @param priority cast=(guint) |
| */ |
| /* [GTK3 only, if-def'd in os.h] */ |
| public static final native void gtk_style_context_add_provider_for_screen(long screen, long provider, int priority); |
| /** |
| * @method flags=dynamic |
| * @param display cast=(GdkDisplay *) |
| * @param provider cast=(GtkStyleProvider *) |
| * @param priority cast=(guint) |
| */ |
| /* [GTK4 only] */ |
| public static final native void gtk_style_context_add_provider_for_display(long display, long provider, int priority); |
| /** |
| * @param context cast=(GtkStyleContext *) |
| * @param provider cast=(GtkStyleProvider *) |
| * @param priority cast=(guint) |
| */ |
| public static final native void gtk_style_context_add_provider(long context, long provider, int priority); |
| /** |
| * @param list_store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_list_store_remove(long list_store, long iter); |
| /** |
| * @param store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_list_store_set(long store, long iter, int column, byte[] value, int terminator); |
| /** |
| * @param store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_list_store_set(long store, long iter, int column, int value, int terminator); |
| /** |
| * @param store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_list_store_set(long store, long iter, int column, long value, int terminator); |
| /** |
| * @param store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param value flags=no_out |
| */ |
| public static final native void gtk_list_store_set(long store, long iter, int column, GdkRGBA value, int terminator); |
| /** |
| * @param store cast=(GtkListStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_list_store_set(long store, long iter, int column, boolean value, int terminator); |
| public static final native int gtk_get_major_version(); |
| public static final native int gtk_get_minor_version(); |
| public static final native int gtk_get_micro_version(); |
| |
| /** @method flags=dynamic */ |
| /* [GTK2/GTK3; 3.22 deprecated, replaced] */ |
| public static final native void gtk_menu_popup(long menu, long parent_menu_shell, long parent_menu_item, long func, long data, int button, int activate_time); |
| /** @method flags=dynamic */ |
| public static final native void gtk_menu_popup_at_pointer(long menu, long trigger_event); |
| /** @method flags=dynamic */ |
| public static final native void gtk_menu_popup_at_rect(long menu, long rect_window, GdkRectangle rect, int rect_anchor, int menu_anchor, long trigger_event); |
| |
| /* GtkPopover */ |
| /** @param popover cast=(GtkPopover *) */ |
| public static final native void gtk_popover_popdown(long popover); |
| /** @param popover cast=(GtkPopover *) */ |
| public static final native void gtk_popover_popup(long popover); |
| /** |
| * @param popover cast=(GtkPopover *) |
| * @param position cast=(GtkPositionType) |
| */ |
| public static final native void gtk_popover_set_position(long popover, int position); |
| |
| /** |
| * @param popover cast=(GtkPopover *) |
| * @param rect cast=(const GdkRectangle *) |
| */ |
| public static final native void gtk_popover_set_pointing_to(long popover, GdkRectangle rect); |
| |
| /* GtkMenuButton */ |
| public static final native long gtk_menu_button_new(); |
| |
| /* GtkMenuButton [GTK4 only] */ |
| /** |
| * @method flags=dynamic |
| * @param menu_button cast=(GtkMenuButton *) |
| */ |
| public static final native void gtk_menu_button_set_use_underline(long menu_button, boolean use_underline); |
| |
| |
| /* GtkMessageDialog */ |
| /** |
| * @param parent cast=(GtkWindow *) |
| * @param flags cast=(GtkDialogFlags) |
| * @param type cast=(GtkMessageType) |
| * @param buttons cast=(GtkButtonsType) |
| * @param message_format cast=(const gchar *) |
| * @param arg cast=(const gchar *) |
| */ |
| public static final native long gtk_message_dialog_new(long parent, int flags, int type, int buttons, byte[] message_format, byte[] arg); |
| /** |
| * @param message_dialog cast=(GtkMessageDialog *) |
| * @param message_format cast=(const gchar *) |
| * @param arg cast=(const gchar *) |
| */ |
| public static final native void gtk_message_dialog_format_secondary_text(long message_dialog, byte[] message_format, byte[] arg); |
| |
| /* GtkNativeDialog */ |
| /** @param dialog cast=(GtkNativeDialog *) */ |
| public static final native void gtk_native_dialog_show(long dialog); |
| |
| /* GtkNotebook */ |
| public static final native long gtk_notebook_new(); |
| /** @param notebook cast=(GtkNotebook *) */ |
| public static final native int gtk_notebook_get_n_pages(long notebook); |
| /** @param notebook cast=(GtkNotebook *) */ |
| public static final native int gtk_notebook_get_current_page(long notebook); |
| /** |
| * @param notebook cast=(GtkNotebook *) |
| * @param page_num cast=(gint) |
| */ |
| public static final native void gtk_notebook_set_current_page(long notebook, int page_num); |
| /** @param notebook cast=(GtkNotebook *) */ |
| public static final native boolean gtk_notebook_get_scrollable(long notebook); |
| /** |
| * @param notebook cast=(GtkNotebook *) |
| * @param scrollable cast=(gboolean) |
| */ |
| public static final native void gtk_notebook_set_scrollable(long notebook, boolean scrollable); |
| /** |
| * @param notebook cast=(GtkNotebook *) |
| * @param child cast=(GtkWidget *) |
| * @param tab_label cast=(GtkWidget *) |
| * @param position cast=(gint) |
| */ |
| public static final native void gtk_notebook_insert_page(long notebook, long child, long tab_label, int position); |
| /** |
| * @param notebook cast=(GtkNotebook *) |
| * @param page_num cast=(gint) |
| */ |
| public static final native void gtk_notebook_remove_page(long notebook, int page_num); |
| /** @param notebook cast=(GtkNotebook *) */ |
| public static final native void gtk_notebook_next_page(long notebook); |
| /** @param notebook cast=(GtkNotebook *) */ |
| public static final native void gtk_notebook_prev_page(long notebook); |
| /** |
| * @param notebook cast=(GtkNotebook *) |
| * @param show_tabs cast=(gboolean) |
| */ |
| public static final native void gtk_notebook_set_show_tabs(long notebook, boolean show_tabs); |
| /** |
| * @param notebook cast=(GtkNotebook *) |
| * @param pos cast=(GtkPositionType) |
| */ |
| public static final native void gtk_notebook_set_tab_pos(long notebook, int pos); |
| |
| |
| /** |
| * @param orientable cast=(GtkOrientable *) |
| * @param orientation cast=(GtkOrientation) |
| */ |
| public static final native void gtk_orientable_set_orientation(long orientable, int orientation); |
| public static final native long gtk_page_setup_new(); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| */ |
| public static final native int gtk_page_setup_get_orientation(long setup); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param orientation cast=(GtkPageOrientation) |
| */ |
| public static final native void gtk_page_setup_set_orientation(long setup, int orientation); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| */ |
| public static final native long gtk_page_setup_get_paper_size(long setup); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param size cast=(GtkPaperSize *) |
| */ |
| public static final native void gtk_page_setup_set_paper_size(long setup, long size); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double gtk_page_setup_get_top_margin(long setup, int unit); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param margin cast=(gdouble) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native void gtk_page_setup_set_top_margin(long setup, double margin, int unit); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| * |
| */ |
| public static final native double gtk_page_setup_get_bottom_margin(long setup, int unit); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param margin cast=(gdouble) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native void gtk_page_setup_set_bottom_margin(long setup, double margin, int unit); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double gtk_page_setup_get_left_margin(long setup, int unit); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param margin cast=(gdouble) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native void gtk_page_setup_set_left_margin(long setup, double margin, int unit); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double gtk_page_setup_get_right_margin(long setup, int unit); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param margin cast=(gdouble) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native void gtk_page_setup_set_right_margin(long setup, double margin, int unit); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double gtk_page_setup_get_paper_width(long setup, int unit); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double gtk_page_setup_get_paper_height(long setup, int unit); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double gtk_page_setup_get_page_width(long setup, int unit); |
| /** |
| * @param setup cast=(GtkPageSetup *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double gtk_page_setup_get_page_height(long setup, int unit); |
| /** |
| * @param context cast=(GtkStyleContext *) |
| * @param cr cast=(cairo_t *) |
| * @param x cast=(gdouble) |
| * @param y cast=(gdouble) |
| * @param width cast=(gdouble) |
| * @param height cast=(gdouble) |
| */ |
| public static final native void gtk_render_frame(long context, long cr, double x , double y, double width, double height); |
| /** |
| * @param context cast=(GtkStyleContext *) |
| * @param cr cast=(cairo_t *) |
| * @param x cast=(gdouble) |
| * @param y cast=(gdouble) |
| * @param width cast=(gdouble) |
| * @param height cast=(gdouble) |
| */ |
| public static final native void gtk_render_background(long context, long cr, double x , double y, double width, double height); |
| /** |
| * @param context cast=(GtkStyleContext *) |
| * @param cr cast=(cairo_t *) |
| * @param x cast=(gdouble) |
| * @param y cast=(gdouble) |
| * @param width cast=(gdouble) |
| * @param height cast=(gdouble) |
| */ |
| public static final native void gtk_render_focus(long context, long cr, double x , double y, double width, double height); |
| /** |
| * @param size cast=(GtkPaperSize *) |
| */ |
| public static final native void gtk_paper_size_free(long size); |
| /** |
| * @param name cast=(const gchar *) |
| */ |
| public static final native long gtk_paper_size_new(byte [] name); |
| /** |
| * @param ppd_name cast=(const gchar *) |
| * @param ppd_display_name cast=(const gchar *) |
| * @param width cast=(gdouble) |
| * @param height cast=(gdouble) |
| */ |
| public static final native long gtk_paper_size_new_from_ppd(byte [] ppd_name, byte [] ppd_display_name, double width, double height); |
| /** |
| * @param name cast=(const gchar *) |
| * @param display_name cast=(const gchar *) |
| * @param width cast=(gdouble) |
| * @param height cast=(gdouble) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native long gtk_paper_size_new_custom(byte [] name, byte [] display_name, double width, double height, int unit); |
| /** |
| * @param size cast=(GtkPaperSize *) |
| */ |
| public static final native long gtk_paper_size_get_name(long size); |
| /** |
| * @param size cast=(GtkPaperSize *) |
| */ |
| public static final native long gtk_paper_size_get_display_name(long size); |
| /** |
| * @param size cast=(GtkPaperSize *) |
| */ |
| public static final native long gtk_paper_size_get_ppd_name(long size); |
| /** |
| * @param size cast=(GtkPaperSize *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double gtk_paper_size_get_width(long size, int unit); |
| /** |
| * @param size cast=(GtkPaperSize *) |
| * @param unit cast=(GtkUnit) |
| */ |
| public static final native double gtk_paper_size_get_height(long size, int unit); |
| /** |
| * @param size cast=(GtkPaperSize *) |
| */ |
| public static final native boolean gtk_paper_size_is_custom(long size); |
| public static final native long gtk_plug_new(long socket_id); |
| /** |
| * @param printer cast=(GtkPrinter *) |
| */ |
| public static final native long gtk_printer_get_backend(long printer); |
| /** |
| * @param printer cast=(GtkPrinter *) |
| */ |
| public static final native long gtk_printer_get_name(long printer); |
| /** |
| * @param printer cast=(GtkPrinter *) |
| */ |
| public static final native boolean gtk_printer_is_default(long printer); |
| /** |
| * @param func cast=(GtkPrinterFunc) |
| * @param data cast=(gpointer) |
| * @param destroy cast=(GDestroyNotify) |
| * @param wait cast=(gboolean) |
| */ |
| public static final native void gtk_enumerate_printers(long func, long data, long destroy, boolean wait); |
| /** |
| * @param title cast=(const gchar *) |
| * @param printer cast=(GtkPrinter *) |
| * @param settings cast=(GtkPrintSettings *) |
| * @param page_setup cast=(GtkPageSetup *) |
| */ |
| public static final native long gtk_print_job_new(byte[] title, long printer, long settings, long page_setup); |
| /** |
| * @param job cast=(GtkPrintJob *) |
| * @param error cast=(GError **) |
| */ |
| public static final native long gtk_print_job_get_surface(long job, long error[]); |
| /** |
| * @param job cast=(GtkPrintJob *) |
| * @param callback cast=(GtkPrintJobCompleteFunc) |
| * @param user_data cast=(gpointer) |
| * @param dnotify cast=(GDestroyNotify) |
| */ |
| public static final native void gtk_print_job_send(long job, long callback, long user_data, long dnotify); |
| public static final native long gtk_print_settings_new(); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param func cast=(GtkPrintSettingsFunc) |
| * @param data cast=(gpointer) |
| */ |
| public static final native void gtk_print_settings_foreach(long settings, long func, long data); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param key cast=(const gchar *) |
| */ |
| public static final native long gtk_print_settings_get(long settings, byte [] key); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param key cast=(const gchar *) |
| * @param value cast=(const gchar *) |
| */ |
| public static final native void gtk_print_settings_set(long settings, byte [] key, byte [] value); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param printer cast=(const gchar *) |
| */ |
| public static final native void gtk_print_settings_set_printer(long settings, byte[] printer); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param orientation cast=(GtkPageOrientation) |
| */ |
| public static final native void gtk_print_settings_set_orientation(long settings, int orientation); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| */ |
| public static final native boolean gtk_print_settings_get_collate(long settings); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param collate cast=(gboolean) |
| */ |
| public static final native void gtk_print_settings_set_collate(long settings, boolean collate); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| */ |
| public static final native int gtk_print_settings_get_duplex(long settings); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param duplex cast=(GtkPrintDuplex) |
| */ |
| public static final native void gtk_print_settings_set_duplex(long settings, int duplex); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| */ |
| public static final native int gtk_print_settings_get_n_copies(long settings); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param num_copies cast=(gint) |
| */ |
| public static final native void gtk_print_settings_set_n_copies(long settings, int num_copies); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| */ |
| public static final native int gtk_print_settings_get_print_pages(long settings); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param pages cast=(GtkPrintPages) |
| */ |
| public static final native void gtk_print_settings_set_print_pages(long settings, int pages); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param num_ranges cast=(gint *) |
| */ |
| public static final native long gtk_print_settings_get_page_ranges(long settings, int[] num_ranges); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| * @param page_ranges cast=(GtkPageRange *) |
| * @param num_ranges cast=(gint) |
| */ |
| public static final native void gtk_print_settings_set_page_ranges(long settings, int[] page_ranges, int num_ranges); |
| /** |
| * @param settings cast=(GtkPrintSettings *) |
| */ |
| public static final native int gtk_print_settings_get_resolution(long settings); |
| /** |
| * @param title cast=(const gchar *) |
| * @param parent cast=(GtkWindow *) |
| */ |
| public static final native long gtk_print_unix_dialog_new(byte[] title, long parent); |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| * @param embed cast=(gboolean) |
| */ |
| public static final native void gtk_print_unix_dialog_set_embed_page_setup(long dialog, boolean embed); |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| * @param page_setup cast=(GtkPageSetup *) |
| */ |
| public static final native void gtk_print_unix_dialog_set_page_setup(long dialog, long page_setup); |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| */ |
| public static final native long gtk_print_unix_dialog_get_page_setup(long dialog); |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| * @param current_page cast=(gint) |
| */ |
| public static final native void gtk_print_unix_dialog_set_current_page(long dialog, int current_page); |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| */ |
| public static final native int gtk_print_unix_dialog_get_current_page(long dialog); |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| * @param settings cast=(GtkPrintSettings *) |
| */ |
| public static final native void gtk_print_unix_dialog_set_settings(long dialog, long settings); |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| */ |
| public static final native long gtk_print_unix_dialog_get_settings(long dialog); |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| */ |
| public static final native long gtk_print_unix_dialog_get_selected_printer(long dialog); |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| * @param capabilities cast=(GtkPrintCapabilities) |
| */ |
| public static final native void gtk_print_unix_dialog_set_manual_capabilities(long dialog, long capabilities); |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| */ |
| public static final native void gtk_print_unix_dialog_set_support_selection(long dialog, boolean support_selection); |
| /** |
| * @param dialog cast=(GtkPrintUnixDialog *) |
| */ |
| public static final native void gtk_print_unix_dialog_set_has_selection(long dialog, boolean has_selection); |
| public static final native long gtk_progress_bar_new(); |
| /** @param pbar cast=(GtkProgressBar *) */ |
| public static final native void gtk_progress_bar_pulse(long pbar); |
| /** |
| * @param pbar cast=(GtkProgressBar *) |
| * @param fraction cast=(gdouble) |
| */ |
| public static final native void gtk_progress_bar_set_fraction(long pbar, double fraction); |
| /** |
| * @param pbar cast=(GtkProgressBar *) |
| * @param inverted cast=(gboolean) |
| */ |
| public static final native void gtk_progress_bar_set_inverted(long pbar, boolean inverted); |
| |
| |
| /* GtkRange */ |
| /** @param range cast=(GtkRange *) */ |
| public static final native long gtk_range_get_adjustment(long range); |
| /** @param range cast=(GtkRange *) */ |
| public static final native void gtk_range_set_increments(long range, double step, double page); |
| /** @param range cast=(GtkRange *) */ |
| public static final native void gtk_range_set_inverted(long range, boolean setting); |
| /** @param range cast=(GtkRange *) */ |
| public static final native void gtk_range_set_range(long range, double min, double max); |
| /** @param range cast=(GtkRange *) */ |
| public static final native double gtk_range_get_value(long range); |
| /** @param range cast=(GtkRange *) */ |
| public static final native void gtk_range_set_value(long range, double value); |
| /** |
| * @param range cast=(GtkRange *) |
| * @param slider_start cast=(gint *) |
| * @param slider_end cast=(gint *) |
| */ |
| public static final native void gtk_range_get_slider_range(long range, int[] slider_start, int[] slider_end); |
| |
| |
| /** @param scrollable cast=(GtkScrollable *) */ |
| public static final native long gtk_scrollable_get_vadjustment(long scrollable); |
| |
| |
| /* GtkScrolledWindow */ |
| /** @param scrolled_window cast=(GtkScrolledWindow *) */ |
| public static final native long gtk_scrolled_window_get_hadjustment(long scrolled_window); |
| /** @param scrolled_window cast=(GtkScrolledWindow *) */ |
| public static final native long gtk_scrolled_window_get_hscrollbar(long scrolled_window); |
| /** |
| * @param scrolled_window cast=(GtkScrolledWindow *) |
| * @param hscrollbar_policy cast=(GtkPolicyType *) |
| * @param vscrollbar_policy cast=(GtkPolicyType *) |
| */ |
| public static final native void gtk_scrolled_window_get_policy(long scrolled_window, int[] hscrollbar_policy, int[] vscrollbar_policy); |
| /** @param scrolled_window cast=(GtkScrolledWindow *) */ |
| public static final native long gtk_scrolled_window_get_vadjustment(long scrolled_window); |
| /** |
| * @param scrolled_window cast=(GtkScrolledWindow *) |
| */ |
| public static final native long gtk_scrolled_window_get_vscrollbar(long scrolled_window); |
| /** |
| * @param scrolled_window cast=(GtkScrolledWindow *) |
| * @param hscrollbar_policy cast=(GtkPolicyType) |
| * @param vscrollbar_policy cast=(GtkPolicyType) |
| */ |
| public static final native void gtk_scrolled_window_set_policy(long scrolled_window, int hscrollbar_policy, int vscrollbar_policy); |
| /** |
| * @method flags=dynamic |
| * @param scrolled_window cast=(GtkScrolledWindow *) |
| */ |
| public static final native boolean gtk_scrolled_window_get_overlay_scrolling(long scrolled_window); |
| /** |
| * @param scrolled_window cast=(GtkScrolledWindow *) |
| * @param adjustment cast=(GtkAdjustment *) |
| * */ |
| public static final native void gtk_scrolled_window_set_vadjustment(long scrolled_window, long adjustment); |
| /** |
| * @param scrolled_window cast=(GtkScrolledWindow *) |
| * @param adjustment cast=(GtkAdjustment *) |
| * */ |
| public static final native void gtk_scrolled_window_set_hadjustment(long scrolled_window, long adjustment); |
| |
| |
| public static final native long gtk_settings_get_default(); |
| /** @param socket cast=(GtkSocket *) */ |
| public static final native long gtk_socket_get_id(long socket); |
| public static final native long gtk_socket_new(); |
| /** @param adjustment cast=(GtkAdjustment *) */ |
| public static final native long gtk_spin_button_new(long adjustment, double climb_rate, int digits); |
| /** |
| * @param spin_button cast=(GtkSpinButton*) |
| * @param numeric cast=(gboolean) |
| **/ |
| public static final native void gtk_spin_button_set_numeric(long spin_button, boolean numeric); |
| /** |
| * @param spin_button cast=(GtkSpinButton*) |
| * @param adjustment cast=(GtkAdjustment *) |
| **/ |
| public static final native void gtk_spin_button_configure(long spin_button, long adjustment, double climb_rate, int digits); |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native long gtk_spin_button_get_adjustment(long spin_button); |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native int gtk_spin_button_get_digits(long spin_button); |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native void gtk_spin_button_set_increments(long spin_button, double step, double page); |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native void gtk_spin_button_set_range(long spin_button, double max, double min); |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native void gtk_spin_button_set_value(long spin_button, double value); |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native void gtk_spin_button_set_wrap(long spin_button, boolean wrap); |
| /** @param spin_button cast=(GtkSpinButton*) */ |
| public static final native void gtk_spin_button_update(long spin_button); |
| /** |
| * @method flags=ignore_deprecations |
| * @param handle cast=(GtkStatusIcon*) |
| * @param screen cast=(GdkScreen**) |
| * @param area cast=(GdkRectangle*) |
| * @param orientation cast=(GtkOrientation*) |
| */ |
| /* [GTK3 only, if-def'd in os.h] */ |
| public static final native boolean gtk_status_icon_get_geometry(long handle, long screen, GdkRectangle area, long orientation); |
| /** |
| * @param context cast=(GtkStyleContext *) |
| * @param class_name cast=(const gchar *) |
| */ |
| public static final native void gtk_style_context_add_class(long context, byte[] class_name); |
| /** |
| * @param context cast=(GtkStyleContext *) |
| * @param class_name cast=(const gchar *) |
| */ |
| public static final native void gtk_style_context_remove_class(long context, byte[] class_name); |
| /** |
| * @method flags=dynamic |
| * @param context cast=(GtkStyleContext *) |
| * @param state cast=(GtkStateFlags) |
| * @param color cast=(GdkRGBA *) |
| */ |
| /* [GTK3 only] */ |
| public static final native void gtk_style_context_get_color(long context, int state, GdkRGBA color); |
| /** |
| * @method flags=dynamic |
| * @param context cast=(GtkStyleContext *) |
| * @param color cast=(GdkRGBA *) |
| */ |
| /* [GTK4 only] */ |
| public static final native void gtk_style_context_get_color(long context, GdkRGBA color); |
| /** @method flags=dynamic */ |
| /* [GTK3; 3.8 deprecated, replaced] */ |
| public static final native long gtk_style_context_get_font(long context, int state); |
| /** |
| * @method flags=dynamic |
| * @param context cast=(GtkStyleContext *) |
| * @param state cast=(GtkStateFlags) |
| * @param padding cast=(GtkBorder *),flags=no_in |
| */ |
| /* [GTK3 only] */ |
| public static final native void gtk_style_context_get_padding(long context, int state, GtkBorder padding); |
| /** |
| * @method flags=dynamic |
| * @param context cast=(GtkStyleContext *) |
| */ |
| /* [GTK3 only] */ |
| public static final native long gtk_style_context_get_parent(long context); |
| /** |
| * @method flags=dynamic |
| * @param context cast=(GtkStyleContext *) |
| * @param padding cast=(GtkBorder *),flags=no_in |
| */ |
| /* [GTK4 only] */ |
| public static final native void gtk_style_context_get_padding(long context, GtkBorder padding); |
| /** |
| * @param context cast=(GtkStyleContext *) |
| * @param margin cast=(GtkBorder *),flags=no_in |
| */ |
| /* [GTK4 only, if-def'd in os.h] */ |
| public static final native void gtk_style_context_get_margin(long context, GtkBorder margin); |
| /** |
| * @method flags=dynamic |
| * @param property cast=(const gchar *),flags=no_out |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void gtk_style_context_get(long context, int state, byte [] property, long [] value, long terminator); |
| /** |
| * @method flags=dynamic |
| * @param property cast=(const gchar *),flags=no_out |
| * @param terminator cast=(const gchar *),flags=sentinel |
| */ |
| public static final native void gtk_style_context_get(long context, byte [] property, long [] value, long terminator); |
| /** |
| * @method flags=dynamic |
| * @param context cast=(GtkStyleContext *) |
| * @param state cast=(GtkStateFlags) |
| * @param padding cast=(GtkBorder *),flags=no_in |
| */ |
| /* [GTK3 only] */ |
| public static final native void gtk_style_context_get_border(long context, int state, GtkBorder padding); |
| /** |
| * @method flags=dynamic |
| * @param context cast=(GtkStyleContext *) |
| * @param padding cast=(GtkBorder *),flags=no_in |
| */ |
| /* [GTK4 only] */ |
| public static final native void gtk_style_context_get_border(long context, GtkBorder padding); |
| /** @method flags=dynamic */ |
| /* [GTK3; 3.12 deprecated] */ |
| public static final native void gtk_style_context_invalidate(long context); |
| /** |
| * @param self cast=(GtkStyleContext *) |
| */ |
| public static final native void gtk_style_context_save(long self); |
| /** |
| * @param context cast=(GtkStyleContext *) |
| */ |
| public static final native void gtk_style_context_restore(long context); |
| /** |
| * @param context cast=(GtkStyleContext *) |
| * @param flags cast=(GtkStateFlags) |
| */ |
| public static final native void gtk_style_context_set_state(long context, long flags); |
| /** |
| * @method flags=dynamic |
| * @param buffer cast=(GtkTextBuffer *) |
| */ |
| /* [GTK3/GTK4, GTK3 uses GtkClipboard but GTK4 uses GdkClipboard -- method signature otherwise identical] */ |
| public static final native void gtk_text_buffer_copy_clipboard(long buffer, long clipboard); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param mark_name cast=(const gchar *) |
| * @param where cast=(GtkTextIter *) |
| * @param left_gravity cast=(gboolean) |
| */ |
| public static final native long gtk_text_buffer_create_mark(long buffer, byte [] mark_name, byte [] where, boolean left_gravity); |
| /** |
| * @method flags=dynamic |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param default_editable cast=(gboolean) |
| */ |
| /* [GTK3/GTK4, GTK3 uses GtkClipboard but GTK4 uses GdkClipboard -- method signature otherwise identical] */ |
| public static final native void gtk_text_buffer_cut_clipboard(long buffer, long clipboard, boolean default_editable); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param start cast=(GtkTextIter *) |
| * @param end cast=(GtkTextIter *) |
| */ |
| public static final native void gtk_text_buffer_delete(long buffer, byte[] start, byte[] end); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param start cast=(GtkTextIter *) |
| * @param end cast=(GtkTextIter *) |
| */ |
| public static final native void gtk_text_buffer_get_bounds(long buffer, byte[] start, byte[] end); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param iter cast=(GtkTextIter *) |
| */ |
| public static final native void gtk_text_buffer_get_end_iter(long buffer, byte[] iter); |
| /** @param buffer cast=(GtkTextBuffer *) */ |
| public static final native long gtk_text_buffer_get_insert(long buffer); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param iter cast=(GtkTextIter *) |
| * @param line_number cast=(gint) |
| */ |
| public static final native void gtk_text_buffer_get_iter_at_line(long buffer, byte[] iter, int line_number); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param iter cast=(GtkTextIter *) |
| * @param mark cast=(GtkTextMark *) |
| */ |
| public static final native void gtk_text_buffer_get_iter_at_mark(long buffer, byte[] iter, long mark); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param iter cast=(GtkTextIter *) |
| * @param char_offset cast=(gint) |
| */ |
| public static final native void gtk_text_buffer_get_iter_at_offset(long buffer, byte[] iter, int char_offset); |
| /** @param buffer cast=(GtkTextBuffer *) */ |
| public static final native int gtk_text_buffer_get_line_count(long buffer); |
| /** @param buffer cast=(GtkTextBuffer *) */ |
| public static final native long gtk_text_buffer_get_selection_bound(long buffer); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param start cast=(GtkTextIter *) |
| * @param end cast=(GtkTextIter *) |
| */ |
| public static final native boolean gtk_text_buffer_get_selection_bounds(long buffer, byte[] start, byte[] end); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param start cast=(GtkTextIter *) |
| * @param end cast=(GtkTextIter *) |
| * @param include_hidden_chars cast=(gboolean) |
| */ |
| public static final native long gtk_text_buffer_get_text(long buffer, byte[] start, byte[] end, boolean include_hidden_chars); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param iter cast=(GtkTextIter *) |
| * @param text cast=(const gchar *) |
| * @param len cast=(gint) |
| */ |
| public static final native void gtk_text_buffer_insert(long buffer, byte[] iter, byte[] text, int len); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param iter cast=(GtkTextIter *) |
| * @param text cast=(const gchar *) |
| * @param len cast=(gint) |
| */ |
| public static final native void gtk_text_buffer_insert(long buffer, long iter, byte[] text, int len); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param ins cast=(const GtkTextIter *) |
| * @param bound cast=(const GtkTextIter *) |
| */ |
| public static final native void gtk_text_buffer_select_range(long buffer, byte[] ins, byte[] bound); |
| /** |
| * @method flags=dynamic |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param override_location cast=(GtkTextIter *) |
| * @param default_editable cast=(gboolean) |
| */ |
| /* [GTK3/GTK4, GTK3 uses GtkClipboard but GTK4 uses GdkClipboard -- method signature otherwise identical] */ |
| public static final native void gtk_text_buffer_paste_clipboard(long buffer, long clipboard, byte[] override_location, boolean default_editable); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param where cast=(const GtkTextIter *) |
| */ |
| public static final native void gtk_text_buffer_place_cursor(long buffer, byte[] where); |
| /** |
| * @param buffer cast=(GtkTextBuffer *) |
| * @param text cast=(const gchar *) |
| * @param len cast=(gint) |
| */ |
| public static final native void gtk_text_buffer_set_text(long buffer, byte[] text, int len); |
| /** @param iter cast=(const GtkTextIter *) */ |
| public static final native int gtk_text_iter_get_line(byte[] iter); |
| /** @param iter cast=(const GtkTextIter *) */ |
| public static final native int gtk_text_iter_get_offset(byte[] iter); |
| |
| /* GtkTextView */ |
| public static final native long gtk_text_view_new(); |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param win cast=(GtkTextWindowType) |
| * @param buffer_x cast=(gint) |
| * @param buffer_y cast=(gint) |
| * @param window_x cast=(gint *) |
| * @param window_y cast=(gint *) |
| */ |
| public static final native void gtk_text_view_buffer_to_window_coords(long text_view, int win, int buffer_x, int buffer_y, int[] window_x, int[] window_y); |
| /** @param text_view cast=(GtkTextView *) */ |
| public static final native long gtk_text_view_get_buffer(long text_view); |
| /** @param text_view cast=(GtkTextView *) */ |
| public static final native boolean gtk_text_view_get_editable(long text_view); |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param iter cast=(GtkTextIter *) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| */ |
| public static final native void gtk_text_view_get_iter_at_location(long text_view, byte[] iter, int x, int y); |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param iter cast=(const GtkTextIter *) |
| * @param location cast=(GdkRectangle *),flags=no_in |
| */ |
| public static final native void gtk_text_view_get_iter_location(long text_view, byte[] iter, GdkRectangle location); |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param target_iter cast=(GtkTextIter *) |
| * @param y cast=(gint) |
| * @param line_top cast=(gint *) |
| */ |
| public static final native void gtk_text_view_get_line_at_y(long text_view, byte[] target_iter, int y, int[] line_top); |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param target_iter cast=(GtkTextIter *) |
| * @param y cast=(gint *) |
| * @param height cast=(gint *) |
| */ |
| public static final native void gtk_text_view_get_line_yrange(long text_view, byte[] target_iter, int[] y, int[] height); |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param visible_rect cast=(GdkRectangle *),flags=no_in |
| */ |
| public static final native void gtk_text_view_get_visible_rect(long text_view, GdkRectangle visible_rect); |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param mark cast=(GtkTextMark *) |
| * @param within_margin cast=(gdouble) |
| * @param use_align cast=(gboolean) |
| * @param xalign cast=(gdouble) |
| * @param yalign cast=(gdouble) |
| */ |
| public static final native void gtk_text_view_scroll_to_mark(long text_view, long mark, double within_margin, boolean use_align, double xalign, double yalign); |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param iter cast=(GtkTextIter *) |
| * @param within_margin cast=(gdouble) |
| * @param use_align cast=(gboolean) |
| * @param xalign cast=(gdouble) |
| * @param yalign cast=(gdouble) |
| */ |
| public static final native boolean gtk_text_view_scroll_to_iter(long text_view, byte[] iter, double within_margin, boolean use_align, double xalign, double yalign); |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param setting cast=(gboolean) |
| */ |
| public static final native void gtk_text_view_set_editable(long text_view, boolean setting); |
| /** @param text_view cast=(GtkTextView *) */ |
| public static final native void gtk_text_view_set_justification(long text_view, int justification); |
| /** |
| * @param text_view cast=(GtkTextView *) |
| * @param tabs cast=(PangoTabArray *) |
| */ |
| public static final native void gtk_text_view_set_tabs(long text_view, long tabs); |
| /** @param text_view cast=(GtkTextView *) */ |
| public static final native void gtk_text_view_set_wrap_mode(long text_view, int wrap_mode); |
| |
| /* GtkTextView [GTK3 only] */ |
| /** |
| * @method flags=dynamic |
| * @param text_view cast=(GtkTextView *) |
| * @param win cast=(GtkTextWindowType) |
| */ |
| public static final native long gtk_text_view_get_window(long text_view, int win); |
| |
| |
| /* GtkToggleButton */ |
| public static final native long gtk_toggle_button_new(); |
| /** @param toggle_button cast=(GtkToggleButton *) */ |
| public static final native boolean gtk_toggle_button_get_active(long toggle_button); |
| /** |
| * @param toggle_button cast=(GtkToggleButton *) |
| * @param is_active cast=(gboolean) |
| */ |
| public static final native void gtk_toggle_button_set_active(long toggle_button, boolean is_active); |
| |
| /* GtkToggleButton [GTK3 only] */ |
| /** |
| * @method flags=dynamic |
| * @param toggle_button cast=(GtkToggleButton *) |
| * @param setting cast=(gboolean) |
| */ |
| public static final native void gtk_toggle_button_set_inconsistent(long toggle_button, boolean setting); |
| |
| |
| public static final native long gtk_tooltip_get_type(); |
| /** |
| * @param tooltip cast=(GtkTooltip *) |
| * @param custom_widget cast=(GtkWidget *) |
| */ |
| public static final native void gtk_tooltip_set_custom(long tooltip, long custom_widget); |
| /** |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_tree_model_get(long tree_model, long iter, int column, long[] value, int terminator); |
| /** |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_tree_model_get(long tree_model, long iter, int column, int[] value, int terminator); |
| /** |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native boolean gtk_tree_model_get_iter(long tree_model, long iter, long path); |
| /** |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native boolean gtk_tree_model_get_iter_first(long tree_model, long iter); |
| /** @param tree_model cast=(GtkTreeModel *) */ |
| public static final native int gtk_tree_model_get_n_columns(long tree_model); |
| /** |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native long gtk_tree_model_get_path(long tree_model, long iter); |
| public static final native long gtk_tree_model_get_type(); |
| /** |
| * @param model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param parent cast=(GtkTreeIter *) |
| */ |
| public static final native boolean gtk_tree_model_iter_children(long model, long iter, long parent); |
| /** |
| * @param model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native int gtk_tree_model_iter_n_children(long model, long iter); |
| /** |
| * @param model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native boolean gtk_tree_model_iter_next(long model, long iter); |
| /** |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param parent cast=(GtkTreeIter *) |
| */ |
| public static final native boolean gtk_tree_model_iter_nth_child(long tree_model, long iter, long parent, int n); |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native void gtk_tree_path_append_index(long path, int index); |
| /** |
| * @param a cast=(const GtkTreePath *) |
| * @param b cast=(const GtkTreePath *) |
| */ |
| public static final native long gtk_tree_path_compare(long a, long b); |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native void gtk_tree_path_free(long path); |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native int gtk_tree_path_get_depth(long path); |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native long gtk_tree_path_get_indices(long path); |
| public static final native long gtk_tree_path_new(); |
| /** @param path cast=(const gchar *) */ |
| public static final native long gtk_tree_path_new_from_string(byte[] path); |
| /** @param path cast=(const gchar *) */ |
| public static final native long gtk_tree_path_new_from_string(long path); |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native void gtk_tree_path_next(long path); |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native boolean gtk_tree_path_prev(long path); |
| /** @param path cast=(GtkTreePath *) */ |
| public static final native boolean gtk_tree_path_up(long path); |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| */ |
| public static final native int gtk_tree_selection_count_selected_rows(long selection); |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param model cast=(GtkTreeModel **) |
| */ |
| public static final native long gtk_tree_selection_get_selected_rows(long selection, long [] model); |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native boolean gtk_tree_selection_path_is_selected(long selection, long path); |
| /** @param selection cast=(GtkTreeSelection *) */ |
| public static final native void gtk_tree_selection_select_all(long selection); |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_tree_selection_select_iter(long selection, long iter); |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param func cast=(GtkTreeSelectionFunc) |
| * @param data cast=(gpointer) |
| * @param destroy cast=(GDestroyNotify) |
| */ |
| public static final native void gtk_tree_selection_set_select_function(long selection, long func, long data, long destroy); |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param mode cast=(GtkSelectionMode) |
| */ |
| public static final native void gtk_tree_selection_set_mode(long selection, int mode); |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native void gtk_tree_selection_unselect_path(long selection, long path); |
| /** @param selection cast=(GtkTreeSelection *) */ |
| public static final native void gtk_tree_selection_unselect_all(long selection); |
| /** |
| * @param selection cast=(GtkTreeSelection *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_tree_selection_unselect_iter(long selection, long iter); |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param parent cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_tree_store_append(long store, long iter, long parent); |
| /** @param store cast=(GtkTreeStore *) */ |
| public static final native void gtk_tree_store_clear(long store); |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param parent cast=(GtkTreeIter *) |
| * @param position cast=(gint) |
| */ |
| public static final native void gtk_tree_store_insert(long store, long iter, long parent, int position); |
| /** @param types cast=(GType *) */ |
| public static final native long gtk_tree_store_newv(int numColumns, long [] types); |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param parent cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_tree_store_prepend(long store, long iter, long parent); |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_tree_store_remove(long store, long iter); |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_tree_store_set(long store, long iter, int column, byte[] value, int terminator); |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_tree_store_set(long store, long iter, int column, int value, int terminator); |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_tree_store_set(long store, long iter, int column, long value, int terminator); |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| * @param value flags=no_out |
| */ |
| public static final native void gtk_tree_store_set(long store, long iter, int column, GdkRGBA value, int terminator); |
| /** |
| * @param store cast=(GtkTreeStore *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_tree_store_set(long store, long iter, int column, boolean value, int terminator); |
| /** |
| * @param view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native long gtk_tree_view_create_row_drag_icon(long view, long path); |
| /** |
| * @param view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native boolean gtk_tree_view_collapse_row(long view, long path); |
| /** |
| * @param treeColumn cast=(GtkTreeViewColumn *) |
| * @param cellRenderer cast=(GtkCellRenderer *) |
| * @param attribute cast=(const gchar *) |
| * @param column cast=(gint) |
| */ |
| public static final native void gtk_tree_view_column_add_attribute(long treeColumn, long cellRenderer, byte[] attribute, int column); |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param cell_renderer cast=(GtkCellRenderer *) |
| * @param start_pos cast=(gint *) |
| * @param width cast=(gint *) |
| */ |
| public static final native boolean gtk_tree_view_column_cell_get_position(long tree_column, long cell_renderer, int[] start_pos, int[] width); |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param cell_area cast=(GdkRectangle *),flags=no_in |
| * @param x_offset cast=(gint *) |
| * @param y_offset cast=(gint *) |
| * @param width cast=(gint *) |
| * @param height cast=(gint *) |
| */ |
| /* [GTK3 only, if-def'd in os.h] */ |
| public static final native void gtk_tree_view_column_cell_get_size(long tree_column, GdkRectangle cell_area, int[] x_offset, int[] y_offset, int[] width, int[] height); |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param x_offset cast=(int *) |
| * @param y_offset cast=(int *) |
| * @param width cast=(int *) |
| * @param height cast=(int *) |
| */ |
| /* [GTK4 only, if-def'd in os.h] */ |
| public static final native void gtk_tree_view_column_cell_get_size(long tree_column, int[] x_offset, int[] y_offset, int[] width, int[] height); |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param tree_model cast=(GtkTreeModel *) |
| * @param iter cast=(GtkTreeIter *) |
| */ |
| public static final native void gtk_tree_view_column_cell_set_cell_data(long tree_column, long tree_model, long iter, boolean is_expander, boolean is_expanded); |
| /** @param tree_column cast=(GtkTreeViewColumn *) */ |
| public static final native void gtk_tree_view_column_clear(long tree_column); |
| /** |
| * @param column cast=(GtkTreeViewColumn *) |
| */ |
| public static final native long gtk_tree_view_column_get_button(long column); |
| /** @param column cast=(GtkTreeViewColumn *) */ |
| public static final native int gtk_tree_view_column_get_fixed_width(long column); |
| /** @param column cast=(GtkTreeViewColumn *) */ |
| public static final native boolean gtk_tree_view_column_get_reorderable(long column); |
| /** @param column cast=(GtkTreeViewColumn *) */ |
| public static final native boolean gtk_tree_view_column_get_resizable(long column); |
| /** @param column cast=(GtkTreeViewColumn *) */ |
| public static final native boolean gtk_tree_view_column_get_visible(long column); |
| /** @param column cast=(GtkTreeViewColumn *) */ |
| public static final native int gtk_tree_view_column_get_width(long column); |
| public static final native long gtk_tree_view_column_new(); |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param cell_renderer cast=(GtkCellRenderer *) |
| * @param expand cast=(gboolean) |
| */ |
| public static final native void gtk_tree_view_column_pack_start(long tree_column, long cell_renderer, boolean expand); |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param cell_renderer cast=(GtkCellRenderer *) |
| * @param expand cast=(gboolean) |
| */ |
| public static final native void gtk_tree_view_column_pack_end(long tree_column, long cell_renderer, boolean expand); |
| /** @param tree_column cast=(GtkTreeViewColumn *) */ |
| public static final native void gtk_tree_view_column_set_alignment(long tree_column, float xalign); |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param cell_renderer cast=(GtkCellRenderer *) |
| * @param func cast=(GtkTreeCellDataFunc) |
| * @param func_data cast=(gpointer) |
| * @param destroy cast=(GDestroyNotify) |
| */ |
| public static final native void gtk_tree_view_column_set_cell_data_func(long tree_column, long cell_renderer, long func, long func_data, long destroy); |
| /** |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param clickable cast=(gboolean) |
| */ |
| public static final native void gtk_tree_view_column_set_clickable(long column, boolean clickable); |
| /** |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param fixed_width cast=(gint) |
| */ |
| public static final native void gtk_tree_view_column_set_fixed_width(long column, int fixed_width); |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param min_width cast=(gint) |
| */ |
| public static final native void gtk_tree_view_column_set_min_width(long tree_column, int min_width); |
| /** |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param reorderable cast=(gboolean) |
| */ |
| public static final native void gtk_tree_view_column_set_reorderable(long column, boolean reorderable); |
| /** |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param resizable cast=(gboolean) |
| */ |
| public static final native void gtk_tree_view_column_set_resizable(long column, boolean resizable); |
| /** |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param type cast=(GtkTreeViewColumnSizing) |
| */ |
| public static final native void gtk_tree_view_column_set_sizing(long column, int type); |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param setting cast=(gboolean) |
| */ |
| public static final native void gtk_tree_view_column_set_sort_indicator(long tree_column, boolean setting); |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param order cast=(GtkSortType) |
| */ |
| public static final native void gtk_tree_view_column_set_sort_order(long tree_column, int order); |
| /** @param tree_column cast=(GtkTreeViewColumn *) */ |
| public static final native void gtk_tree_view_column_set_visible(long tree_column, boolean visible); |
| /** |
| * @param tree_column cast=(GtkTreeViewColumn *) |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void gtk_tree_view_column_set_widget(long tree_column, long widget); |
| /** |
| * @param view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native void gtk_tree_view_set_drag_dest_row(long view, long path, int pos); |
| /** |
| * @param view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| * @param open_all cast=(gboolean) |
| */ |
| public static final native boolean gtk_tree_view_expand_row(long view, long path, boolean open_all); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param rect cast=(GdkRectangle *) |
| */ |
| public static final native void gtk_tree_view_get_background_area(long tree_view, long path, long column, GdkRectangle rect); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| */ |
| /* [GTK3 only, if-def'd in os.h] */ |
| public static final native long gtk_tree_view_get_bin_window(long tree_view); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param rect cast=(GdkRectangle *),flags=no_in |
| */ |
| public static final native void gtk_tree_view_get_cell_area(long tree_view, long path, long column, GdkRectangle rect); |
| /** @param tree_view cast=(GtkTreeView *) */ |
| public static final native long gtk_tree_view_get_expander_column(long tree_view); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param n cast=(gint) |
| */ |
| public static final native long gtk_tree_view_get_column(long tree_view, int n); |
| /** @param tree_view cast=(GtkTreeView *) */ |
| public static final native long gtk_tree_view_get_columns(long tree_view); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath **) |
| * @param focus_column cast=(GtkTreeViewColumn **) |
| */ |
| public static final native void gtk_tree_view_get_cursor(long tree_view, long [] path, long [] focus_column); |
| /** @param tree_view cast=(GtkTreeView *) */ |
| public static final native boolean gtk_tree_view_get_headers_visible(long tree_view); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param x cast=(gint) |
| * @param y cast=(gint) |
| * @param path cast=(GtkTreePath **) |
| * @param column cast=(GtkTreeViewColumn **) |
| * @param cell_x cast=(gint *) |
| * @param cell_y cast=(gint *) |
| */ |
| public static final native boolean gtk_tree_view_get_path_at_pos(long tree_view, int x, int y, long [] path, long [] column, int[] cell_x, int[] cell_y); |
| /** @param tree_view cast=(GtkTreeView *) */ |
| public static final native long gtk_tree_view_get_selection(long tree_view); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param visible_rect flags=no_in |
| */ |
| public static final native void gtk_tree_view_get_visible_rect(long tree_view, GdkRectangle visible_rect); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param position cast=(gint) |
| */ |
| public static final native int gtk_tree_view_insert_column(long tree_view, long column, int position); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param base_column cast=(GtkTreeViewColumn *) |
| */ |
| public static final native void gtk_tree_view_move_column_after(long tree_view, long column, long base_column); |
| /** @param model cast=(GtkTreeModel *) */ |
| public static final native long gtk_tree_view_new_with_model(long model); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param column cast=(GtkTreeViewColumn *) |
| */ |
| public static final native void gtk_tree_view_remove_column(long tree_view, long column); |
| /** |
| * @param view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| */ |
| public static final native boolean gtk_tree_view_row_expanded(long view, long path); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| * @param column cast=(GtkTreeViewColumn *) |
| * @param use_align cast=(gboolean) |
| * @param row_aligh cast=(gfloat) |
| * @param column_align cast=(gfloat) |
| */ |
| public static final native void gtk_tree_view_scroll_to_cell(long tree_view, long path, long column, boolean use_align, float row_aligh, float column_align); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param tree_x cast=(gint) |
| * @param tree_y cast=(gint) |
| */ |
| public static final native void gtk_tree_view_scroll_to_point(long tree_view, int tree_x, int tree_y); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param path cast=(GtkTreePath *) |
| * @param focus_column cast=(GtkTreeViewColumn *) |
| */ |
| public static final native void gtk_tree_view_set_cursor(long tree_view, long path, long focus_column, boolean start_editing); |
| /** |
| * @param tree_view cast=(GtkTreeView*) |
| * @param grid_lines cast=(GtkTreeViewGridLines) |
| */ |
| public static final native void gtk_tree_view_set_grid_lines(long tree_view, int grid_lines); |
| /** |
| * @param tree_view cast=(GtkTreeView*) |
| */ |
| public static final native int gtk_tree_view_get_grid_lines(long tree_view); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param visible cast=(gboolean) |
| */ |
| public static final native void gtk_tree_view_set_headers_visible(long tree_view, boolean visible); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param model cast=(GtkTreeModel *) |
| */ |
| public static final native void gtk_tree_view_set_model(long tree_view, long model); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param column cast=(gint) |
| */ |
| public static final native void gtk_tree_view_set_search_column(long tree_view, int column); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param bx cast=(gint) |
| * @param by cast=(gint) |
| * @param tx cast=(gint *) |
| * @param ty cast=(gint *) |
| */ |
| public static final native void gtk_tree_view_convert_bin_window_to_tree_coords(long tree_view, int bx, int by, int[] tx, int[] ty); |
| /** |
| * @param tree_view cast=(GtkTreeView *) |
| * @param wx cast=(int *) |
| * @param wy cast=(int *) |
| */ |
| public static final native void gtk_tree_view_convert_bin_window_to_widget_coords(long tree_view, int bx, int by, int[]wx, int[] wy); |
| |
| |
| /** |
| * @param context cast=(GtkStyleContext *) |
| * @param cr cast=(cairo_t *) |
| * @param x cast=(gdouble) |
| * @param y cast=(gdouble) |
| * @param width cast=(gdouble) |
| * @param height cast=(gdouble) |
| */ |
| public static final native void gtk_render_handle(long context, long cr, double x , double y, double width, double height); |
| /** @method flags=dynamic */ |
| public static final native long gtk_printer_option_widget_get_type(); |
| |
| |
| /* GtkWidget */ |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native int gtk_widget_get_scale_factor(long widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long gtk_widget_get_name(long widget); |
| /** |
| * @method flags=dynamic |
| * @param widget_class cast=(GtkWidgetClass *) |
| */ |
| public static final native long gtk_widget_class_get_css_name(long widget_class); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param minimum_size cast=(GtkRequisition *) |
| * @param natural_size cast=(GtkRequisition *) |
| */ |
| public static final native void gtk_widget_get_preferred_size(long widget, GtkRequisition minimum_size, GtkRequisition natural_size); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void gtk_widget_unparent(long widget); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param parent cast=(GtkWidget *) |
| */ |
| public static final native void gtk_widget_set_parent(long widget, long parent); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param expand cast=(gboolean) |
| */ |
| public static final native void gtk_widget_set_hexpand(long widget, boolean expand); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param expand cast=(gboolean) |
| */ |
| public static final native void gtk_widget_set_vexpand(long widget, boolean expand); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param gtk_align cast=(GtkAlign) |
| */ |
| public static final native void gtk_widget_set_halign(long widget, int gtk_align); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param gtk_align cast=(GtkAlign) |
| */ |
| public static final native void gtk_widget_set_valign(long widget, int gtk_align); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param margin cast=(gint) |
| */ |
| public static final native void gtk_widget_set_margin_start(long widget, int margin); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param margin cast=(gint) |
| */ |
| public static final native void gtk_widget_set_margin_end(long widget, int margin); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param margin cast=(gint) |
| */ |
| public static final native void gtk_widget_set_margin_top(long widget, int margin); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param margin cast=(gint) |
| */ |
| public static final native void gtk_widget_set_margin_bottom(long widget, int margin); |
| /** @param self cast=(GtkWidget *) */ |
| public static final native int gtk_widget_get_state_flags(long self); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean gtk_widget_has_default(long widget); |
| |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean gtk_widget_get_sensitive(long widget); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param css_class cast=(const char *) |
| * */ |
| public static final native void gtk_widget_add_css_class(long widget, byte[] css_class); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean gtk_widget_child_focus(long widget, int direction); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param text cast=(const gchar *) |
| */ |
| public static final native long gtk_widget_create_pango_layout(long widget, byte[] text); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param text cast=(const gchar *) |
| */ |
| public static final native long gtk_widget_create_pango_layout(long widget, long text); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean gtk_widget_get_visible(long widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean gtk_widget_get_realized(long widget); |
| |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean gtk_widget_get_child_visible(long widget); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native int gtk_widget_get_margin_start(long widget); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native int gtk_widget_get_margin_end(long widget); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native int gtk_widget_get_margin_top(long widget); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native int gtk_widget_get_margin_bottom(long widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean gtk_widget_get_mapped(long widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long gtk_widget_get_pango_context(long widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long gtk_widget_get_parent(long widget); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native long gtk_widget_get_parent_window(long widget); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native long gtk_widget_get_parent_surface(long widget); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param allocation cast=(GtkAllocation *),flags=no_in |
| * */ |
| public static final native void gtk_widget_get_allocation(long widget, GtkAllocation allocation); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param group_cycling cast=(gboolean) |
| */ |
| public static final native boolean gtk_widget_mnemonic_activate(long widget, boolean group_cycling); |
| /** |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native long gtk_widget_get_style_context(long widget); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param width cast=(gint *) |
| * @param height cast=(gint *) |
| */ |
| public static final native void gtk_widget_get_size_request(long widget, int [] width, int [] height); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void gtk_widget_grab_focus(long widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean gtk_widget_has_focus(long widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void gtk_widget_hide(long widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean gtk_widget_is_focus(long widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void gtk_widget_queue_resize(long widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void gtk_widget_realize(long widget); |
| /** @param dir cast=(GtkTextDirection) */ |
| public static final native void gtk_widget_set_default_direction(int dir); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void gtk_widget_queue_draw(long widget); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param can_focus cast=(gboolean) |
| */ |
| public static final native void gtk_widget_set_can_focus(long widget, boolean can_focus); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param visible cast=(gboolean) |
| */ |
| public static final native void gtk_widget_set_visible(long widget, boolean visible); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param dir cast=(GtkTextDirection) |
| */ |
| public static final native void gtk_widget_set_direction(long widget, int dir); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param receives_default cast=(gboolean) |
| */ |
| public static final native void gtk_widget_set_receives_default(long widget, boolean receives_default); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param val cast=(gboolean) |
| */ |
| public static final native void gtk_widget_set_focus_on_click(long widget, boolean val); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void gtk_widget_set_opacity(long widget, double opacity); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native double gtk_widget_get_opacity(long widget); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param sensitive cast=(gboolean) |
| */ |
| public static final native void gtk_widget_set_sensitive(long widget, boolean sensitive); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| */ |
| public static final native void gtk_widget_set_size_request(long widget, int width, int height); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native void gtk_widget_show(long widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native boolean gtk_widget_activate(long widget); |
| /** @param widget cast=(GtkWidget *) */ |
| public static final native long gtk_widget_get_tooltip_text(long widget); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param tip_text cast=(const gchar *) |
| */ |
| public static final native void gtk_widget_set_tooltip_text(long widget, byte[] tip_text); |
| /** |
| * @param widget cast=(GtkWidget *) |
| * @param name cast=(const char *) |
| * @param group cast=(GActionGroup *) |
| */ |
| public static final native void gtk_widget_insert_action_group(long widget, byte[] name, long group); |
| |
| /* GtkWidget [GTK3 only] */ |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void gtk_widget_set_clip(long widget, GtkAllocation allocation); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| */ |
| public static final native void gtk_widget_get_clip(long widget, GtkAllocation allocation); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param allocation cast=(GtkAllocation *),flags=no_out |
| */ |
| public static final native void gtk_widget_set_allocation(long widget, GtkAllocation allocation); |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param allocation cast=(GtkAllocation *),flags=no_out |
| */ |
| public static final native void gtk_widget_size_allocate(long widget, GtkAllocation allocation); |
| |
| /* GtkWidget [GTK4 only] */ |
| /** |
| * @method flags=dynamic |
| * @param widget cast=(GtkWidget *) |
| * @param allocation cast=(GtkAllocation *),flags=no_out |
| */ |
| public static final native void gtk_widget_size_allocate(long widget, GtkAllocation allocation, int baseline); |
| |
| |
| /* GtkWindow */ |
| /** @param window cast=(GtkWindow *) */ |
| public static final native long gtk_window_get_focus(long window); |
| /** |
| * @param window cast=(GtkWindow *) |
| */ |
| public static final native long gtk_window_get_group(long window); |
| /** @param window cast=(GtkWindow *) */ |
| public static final native boolean gtk_window_get_modal(long window); |
| /** |
| * @param group cast=(GtkWindowGroup*) |
| * @param window cast=(GtkWindow*) |
| */ |
| public static final native void gtk_window_group_add_window(long group, long window); |
| /** |
| * @param group cast=(GtkWindowGroup*) |
| * @param window cast=(GtkWindow*) |
| */ |
| public static final native void gtk_window_group_remove_window(long group, long window); |
| public static final native long gtk_window_group_new(); |
| /** @param handle cast=(GtkWindow *) */ |
| public static final native boolean gtk_window_is_active(long handle); |
| public static final native long gtk_window_list_toplevels(); |
| /** @param handle cast=(GtkWindow *) */ |
| public static final native void gtk_window_maximize(long handle); |
| /** @param handle cast=(GtkWindow *) */ |
| public static final native void gtk_window_fullscreen(long handle); |
| /** @param handle cast=(GtkWindow *) */ |
| public static final native void gtk_window_unfullscreen(long handle); |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param decorated cast=(gboolean) |
| */ |
| public static final native void gtk_window_set_decorated(long window, boolean decorated); |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param setting cast=(gboolean) |
| */ |
| public static final native void gtk_window_set_destroy_with_parent(long window, boolean setting); |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param modal cast=(gboolean) |
| */ |
| public static final native void gtk_window_set_modal(long window, boolean modal); |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param resizable cast=(gboolean) |
| */ |
| public static final native void gtk_window_set_resizable(long window, boolean resizable); |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param title cast=(const gchar *) |
| */ |
| public static final native void gtk_window_set_title(long window, byte[] title); |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param parent cast=(GtkWindow *) |
| */ |
| public static final native void gtk_window_set_transient_for(long window, long parent); |
| /** @param handle cast=(GtkWindow *) */ |
| public static final native void gtk_window_unmaximize(long handle); |
| /** @param window cast=(GtkWindow *) */ |
| public static final native long gtk_window_get_default_widget(long window); |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param width cast=(gint) |
| * @param height cast=(gint) |
| */ |
| public static final native void gtk_window_set_default_size(long window, int width, int height); |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param width cast=(gint *) |
| * @param height cast=(gint *) |
| */ |
| public static final native void gtk_window_get_default_size(long window, int[] width, int[] height); |
| |
| /* GtkWindow [GTK3] */ |
| /** |
| * @param window cast=(GtkWindow *) |
| * @param geometry_widget cast=(GtkWidget *) |
| * @param geometry flags=no_out |
| */ |
| public static final native void gtk_window_set_geometry_hints(long window, long geometry_widget, GdkGeometry geometry, int geom_mask); |
| } |