1 /*******************************************************************************
2  * Copyright (c) 2018 Red Hat Inc. and others. All rights reserved.
3  * The contents of this file are made available under the terms
4  * of the GNU Lesser General Public License (LGPL) Version 2.1 that
5  * accompanies this distribution (lgpl-v21.txt).  The LGPL is also
6  * available at http://www.gnu.org/licenses/lgpl.html.  If the version
7  * of the LGPL at http://www.gnu.org is different to the version of
8  * the LGPL accompanying this distribution and there is any conflict
9  * between the two license versions, the terms of the LGPL accompanying
10  * this distribution shall govern.
11  *
12  * Contributors:
13  *     IBM Corporation - initial API and implementation
14  *******************************************************************************/
15 package org.eclipse.swt.internal.gtk;
16 
17 /**
18  * This class contains GTK specific native functions.
19  *
20  * In contrast to OS.java, dynamic functions are automatically linked, no need to add os_custom.h entries.
21  */
22 public class GTK extends OS {
23 
24 	/** Constants */
25 	public static final int GTK_ACCEL_VISIBLE = 0x1;
26 	public static final int GTK_ALIGN_FILL = 0x0; //Gtk3 GtkAlign Enum
27 	public static final int GTK_ALIGN_START = 0x1;
28 	public static final int GTK_ALIGN_END = 0x2;
29 	public static final int GTK_ALIGN_CENTER = 0x3;
30 	public static final int GTK_ALIGN_BASELINE = 0x4;
31 	public static final int GTK_CALENDAR_SHOW_HEADING = 1 << 0;
32 	public static final int GTK_CALENDAR_SHOW_DAY_NAMES = 1 << 1;
33 	public static final int GTK_CALENDAR_NO_MONTH_CHANGE = 1 << 2;
34 	public static final int GTK_CALENDAR_SHOW_WEEK_NUMBERS = 1 << 3;
35 	public static final int GTK_CALENDAR_WEEK_START_MONDAY = 1 << 4;
36 	public static final int GTK_CELL_RENDERER_MODE_ACTIVATABLE = 1;
37 	public static final int GTK_CELL_RENDERER_SELECTED = 1 << 0;
38 	public static final int GTK_CELL_RENDERER_FOCUSED = 1 << 4;
39 	public static final int GTK_DIALOG_DESTROY_WITH_PARENT = 1 << 1;
40 	public static final int GTK_DIALOG_MODAL = 1 << 0;
41 	public static final int GTK_DIR_TAB_FORWARD = 0;
42 	public static final int GTK_DIR_TAB_BACKWARD = 1;
43 	public static final int GTK_ENTRY_ICON_PRIMARY = 0;
44 	public static final int GTK_ENTRY_ICON_SECONDARY = 1;
45 	public static final int GTK_FILE_CHOOSER_ACTION_OPEN = 0;
46 	public static final int GTK_FILE_CHOOSER_ACTION_SAVE = 1;
47 	public static final int GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER = 2;
48 	public static final int GTK_ICON_SIZE_MENU = 1;
49 	public static final int GTK_ICON_SIZE_SMALL_TOOLBAR = 2;
50 	public static final int GTK_ICON_SIZE_DIALOG = 6;
51 	public static final int GTK_ICON_LOOKUP_FORCE_SIZE = 4;
52 	public static final int GTK_JUSTIFY_CENTER = 0x2;
53 	public static final int GTK_JUSTIFY_LEFT = 0x0;
54 	public static final int GTK_JUSTIFY_RIGHT = 0x1;
55 	public static final int GTK_MESSAGE_INFO = 0;
56 	public static final int GTK_MESSAGE_WARNING = 1;
57 	public static final int GTK_MESSAGE_QUESTION = 2;
58 	public static final int GTK_MESSAGE_ERROR = 3;
59 	public static final int GTK_MOVEMENT_VISUAL_POSITIONS = 1;
60 	public static final int GTK_ORIENTATION_HORIZONTAL = 0x0;
61 	public static final int GTK_ORIENTATION_VERTICAL = 0x1;
62 	public static final int GTK_PACK_END = 1;
63 	public static final int GTK_PACK_START = 0;
64 	public static final int GTK_PAGE_ORIENTATION_PORTRAIT = 0;
65 	public static final int GTK_PAGE_ORIENTATION_LANDSCAPE = 1;
66 	public static final int GTK_POLICY_ALWAYS = 0x0;
67 	public static final int GTK_POLICY_AUTOMATIC = 0x1;
68 	public static final int GTK_POLICY_NEVER = 0x2;
69 	public static final int GTK_POLICY_EXTERNAL = 0x3;
70 	public static final int GTK_POS_TOP = 0x2;
71 	public static final int GTK_POS_BOTTOM = 0x3;
72 	public static final int GTK_PRINT_CAPABILITY_PAGE_SET     = 1 << 0;
73 	public static final int GTK_PRINT_CAPABILITY_COPIES       = 1 << 1;
74 	public static final int GTK_PRINT_CAPABILITY_COLLATE      = 1 << 2;
75 	public static final int GTK_PRINT_PAGES_ALL = 0;
76 	public static final int GTK_PRINT_PAGES_CURRENT = 1;
77 	public static final int GTK_PRINT_PAGES_RANGES = 2;
78 	public static final int GTK_PRINT_PAGES_SELECTION = 3;
79 	public static final int GTK_PRINT_DUPLEX_SIMPLEX = 0;
80 	public static final int GTK_PRINT_DUPLEX_HORIZONTAL = 1;
81 	public static final int GTK_PRINT_DUPLEX_VERTICAL = 2;
82 	public static final int GTK_EVENT_CONTROLLER_SCROLL_NONE = 0;
83 	public static final int GTK_PHASE_CAPTURE = 1;
84 	public static final int GTK_PHASE_BUBBLE = 2;
85 	public static final int GTK_PHASE_TARGET = 3;
86 	public static final int GTK_PROGRESS_LEFT_TO_RIGHT = 0x0;
87 	public static final int GTK_PROGRESS_BOTTOM_TO_TOP = 0x2;
88 	public static final int GTK_RESPONSE_CANCEL = 0xfffffffa;
89 	public static final int GTK_RESPONSE_OK = 0xfffffffb;
90 	public static final int GTK_RESPONSE_ACCEPT = -3;
91 	public static final int GTK_SCROLL_NONE = 0;
92 	public static final int GTK_SCROLL_JUMP = 1;
93 	public static final int GTK_SCROLL_STEP_BACKWARD = 2;
94 	public static final int GTK_SCROLL_STEP_FORWARD = 3;
95 	public static final int GTK_SCROLL_PAGE_BACKWARD = 4;
96 	public static final int GTK_SCROLL_PAGE_FORWARD = 5;
97 	public static final int GTK_SCROLL_STEP_UP = 6;
98 	public static final int GTK_SCROLL_STEP_DOWN = 7;
99 	public static final int GTK_SCROLL_PAGE_UP = 8;
100 	public static final int GTK_SCROLL_PAGE_DOWN = 9;
101 	public static final int GTK_SCROLL_STEP_LEFT = 10;
102 	public static final int GTK_SCROLL_STEP_RIGHT = 11;
103 	public static final int GTK_SCROLL_PAGE_LEFT = 12;
104 	public static final int GTK_SCROLL_PAGE_RIGHT = 13;
105 	public static final int GTK_SCROLL_START = 14;
106 	public static final int GTK_SCROLL_END = 15;
107 	public static final int GTK_SELECTION_BROWSE = 0x2;
108 	public static final int GTK_SELECTION_MULTIPLE = 0x3;
109 	public static final int GTK_SHADOW_ETCHED_IN = 0x3;
110 	public static final int GTK_SHADOW_ETCHED_OUT = 0x4;
111 	public static final int GTK_SHADOW_IN = 0x1;
112 	public static final int GTK_SHADOW_NONE = 0x0;
113 	public static final int GTK_SHADOW_OUT = 0x2;
114 	public static final int GTK_STATE_FLAG_NORMAL = 0;
115 	public static final int GTK_STATE_FLAG_ACTIVE = 1 << 0;
116 	public static final int GTK_STATE_FLAG_PRELIGHT = 1 << 1;
117 	public static final int GTK_STATE_FLAG_SELECTED = 1 << 2;
118 	public static final int GTK_STATE_FLAG_INSENSITIVE = 1 << 3;
119 	public static final int GTK_STATE_FLAG_INCONSISTENT = 1 << 4;
120 	public static final int GTK_STATE_FLAG_FOCUSED = 1 << 5;
121 	public static final int GTK_STATE_FLAG_BACKDROP  = 1 << 6;
122 	public static final int GTK_STATE_FLAG_LINK = 1 << 9;
123 	public static final int GTK_TEXT_DIR_LTR = 1;
124 	public static final int GTK_TEXT_DIR_RTL = 2;
125 	public static final int GTK_TEXT_WINDOW_TEXT = 2;
126 	public static final int GTK_TOOLBAR_ICONS = 0;
127 	public static final int GTK_TOOLBAR_TEXT = 1;
128 	public static final int GTK_TOOLBAR_BOTH = 2;
129 	public static final int GTK_TOOLBAR_BOTH_HORIZ = 3;
130 	public static final int GTK_TREE_VIEW_COLUMN_GROW_ONLY = 0;
131 	public static final int GTK_TREE_VIEW_COLUMN_AUTOSIZE = 1;
132 	public static final int GTK_TREE_VIEW_COLUMN_FIXED = 2;
133 	public static final int GTK_TREE_VIEW_DROP_BEFORE = 0;
134 	public static final int GTK_TREE_VIEW_DROP_AFTER = 1;
135 	public static final int GTK_TREE_VIEW_DROP_INTO_OR_BEFORE = 2;
136 	public static final int GTK_TREE_VIEW_DROP_INTO_OR_AFTER = 3;
137 	public static final int GTK_TREE_VIEW_GRID_LINES_NONE = 0;
138 	public static final int GTK_TREE_VIEW_GRID_LINES_HORIZONTAL = 1;
139 	public static final int GTK_TREE_VIEW_GRID_LINES_VERTICAL = 2;
140 	public static final int GTK_TREE_VIEW_GRID_LINES_BOTH = 3;
141 	public static final int GTK_STYLE_PROVIDER_PRIORITY_APPLICATION = 600;
142 	public static final int GTK_STYLE_PROVIDER_PRIORITY_USER = 800;
143 	public static final int GTK_UNIT_PIXEL = 0;
144 	public static final int GTK_UNIT_POINTS = 1;
145 	public static final int GTK_UNIT_INCH = 2;
146 	public static final int GTK_UNIT_MM = 3;
147 	public static final int GTK_WINDOW_POPUP = 0x1;
148 	public static final int GTK_WINDOW_TOPLEVEL = 0x0;
149 	public static final int GTK_WRAP_NONE = 0;
150 	public static final int GTK_WRAP_WORD = 2;
151 	public static final int GTK_WRAP_WORD_CHAR = 3;
152 
153 	/** Classes */
154 	public static final byte[] GTK_STYLE_CLASS_VIEW = OS.ascii("view");
155 	public static final byte[] GTK_STYLE_CLASS_CELL = OS.ascii("cell");
156 	public static final byte[] GTK_STYLE_CLASS_PANE_SEPARATOR = OS.ascii("pane-separator");
157 	public static final byte[] GTK_STYLE_CLASS_SUGGESTED_ACTION = OS.ascii("suggested-action");
158 	public static final byte[] GTK_STYLE_CLASS_FRAME = OS.ascii("frame");
159 
160 	/** Properties */
161 	public static final byte[] gtk_alternative_button_order = OS.ascii("gtk-alternative-button-order");
162 	public static final byte[] gtk_cursor_blink = OS.ascii("gtk-cursor-blink");
163 	public static final byte[] gtk_cursor_blink_time = OS.ascii("gtk-cursor-blink-time");
164 	public static final byte[] gtk_double_click_time = OS.ascii("gtk-double-click-time");
165 	public static final byte[] gtk_entry_select_on_focus = OS.ascii("gtk-entry-select-on-focus");
166 	public static final byte[] gtk_style_property_font = OS.ascii("font");
167 	public static final byte[] gtk_menu_bar_accel = OS.ascii("gtk-menu-bar-accel");
168 	public static final byte[] gtk_theme_name = OS.ascii("gtk-theme-name");
169 	public static final byte[] gtk_im_module = OS.ascii("gtk-im-module");
170 
171 	/** Misc **/
172 	public static final byte[] GTK_PRINT_SETTINGS_OUTPUT_URI = OS.ascii("output-uri");
173 
174 	/**
175 	 * Needed to tell GTK 3 to prefer a dark or light theme in the UI.
176 	 * Improves the look of the Eclipse Dark theme in GTK 3 systems.
177 	 */
178 	public static final byte[] gtk_application_prefer_dark_theme = OS.ascii("gtk-application-prefer-dark-theme");
179 
180 	/** Named icons.
181 	 * See https://docs.google.com/spreadsheet/pub?key=0AsPAM3pPwxagdGF4THNMMUpjUW5xMXZfdUNzMXhEa2c&output=html
182 	 * See http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html#names
183 	 * Icon preview tool: gtk3-icon-browser
184 	 * Snippets often demonstrate usage of these. E.x 309, 258.
185 	 * */
186 	public static final byte[] GTK_NAMED_ICON_GO_UP = OS.ascii ("go-up-symbolic");
187 	public static final byte[] GTK_NAMED_ICON_GO_DOWN = OS.ascii ("go-down-symbolic");
188 	public static final byte[] GTK_NAMED_ICON_GO_NEXT = OS.ascii ("go-next-symbolic");
189 	public static final byte[] GTK_NAMED_ICON_GO_PREVIOUS = OS.ascii ("go-previous-symbolic");
190 	public static final byte[] GTK_NAMED_ICON_PAN_DOWN = OS.ascii ("pan-down-symbolic");
191 	public static final byte[] GTK_NAMED_LABEL_OK = OS.ascii("_OK");
192 	public static final byte[] GTK_NAMED_LABEL_CANCEL = OS.ascii("_Cancel");
193 
194 	public static final int GTK_VERSION = OS.VERSION(GTK.gtk_get_major_version(), GTK.gtk_get_minor_version(), GTK.gtk_get_micro_version());
195 	public static final boolean GTK4 = GTK_VERSION >= OS.VERSION(3, 94, 0);
196 
197 	/** 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 */
GtkAllocation_sizeof()198 	public static final native int GtkAllocation_sizeof();
GtkBorder_sizeof()199 	public static final native int GtkBorder_sizeof();
GtkRequisition_sizeof()200 	public static final native int GtkRequisition_sizeof();
GtkTargetEntry_sizeof()201 	public static final native int GtkTargetEntry_sizeof();
GtkTextIter_sizeof()202 	public static final native int GtkTextIter_sizeof();
GtkCellRendererText_sizeof()203 	public static final native int GtkCellRendererText_sizeof();
GtkCellRendererTextClass_sizeof()204 	public static final native int GtkCellRendererTextClass_sizeof();
GtkCellRendererPixbuf_sizeof()205 	public static final native int GtkCellRendererPixbuf_sizeof();
GtkCellRendererPixbufClass_sizeof()206 	public static final native int GtkCellRendererPixbufClass_sizeof();
GtkCellRendererToggle_sizeof()207 	public static final native int GtkCellRendererToggle_sizeof();
GtkCellRendererToggleClass_sizeof()208 	public static final native int GtkCellRendererToggleClass_sizeof();
GtkTreeIter_sizeof()209 	public static final native int GtkTreeIter_sizeof();
210 
211 	/**
212 	 * Macros.
213 	 *
214 	 * Some of these are not found in dev documentation, only in the sources.
215 	 */
216 
217 	/** @param widget cast=(GtkWidget *) */
GTK_WIDGET_GET_CLASS(long widget)218 	public static final native long GTK_WIDGET_GET_CLASS(long widget);
219 	/** @method flags=const */
GTK_TYPE_TEXT_VIEW_ACCESSIBLE()220 	public static final native long GTK_TYPE_TEXT_VIEW_ACCESSIBLE ();
GTK_IS_ACCEL_LABEL(long obj)221 	public static final native boolean GTK_IS_ACCEL_LABEL(long obj);
GTK_IS_BUTTON(long obj)222 	public static final native boolean GTK_IS_BUTTON(long obj);
GTK_IS_LABEL(long obj)223 	public static final native boolean GTK_IS_LABEL(long obj);
GTK_IS_IM_CONTEXT(long obj)224 	public static final native boolean GTK_IS_IM_CONTEXT(long obj);
GTK_IS_SCROLLED_WINDOW(long obj)225 	public static final native boolean GTK_IS_SCROLLED_WINDOW(long obj);
GTK_IS_WINDOW(long obj)226 	public static final native boolean GTK_IS_WINDOW(long obj);
GTK_IS_CELL_RENDERER_PIXBUF(long obj)227 	public static final native boolean GTK_IS_CELL_RENDERER_PIXBUF(long obj);
GTK_IS_CELL_RENDERER_TEXT(long obj)228 	public static final native boolean GTK_IS_CELL_RENDERER_TEXT(long obj);
GTK_IS_CELL_RENDERER_TOGGLE(long obj)229 	public static final native boolean GTK_IS_CELL_RENDERER_TOGGLE(long obj);
GTK_IS_CONTAINER(long obj)230 	public static final native boolean GTK_IS_CONTAINER(long obj);
GTK_IS_MENU_ITEM(long obj)231 	public static final native boolean GTK_IS_MENU_ITEM(long obj);
GTK_IS_PLUG(long obj)232 	public static final native boolean GTK_IS_PLUG(long obj);
233 	/** @method flags=const */
GTK_TYPE_CELL_RENDERER_TEXT()234 	public static final native long GTK_TYPE_CELL_RENDERER_TEXT();
235 	/** @method flags=const */
GTK_TYPE_CELL_RENDERER_PIXBUF()236 	public static final native long GTK_TYPE_CELL_RENDERER_PIXBUF();
237 	/** @method flags=const */
GTK_TYPE_CELL_RENDERER_TOGGLE()238 	public static final native long GTK_TYPE_CELL_RENDERER_TOGGLE();
239 	/** @method flags=const */
GTK_TYPE_IM_MULTICONTEXT()240 	public static final native long GTK_TYPE_IM_MULTICONTEXT();
241 	/** @method flags=const */
GTK_TYPE_MENU()242 	public static final native long GTK_TYPE_MENU();
243 	/** @method flags=const */
GTK_TYPE_WIDGET()244 	public static final native long GTK_TYPE_WIDGET();
245 	/** @method flags=const */
GTK_TYPE_WINDOW()246 	public static final native long GTK_TYPE_WINDOW();
247 
248 	// See os_custom.h
249 	// Dynamically get's the function pointer to gtk_false(). Gtk2/Gtk3.
GET_FUNCTION_POINTER_gtk_false()250 	public static final native long GET_FUNCTION_POINTER_gtk_false();
251 
252 	/** @param widget cast=(GtkWidget *) */
gtk_widget_has_default(long widget)253 	public static final native boolean gtk_widget_has_default(long widget);
254 
255 	/** @param widget cast=(GtkWidget *) */
gtk_widget_get_sensitive(long widget)256 	public static final native boolean gtk_widget_get_sensitive(long widget);
257 
258 	/** @param widget cast=(GtkWidget *) */
259 	/* [GTK4 only, if-def'd in os.h] */
gtk_widget_get_first_child(long widget)260 	public static final native long gtk_widget_get_first_child(long widget);
261 
262 	/** @param widget cast=(GtkWidget *) */
263 	/* [GTK4 only, if-def'd in os.h] */
gtk_widget_get_next_sibling(long widget)264 	public static final native long gtk_widget_get_next_sibling(long widget);
265 
266 	/**
267 	 * @param widget cast=(GtkWidget *)
268 	 */
269 	/* [GTK3 only, if-def'd in os.h] */
gtk_widget_get_screen(long widget)270 	public static final native long gtk_widget_get_screen(long widget);
271 
272 	/**
273 	 * @param widget cast=(GtkWidget *)
274 	 */
gtk_widget_get_scale_factor(long widget)275 	public static final native int gtk_widget_get_scale_factor(long widget);
276 
277 	/** @param widget cast=(GtkWidget *) */
gtk_widget_get_name(long widget)278 	public static final native long gtk_widget_get_name(long widget);
279 
280 	/** @method flags=dynamic
281 	 *  @param widget_class cast=(GtkWidgetClass *)
282 	 */
gtk_widget_class_get_css_name(long widget_class)283 	public static final native long gtk_widget_class_get_css_name(long widget_class);
284 
gtk_button_new()285 	public static final native long gtk_button_new();
286 
287 	/**
288 	 * @method flags=dynamic
289 	 * @param button cast=(GtkButton *)
290 	 * @param image cast=(GtkWidget *)
291 	 */
292 	/* [GTK3 only] */
gtk_button_set_image(long button, long image)293 	public static final native void gtk_button_set_image(long button, long image);
294 
295 	/**
296 	 * @method flags=dynamic
297 	 * @param accel_label cast=(GtkAccelLabel *)
298 	 * @param accel_key cast=(guint)
299 	 * @param accel_mods cast=(GdkModifierType)
300 	 */
gtk_accel_label_set_accel(long accel_label, int accel_key, int accel_mods)301 	public static final native void gtk_accel_label_set_accel(long accel_label, int accel_key, int accel_mods);
gtk_accelerator_get_default_mod_mask()302 	public static final native int gtk_accelerator_get_default_mod_mask();
303 	/**
304 	 * @param accelerator cast=(const gchar *)
305 	 * @param accelerator_key cast=(guint *)
306 	 * @param accelerator_mods cast=(GdkModifierType *)
307 	 */
gtk_accelerator_parse(long accelerator, int [] accelerator_key, int [] accelerator_mods)308 	public static final native void gtk_accelerator_parse(long accelerator, int [] accelerator_key, int [] accelerator_mods);
gtk_accel_group_new()309 	public static final native long gtk_accel_group_new();
310 	/**
311 	 * @param accel_label cast=(GtkAccelLabel *)
312 	 * @param accel_widget cast=(GtkWidget *)
313 	 */
gtk_accel_label_set_accel_widget(long accel_label, long accel_widget)314 	public static final native void gtk_accel_label_set_accel_widget(long accel_label, long accel_widget);
315 	/** @param label cast=(const gchar *) */
gtk_accel_label_new(byte[] label)316 	public static final native long gtk_accel_label_new(byte[] label);
317 	/**
318 	 * @param accessible cast=(GtkAccessible *)
319 	 */
gtk_accessible_get_widget(long accessible)320 	public static final native long gtk_accessible_get_widget(long accessible);
321 	/**
322 	 * @param adjustment cast=(GtkAdjustment *)
323 	 */
gtk_adjustment_configure(long adjustment, double value, double lower, double upper, double step_increment, double page_increment, double page_size)324 	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);
325 	/**
326 	 * @param value cast=(gdouble)
327 	 * @param lower cast=(gdouble)
328 	 * @param upper cast=(gdouble)
329 	 * @param step_increment cast=(gdouble)
330 	 * @param page_increment cast=(gdouble)
331 	 */
gtk_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size)332 	public static final native long gtk_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size);
333 	/**
334 	 * @param adjustment cast=(GtkAdjustment *)
335 	 */
gtk_adjustment_get_lower(long adjustment)336 	public static final native double gtk_adjustment_get_lower(long adjustment);
337 	/**
338 	 * @param adjustment cast=(GtkAdjustment *)
339 	 */
gtk_adjustment_get_page_increment(long adjustment)340 	public static final native double gtk_adjustment_get_page_increment(long adjustment);
341 	/**
342 	 * @param adjustment cast=(GtkAdjustment *)
343 	 */
gtk_adjustment_get_page_size(long adjustment)344 	public static final native double gtk_adjustment_get_page_size(long adjustment);
345 	/**
346 	 * @param adjustment cast=(GtkAdjustment *)
347 	 */
gtk_adjustment_get_step_increment(long adjustment)348 	public static final native double gtk_adjustment_get_step_increment(long adjustment);
349 	/**
350 	 * @param adjustment cast=(GtkAdjustment *)
351 	 */
gtk_adjustment_get_upper(long adjustment)352 	public static final native double gtk_adjustment_get_upper(long adjustment);
353 	/**
354 	 * @param adjustment cast=(GtkAdjustment *)
355 	 */
gtk_adjustment_get_value(long adjustment)356 	public static final native double gtk_adjustment_get_value(long adjustment);
357 	/**
358 	 * @param adjustment cast=(GtkAdjustment *)
359 	 * @param value cast=(gdouble)
360 	 */
gtk_adjustment_set_value(long adjustment, double value)361 	public static final native void gtk_adjustment_set_value(long adjustment, double value);
362 	/**
363 	 * @param adjustment cast=(GtkAdjustment *)
364 	 * @param value cast=(gdouble)
365 	 */
gtk_adjustment_set_step_increment(long adjustment, double value)366 	public static final native void gtk_adjustment_set_step_increment(long adjustment, double value);
367 	/**
368 	 * @param adjustment cast=(GtkAdjustment *)
369 	 * @param value cast=(gdouble)
370 	 */
gtk_adjustment_set_page_increment(long adjustment, double value)371 	public static final native void gtk_adjustment_set_page_increment(long adjustment, double value);
372 	/** @param bin cast=(GtkBin *) */
gtk_bin_get_child(long bin)373 	public static final native long gtk_bin_get_child(long bin);
374 	/** @param border cast=(GtkBorder *) */
gtk_border_free(long border)375 	public static final native void gtk_border_free(long border);
376 	/** @param box cast=(GtkBox *) */
gtk_box_set_spacing(long box, int spacing)377 	public static final native void gtk_box_set_spacing(long box, int spacing);
378 	/**
379 	 * @method flags=dynamic
380 	 * @param box cast=(GtkBox *)
381 	 * @param child cast=(GtkWidget *)
382 	 */
383 	/* [GTK3 only] */
gtk_box_set_child_packing(long box, long child, boolean expand, boolean fill, int padding, int pack_type)384 	public static final native void gtk_box_set_child_packing(long box, long child, boolean expand, boolean fill, int padding, int pack_type);
385 	/**
386 	 * @method flags=dynamic
387 	 * @param box cast=(GtkBox *)
388 	 * @param child cast=(GtkWidget *)
389 	 */
390 	/* [GTK4 only] */
gtk_box_set_child_packing(long box, long child, int pack_type)391 	public static final native void gtk_box_set_child_packing(long box, long child, int pack_type);
gtk_calendar_new()392 	public static final native long gtk_calendar_new();
393 	/**
394 	 * @param calendar cast=(GtkCalendar *)
395 	 * @param month cast=(guint)
396 	 * @param year cast=(guint)
397 	 */
gtk_calendar_select_month(long calendar, int month, int year)398 	public static final native void /*long*/ gtk_calendar_select_month(long calendar, int month, int year);
399 	/**
400 	 * @param calendar cast=(GtkCalendar *)
401 	 * @param day cast=(guint)
402 	 */
gtk_calendar_select_day(long calendar, int day)403 	public static final native void gtk_calendar_select_day(long calendar, int day);
404 	/**
405 	 * @param calendar cast=(GtkCalendar *)
406 	 * @param day cast=(guint)
407 	 */
gtk_calendar_mark_day(long calendar, int day)408 	public static final native void gtk_calendar_mark_day(long calendar, int day);
409 	/**
410 	 * @param calendar cast=(GtkCalendar *)
411 	 */
gtk_calendar_clear_marks(long calendar)412 	public static final native void gtk_calendar_clear_marks(long calendar);
413 	/**
414 	 * @param calendar cast=(GtkCalendar *)
415 	 * @param flags cast=(GtkCalendarDisplayOptions)
416 	 */
gtk_calendar_set_display_options(long calendar, int flags)417 	public static final native void gtk_calendar_set_display_options(long calendar, int flags);
418 	/**
419 	 * @param calendar cast=(GtkCalendar *)
420 	 * @param year cast=(guint *)
421 	 * @param month cast=(guint *)
422 	 * @param day cast=(guint *)
423 	 */
gtk_calendar_get_date(long calendar, int[] year, int[] month, int[] day)424 	public static final native void gtk_calendar_get_date(long calendar, int[] year, int[] month, int[] day);
425 	/** @param cell_layout cast=(GtkCellLayout *) */
gtk_cell_layout_clear(long cell_layout)426 	public static final native void gtk_cell_layout_clear(long cell_layout);
427 	/** @param cell_layout cast=(GtkCellLayout *) */
gtk_cell_layout_get_cells(long cell_layout)428 	public static final native long gtk_cell_layout_get_cells(long cell_layout);
429 	/**
430 	 * @param cell_layout cast=(GtkCellLayout *)
431 	 * @param cell cast=(GtkCellRenderer *)
432 	 * @param sentinel cast=(const gchar *),flags=sentinel
433 	 */
gtk_cell_layout_set_attributes(long cell_layout, long cell, byte[] attribute, int column, long sentinel)434 	public static final native void gtk_cell_layout_set_attributes(long cell_layout, long cell, byte[] attribute, int column, long sentinel);
435 	/**
436 	 * @param cell_layout cast=(GtkCellLayout *)
437 	 * @param cell cast=(GtkCellRenderer *)
438 	 */
gtk_cell_layout_pack_start(long cell_layout, long cell, boolean expand)439 	public static final native void gtk_cell_layout_pack_start(long cell_layout, long cell, boolean expand);
440 	/**
441 	 * @param cell cast=(GtkCellRenderer *)
442 	 * @param widget cast=(GtkWidget *)
443 	 * @param minimum_size cast=(GtkRequisition *)
444 	 * @param natural_size cast=(GtkRequisition *)
445 	 */
gtk_cell_renderer_get_preferred_size(long cell, long widget, GtkRequisition minimum_size, GtkRequisition natural_size)446 	public static final native void gtk_cell_renderer_get_preferred_size(long cell, long widget, GtkRequisition minimum_size, GtkRequisition natural_size);
447 	/**
448 	 * @param cell cast=(GtkCellRenderer *)
449 	 * @param xpad cast=(gint *)
450 	 * @param ypad cast=(gint *)
451 	 */
gtk_cell_renderer_get_padding(long cell, int [] xpad, int [] ypad)452 	public static final native void gtk_cell_renderer_get_padding(long cell, int [] xpad, int [] ypad);
453 	/**
454 	 * @param cell cast=(GtkCellRenderer *)
455 	 * @param widget cast=(GtkWidget *)
456 	 * @param width cast=(gint)
457 	 * @param minimum_height cast=(gint *)
458 	 * @param natural_height cast=(gint *)
459 	 */
gtk_cell_renderer_get_preferred_height_for_width(long cell, long widget, int width, int[] minimum_height, int[] natural_height)460 	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);
461 	/**
462 	 * @param cell cast=(GtkCellRenderer *)
463 	 * @param width cast=(gint)
464 	 * @param height cast=(gint)
465 	 */
gtk_cell_renderer_set_fixed_size(long cell, int width, int height)466 	public static final native void gtk_cell_renderer_set_fixed_size(long cell, int width, int height);
467 	/**
468 	 * @param cell cast=(GtkCellRenderer *)
469 	 * @param width cast=(gint *)
470 	 * @param height cast=(gint *)
471 	 */
gtk_cell_renderer_get_fixed_size(long cell, int[] width, int[] height)472 	public static final native void gtk_cell_renderer_get_fixed_size(long cell, int[] width, int[] height);
473 	/**
474 	 * @param widget cast=(GtkWidget *)
475 	 * @param minimum_size cast=(GtkRequisition *)
476 	 * @param natural_size cast=(GtkRequisition *)
477 	 */
gtk_widget_get_preferred_size(long widget, GtkRequisition minimum_size, GtkRequisition natural_size)478 	public static final native void gtk_widget_get_preferred_size(long widget, GtkRequisition minimum_size, GtkRequisition natural_size);
479 	/**
480 	 * @method flags=dynamic
481 	 * @param widget cast=(GtkWidget *)
482 	 * @param width cast=(gint)
483 	 * @param minimum_size cast=(gint *)
484 	 * @param natural_size cast=(gint *)
485 	 */
486 	/* [GTK3 only] */
gtk_widget_get_preferred_height_for_width(long widget, int width, int[] minimum_size, int[] natural_size)487 	public static final native void gtk_widget_get_preferred_height_for_width(long widget, int width, int[] minimum_size, int[] natural_size);
488 	/**
489 	 * @method flags=dynamic
490 	 * @param widget cast=(GtkWidget *)
491 	 * @param minimum_size cast=(gint *)
492 	 * @param natural_size cast=(gint *)
493 	 */
494 	/* [GTK3 only] */
gtk_widget_get_preferred_height(long widget, int[] minimum_size, int[] natural_size)495 	public static final native void gtk_widget_get_preferred_height(long widget, int[] minimum_size, int[] natural_size);
496 	/**
497 	 * @method flags=dynamic
498 	 * @param widget cast=(GtkWidget *)
499 	 * @param height cast=(gint)
500 	 * @param minimum_size cast=(gint *)
501 	 * @param natural_size cast=(gint *)
502 	 */
503 	/* [GTK3 only] */
gtk_widget_get_preferred_width_for_height(long widget, int height, int[] minimum_size, int[] natural_size)504 	public static final native void gtk_widget_get_preferred_width_for_height(long widget, int height, int[] minimum_size, int[] natural_size);
gtk_cell_renderer_pixbuf_new()505 	public static final native long gtk_cell_renderer_pixbuf_new();
gtk_cell_renderer_text_new()506 	public static final native long gtk_cell_renderer_text_new();
gtk_cell_renderer_toggle_new()507 	public static final native long gtk_cell_renderer_toggle_new();
508 	/**
509 	 * @param cell_view cast=(GtkCellView *)
510 	 * @param fit_model cast=(gboolean)
511 	 */
gtk_cell_view_set_fit_model(long cell_view, boolean fit_model)512 	public static final native void gtk_cell_view_set_fit_model(long cell_view, boolean fit_model);
gtk_check_button_new()513 	public static final native long gtk_check_button_new();
514 	/** @param check_menu_item cast=(GtkCheckMenuItem *) */
gtk_check_menu_item_get_active(long check_menu_item)515 	public static final native boolean gtk_check_menu_item_get_active(long check_menu_item);
gtk_check_menu_item_new()516 	public static final native long gtk_check_menu_item_new();
517 	/**
518 	 * @param wid cast=(GtkCheckMenuItem *)
519 	 * @param active cast=(gboolean)
520 	 */
gtk_check_menu_item_set_active(long wid, boolean active)521 	public static final native void gtk_check_menu_item_set_active(long wid, boolean active);
gtk_check_version(int required_major, int required_minor, int required_micro)522 	public static final native long gtk_check_version(int required_major, int required_minor, int required_micro);
523 	/** @param clipboard cast=(GtkClipboard *) */
524 	/* [GTK3 only, if-def'd in os.h] */
gtk_clipboard_clear(long clipboard)525 	public static final native void gtk_clipboard_clear(long clipboard);
526 	/** @param selection cast=(GdkAtom) */
527 	/* [GTK3 only, if-def'd in os.h] */
gtk_clipboard_get(long selection)528 	public static final native long gtk_clipboard_get(long selection);
529 	/**
530 	 * @param clipboard cast=(GtkClipboard *)
531 	 * @param target cast=(const GtkTargetEntry *)
532 	 * @param n_targets cast=(guint)
533 	 * @param get_func cast=(GtkClipboardGetFunc)
534 	 * @param clear_func cast=(GtkClipboardClearFunc)
535 	 * @param user_data cast=(GObject *)
536 	 */
537 	/* [GTK3 only, if-def'd in os.h] */
gtk_clipboard_set_with_owner(long clipboard, long target, int n_targets, long get_func, long clear_func, long user_data)538 	public static final native boolean gtk_clipboard_set_with_owner(long clipboard, long target, int n_targets, long get_func, long clear_func, long user_data);
539 	/**
540 	 * @param clipboard cast=(GtkClipboard *)
541 	 * @param targets cast=(const GtkTargetEntry *)
542 	 * @param n_targets cast=(gint)
543 	 */
544 	/* [GTK3 only, if-def'd in os.h] */
gtk_clipboard_set_can_store(long clipboard, long targets, int n_targets)545 	public static final native void gtk_clipboard_set_can_store(long clipboard, long targets, int n_targets);
546 	/**
547 	 * @param clipboard cast=(GtkClipboard *)
548 	 */
549 	/* [GTK3 only, if-def'd in os.h] */
gtk_clipboard_store(long clipboard)550 	public static final native void gtk_clipboard_store(long clipboard);
551 	/**
552 	 * @param clipboard cast=(GtkClipboard *)
553 	 * @param target cast=(GdkAtom)
554 	 */
555 	/* [GTK3 only, if-def'd in os.h] */
gtk_clipboard_wait_for_contents(long clipboard, long target)556 	public static final native long gtk_clipboard_wait_for_contents(long clipboard, long target);
557 	/**
558 	 * @param chooser cast=(GtkColorChooser *)
559 	 * @param orientation cast=(GtkOrientation)
560 	 * @param colors_per_line cast=(gint)
561 	 * @param n_colors cast=(gint)
562 	 * @param colors cast=(GdkRGBA *)
563 	 */
gtk_color_chooser_add_palette(long chooser, int orientation, int colors_per_line, int n_colors, long colors)564 	public static final native void gtk_color_chooser_add_palette(long chooser, int orientation, int colors_per_line, int n_colors, long colors);
565 	/**
566 	 * @param title cast=(const gchar *)
567 	 * @param parent cast=(GtkWindow *)
568 	 */
gtk_color_chooser_dialog_new(byte[] title, long parent)569 	public static final native long gtk_color_chooser_dialog_new(byte[] title, long parent);
570 	/**
571 	 * @param chooser cast=(GtkColorChooser *)
572 	 * @param use_alpha cast=(gboolean)
573 	 */
gtk_color_chooser_set_use_alpha(long chooser, boolean use_alpha)574 	public static final native void gtk_color_chooser_set_use_alpha(long chooser, boolean use_alpha);
575 	/**
576 	 * @param chooser cast=(GtkColorChooser *)
577 	 */
gtk_color_chooser_get_use_alpha(long chooser)578 	public static final native boolean gtk_color_chooser_get_use_alpha(long chooser);
579 	/**
580 	 * @param chooser cast=(GtkColorChooser *)
581 	 * @param color cast=(GdkRGBA *)
582 	 */
gtk_color_chooser_set_rgba(long chooser, GdkRGBA color)583 	public static final native void gtk_color_chooser_set_rgba(long chooser, GdkRGBA color);
584 	/**
585 	 * @param chooser cast=(GtkColorChooser *)
586 	 * @param color cast=(GdkRGBA *)
587 	 */
gtk_color_chooser_get_rgba(long chooser, GdkRGBA color)588 	public static final native void gtk_color_chooser_get_rgba(long chooser, GdkRGBA color);
gtk_combo_box_text_new()589 	public static final native long gtk_combo_box_text_new();
gtk_combo_box_text_new_with_entry()590 	public static final native long gtk_combo_box_text_new_with_entry();
591 	/**
592 	 * @param combo_box cast=(GtkComboBoxText *)
593 	 * @param position cast=(gint)
594 	 * @param id cast=(const gchar *)
595 	 * @param text cast=(const gchar *)
596 	 */
597 	/* Do not call directly, instead use Combo.gtk_combo_box_insert(..) */
gtk_combo_box_text_insert(long combo_box, int position, byte[] id, byte[] text)598 	public static final native void gtk_combo_box_text_insert(long combo_box, int position, byte[] id, byte[] text);
599 	/** @param combo_box cast=(GtkComboBoxText *) */
gtk_combo_box_text_remove(long combo_box, int position)600 	public static final native void gtk_combo_box_text_remove(long combo_box, int position);
601 	/**
602 	 * @param combo_box cast=(GtkComboBoxText *)
603 	 */
604 	/* Do not call directly. Call Combo.gtk_combo_box_text_remove_all(..) instead). */
gtk_combo_box_text_remove_all(long combo_box)605 	public static final native void gtk_combo_box_text_remove_all(long combo_box);
606 	/**
607 	* @param combo_box cast=(GtkComboBox *)
608 	*/
gtk_combo_box_get_active(long combo_box)609 	public static final native int gtk_combo_box_get_active(long combo_box);
610 	/**
611 	* @param combo_box cast=(GtkComboBox *)
612 	*/
gtk_combo_box_get_model(long combo_box)613 	public static final native long gtk_combo_box_get_model(long combo_box);
614 	/**
615 	* @param combo_box cast=(GtkComboBox *)
616 	* @param index cast=(gint)
617 	*/
gtk_combo_box_set_active(long combo_box, int index)618 	public static final native void gtk_combo_box_set_active(long combo_box, int index);
619 	/**
620 	 * @param combo_box cast=(GtkComboBox *)
621 	 * @param width cast=(gint)
622 	 */
623 	/*
624 	 * Do not use directly. Instead use Combo.gtk_combo_box_toggle_wrap(..)
625 	 */
gtk_combo_box_set_wrap_width(long combo_box, int width)626 	public static final native void gtk_combo_box_set_wrap_width(long combo_box, int width);
627 
628 	/**
629 	 * @param combo_box cast=(GtkComboBox *)
630 	 * @return cast=(gint)
631 	 */
gtk_combo_box_get_wrap_width(long combo_box)632 	public static final native int gtk_combo_box_get_wrap_width(long combo_box);
633 	/**
634 	* @param combo_box cast=(GtkComboBox *)
635 	*/
gtk_combo_box_popup(long combo_box)636 	public static final native void gtk_combo_box_popup(long combo_box);
637 	/**
638 	* @param combo_box cast=(GtkComboBox *)
639 	*/
gtk_combo_box_popdown(long combo_box)640 	public static final native void gtk_combo_box_popdown(long combo_box);
641 	/**
642 	 * @param container cast=(GtkContainer *)
643 	 * @param widget cast=(GtkWidget *)
644 	 */
gtk_container_add(long container, long widget)645 	public static final native void gtk_container_add(long container, long widget);
646 	//Do not confuse this function with gtk_container_foreach(..).
647 	//Make sure you know what you are doing when using this. Please be attentive to swt_fixed_forall(..)
648 	// found in os_custom.c, which overrides this function for swtFixed container with custom behaviour.
649 	/**
650 	 * @param container cast=(GtkContainer *)
651 	 * @param callback cast=(GtkCallback)
652 	 * @param callback_data cast=(gpointer)
653 	 */
gtk_container_forall(long container, long callback, long callback_data)654 	public static final native void gtk_container_forall(long container, long callback, long callback_data);
655 	/**
656 	 * @param container cast=(GtkContainer *)
657 	 * @param child cast=(GtkWidget *)
658 	 * @param cairo cast=(cairo_t *)
659 	 */
660 	/* [GTK3 only, if-def'd in os.h] */
gtk_container_propagate_draw(long container, long child, long cairo)661 	public static final native void gtk_container_propagate_draw(long container, long child, long cairo);
662 	/**
663 	 * @param container cast=(GtkContainer *)
664 	 */
665 	/* [GTK3 only, if-def'd in os.h] */
gtk_container_get_border_width(long container)666 	public static final native int gtk_container_get_border_width(long container);
667 	/** @param container cast=(GtkContainer *) */
gtk_container_get_children(long container)668 	public static final native long gtk_container_get_children(long container);
669 	/**
670 	 * @param container cast=(GtkContainer *)
671 	 * @param widget cast=(GtkWidget *)
672 	 */
gtk_container_remove(long container, long widget)673 	public static final native void gtk_container_remove(long container, long widget);
674 	/**
675 	 * @param container cast=(GtkContainer *)
676 	 * @param border_width cast=(guint)
677 	 */
678 	/* [GTK3 only, if-def'd in os.h] */
gtk_container_set_border_width(long container, int border_width)679 	public static final native void gtk_container_set_border_width(long container, int border_width);
680 	/**
681 	 * @param dialog cast=(GtkDialog *)
682 	 * @param button_text cast=(const gchar *)
683 	 * @param response_id cast=(gint)
684 	 */
gtk_dialog_add_button(long dialog, byte[] button_text, int response_id)685 	public static final native long gtk_dialog_add_button(long dialog, byte[]  button_text, int response_id);
686 	/** @param dialog cast=(GtkDialog *) */
gtk_dialog_run(long dialog)687 	public static final native int gtk_dialog_run(long dialog);
688 	/**
689 	 * @method flags=dynamic
690 	 * @param widget cast=(GtkWidget *)
691 	 * @param targets cast=(GtkTargetList *)
692 	 * @param actions cast=(GdkDragAction)
693 	 * @param button cast=(gint)
694 	 * @param event cast=(GdkEvent *)
695 	 * @param x cast=(gint)
696 	 * @param y cast=(gint)
697 	 */
698 	/* [GTK3 only, if-def'd in os.h] */
gtk_drag_begin_with_coordinates(long widget, long targets, int actions, int button, long event, int x, int y)699 	public static final native long gtk_drag_begin_with_coordinates(long widget, long targets, int actions, int button, long event, int x, int y);
700 	/**
701 	 * @param widget cast=(GtkWidget *)
702 	 * @param device cast=(GdkDevice *)
703 	 * @param targets cast=(GdkContentFormats *)
704 	 * @param actions cast=(GdkDragAction)
705 	 * @param x cast=(gint)
706 	 * @param y cast=(gint)
707 	 */
708 	/* [GTK4 only, if-def'd in os.h] */
gtk_drag_begin_with_coordinates(long widget, long device, long targets, int actions, int x, int y)709 	public static final native long gtk_drag_begin_with_coordinates(long widget, long device, long targets, int actions, int x, int y);
710 	/**
711 	 * @param widget cast=(GtkWidget *)
712 	 * @param start_x cast=(gint)
713 	 * @param start_y cast=(gint)
714 	 * @param current_x cast=(gint)
715 	 * @param current_y cast=(gint)
716 	 */
gtk_drag_check_threshold(long widget, int start_x, int start_y, int current_x, int current_y)717 	public static final native boolean gtk_drag_check_threshold(long widget, int start_x, int start_y, int current_x, int current_y);
718 	/**
719 	 * @param widget cast=(GtkWidget *)
720 	 * @param flags cast=(GtkDestDefaults)
721 	 * @param targets cast=(const GtkTargetEntry *)
722 	 * @param n_targets cast=(gint)
723 	 * @param actions cast=(GdkDragAction)
724 	 */
725 	/* [GTK3 only, if-def'd in os.h] */
gtk_drag_dest_set(long widget, int flags, long targets, int n_targets, int actions)726 	public static final native void gtk_drag_dest_set(long widget, int flags, long targets, int n_targets, int actions);
727 	/** @param widget cast=(GtkWidget *) */
gtk_drag_dest_unset(long widget)728 	public static final native void gtk_drag_dest_unset(long widget);
729 	/**
730 	 * @param context cast=(GdkDragContext *)
731 	 * @param success cast=(gboolean)
732 	 * @param delete cast=(gboolean)
733 	 * @param time cast=(guint32)
734 	 */
735 	/* [GTK3 only, if-def'd in os.h] */
gtk_drag_finish(long context, boolean success, boolean delete, int time)736 	public static final native void gtk_drag_finish(long context, boolean success, boolean delete, int time);
737 	/**
738 	 * @param widget cast=(GtkWidget *)
739 	 * @param context cast=(GdkDragContext *)
740 	 * @param target cast=(GdkAtom)
741 	 * @param time cast=(guint32)
742 	 */
743 	/* [GTK3 only, if-def'd in os.h] */
gtk_drag_get_data(long widget, long context, long target, int time)744 	public static final native void gtk_drag_get_data(long widget, long context, long target, int time);
745 	/**
746 	 * @param widget cast=(GtkWidget *)
747 	 * @param drop cast=(GdkDrop *)
748 	 * @param target cast=(GdkAtom)
749 	 */
750 	/* [GTK4 only, if-def'd in os.h] */
gtk_drag_get_data(long widget, long drop, long target)751 	public static final native void gtk_drag_get_data(long widget, long drop, long target);
752 	/**
753 	 * @param context cast=(GdkDragContext *)
754 	 * @param surface cast=(cairo_surface_t *)
755 	 */
756 	/* [GTK3 only, if-def'd in os.h] */
gtk_drag_set_icon_surface(long context, long surface)757 	public static final native void gtk_drag_set_icon_surface(long context, long surface);
758 	/** @param editable cast=(GtkEditable *) */
gtk_editable_copy_clipboard(long editable)759 	public static final native void gtk_editable_copy_clipboard(long editable);
760 	/** @param editable cast=(GtkEditable *) */
gtk_editable_cut_clipboard(long editable)761 	public static final native void gtk_editable_cut_clipboard(long editable);
762 	/** @param editable cast=(GtkEditable *) */
gtk_editable_delete_selection(long editable)763 	public static final native void gtk_editable_delete_selection(long editable);
764 	/**
765 	 * @param editable cast=(GtkEditable *)
766 	 * @param start_pos cast=(gint)
767 	 * @param end_pos cast=(gint)
768 	 */
gtk_editable_delete_text(long editable, int start_pos, int end_pos)769 	public static final native void gtk_editable_delete_text(long editable, int start_pos, int end_pos);
770 	/** @param editable cast=(GtkEditable *) */
gtk_editable_get_editable(long editable)771 	public static final native boolean gtk_editable_get_editable(long editable);
772 	/** @param editable cast=(GtkEditable *) */
gtk_editable_get_position(long editable)773 	public static final native int gtk_editable_get_position(long editable);
774 	/**
775 	 * @param editable cast=(GtkEditable *)
776 	 * @param start cast=(gint *)
777 	 * @param end cast=(gint *)
778 	 */
gtk_editable_get_selection_bounds(long editable, int[] start, int[] end)779 	public static final native boolean gtk_editable_get_selection_bounds(long editable, int[] start, int[] end);
780 	/**
781 	 * @param editable cast=(GtkEditable *)
782 	 * @param new_text cast=(gchar *)
783 	 * @param new_text_length cast=(gint)
784 	 * @param position cast=(gint *)
785 	 */
gtk_editable_insert_text(long editable, byte[] new_text, int new_text_length, int[] position)786 	public static final native void gtk_editable_insert_text(long editable, byte[] new_text, int new_text_length, int[] position);
787 	/** @param editable cast=(GtkEditable *) */
gtk_editable_paste_clipboard(long editable)788 	public static final native void gtk_editable_paste_clipboard(long editable);
789 	/**
790 	 * @param editable cast=(GtkEditable *)
791 	 * @param start cast=(gint)
792 	 * @param end cast=(gint)
793 	 */
gtk_editable_select_region(long editable, int start, int end)794 	public static final native void gtk_editable_select_region(long editable, int start, int end);
795 	/**
796 	 * @param entry cast=(GtkEditable *)
797 	 * @param editable cast=(gboolean)
798 	 */
gtk_editable_set_editable(long entry, boolean editable)799 	public static final native void gtk_editable_set_editable(long entry, boolean editable);
800 	/**
801 	 * @param editable cast=(GtkEditable *)
802 	 * @param position cast=(gint)
803 	 */
gtk_editable_set_position(long editable, int position)804 	public static final native void gtk_editable_set_position(long editable, int position);
805 	/**
806 	 * @param self cast=(GtkEntry *)
807 	 * @param n_chars cast=(gint)
808 	 */
gtk_entry_set_width_chars(long self, int n_chars)809 	public static final native void gtk_entry_set_width_chars(long self, int n_chars);
810 	/** @param entry cast=(GtkEntry *) */
gtk_entry_get_invisible_char(long entry)811 	public static final native char gtk_entry_get_invisible_char(long entry);
812 	/** @param entry cast=(GtkEntry *) */
gtk_entry_get_layout(long entry)813 	public static final native long gtk_entry_get_layout(long entry);
814 	/**
815 	 * @param entry cast=(GtkEntry *)
816 	 * @param x cast=(gint *)
817 	 * @param y cast=(gint *)
818 	 */
gtk_entry_get_layout_offsets(long entry, int[] x, int[] y)819 	public static final native void gtk_entry_get_layout_offsets(long entry, int[] x, int[] y);
820 	/**
821 	 * @param entry cast=(GtkEntry *)
822 	 * @param index cast=(gint)
823 	 */
gtk_entry_text_index_to_layout_index(long entry, int index)824 	public static final native int gtk_entry_text_index_to_layout_index(long entry, int index);
825 	/**
826 	 * @param entry cast=(GtkEntry *)
827 	 * @param icon_pos cast=(gint)
828 	 * @param icon_area cast=(GdkRectangle *),flags=no_in
829 	 */
gtk_entry_get_icon_area(long entry, int icon_pos, GdkRectangle icon_area)830 	public static final native void gtk_entry_get_icon_area(long entry, int icon_pos, GdkRectangle icon_area);
831 	/** @param entry cast=(GtkEntry *) */
gtk_entry_get_max_length(long entry)832 	public static final native int gtk_entry_get_max_length(long entry);
833 	/** @param entry cast=(GtkEntry *) */
gtk_entry_get_text(long entry)834 	public static final native long gtk_entry_get_text(long entry);
835 	/** @param entry cast=(GtkEntry *) */
gtk_entry_get_visibility(long entry)836 	public static final native boolean gtk_entry_get_visibility(long entry);
gtk_entry_new()837 	public static final native long gtk_entry_new();
838 	/**
839 	 * @param entry cast=(GtkEntry *)
840 	 * @param xalign cast=(gfloat)
841 	 */
gtk_entry_set_alignment(long entry, float xalign)842 	public static final native void gtk_entry_set_alignment(long entry, float xalign);
843 	/**
844 	 * @param entry cast=(GtkEntry *)
845 	 * @param setting cast=(gboolean)
846 	 */
gtk_entry_set_has_frame(long entry, boolean setting)847 	public static final native void gtk_entry_set_has_frame(long entry, boolean setting);
848 	/**
849 	 * @param entry cast=(GtkEntry *)
850 	 * @param iconPos cast=(gint)
851 	 * @param stock cast=(const gchar *)
852 	 */
gtk_entry_set_icon_from_icon_name(long entry, int iconPos, byte[] stock)853 	public static final native void gtk_entry_set_icon_from_icon_name(long entry, int iconPos, byte[] stock);
854 	/**
855 	 * @param entry cast=(GtkEntry *)
856 	 * @param icon_pos cast=(GtkEntryIconPosition)
857 	 * @param activatable cast=(gboolean)
858 	 */
gtk_entry_set_icon_activatable(long entry, int icon_pos, boolean activatable)859 	public static final native void gtk_entry_set_icon_activatable(long entry, int icon_pos, boolean activatable);
860 	/**
861 	 * @param entry cast=(GtkEntry *)
862 	 * @param icon_pos cast=(GtkEntryIconPosition)
863 	 * @param sensitive cast=(gboolean)
864 	 */
gtk_entry_set_icon_sensitive(long entry, int icon_pos, boolean sensitive)865 	public static final native void gtk_entry_set_icon_sensitive(long entry, int icon_pos, boolean sensitive);
866 	/**
867 	 * @param entry cast=(GtkEntry *)
868 	 * @param ch cast=(gint)
869 	 */
gtk_entry_set_invisible_char(long entry, char ch)870 	public static final native void gtk_entry_set_invisible_char(long entry, char ch);
871 	/**
872 	 * @param entry cast=(GtkEntry *)
873 	 * @param max cast=(gint)
874 	 */
gtk_entry_set_max_length(long entry, int max)875 	public static final native void gtk_entry_set_max_length(long entry, int max);
876 	/**
877 	 * @param entry cast=(GtkEntry *)
878 	 * @param tabs cast=(PangoTabArray *)
879 	 */
gtk_entry_set_tabs(long entry, long tabs)880 	public static final native void gtk_entry_set_tabs(long entry, long tabs);
881 	/**
882 	 * @param entry cast=(GtkEntry *)
883 	 * @param text cast=(const gchar *)
884 	 */
gtk_entry_set_text(long entry, byte[] text)885 	public static final native void gtk_entry_set_text(long entry, byte[] text);
886 	/**
887 	 * @param entry cast=(GtkEntry *)
888 	 * @param text cast=(const gchar *)
889 	 */
gtk_entry_set_placeholder_text(long entry, byte[] text)890 	public static final native void gtk_entry_set_placeholder_text(long entry, byte[] text);
891 	/**
892 	 * @param entry cast=(GtkEntry *)
893 	 * @param visible cast=(gboolean)
894 	 */
gtk_entry_set_visibility(long entry, boolean visible)895 	public static final native void gtk_entry_set_visibility(long entry, boolean visible);
896 	/** @param expander cast=(GtkExpander *) */
gtk_expander_get_expanded(long expander)897 	public static final native boolean gtk_expander_get_expanded(long expander);
898 	/**
899 	 * @param label cast=(const gchar *)
900 	 */
gtk_expander_new(byte[] label)901 	public static final native long gtk_expander_new(byte[] label);
902 	/** @param expander cast=(GtkExpander *) */
gtk_expander_set_expanded(long expander, boolean expanded)903 	public static final native void gtk_expander_set_expanded(long expander, boolean expanded);
904 	/**
905 	 * @param expander cast=(GtkExpander *)
906 	 * @param label_widget cast=(GtkWidget *)
907 	 */
gtk_expander_set_label_widget(long expander, long label_widget)908 	public static final native void gtk_expander_set_label_widget(long expander, long label_widget);
909 	/**
910 	 * @param chooser cast=(GtkFileChooser *)
911 	 * @param filter cast=(GtkFileFilter *)
912 	 */
gtk_file_chooser_add_filter(long chooser, long filter)913 	public static final native void gtk_file_chooser_add_filter(long chooser, long filter);
914 	/** @param chooser cast=(GtkFileChooser *) */
gtk_file_chooser_get_filename(long chooser)915 	public static final native long gtk_file_chooser_get_filename(long chooser);
916 	/**  @param chooser cast=(GtkFileChooser *) */
gtk_file_chooser_get_filenames(long chooser)917 	public static final native long gtk_file_chooser_get_filenames(long chooser);
918 	/** @param chooser cast=(GtkFileChooser *) */
gtk_file_chooser_get_uri(long chooser)919 	public static final native long gtk_file_chooser_get_uri(long chooser);
920 	/** @param chooser cast=(GtkFileChooser *) */
gtk_file_chooser_get_uris(long chooser)921 	public static final native long gtk_file_chooser_get_uris(long chooser);
922 	/** @param chooser cast=(GtkFileChooser *) */
gtk_file_chooser_get_filter(long chooser)923 	public static final native long gtk_file_chooser_get_filter(long chooser);
924 	/**
925 	 * @param chooser cast=(GtkFileChooser *)
926 	 * @param filename cast=(const gchar *)
927 	 */
gtk_file_chooser_set_current_folder(long chooser, long filename)928 	public static final native void gtk_file_chooser_set_current_folder(long chooser, long filename);
929 	/**
930 	 * @param chooser cast=(GtkFileChooser *)
931 	 * @param uri cast=(const gchar *)
932 	 */
gtk_file_chooser_set_current_folder_uri(long chooser, byte [] uri)933 	public static final native void gtk_file_chooser_set_current_folder_uri(long chooser, byte [] uri);
934 	/**
935 	 * @param chooser cast=(GtkFileChooser *)
936 	 * @param name cast=(const gchar *)
937 	 */
gtk_file_chooser_set_current_name(long chooser, byte[] name)938 	public static final native void gtk_file_chooser_set_current_name(long chooser, byte[] name);
939 	/**
940 	 * @param chooser cast=(GtkFileChooser *)
941 	 * @param local_only cast=(gboolean)
942 	 */
gtk_file_chooser_set_local_only(long chooser, boolean local_only)943 	public static final native void gtk_file_chooser_set_local_only(long chooser, boolean local_only);
944 	/**
945 	 * @param chooser cast=(GtkFileChooser *)
946 	 * @param do_overwrite_confirmation cast=(gboolean)
947 	 */
gtk_file_chooser_set_do_overwrite_confirmation(long chooser, boolean do_overwrite_confirmation)948 	public static final native void gtk_file_chooser_set_do_overwrite_confirmation(long chooser, boolean do_overwrite_confirmation);
949 	/**
950 	 * @param chooser cast=(GtkFileChooser *)
951 	 * @param extra_widget cast=(GtkWidget *)
952 	 */
gtk_file_chooser_set_extra_widget(long chooser, long extra_widget)953 	public static final native void gtk_file_chooser_set_extra_widget(long chooser, long extra_widget);
954 	/**
955 	 * @param chooser cast=(GtkFileChooser *)
956 	 * @param name cast=(const gchar *)
957 	 */
gtk_file_chooser_set_filename(long chooser, long name)958 	public static final native void gtk_file_chooser_set_filename(long chooser, long name);
959 	/**
960 	 * @param chooser cast=(GtkFileChooser *)
961 	 * @param filter cast=(GtkFileFilter *)
962 	 */
gtk_file_chooser_set_filter(long chooser, long filter)963 	public static final native void gtk_file_chooser_set_filter(long chooser, long filter);
964 	/**
965 	 * @param chooser cast=(GtkFileChooser *)
966 	 * @param uri cast=(const char *)
967 	 */
gtk_file_chooser_set_uri(long chooser, byte [] uri)968 	public static final native void gtk_file_chooser_set_uri(long chooser, byte [] uri);
969 	/**
970 	 * @param chooser cast=(GtkFileChooser *)
971 	 * @param select_multiple cast=(gboolean)
972 	 */
gtk_file_chooser_set_select_multiple(long chooser, boolean select_multiple)973 	public static final native void gtk_file_chooser_set_select_multiple(long chooser, boolean select_multiple);
974 	/* [GTK4 only, if-def'd in os.h] */
gtk_gesture_multi_press_new()975 	public static final native long gtk_gesture_multi_press_new();
976 	/* [GTK4 only, if-def'd in os.h] */
gtk_event_controller_key_new()977 	public static final native long gtk_event_controller_key_new();
978 	/* [GTK4 only, if-def'd in os.h] */
gtk_event_controller_motion_new()979 	public static final native long gtk_event_controller_motion_new();
980 	/* [GTK4 only, if-def'd in os.h] */
gtk_event_controller_scroll_new(int flag)981 	public static final native long gtk_event_controller_scroll_new(int flag);
982 	/**
983 	 * @param widget cast=(GtkWidget *)
984 	 * @param controller cast=(GtkEventController *)
985 	 */
986 	/* [GTK4 only, if-def'd in os.h] */
gtk_widget_add_controller(long widget, long controller)987 	public static final native void gtk_widget_add_controller(long widget, long controller);
988 	/**
989 	 * @method flags=dynamic
990 	 */
gtk_event_controller_set_propagation_phase(long controller, int phase)991 	public static final native void gtk_event_controller_set_propagation_phase(long controller, int phase);
992 	/**
993 	 * @method flags=dynamic
994 	 * @param title cast=(const gchar *),flags=no_out
995 	 * @param parent cast=(GtkWindow *)
996 	 * @param accept_label cast=(const gchar *),flags=no_out
997 	 * @param cancel_label cast=(const gchar *),flags=no_out
998 	 */
gtk_file_chooser_native_new(byte[] title, long parent, int action, byte[] accept_label, byte[] cancel_label)999 	public static final native long gtk_file_chooser_native_new(byte[] title, long parent, int action, byte[] accept_label, byte[] cancel_label);
1000 	/**
1001 	 * @method flags=dynamic
1002 	 */
gtk_event_controller_handle_event(long gesture, long event)1003 	public static final native void gtk_event_controller_handle_event(long gesture, long event);
1004 	/**
1005 	 * @method flags=dynamic
1006 	 */
gtk_event_controller_get_widget(long controller)1007 	public static final native long gtk_event_controller_get_widget(long controller);
1008 	/**
1009 	 * @param filter cast=(GtkFileFilter *)
1010 	 * @param pattern cast=(const gchar *)
1011 	 */
gtk_file_filter_add_pattern(long filter, byte[] pattern)1012 	public static final native void gtk_file_filter_add_pattern(long filter, byte[] pattern);
gtk_file_filter_new()1013 	public static final native long gtk_file_filter_new();
1014 	/** @param filter cast=(GtkFileFilter *) */
gtk_file_filter_get_name(long filter)1015 	public static final native long gtk_file_filter_get_name(long filter);
1016 	/**
1017 	 * @param filter cast=(GtkFileFilter *)
1018 	 * @param name cast=(const gchar *)
1019 	 */
gtk_file_filter_set_name(long filter, byte[] name)1020 	public static final native void gtk_file_filter_set_name(long filter, byte[] name);
1021 	/**
1022 	 * @method flags=dynamic
1023 	 */
gtk_gesture_drag_get_start_point(long gesture, double[] x, double [] y)1024 	public static final native boolean gtk_gesture_drag_get_start_point(long gesture, double[] x, double [] y);
1025 	/**
1026 	 * @method flags=dynamic
1027 	 */
gtk_gesture_is_recognized(long gesture)1028 	public static final native boolean gtk_gesture_is_recognized(long gesture);
1029 	/**
1030 	 * @method flags=dynamic
1031 	 * @param widget cast=(GtkWidget *)
1032 	 */
gtk_gesture_drag_new(long widget)1033 	public static final native long gtk_gesture_drag_new(long widget);
1034 	/**
1035 	 * @method flags=dynamic
1036 	 */
gtk_gesture_get_last_updated_sequence(long gesture)1037 	public static final native long gtk_gesture_get_last_updated_sequence(long gesture);
1038 	/**
1039 	 * @method flags=dynamic
1040 	 */
gtk_gesture_get_point(long gesture, long sequence, double[] x, double [] y)1041 	public static final native boolean gtk_gesture_get_point(long gesture, long sequence, double[] x, double [] y);
1042 	/**
1043 	 * @method flags=dynamic
1044 	 */
gtk_gesture_single_set_button(long gesture, int button)1045 	public static final native void gtk_gesture_single_set_button(long gesture, int button);
1046 	/**
1047 	 * @method flags=dynamic
1048 	 */
gtk_gesture_swipe_get_velocity(long gesture, double [] velocity_x, double[] velocity_y)1049 	public static final native boolean gtk_gesture_swipe_get_velocity(long gesture, double [] velocity_x, double[] velocity_y);
1050 	/**
1051 	 * @method flags=dynamic
1052 	 */
gtk_gesture_drag_get_offset(long gesture, double[] x, double[] y)1053 	public static final native void gtk_gesture_drag_get_offset(long gesture, double[] x, double[] y);
1054 	/**
1055 	 * @method flags=dynamic
1056 	 */
1057 
gtk_gesture_rotate_get_angle_delta(long gesture)1058 	public static final native double gtk_gesture_rotate_get_angle_delta(long gesture);
1059 	/**
1060 	 * @method flags=dynamic
1061 	 */
1062 
gtk_gesture_rotate_new(long widget)1063 	public static final native long gtk_gesture_rotate_new(long widget);
1064 	/**
1065 	 * @method flags=dynamic
1066 	 */
gtk_gesture_zoom_new(long widget)1067 	public static final native long gtk_gesture_zoom_new(long widget);
1068 	/**
1069 	 * @method flags=dynamic
1070 	 */
gtk_gesture_zoom_get_scale_delta(long gesture)1071 	public static final native double gtk_gesture_zoom_get_scale_delta(long gesture);
1072 	/**
1073 	 * @method flags=dynamic
1074 	 * @param widget cast=(GtkWidget *)
1075 	 */
gtk_widget_set_clip(long widget, GtkAllocation allocation)1076 	public static final native void gtk_widget_set_clip(long widget, GtkAllocation allocation);
1077 	/**
1078 	 * @method flags=dynamic
1079 	 * @param widget cast=(GtkWidget *)
1080 	 */
gtk_widget_get_clip(long widget, GtkAllocation allocation)1081 	public static final native void gtk_widget_get_clip(long widget, GtkAllocation allocation);
1082 	/**
1083 	 * @param widget cast=(GtkWidget *)
1084 	 * @param has_window cast=(gboolean)
1085 	 */
1086 	/* [GTK3 only, if-def'd in os.h] */
gtk_widget_set_has_window(long widget, boolean has_window)1087 	public static final native void gtk_widget_set_has_window(long widget, boolean has_window);
1088 	/**
1089 	 * @param widget cast=(GtkWidget *)
1090 	 * @param has_surface cast=(gboolean)
1091 	 */
1092 	/* [GTK4 only, if-def'd in os.h] */
gtk_widget_set_has_surface(long widget, boolean has_surface)1093 	public static final native void gtk_widget_set_has_surface(long widget, boolean has_surface);
1094 	/**
1095 	 * @param widget cast=(GtkWidget *)
1096 	 * @param expand cast=(gboolean)
1097 	 */
gtk_widget_set_hexpand(long widget, boolean expand)1098 	public static final native void gtk_widget_set_hexpand(long widget, boolean expand);
1099 	/**
1100 	 * @param widget cast=(GtkWidget *)
1101 	 * @param expand cast=(gboolean)
1102 	 */
gtk_widget_set_vexpand(long widget, boolean expand)1103 	public static final native void gtk_widget_set_vexpand(long widget, boolean expand);
1104 	//since Gtk 3.16. For pre-gtk3.16, use gtk_misc_set_alignment(..)
1105 	/**
1106 	 * @method flags=dynamic
1107 	 * @param label cast=(GtkLabel *)
1108 	 * @param xalign cast=(gfloat)
1109 	 *
1110 	 */
gtk_label_set_xalign(long label, float xalign)1111 	public static final native void gtk_label_set_xalign(long label, float xalign);
1112 	//since Gtk 3.16. For pre-gtk3.16, use gtk_misc_set_alignment(..)
1113 	/**
1114 	* @method flags=dynamic
1115 	* @param label cast=(GtkLabel *)
1116 	* @param yalign cast=(gfloat)
1117 	*
1118 	*/
gtk_label_set_yalign(long label, float yalign)1119 	public static final native void gtk_label_set_yalign(long label, float yalign);
1120 	/**
1121 	 * @param widget cast=(GtkWidget *)
1122 	 * @param gtk_align cast=(GtkAlign)
1123 	 */
gtk_widget_set_halign(long widget, int gtk_align)1124 	public static final native void gtk_widget_set_halign(long widget, int gtk_align);
1125 	/**
1126 	 * @param widget cast=(GtkWidget *)
1127 	 * @param gtk_align cast=(GtkAlign)
1128 	 */
gtk_widget_set_valign(long widget, int gtk_align)1129 	public static final native void gtk_widget_set_valign(long widget, int gtk_align);
1130 	/**
1131 	 * @method flags=dynamic
1132 	 * @param widget cast=(GtkWidget *)
1133 	 * @param margin cast=(gint)
1134 	 */
gtk_widget_set_margin_start(long widget, int margin)1135 	public static final native void gtk_widget_set_margin_start(long widget, int margin);
1136 	/**
1137 	 * @method flags=dynamic
1138 	 * @param widget cast=(GtkWidget *)
1139 	 * @param margin cast=(gint)
1140 	 */
gtk_widget_set_margin_end(long widget, int margin)1141 	public static final native void gtk_widget_set_margin_end(long widget, int margin);
1142 	/**
1143 	 * @method flags=dynamic
1144 	 * @param widget cast=(GtkWidget *)
1145 	 * @param margin cast=(gint)
1146 	 */
gtk_widget_set_margin_top(long widget, int margin)1147 	public static final native void gtk_widget_set_margin_top(long widget, int margin);
1148 	/**
1149 	 * @method flags=dynamic
1150 	 * @param widget cast=(GtkWidget *)
1151 	 * @param margin cast=(gint)
1152 	 */
gtk_widget_set_margin_bottom(long widget, int margin)1153 	public static final native void gtk_widget_set_margin_bottom(long widget, int margin);
1154 	/**
1155 	 * @param title cast=(const gchar *)
1156 	 * @param parent cast=(GtkWindow *)
1157 	 */
gtk_font_chooser_dialog_new(byte[] title, long parent)1158 	public static final native long gtk_font_chooser_dialog_new(byte[] title, long parent);
1159 	/**
1160 	 * @param fontchooser cast=(GtkFontChooser *)
1161 	 */
gtk_font_chooser_get_font(long fontchooser)1162 	public static final native long gtk_font_chooser_get_font(long fontchooser);
1163 	/**
1164 	 * @param fsd cast=(GtkFontChooser *)
1165 	 * @param fontname cast=(const gchar *)
1166 	 */
gtk_font_chooser_set_font(long fsd, byte[] fontname)1167 	public static final native void gtk_font_chooser_set_font(long fsd, byte[] fontname);
1168 	/** @param label cast=(const gchar *) */
gtk_frame_new(byte[] label)1169 	public static final native long gtk_frame_new(byte[] label);
1170 	/** @param frame cast=(GtkFrame *) */
gtk_frame_get_label_widget(long frame)1171 	public static final native long gtk_frame_get_label_widget(long frame);
1172 	/**
1173 	 * @param frame cast=(GtkFrame *)
1174 	 * @param label_widget cast=(GtkWidget *)
1175 	 */
gtk_frame_set_label_widget(long frame, long label_widget)1176 	public static final native void gtk_frame_set_label_widget(long frame, long label_widget);
1177 	/**
1178 	 * @param frame cast=(GtkFrame *)
1179 	 * @param type cast=(GtkShadowType)
1180 	 */
gtk_frame_set_shadow_type(long frame, int type)1181 	public static final native void gtk_frame_set_shadow_type(long frame, int type);
gtk_get_current_event()1182 	public static final native long gtk_get_current_event();
1183 	/** @param state cast=(GdkModifierType*) */
gtk_get_current_event_state(int[] state)1184 	public static final native boolean gtk_get_current_event_state(int[] state);
gtk_get_default_language()1185 	public static final native long gtk_get_default_language();
1186 	/** @param event cast=(GdkEvent *) */
gtk_get_event_widget(long event)1187 	public static final native long gtk_get_event_widget(long event);
1188 	/** @param widget cast=(GtkWidget *) */
gtk_grab_add(long widget)1189 	public static final native void gtk_grab_add(long widget);
gtk_grab_get_current()1190 	public static final native long gtk_grab_get_current();
1191 	/** @param widget cast=(GtkWidget *) */
gtk_grab_remove(long widget)1192 	public static final native void gtk_grab_remove(long widget);
1193 	/**
1194 	 * @param h cast=(gdouble)
1195 	 * @param s cast=(gdouble)
1196 	 * @param v cast=(gdouble)
1197 	 * @param r cast=(gdouble *)
1198 	 * @param g cast=(gdouble *)
1199 	 * @param b cast=(gdouble *)
1200 	 */
gtk_hsv_to_rgb(double h, double s, double v, double[] r, double[] g, double[] b)1201 	public static final native void gtk_hsv_to_rgb(double h, double s, double v, double[] r, double[] g, double[] b);
1202 	/**
1203 	 * @param r cast=(gdouble)
1204 	 * @param g cast=(gdouble)
1205 	 * @param b cast=(gdouble)
1206 	 * @param h cast=(gdouble *)
1207 	 * @param s cast=(gdouble *)
1208 	 * @param v cast=(gdouble *)
1209 	 */
gtk_rgb_to_hsv(double r, double g, double b, double[] h, double[] s, double[] v)1210 	public static final native void gtk_rgb_to_hsv(double r, double g, double b, double[] h, double[] s, double[] v);
1211 	/**
1212 	 * @param orientation cast=(GtkOrientation)
1213 	 * @param spacing cast=(gint)
1214 	 */
gtk_box_new(int orientation, int spacing)1215 	public static final native long gtk_box_new(int orientation, int spacing);
1216 	/**
1217 	 * @method flags=dynamic
1218 	 * @param box cast=(GtkBox *)
1219 	 * @param widget cast=(GtkWidget *)
1220 	 * @param expand cast=(gboolean)
1221 	 * @param fill cast=(gboolean)
1222 	 * @param padding cast=(guint)
1223 	 */
1224 	/* [GTK3 only] */
gtk_box_pack_end(long box, long widget, boolean expand, boolean fill, int padding)1225 	public static final native void gtk_box_pack_end(long box, long widget,
1226 			boolean expand, boolean fill, int padding);
1227 	/**
1228 	 * @method flags=dynamic
1229 	 * @param box cast=(GtkBox *)
1230 	 * @param child cast=(GtkWidget *)
1231 	 */
1232 	/* [GTK4 only] */
gtk_box_pack_end(long box, long child)1233 	public static final native void gtk_box_pack_end(long box, long child);
1234 	/**
1235 	 * @param box cast=(GtkBox *)
1236 	 * @param child cast=(GtkWidget *)
1237 	 * @param position cast=(gint)
1238 	 */
gtk_box_reorder_child(long box, long child, int position)1239 	public static final native void gtk_box_reorder_child(long box, long child, int position);
1240 	/**
1241 	 * @param box cast=(GtkBox *)
1242 	 * @param homogeneous cast=(gboolean)
1243 	 */
gtk_box_set_homogeneous(long box, boolean homogeneous)1244 	public static final native void gtk_box_set_homogeneous(long box, boolean homogeneous);
1245 	/**
1246 	 * @method flags=dynamic
1247 	 */
1248 	/* [GTK3 only] */
gtk_event_box_new()1249 	public static final native long gtk_event_box_new();
1250 	/**
1251 	 *  @param orientation cast=(GtkOrientation)
1252 	 *  @param adjustment cast=(GtkAdjustment *)
1253 	 */
gtk_scale_new(int orientation, long adjustment)1254 	public static final native long gtk_scale_new(int orientation, long adjustment);
1255 	/**
1256 	 * @param orientation cast=(GtkOrientation)
1257 	 * @param adjustment cast=(GtkAdjustment *)
1258 	 * */
gtk_scrollbar_new(int orientation, long adjustment)1259 	public static final native long gtk_scrollbar_new(int orientation, long adjustment);
gtk_search_entry_new()1260 	public static final native long gtk_search_entry_new();
1261 	/**
1262 	 * @param orientation cast=(GtkOrientation)
1263 	 */
gtk_separator_new(int orientation)1264 	public static final native long gtk_separator_new(int orientation);
1265 	// Get function pointer to gtk_status_icon_position_menu
1266 	// See os_custom.h
gtk_status_icon_position_menu_func()1267 	public static final native long gtk_status_icon_position_menu_func();
1268 	/** @return cast=(GtkIconTheme *) */
gtk_icon_theme_get_default()1269 	public static final native long gtk_icon_theme_get_default();
1270 	/**
1271 	 * @param icon_theme cast=(GtkIconTheme *)
1272 	 * @param icon cast=(GIcon *)
1273 	 * @param size cast=(gint)
1274 	 * @param flags cast=(GtkIconLookupFlags)
1275 	 */
gtk_icon_theme_lookup_by_gicon(long icon_theme, long icon, int size, int flags)1276 	public static final native long gtk_icon_theme_lookup_by_gicon(long icon_theme, long icon, int size, int flags);
1277 	/**
1278 	 * @param icon_theme cast=(GtkIconTheme *)
1279 	 * @param icon_name cast=(const gchar *)
1280 	 * @param size cast=(gint)
1281 	 * @param flags cast=(GtkIconLookupFlags)
1282 	 * @param error cast=(GError **)
1283 	 */
gtk_icon_theme_load_icon(long icon_theme, byte[] icon_name, int size, int flags, long error)1284 	public static final native long gtk_icon_theme_load_icon(long icon_theme, byte[] icon_name, int size, int flags, long error);
1285 	/**
1286 	 * @param icon_info cast=(GtkIconInfo *)
1287 	 * @param error cast=(GError **)
1288 	 */
gtk_icon_info_load_icon(long icon_info, long error[])1289 	public static final native long gtk_icon_info_load_icon(long icon_info, long error[]);
1290 	/**
1291 	 * @param context cast=(GtkIMContext *)
1292 	 * @param event cast=(GdkEventKey *)
1293 	 */
gtk_im_context_filter_keypress(long context, long event)1294 	public static final native boolean gtk_im_context_filter_keypress(long context, long event);
1295 	/** @param context cast=(GtkIMContext *) */
gtk_im_context_focus_in(long context)1296 	public static final native void gtk_im_context_focus_in(long context);
1297 	/** @param context cast=(GtkIMContext *) */
gtk_im_context_focus_out(long context)1298 	public static final native void gtk_im_context_focus_out(long context);
1299 	/**
1300 	 * @param context cast=(GtkIMContext *)
1301 	 * @param str cast=(gchar **)
1302 	 * @param attrs cast=(PangoAttrList **)
1303 	 * @param cursor_pos cast=(gint *)
1304 	 */
gtk_im_context_get_preedit_string(long context, long [] str, long [] attrs, int[] cursor_pos)1305 	public static final native void gtk_im_context_get_preedit_string(long context, long [] str, long [] attrs, int[] cursor_pos);
gtk_im_context_get_type()1306 	public static final native long gtk_im_context_get_type();
1307 	/** @param context cast=(GtkIMContext *) */
gtk_im_context_reset(long context)1308 	public static final native void gtk_im_context_reset(long context);
1309 	/**
1310 	 * @param context cast=(GtkIMContext *)
1311 	 * @param window cast=(GdkWindow *)
1312 	 */
gtk_im_context_set_client_window(long context, long window)1313 	public static final native void gtk_im_context_set_client_window(long context, long window);
1314 	/**
1315 	 * @param context cast=(GtkIMContext *)
1316 	 * @param area cast=(GdkRectangle *),flags=no_out
1317 	 */
gtk_im_context_set_cursor_location(long context, GdkRectangle area)1318 	public static final native void gtk_im_context_set_cursor_location(long context, GdkRectangle area);
gtk_im_multicontext_new()1319 	public static final native long gtk_im_multicontext_new();
gtk_image_new()1320 	public static final native long gtk_image_new();
1321 	/**
1322 	 * @param image cast=(GtkImage *)
1323 	 * @param pixel_size cast=(gint)
1324 	 */
gtk_image_set_pixel_size(long image, int pixel_size)1325 	public static final native void gtk_image_set_pixel_size(long image, int pixel_size);
1326 	/** @param pixbuf cast=(GdkPixbuf *) */
gtk_image_new_from_pixbuf(long pixbuf)1327 	public static final native long gtk_image_new_from_pixbuf(long pixbuf);
1328 	/**
1329 	 * @param image cast=(GtkImage *)
1330 	 * @param pixbuf cast=(GdkPixbuf *)
1331 	 */
gtk_image_set_from_pixbuf(long image, long pixbuf)1332 	public static final native void gtk_image_set_from_pixbuf(long image, long pixbuf);
1333 	/**
1334 	 * @method flags=dynamic
1335 	 * @param image cast=(GtkImage *)
1336 	 * @param gicon cast=(GIcon *)
1337 	 * @param size cast=(GtkIconSize)
1338 	 */
1339 	/* [GTK3 only] */
gtk_image_set_from_gicon(long image, long gicon, int size)1340 	public static final native void gtk_image_set_from_gicon(long image, long gicon, int size);
1341 	/**
1342 	 * @method flags=dynamic
1343 	 * @param image cast=(GtkImage *)
1344 	 * @param gicon cast=(GIcon *)
1345 	 */
1346 	/* [GTK4 only] */
gtk_image_set_from_gicon(long image, long gicon)1347 	public static final native void gtk_image_set_from_gicon(long image, long gicon);
1348 	/**
1349 	 * @method flags=dynamic
1350 	 * @param icon_name cast=(const gchar *)
1351 	 * @param size cast=(GtkIconSize)
1352 	 */
1353 	/* [GTK3 only] */
gtk_image_new_from_icon_name(byte[] icon_name, int size)1354 	public static final native long gtk_image_new_from_icon_name(byte[] icon_name, int size);
1355 	/**
1356 	 * @method flags=dynamic
1357 	 * @param icon_name cast=(const gchar *)
1358 	 */
1359 	/* [GTK4 only] */
gtk_image_new_from_icon_name(byte[] icon_name)1360 	public static final native long gtk_image_new_from_icon_name(byte[] icon_name);
1361 	/**
1362 	 * @method flags=dynamic
1363 	 * @param image cast=(GtkImage *)
1364 	 * @param icon_name cast=(const gchar *)
1365 	 * @param size cast=(GtkIconSize)
1366 	 */
1367 	/* [GTK3 only] */
gtk_image_set_from_icon_name(long image, byte[] icon_name, int size)1368 	public static final native void gtk_image_set_from_icon_name(long image, byte[] icon_name, int size);
1369 	/**
1370 	 * @method flags=dynamic
1371 	 * @param image cast=(GtkImage *)
1372 	 * @param icon_name cast=(const gchar *)
1373 	 */
1374 	/* [GTK4 only] */
gtk_image_set_from_icon_name(long image, byte[] icon_name)1375 	public static final native void gtk_image_set_from_icon_name(long image, byte[] icon_name);
1376 	/**
1377 	 * @method flags=dynamic
1378 	 * @param argc cast=(int *)
1379 	 * @param argv cast=(char ***)
1380 	 */
1381 	/* [GTK3 only] */
gtk_init_check(long [] argc, long [] argv)1382 	public static final native boolean gtk_init_check(long [] argc, long [] argv);
1383 	/**
1384 	 * @method flags=dynamic
1385 	 */
1386 	/* [GTK4 only] */
gtk_init_check()1387 	public static final native boolean gtk_init_check();
1388 	/** @param label cast=(GtkLabel *) */
gtk_label_get_layout(long label)1389 	public static final native long gtk_label_get_layout(long label);
gtk_label_get_type()1390 	public static final native long gtk_label_get_type();
1391 	/** @param label cast=(GtkLabel *) */
gtk_label_get_mnemonic_keyval(long label)1392 	public static final native int gtk_label_get_mnemonic_keyval(long label);
1393 	/** @param label cast=(const gchar *) */
gtk_label_new(byte[] label)1394 	public static final native long gtk_label_new(byte[] label);
1395 	/** @param str cast=(const gchar *) */
gtk_label_new_with_mnemonic(byte[] str)1396 	public static final native long gtk_label_new_with_mnemonic(byte[] str);
1397 	/**
1398 	 * @param label cast=(GtkLabel *)
1399 	 * @param attrs cast=(PangoAttrList *)
1400 	 */
gtk_label_set_attributes(long label, long attrs)1401 	public static final native void gtk_label_set_attributes(long label, long attrs);
1402 	/**
1403 	 * @param label cast=(GtkLabel *)
1404 	 * @param jtype cast=(GtkJustification)
1405 	 */
gtk_label_set_justify(long label, int jtype)1406 	public static final native void gtk_label_set_justify(long label, int jtype);
1407 	/**
1408 	 * @param label cast=(GtkLabel *)
1409 	 * @param wrap cast=(gboolean)
1410 	 */
gtk_label_set_line_wrap(long label, boolean wrap)1411 	public static final native void gtk_label_set_line_wrap(long label, boolean wrap);
1412 	/**
1413 	 * @param label cast=(GtkLabel *)
1414 	 * @param wrap_mode cast=(PangoWrapMode)
1415 	 */
gtk_label_set_line_wrap_mode(long label, int wrap_mode)1416 	public static final native void gtk_label_set_line_wrap_mode(long label, int wrap_mode);
1417 	/**
1418 	 * @param label cast=(GtkLabel *)
1419 	 * @param str cast=(const gchar *)
1420 	 */
gtk_label_set_text(long label, long str)1421 	public static final native void gtk_label_set_text(long label, long str);
1422 	/**
1423 	 * @param label cast=(GtkLabel *)
1424 	 * @param str cast=(const gchar *)
1425 	 */
gtk_label_set_text(long label, byte[] str)1426 	public static final native void gtk_label_set_text(long label, byte[] str);
1427 	/**
1428 	 * @param label cast=(GtkLabel *)
1429 	 * @param str cast=(const gchar *)
1430 	 */
gtk_label_set_text_with_mnemonic(long label, byte[] str)1431 	public static final native void gtk_label_set_text_with_mnemonic(long label, byte[] str);
1432 	/**
1433 	 * @param list_store cast=(GtkListStore *)
1434 	 * @param iter cast=(GtkTreeIter *)
1435 	 */
gtk_list_store_append(long list_store, long iter)1436 	public static final native void gtk_list_store_append(long list_store, long iter);
1437 	/** @param store cast=(GtkListStore *) */
gtk_list_store_clear(long store)1438 	public static final native void gtk_list_store_clear(long store);
1439 	/**
1440 	 * @param list_store cast=(GtkListStore *)
1441 	 * @param iter cast=(GtkTreeIter *)
1442 	 * @param position cast=(gint)
1443 	 */
gtk_list_store_insert(long list_store, long iter, int position)1444 	public static final native void gtk_list_store_insert(long list_store, long iter, int position);
1445 	/**
1446 	 * @param numColumns cast=(gint)
1447 	 * @param types cast=(GType *)
1448 	 */
gtk_list_store_newv(int numColumns, long [] types)1449 	public static final native long gtk_list_store_newv(int numColumns, long [] types);
1450 	/**
1451 	 * @param css_provider cast=(GtkCssProvider *)
1452 	 * @param data cast=(const gchar *)
1453 	 * @param length cast=(gssize)
1454 	 * @param error cast=(GError **)
1455 	 */
1456 	/* [GTK3 only, if-def'd in os.h] */
gtk_css_provider_load_from_data(long css_provider, byte[] data, long length, long error[])1457 	public static final native boolean gtk_css_provider_load_from_data(long css_provider, byte[] data, long length, long error[]);
1458 	/**
1459 	 * @param css_provider cast=(GtkCssProvider *)
1460 	 * @param data cast=(const gchar *)
1461 	 * @param length cast=(gssize)
1462 	 */
1463 	/* [GTK4 only, if-def'd in os.h] */
gtk_css_provider_load_from_data(long css_provider, byte[] data, long length)1464 	public static final native void gtk_css_provider_load_from_data(long css_provider, byte[] data, long length);
gtk_css_provider_new()1465 	public static final native long gtk_css_provider_new();
1466 	/**
1467 	 * @param provider cast=(GtkCssProvider *)
1468 	 */
gtk_css_provider_to_string(long provider)1469 	public static final native long gtk_css_provider_to_string(long provider);
1470 	/**
1471 	 * @param screen cast=(GdkScreen *)
1472 	 * @param provider cast=(GtkStyleProvider *)
1473 	 * @param priority cast=(guint)
1474 	 */
1475 	/* [GTK3 only, if-def'd in os.h] */
gtk_style_context_add_provider_for_screen(long screen, long provider, int priority)1476 	public static final native void gtk_style_context_add_provider_for_screen(long screen, long provider, int priority);
1477 	/**
1478 	 * @method flags=dynamic
1479 	 * @param display cast=(GdkDisplay *)
1480 	 * @param provider cast=(GtkStyleProvider *)
1481 	 * @param priority cast=(guint)
1482 	 */
1483 	/* [GTK4 only] */
gtk_style_context_add_provider_for_display(long display, long provider, int priority)1484 	public static final native void gtk_style_context_add_provider_for_display(long display, long provider, int priority);
1485 	/**
1486 	 * @param context cast=(GtkStyleContext *)
1487 	 * @param provider cast=(GtkStyleProvider *)
1488 	 * @param priority cast=(guint)
1489 	 */
gtk_style_context_add_provider(long context, long provider, int priority)1490 	public static final native void gtk_style_context_add_provider(long context, long provider, int priority);
1491 	/**
1492 	 * @param list_store cast=(GtkListStore *)
1493 	 * @param iter cast=(GtkTreeIter *)
1494 	 */
gtk_list_store_remove(long list_store, long iter)1495 	public static final native void gtk_list_store_remove(long list_store, long iter);
1496 	/**
1497 	 * @param store cast=(GtkListStore *)
1498 	 * @param iter cast=(GtkTreeIter *)
1499 	 */
gtk_list_store_set(long store, long iter, int column, byte[] value, int terminator)1500 	public static final native void gtk_list_store_set(long store, long iter, int column, byte[] value, int terminator);
1501 	/**
1502 	 * @param store cast=(GtkListStore *)
1503 	 * @param iter cast=(GtkTreeIter *)
1504 	 */
gtk_list_store_set(long store, long iter, int column, int value, int terminator)1505 	public static final native void gtk_list_store_set(long store, long iter, int column, int value, int terminator);
1506 	/**
1507 	 * @param store cast=(GtkListStore *)
1508 	 * @param iter cast=(GtkTreeIter *)
1509 	 */
gtk_list_store_set(long store, long iter, int column, long value, int terminator)1510 	public static final native void gtk_list_store_set(long store, long iter, int column, long value, int terminator);
1511 	/**
1512 	 * @param store cast=(GtkListStore *)
1513 	 * @param iter cast=(GtkTreeIter *)
1514 	 * @param value flags=no_out
1515 	 */
gtk_list_store_set(long store, long iter, int column, GdkRGBA value, int terminator)1516 	public static final native void gtk_list_store_set(long store, long iter, int column, GdkRGBA value, int terminator);
1517 	/**
1518 	 * @param store cast=(GtkListStore *)
1519 	 * @param iter cast=(GtkTreeIter *)
1520 	 */
gtk_list_store_set(long store, long iter, int column, boolean value, int terminator)1521 	public static final native void gtk_list_store_set(long store, long iter, int column, boolean value, int terminator);
gtk_get_major_version()1522 	public static final native int gtk_get_major_version();
gtk_get_minor_version()1523 	public static final native int gtk_get_minor_version();
gtk_get_micro_version()1524 	public static final native int gtk_get_micro_version();
1525 	/** @param event cast=(GdkEvent *) */
gtk_main_do_event(long event)1526 	public static final native void gtk_main_do_event(long event);
gtk_menu_bar_new()1527 	public static final native long gtk_menu_bar_new();
1528 	/** @param menu_item cast=(GtkMenuItem *) */
gtk_menu_item_get_submenu(long menu_item)1529 	public static final native long gtk_menu_item_get_submenu(long menu_item);
gtk_menu_item_new()1530 	public static final native long gtk_menu_item_new();
1531 	/**
1532 	 * @param menu_item cast=(GtkMenuItem *)
1533 	 * @param submenu cast=(GtkWidget *)
1534 	 */
gtk_menu_item_set_submenu(long menu_item, long submenu)1535 	public static final native void gtk_menu_item_set_submenu(long menu_item, long submenu);
gtk_menu_new()1536 	public static final native long gtk_menu_new();
1537 	/** @param menu cast=(GtkMenu *) */
gtk_menu_popdown(long menu)1538 	public static final native void gtk_menu_popdown(long menu);
1539 	/**
1540 	 * @method flags=dynamic
1541 	 */
1542 	/* [GTK2/GTK3; 3.22 deprecated, replaced] */
gtk_menu_popup(long menu, long parent_menu_shell, long parent_menu_item, long func, long data, int button, int activate_time)1543 	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);
1544 	/**
1545 	 *  @method flags=dynamic
1546 	 */
gtk_menu_popup_at_pointer(long menu, long trigger_event)1547 	public static final native void gtk_menu_popup_at_pointer(long menu, long trigger_event);
1548 	/**
1549 	 *  @method flags=dynamic
1550 	 */
gtk_menu_popup_at_rect(long menu, long rect_window, GdkRectangle rect, int rect_anchor, int menu_anchor, long trigger_event)1551 	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);
1552 	/** @param menu_shell cast=(GtkMenuShell *) */
gtk_menu_shell_deactivate(long menu_shell)1553 	public static final native void gtk_menu_shell_deactivate(long menu_shell);
1554 	/**
1555 	 * @param menu_shell cast=(GtkMenuShell *)
1556 	 * @param child cast=(GtkWidget *)
1557 	 * @param position cast=(gint)
1558 	 */
gtk_menu_shell_insert(long menu_shell, long child, int position)1559 	public static final native void gtk_menu_shell_insert(long menu_shell, long child, int position);
1560 	/**
1561 	 * @param menu_shell cast=(GtkMenuShell *)
1562 	 * @param take_focus cast=(gboolean)
1563 	 */
gtk_menu_shell_set_take_focus(long menu_shell, boolean take_focus)1564 	public static final native void gtk_menu_shell_set_take_focus(long menu_shell, boolean take_focus);
1565 	/**
1566 	 * @param icon_widget cast=(GtkWidget *)
1567 	 * @param label cast=(const gchar *)
1568 	 */
gtk_menu_tool_button_new(long icon_widget, byte[] label)1569 	public static final native long gtk_menu_tool_button_new(long icon_widget, byte[] label);
1570 	/**
1571 	 * @param parent cast=(GtkWindow *)
1572 	 * @param flags cast=(GtkDialogFlags)
1573 	 * @param type cast=(GtkMessageType)
1574 	 * @param buttons cast=(GtkButtonsType)
1575 	 * @param message_format cast=(const gchar *)
1576 	 * @param arg cast=(const gchar *)
1577 	 */
gtk_message_dialog_new(long parent, int flags, int type, int buttons, byte[] message_format, byte[] arg)1578 	public static final native long gtk_message_dialog_new(long parent, int flags, int type, int buttons, byte[] message_format, byte[] arg);
1579 	/** @param dialog cast=(GtkNativeDialog *) */
gtk_native_dialog_run(long dialog)1580 	public static final native int gtk_native_dialog_run(long dialog);
1581 	/** @param notebook cast=(GtkNotebook *) */
gtk_notebook_get_current_page(long notebook)1582 	public static final native int gtk_notebook_get_current_page(long notebook);
1583 	/** @param notebook cast=(GtkNotebook *) */
gtk_notebook_get_scrollable(long notebook)1584 	public static final native boolean gtk_notebook_get_scrollable(long notebook);
1585 	/**
1586 	 * @param notebook cast=(GtkNotebook *)
1587 	 * @param child cast=(GtkWidget *)
1588 	 * @param tab_label cast=(GtkWidget *)
1589 	 * @param position cast=(gint)
1590 	 */
gtk_notebook_insert_page(long notebook, long child, long tab_label, int position)1591 	public static final native void gtk_notebook_insert_page(long notebook, long child, long tab_label, int position);
gtk_notebook_new()1592 	public static final native long gtk_notebook_new();
1593 	/** @param notebook cast=(GtkNotebook *) */
gtk_notebook_next_page(long notebook)1594 	public static final native void gtk_notebook_next_page(long notebook);
1595 	/** @param notebook cast=(GtkNotebook *) */
gtk_notebook_prev_page(long notebook)1596 	public static final native void gtk_notebook_prev_page(long notebook);
1597 	/**
1598 	 * @param notebook cast=(GtkNotebook *)
1599 	 * @param page_num cast=(gint)
1600 	 */
gtk_notebook_remove_page(long notebook, int page_num)1601 	public static final native void gtk_notebook_remove_page(long notebook, int page_num);
1602 	/**
1603 	 * @param notebook cast=(GtkNotebook *)
1604 	 * @param page_num cast=(gint)
1605 	 */
gtk_notebook_set_current_page(long notebook, int page_num)1606 	public static final native void gtk_notebook_set_current_page(long notebook, int page_num);
1607 	/**
1608 	 * @param notebook cast=(GtkNotebook *)
1609 	 * @param scrollable cast=(gboolean)
1610 	 */
gtk_notebook_set_scrollable(long notebook, boolean scrollable)1611 	public static final native void gtk_notebook_set_scrollable(long notebook, boolean scrollable);
1612 	/**
1613 	 * @param notebook cast=(GtkNotebook *)
1614 	 * @param show_tabs cast=(gboolean)
1615 	 */
gtk_notebook_set_show_tabs(long notebook, boolean show_tabs)1616 	public static final native void gtk_notebook_set_show_tabs(long notebook, boolean show_tabs);
1617 	/**
1618 	 * @param notebook cast=(GtkNotebook *)
1619 	 * @param pos cast=(GtkPositionType)
1620 	 */
gtk_notebook_set_tab_pos(long notebook, int pos)1621 	public static final native void gtk_notebook_set_tab_pos(long notebook, int pos);
1622 	/**
1623 	 * @param orientable cast=(GtkOrientable *)
1624 	 * @param orientation cast=(GtkOrientation)
1625 	 */
gtk_orientable_set_orientation(long orientable, int orientation)1626 	public static final native void gtk_orientable_set_orientation(long orientable, int orientation);
gtk_page_setup_new()1627 	public static final native long gtk_page_setup_new();
1628 	/**
1629 	 * @param setup cast=(GtkPageSetup *)
1630 	 */
gtk_page_setup_get_orientation(long setup)1631 	public static final native int gtk_page_setup_get_orientation(long setup);
1632 	/**
1633 	 * @param setup cast=(GtkPageSetup *)
1634 	 * @param orientation cast=(GtkPageOrientation)
1635 	 */
gtk_page_setup_set_orientation(long setup, int orientation)1636 	public static final native void gtk_page_setup_set_orientation(long setup, int orientation);
1637 	/**
1638 	 * @param setup cast=(GtkPageSetup *)
1639 	 */
gtk_page_setup_get_paper_size(long setup)1640 	public static final native long gtk_page_setup_get_paper_size(long setup);
1641 	/**
1642 	 * @param setup cast=(GtkPageSetup *)
1643 	 * @param size cast=(GtkPaperSize *)
1644 	 */
gtk_page_setup_set_paper_size(long setup, long size)1645 	public static final native void gtk_page_setup_set_paper_size(long setup, long size);
1646 	/**
1647 	 * @param setup cast=(GtkPageSetup *)
1648 	 * @param unit cast=(GtkUnit)
1649 	 */
gtk_page_setup_get_top_margin(long setup, int unit)1650 	public static final native double gtk_page_setup_get_top_margin(long setup, int unit);
1651 	/**
1652 	 * @param setup cast=(GtkPageSetup *)
1653 	 * @param margin cast=(gdouble)
1654 	 * @param unit cast=(GtkUnit)
1655 	 */
gtk_page_setup_set_top_margin(long setup, double margin, int unit)1656 	public static final native void gtk_page_setup_set_top_margin(long setup, double margin, int unit);
1657 	/**
1658 	 * @param setup cast=(GtkPageSetup *)
1659 	 * @param unit cast=(GtkUnit)
1660 	 *
1661 	 */
gtk_page_setup_get_bottom_margin(long setup, int unit)1662 	public static final native double gtk_page_setup_get_bottom_margin(long setup, int unit);
1663 	/**
1664 	 * @param setup cast=(GtkPageSetup *)
1665 	 * @param margin cast=(gdouble)
1666 	 * @param unit cast=(GtkUnit)
1667 	 */
gtk_page_setup_set_bottom_margin(long setup, double margin, int unit)1668 	public static final native void gtk_page_setup_set_bottom_margin(long setup, double margin, int unit);
1669 	/**
1670 	 * @param setup cast=(GtkPageSetup *)
1671 	 * @param unit cast=(GtkUnit)
1672 	 */
gtk_page_setup_get_left_margin(long setup, int unit)1673 	public static final native double gtk_page_setup_get_left_margin(long setup, int unit);
1674 	/**
1675 	 * @param setup cast=(GtkPageSetup *)
1676 	 * @param margin cast=(gdouble)
1677 	 * @param unit cast=(GtkUnit)
1678 	 */
gtk_page_setup_set_left_margin(long setup, double margin, int unit)1679 	public static final native void gtk_page_setup_set_left_margin(long setup, double margin, int unit);
1680 	/**
1681 	 * @param setup cast=(GtkPageSetup *)
1682 	 * @param unit cast=(GtkUnit)
1683 	 */
gtk_page_setup_get_right_margin(long setup, int unit)1684 	public static final native double gtk_page_setup_get_right_margin(long setup, int unit);
1685 	/**
1686 	 * @param setup cast=(GtkPageSetup *)
1687 	 * @param margin cast=(gdouble)
1688 	 * @param unit cast=(GtkUnit)
1689 	 */
gtk_page_setup_set_right_margin(long setup, double margin, int unit)1690 	public static final native void gtk_page_setup_set_right_margin(long setup, double margin, int unit);
1691 	/**
1692 	 * @param setup cast=(GtkPageSetup *)
1693 	 * @param unit cast=(GtkUnit)
1694 	 */
gtk_page_setup_get_paper_width(long setup, int unit)1695 	public static final native double gtk_page_setup_get_paper_width(long setup, int unit);
1696 	/**
1697 	 * @param setup cast=(GtkPageSetup *)
1698 	 * @param unit cast=(GtkUnit)
1699 	 */
gtk_page_setup_get_paper_height(long setup, int unit)1700 	public static final native double gtk_page_setup_get_paper_height(long setup, int unit);
1701 	/**
1702 	 * @param setup cast=(GtkPageSetup *)
1703 	 * @param unit cast=(GtkUnit)
1704 	 */
gtk_page_setup_get_page_width(long setup, int unit)1705 	public static final native double gtk_page_setup_get_page_width(long setup, int unit);
1706 	/**
1707 	 * @param setup cast=(GtkPageSetup *)
1708 	 * @param unit cast=(GtkUnit)
1709 	 */
gtk_page_setup_get_page_height(long setup, int unit)1710 	public static final native double gtk_page_setup_get_page_height(long setup, int unit);
1711 	/**
1712 	 * @param context cast=(GtkStyleContext *)
1713 	 * @param cr cast=(cairo_t *)
1714 	 * @param x cast=(gdouble)
1715 	 * @param y cast=(gdouble)
1716 	 * @param width cast=(gdouble)
1717 	 * @param height cast=(gdouble)
1718 	 */
gtk_render_frame(long context, long cr, double x , double y, double width, double height)1719 	public static final native void gtk_render_frame(long context, long cr, double x , double y, double width, double height);
1720 	/**
1721 	 * @param context cast=(GtkStyleContext *)
1722 	 * @param cr cast=(cairo_t *)
1723 	 * @param x cast=(gdouble)
1724 	 * @param y cast=(gdouble)
1725 	 * @param width cast=(gdouble)
1726 	 * @param height cast=(gdouble)
1727 	 */
gtk_render_background(long context, long cr, double x , double y, double width, double height)1728 	public static final native void gtk_render_background(long context, long cr, double x , double y, double width, double height);
1729 	/**
1730 	* @param context cast=(GtkStyleContext *)
1731 	* @param cr cast=(cairo_t *)
1732 	* @param x cast=(gdouble)
1733 	* @param y cast=(gdouble)
1734 	* @param width cast=(gdouble)
1735 	* @param height cast=(gdouble)
1736 	*/
gtk_render_focus(long context, long cr, double x , double y, double width, double height)1737 	public static final native void gtk_render_focus(long context, long cr,  double x , double y, double width, double height);
1738 	/**
1739 	 * @param size cast=(GtkPaperSize *)
1740 	 */
gtk_paper_size_free(long size)1741 	public static final native void gtk_paper_size_free(long size);
1742 	/**
1743 	 * @param name cast=(const gchar *)
1744 	 */
gtk_paper_size_new(byte [] name)1745 	public static final native long gtk_paper_size_new(byte [] name);
1746 	/**
1747 	 * @param ppd_name cast=(const gchar *)
1748 	 * @param ppd_display_name cast=(const gchar *)
1749 	 * @param width cast=(gdouble)
1750 	 * @param height cast=(gdouble)
1751 	 */
gtk_paper_size_new_from_ppd(byte [] ppd_name, byte [] ppd_display_name, double width, double height)1752 	public static final native long gtk_paper_size_new_from_ppd(byte [] ppd_name, byte [] ppd_display_name, double width, double height);
1753 	/**
1754 	 * @param name cast=(const gchar *)
1755 	 * @param display_name cast=(const gchar *)
1756 	 * @param width cast=(gdouble)
1757 	 * @param height cast=(gdouble)
1758 	 * @param unit cast=(GtkUnit)
1759 	 */
gtk_paper_size_new_custom(byte [] name, byte [] display_name, double width, double height, int unit)1760 	public static final native long gtk_paper_size_new_custom(byte [] name, byte [] display_name, double width, double height, int unit);
1761 	/**
1762 	 * @param size cast=(GtkPaperSize *)
1763 	 */
gtk_paper_size_get_name(long size)1764 	public static final native long gtk_paper_size_get_name(long size);
1765 	/**
1766 	 * @param size cast=(GtkPaperSize *)
1767 	 */
gtk_paper_size_get_display_name(long size)1768 	public static final native long gtk_paper_size_get_display_name(long size);
1769 	/**
1770 	 * @param size cast=(GtkPaperSize *)
1771 	 */
gtk_paper_size_get_ppd_name(long size)1772 	public static final native long gtk_paper_size_get_ppd_name(long size);
1773 	/**
1774 	 * @param size cast=(GtkPaperSize *)
1775 	 * @param unit cast=(GtkUnit)
1776 	 */
gtk_paper_size_get_width(long size, int unit)1777 	public static final native double gtk_paper_size_get_width(long size, int unit);
1778 	/**
1779 	 * @param size cast=(GtkPaperSize *)
1780 	 * @param unit cast=(GtkUnit)
1781 	 */
gtk_paper_size_get_height(long size, int unit)1782 	public static final native double gtk_paper_size_get_height(long size, int unit);
1783 	/**
1784 	 * @param size cast=(GtkPaperSize *)
1785 	 */
gtk_paper_size_is_custom(long size)1786 	public static final native boolean gtk_paper_size_is_custom(long size);
gtk_plug_new(long socket_id)1787 	public static final native long gtk_plug_new(long socket_id);
1788 	/**
1789 	 * @param printer cast=(GtkPrinter *)
1790 	 */
gtk_printer_get_backend(long printer)1791 	public static final native long gtk_printer_get_backend(long printer);
1792 	/**
1793 	 * @param printer cast=(GtkPrinter *)
1794 	 */
gtk_printer_get_name(long printer)1795 	public static final native long gtk_printer_get_name(long printer);
1796 	/**
1797 	 * @param printer cast=(GtkPrinter *)
1798 	 */
gtk_printer_is_default(long printer)1799 	public static final native boolean gtk_printer_is_default(long printer);
1800 	/**
1801 	 * @param func cast=(GtkPrinterFunc)
1802 	 * @param data cast=(gpointer)
1803 	 * @param destroy cast=(GDestroyNotify)
1804 	 * @param wait cast=(gboolean)
1805 	 */
gtk_enumerate_printers(long func, long data, long destroy, boolean wait)1806 	public static final native void gtk_enumerate_printers(long func, long data, long destroy, boolean wait);
1807 	/**
1808 	 * @param title cast=(const gchar *)
1809 	 * @param printer cast=(GtkPrinter *)
1810 	 * @param settings cast=(GtkPrintSettings *)
1811 	 * @param page_setup cast=(GtkPageSetup *)
1812 	 */
gtk_print_job_new(byte[] title, long printer, long settings, long page_setup)1813 	public static final native long gtk_print_job_new(byte[] title, long printer, long settings, long page_setup);
1814 	/**
1815 	 * @param job cast=(GtkPrintJob *)
1816 	 * @param error cast=(GError **)
1817 	 */
gtk_print_job_get_surface(long job, long error[])1818 	public static final native long gtk_print_job_get_surface(long job, long error[]);
1819 	/**
1820 	 * @param job cast=(GtkPrintJob *)
1821 	 * @param callback cast=(GtkPrintJobCompleteFunc)
1822 	 * @param user_data cast=(gpointer)
1823 	 * @param dnotify cast=(GDestroyNotify)
1824 	 */
gtk_print_job_send(long job, long callback, long user_data, long dnotify)1825 	public static final native void gtk_print_job_send(long job, long callback, long user_data, long dnotify);
gtk_print_settings_new()1826 	public static final native long gtk_print_settings_new();
1827 	/**
1828 	 * @param settings cast=(GtkPrintSettings *)
1829 	 * @param func cast=(GtkPrintSettingsFunc)
1830 	 * @param data cast=(gpointer)
1831 	 */
gtk_print_settings_foreach(long settings, long func, long data)1832 	public static final native void gtk_print_settings_foreach(long settings, long func, long data);
1833 	/**
1834 	 * @param settings cast=(GtkPrintSettings *)
1835 	 * @param key cast=(const gchar *)
1836 	 */
gtk_print_settings_get(long settings, byte [] key)1837 	public static final native long gtk_print_settings_get(long settings, byte [] key);
1838 	/**
1839 	 * @param settings cast=(GtkPrintSettings *)
1840 	 * @param key cast=(const gchar *)
1841 	 * @param value cast=(const gchar *)
1842 	 */
gtk_print_settings_set(long settings, byte [] key, byte [] value)1843 	public static final native void gtk_print_settings_set(long settings, byte [] key, byte [] value);
1844 	/**
1845 	 * @param settings cast=(GtkPrintSettings *)
1846 	 * @param printer cast=(const gchar *)
1847 	 */
gtk_print_settings_set_printer(long settings, byte[] printer)1848 	public static final native void gtk_print_settings_set_printer(long settings, byte[] printer);
1849 	/**
1850 	 * @param settings cast=(GtkPrintSettings *)
1851 	 * @param orientation cast=(GtkPageOrientation)
1852 	 */
gtk_print_settings_set_orientation(long settings, int orientation)1853 	public static final native void gtk_print_settings_set_orientation(long settings, int orientation);
1854 	/**
1855 	 * @param settings cast=(GtkPrintSettings *)
1856 	 */
gtk_print_settings_get_collate(long settings)1857 	public static final native boolean gtk_print_settings_get_collate(long settings);
1858 	/**
1859 	 * @param settings cast=(GtkPrintSettings *)
1860 	 * @param collate cast=(gboolean)
1861 	 */
gtk_print_settings_set_collate(long settings, boolean collate)1862 	public static final native void gtk_print_settings_set_collate(long settings, boolean collate);
1863 	/**
1864 	 * @param settings cast=(GtkPrintSettings *)
1865 	 */
gtk_print_settings_get_duplex(long settings)1866 	public static final native int gtk_print_settings_get_duplex(long settings);
1867 	/**
1868 	 * @param settings cast=(GtkPrintSettings *)
1869 	 * @param duplex cast=(GtkPrintDuplex)
1870 	 */
gtk_print_settings_set_duplex(long settings, int duplex)1871 	public static final native void gtk_print_settings_set_duplex(long settings, int duplex);
1872 	/**
1873 	 * @param settings cast=(GtkPrintSettings *)
1874 	 */
gtk_print_settings_get_n_copies(long settings)1875 	public static final native int gtk_print_settings_get_n_copies(long settings);
1876 	/**
1877 	 * @param settings cast=(GtkPrintSettings *)
1878 	 * @param num_copies cast=(gint)
1879 	 */
gtk_print_settings_set_n_copies(long settings, int num_copies)1880 	public static final native void gtk_print_settings_set_n_copies(long settings, int num_copies);
1881 	/**
1882 	 * @param settings cast=(GtkPrintSettings *)
1883 	 */
gtk_print_settings_get_print_pages(long settings)1884 	public static final native int gtk_print_settings_get_print_pages(long settings);
1885 	/**
1886 	 * @param settings cast=(GtkPrintSettings *)
1887 	 * @param pages cast=(GtkPrintPages)
1888 	 */
gtk_print_settings_set_print_pages(long settings, int pages)1889 	public static final native void gtk_print_settings_set_print_pages(long settings, int pages);
1890 	/**
1891 	 * @param settings cast=(GtkPrintSettings *)
1892 	 * @param num_ranges cast=(gint *)
1893 	 */
gtk_print_settings_get_page_ranges(long settings, int[] num_ranges)1894 	public static final native long gtk_print_settings_get_page_ranges(long settings, int[] num_ranges);
1895 	/**
1896 	 * @param settings cast=(GtkPrintSettings *)
1897 	 * @param page_ranges cast=(GtkPageRange *)
1898 	 * @param num_ranges cast=(gint)
1899 	 */
gtk_print_settings_set_page_ranges(long settings, int[] page_ranges, int num_ranges)1900 	public static final native void gtk_print_settings_set_page_ranges(long settings, int[] page_ranges, int num_ranges);
1901 	/**
1902 	 * @param settings cast=(GtkPrintSettings *)
1903 	 */
gtk_print_settings_get_resolution(long settings)1904 	public static final native int gtk_print_settings_get_resolution(long settings);
1905 	/**
1906 	 * @param title cast=(const gchar *)
1907 	 * @param parent cast=(GtkWindow *)
1908 	 */
gtk_print_unix_dialog_new(byte[] title, long parent)1909 	public static final native long gtk_print_unix_dialog_new(byte[] title, long parent);
1910 	/**
1911 	 * @param dialog cast=(GtkPrintUnixDialog *)
1912 	 * @param embed cast=(gboolean)
1913 	 */
gtk_print_unix_dialog_set_embed_page_setup(long dialog, boolean embed)1914 	public static final native void gtk_print_unix_dialog_set_embed_page_setup(long dialog, boolean embed);
1915 	/**
1916 	 * @param dialog cast=(GtkPrintUnixDialog *)
1917 	 * @param page_setup cast=(GtkPageSetup *)
1918 	 */
gtk_print_unix_dialog_set_page_setup(long dialog, long page_setup)1919 	public static final native void gtk_print_unix_dialog_set_page_setup(long dialog, long page_setup);
1920 	/**
1921 	 * @param dialog cast=(GtkPrintUnixDialog *)
1922 	 */
gtk_print_unix_dialog_get_page_setup(long dialog)1923 	public static final native long gtk_print_unix_dialog_get_page_setup(long dialog);
1924 	/**
1925 	 * @param dialog cast=(GtkPrintUnixDialog *)
1926 	 * @param current_page cast=(gint)
1927 	 */
gtk_print_unix_dialog_set_current_page(long dialog, int current_page)1928 	public static final native void gtk_print_unix_dialog_set_current_page(long dialog, int current_page);
1929 	/**
1930 	 * @param dialog cast=(GtkPrintUnixDialog *)
1931 	 */
gtk_print_unix_dialog_get_current_page(long dialog)1932 	public static final native int gtk_print_unix_dialog_get_current_page(long dialog);
1933 	/**
1934 	 * @param dialog cast=(GtkPrintUnixDialog *)
1935 	 * @param settings cast=(GtkPrintSettings *)
1936 	 */
gtk_print_unix_dialog_set_settings(long dialog, long settings)1937 	public static final native void gtk_print_unix_dialog_set_settings(long dialog, long settings);
1938 	/**
1939 	 * @param dialog cast=(GtkPrintUnixDialog *)
1940 	 */
gtk_print_unix_dialog_get_settings(long dialog)1941 	public static final native long gtk_print_unix_dialog_get_settings(long dialog);
1942 	/**
1943 	 * @param dialog cast=(GtkPrintUnixDialog *)
1944 	 */
gtk_print_unix_dialog_get_selected_printer(long dialog)1945 	public static final native long gtk_print_unix_dialog_get_selected_printer(long dialog);
1946 	/**
1947 	 * @param dialog cast=(GtkPrintUnixDialog *)
1948 	 * @param capabilities cast=(GtkPrintCapabilities)
1949 	 */
gtk_print_unix_dialog_set_manual_capabilities(long dialog, long capabilities)1950 	public static final native void gtk_print_unix_dialog_set_manual_capabilities(long dialog, long capabilities);
1951 	/**
1952 	 * @param dialog cast=(GtkPrintUnixDialog *)
1953 	 */
gtk_print_unix_dialog_set_support_selection(long dialog, boolean support_selection)1954 	public static final native void gtk_print_unix_dialog_set_support_selection(long dialog, boolean support_selection);
1955 	/**
1956 	 * @param dialog cast=(GtkPrintUnixDialog *)
1957 	 */
gtk_print_unix_dialog_set_has_selection(long dialog, boolean has_selection)1958 	public static final native void gtk_print_unix_dialog_set_has_selection(long dialog, boolean has_selection);
gtk_progress_bar_new()1959 	public static final native long gtk_progress_bar_new();
1960 	/** @param pbar cast=(GtkProgressBar *) */
gtk_progress_bar_pulse(long pbar)1961 	public static final native void gtk_progress_bar_pulse(long pbar);
1962 	/**
1963 	 * @param pbar cast=(GtkProgressBar *)
1964 	 * @param fraction cast=(gdouble)
1965 	 */
gtk_progress_bar_set_fraction(long pbar, double fraction)1966 	public static final native void gtk_progress_bar_set_fraction(long pbar, double fraction);
1967 	/**
1968 	 * @param pbar cast=(GtkProgressBar *)
1969 	 * @param inverted cast=(gboolean)
1970 	 */
gtk_progress_bar_set_inverted(long pbar, boolean inverted)1971 	public static final native void gtk_progress_bar_set_inverted(long pbar, boolean inverted);
1972 	/** @param radio_button cast=(GtkRadioButton *) */
gtk_radio_button_get_group(long radio_button)1973 	public static final native long gtk_radio_button_get_group(long radio_button);
1974 	/** @param group cast=(GSList *) */
gtk_radio_button_new(long group)1975 	public static final native long gtk_radio_button_new(long group);
1976 	/** @param radio_menu_item cast=(GtkRadioMenuItem *) */
gtk_radio_menu_item_get_group(long radio_menu_item)1977 	public static final native long gtk_radio_menu_item_get_group(long radio_menu_item);
1978 	/** @param group cast=(GSList *) */
gtk_radio_menu_item_new(long group)1979 	public static final native long gtk_radio_menu_item_new(long group);
1980 	/** @param range cast=(GtkRange *) */
gtk_range_get_adjustment(long range)1981 	public static final native long gtk_range_get_adjustment(long range);
1982 	/** @param range cast=(GtkRange *) */
gtk_range_set_increments(long range, double step, double page)1983 	public static final native void gtk_range_set_increments(long range, double step, double page);
1984 	/** @param range cast=(GtkRange *) */
gtk_range_set_inverted(long range, boolean setting)1985 	public static final native void gtk_range_set_inverted(long range, boolean setting);
1986 	/** @param range cast=(GtkRange *) */
gtk_range_set_range(long range, double min, double max)1987 	public static final native void gtk_range_set_range(long range, double min, double max);
1988 	/** @param range cast=(GtkRange *) */
gtk_range_set_value(long range, double value)1989 	public static final native void gtk_range_set_value(long range, double value);
1990 	/**
1991 	 *  @param range cast=(GtkRange *)
1992 	 *  @param slider_start cast=(gint *)
1993 	 *  @param slider_end cast=(gint *)
1994 	 */
gtk_range_get_slider_range(long range, int[] slider_start, int[] slider_end)1995 	public static final native void gtk_range_get_slider_range(long range, int[] slider_start, int[] slider_end);
1996 	/**
1997 	 * @param scale cast=(GtkScale *)
1998 	 * @param digits cast=(gint)
1999 	 */
gtk_scale_set_digits(long scale, int digits)2000 	public static final native void gtk_scale_set_digits(long scale, int digits);
2001 	/**
2002 	 * @param scale cast=(GtkScale *)
2003 	 * @param draw_value cast=(gboolean)
2004 	 */
gtk_scale_set_draw_value(long scale, boolean draw_value)2005 	public static final native void gtk_scale_set_draw_value(long scale, boolean draw_value);
2006 	/**
2007 	 * @param scrollable cast=(GtkScrollable *)
2008 	 */
gtk_scrollable_get_vadjustment(long scrollable)2009 	public static final native long gtk_scrollable_get_vadjustment(long scrollable);
2010 	/** @param scrolled_window cast=(GtkScrolledWindow *) */
gtk_scrolled_window_get_hadjustment(long scrolled_window)2011 	public static final native long gtk_scrolled_window_get_hadjustment(long scrolled_window);
2012 	/**
2013 	 * @param scrolled_window cast=(GtkScrolledWindow *)
2014 	 */
gtk_scrolled_window_get_hscrollbar(long scrolled_window)2015 	public static final native long gtk_scrolled_window_get_hscrollbar(long scrolled_window);
2016 	/**
2017 	 * @param scrolled_window cast=(GtkScrolledWindow *)
2018 	 * @param hscrollbar_policy cast=(GtkPolicyType *)
2019 	 * @param vscrollbar_policy cast=(GtkPolicyType *)
2020 	 */
gtk_scrolled_window_get_policy(long scrolled_window, int[] hscrollbar_policy, int[] vscrollbar_policy)2021 	public static final native void gtk_scrolled_window_get_policy(long scrolled_window, int[] hscrollbar_policy, int[] vscrollbar_policy);
2022 	/** @param scrolled_window cast=(GtkScrolledWindow *) */
gtk_scrolled_window_get_shadow_type(long scrolled_window)2023 	public static final native int gtk_scrolled_window_get_shadow_type(long scrolled_window);
2024 	/** @param scrolled_window cast=(GtkScrolledWindow *) */
gtk_scrolled_window_get_vadjustment(long scrolled_window)2025 	public static final native long gtk_scrolled_window_get_vadjustment(long scrolled_window);
2026 	/**
2027 	 * @param scrolled_window cast=(GtkScrolledWindow *)
2028 	 */
gtk_scrolled_window_get_vscrollbar(long scrolled_window)2029 	public static final native long gtk_scrolled_window_get_vscrollbar(long scrolled_window);
2030 	/**
2031 	 * @param hadjustment cast=(GtkAdjustment *)
2032 	 * @param vadjustment cast=(GtkAdjustment *)
2033 	 */
gtk_scrolled_window_new(long hadjustment, long vadjustment)2034 	public static final native long gtk_scrolled_window_new(long hadjustment, long vadjustment);
2035 	/**
2036 	 * @param scrolled_window cast=(GtkScrolledWindow *)
2037 	 * @param hscrollbar_policy cast=(GtkPolicyType)
2038 	 * @param vscrollbar_policy cast=(GtkPolicyType)
2039 	 */
gtk_scrolled_window_set_policy(long scrolled_window, int hscrollbar_policy, int vscrollbar_policy)2040 	public static final native void gtk_scrolled_window_set_policy(long scrolled_window, int hscrollbar_policy, int vscrollbar_policy);
2041 	/**
2042 	 * @method flags=dynamic
2043 	 * @param scrolled_window cast=(GtkScrolledWindow *)
2044 	 */
gtk_scrolled_window_get_overlay_scrolling(long scrolled_window)2045 	public static final native boolean gtk_scrolled_window_get_overlay_scrolling(long scrolled_window);
2046 	/**
2047 	 * @param scrolled_window cast=(GtkScrolledWindow *)
2048 	 * @param type cast=(GtkShadowType)
2049 	 */
gtk_scrolled_window_set_shadow_type(long scrolled_window, int type)2050 	public static final native void gtk_scrolled_window_set_shadow_type(long scrolled_window, int type);
gtk_settings_get_default()2051 	public static final native long gtk_settings_get_default();
2052 	/** @param selection_data cast=(GtkSelectionData *) */
gtk_selection_data_free(long selection_data)2053 	public static final native void gtk_selection_data_free(long selection_data);
2054 	/**
2055 	 * @param selection_data cast=(GtkSelectionData *)
2056 	 */
gtk_selection_data_get_data(long selection_data)2057 	public static final native long gtk_selection_data_get_data(long selection_data);
2058 	/**
2059 	 * @param selection_data cast=(GtkSelectionData *)
2060 	 */
gtk_selection_data_get_format(long selection_data)2061 	public static final native int gtk_selection_data_get_format(long selection_data);
2062 	/**
2063 	 * @param selection_data cast=(GtkSelectionData *)
2064 	 */
gtk_selection_data_get_length(long selection_data)2065 	public static final native int gtk_selection_data_get_length(long selection_data);
2066 	/**
2067 	 * @param selection_data cast=(GtkSelectionData *)
2068 	 */
gtk_selection_data_get_target(long selection_data)2069 	public static final native long gtk_selection_data_get_target(long selection_data);
2070 	/**
2071 	 * @param selection_data cast=(GtkSelectionData *)
2072 	 */
gtk_selection_data_get_data_type(long selection_data)2073 	public static final native long gtk_selection_data_get_data_type(long selection_data);
2074 	/**
2075 	 * @param selection_data cast=(GtkSelectionData *)
2076 	 * @param type cast=(GdkAtom)
2077 	 * @param format cast=(gint)
2078 	 * @param data cast=(const guchar *)
2079 	 * @param length cast=(gint)
2080 	 */
gtk_selection_data_set(long selection_data, long type, int format, long data, int length)2081 	public static final native void gtk_selection_data_set(long selection_data, long type, int format, long data, int length);
gtk_separator_menu_item_new()2082 	public static final native long gtk_separator_menu_item_new();
gtk_separator_tool_item_new()2083 	public static final native long gtk_separator_tool_item_new();
2084 	/**
2085 	 * @param item cast=(GtkSeparatorToolItem *)
2086 	 * @param draw cast=(gboolean)
2087 	 */
gtk_separator_tool_item_set_draw(long item, boolean draw)2088 	public static final native void gtk_separator_tool_item_set_draw(long item, boolean draw);
2089 	/** @param socket cast=(GtkSocket *) */
gtk_socket_get_id(long socket)2090 	public static final native long gtk_socket_get_id(long socket);
gtk_socket_new()2091 	public static final native long gtk_socket_new();
2092 	/** @param adjustment cast=(GtkAdjustment *) */
gtk_spin_button_new(long adjustment, double climb_rate, int digits)2093 	public static final native long gtk_spin_button_new(long adjustment, double climb_rate, int digits);
2094 	/**
2095 	 * @param spin_button cast=(GtkSpinButton*)
2096 	 * @param numeric cast=(gboolean)
2097 	 **/
gtk_spin_button_set_numeric(long spin_button, boolean numeric)2098 	public static final native void gtk_spin_button_set_numeric(long spin_button, boolean numeric);
2099 	/**
2100 	 * @param spin_button cast=(GtkSpinButton*)
2101 	 * @param adjustment cast=(GtkAdjustment *)
2102 	 **/
gtk_spin_button_configure(long spin_button, long adjustment, double climb_rate, int digits)2103 	public static final native void gtk_spin_button_configure(long spin_button, long adjustment, double climb_rate, int digits);
2104 	/** @param spin_button cast=(GtkSpinButton*) */
gtk_spin_button_get_adjustment(long spin_button)2105 	public static final native long gtk_spin_button_get_adjustment(long spin_button);
2106 	/** @param spin_button cast=(GtkSpinButton*) */
gtk_spin_button_get_digits(long spin_button)2107 	public static final native int gtk_spin_button_get_digits(long spin_button);
2108 	/** @param spin_button cast=(GtkSpinButton*) */
gtk_spin_button_set_increments(long spin_button, double step, double page)2109 	public static final native void gtk_spin_button_set_increments(long spin_button, double step, double page);
2110 	/** @param spin_button cast=(GtkSpinButton*) */
gtk_spin_button_set_range(long spin_button, double max, double min)2111 	public static final native void gtk_spin_button_set_range(long spin_button, double max, double min);
2112 	/** @param spin_button cast=(GtkSpinButton*) */
gtk_spin_button_set_value(long spin_button, double value)2113 	public static final native void gtk_spin_button_set_value(long spin_button, double value);
2114 	/** @param spin_button cast=(GtkSpinButton*) */
gtk_spin_button_set_wrap(long spin_button, boolean wrap)2115 	public static final native void gtk_spin_button_set_wrap(long spin_button, boolean wrap);
2116 	/** @param spin_button cast=(GtkSpinButton*) */
gtk_spin_button_update(long spin_button)2117 	public static final native void gtk_spin_button_update(long spin_button);
2118 	/**
2119 	 * @param snapshot cast=(GtkSnapshot *)
2120 	 * @param rect cast=(const graphene_rect_t *)
2121 	 */
2122 	/* [GTK4 only, if-def'd in os.h] */
gtk_snapshot_append_cairo(long snapshot, long rect)2123 	public static final native long gtk_snapshot_append_cairo(long snapshot, long rect);
2124 	/**
2125 	 * @param handle cast=(GtkStatusIcon*)
2126 	 * @param screen cast=(GdkScreen**)
2127 	 * @param area cast=(GdkRectangle*)
2128 	 * @param orientation cast=(GtkOrientation*)
2129 	 */
2130 	/* [GTK3 only, if-def'd in os.h] */
gtk_status_icon_get_geometry(long handle, long screen, GdkRectangle area, long orientation)2131 	public static final native boolean gtk_status_icon_get_geometry(long handle, long screen, GdkRectangle area, long orientation);
2132 	/** @param handle cast=(GtkStatusIcon*) */
2133 	/* [GTK3 only, if-def'd in os.h] */
gtk_status_icon_get_visible(long handle)2134 	public static final native boolean gtk_status_icon_get_visible(long handle);
2135 	/* [GTK3 only, if-def'd in os.h] */
gtk_status_icon_new()2136 	public static final native long gtk_status_icon_new();
2137 	/**
2138 	 * @param handle cast=(GtkStatusIcon*)
2139 	 * @param pixbuf cast=(GdkPixbuf*)
2140 	 */
2141 	/* [GTK3 only, if-def'd in os.h] */
gtk_status_icon_set_from_pixbuf(long handle, long pixbuf)2142 	public static final native void gtk_status_icon_set_from_pixbuf(long handle, long pixbuf);
2143 	/**
2144 	 * @param handle cast=(GtkStatusIcon*)
2145 	 * @param visible cast=(gboolean)
2146 	 */
2147 	/* [GTK3 only, if-def'd in os.h] */
gtk_status_icon_set_visible(long handle, boolean visible)2148 	public static final native void gtk_status_icon_set_visible(long handle, boolean visible);
2149 	/**
2150 	 * @param handle cast=(GtkStatusIcon *)
2151 	 * @param tip_text cast=(const gchar *)
2152 	 */
2153 	/* [GTK3 only, if-def'd in os.h] */
gtk_status_icon_set_tooltip_text(long handle, byte[] tip_text)2154 	public static final native void gtk_status_icon_set_tooltip_text(long handle, byte[] tip_text);
2155 	/**
2156 	 * @param context cast=(GtkStyleContext *)
2157 	 * @param class_name cast=(const gchar *)
2158 	 */
gtk_style_context_add_class(long context, byte[] class_name)2159 	public static final native void gtk_style_context_add_class(long context, byte[] class_name);
2160 	/**
2161 	 * @param context cast=(GtkStyleContext *)
2162 	 * @param class_name cast=(const gchar *)
2163 	 */
gtk_style_context_remove_class(long context, byte[] class_name)2164 	public static final native void gtk_style_context_remove_class(long context, byte[] class_name);
2165 	/**
2166 	 * @method flags=dynamic
2167 	 * @param context cast=(GtkStyleContext *)
2168 	 * @param state cast=(GtkStateFlags)
2169 	 * @param color cast=(GdkRGBA *)
2170 	 */
2171 	/* [GTK3 only] */
gtk_style_context_get_color(long context, int state, GdkRGBA color)2172 	public static final native void gtk_style_context_get_color(long context, int state, GdkRGBA color);
2173 	/**
2174 	 * @method flags=dynamic
2175 	 * @param context cast=(GtkStyleContext *)
2176 	 * @param color cast=(GdkRGBA *)
2177 	 */
2178 	/* [GTK4 only] */
gtk_style_context_get_color(long context, GdkRGBA color)2179 	public static final native void gtk_style_context_get_color(long context, GdkRGBA color);
2180 	/** @method flags=dynamic */
2181 	/* [GTK3; 3.8 deprecated, replaced] */
gtk_style_context_get_font(long context, int state)2182 	public static final native long gtk_style_context_get_font(long context, int state);
2183 	/**
2184 	 * @method flags=dynamic
2185 	 * @param context cast=(GtkStyleContext *)
2186 	 * @param state cast=(GtkStateFlags)
2187 	 * @param padding cast=(GtkBorder *),flags=no_in
2188 	 */
2189 	/* [GTK3 only] */
gtk_style_context_get_padding(long context, int state, GtkBorder padding)2190 	public static final native void gtk_style_context_get_padding(long context, int state, GtkBorder padding);
2191 	/**
2192 	 * @param context cast=(GtkStyleContext *)
2193 	 */
gtk_style_context_get_parent(long context)2194 	public static final native long gtk_style_context_get_parent(long context);
2195 	/**
2196 	 * @method flags=dynamic
2197 	 * @param context cast=(GtkStyleContext *)
2198 	 * @param padding cast=(GtkBorder *),flags=no_in
2199 	 */
2200 	/* [GTK4 only] */
gtk_style_context_get_padding(long context, GtkBorder padding)2201 	public static final native void gtk_style_context_get_padding(long context, GtkBorder padding);
2202 	/**
2203 	 * @param context cast=(GtkStyleContext *)
2204 	 * @param margin cast=(GtkBorder *),flags=no_in
2205 	 */
2206 	/* [GTK4 only, if-def'd in os.h] */
gtk_style_context_get_margin(long context, GtkBorder margin)2207 	public static final native void gtk_style_context_get_margin(long context, GtkBorder margin);
2208 	/**
2209 	 * @method flags=dynamic
2210 	 * @param property cast=(const gchar *),flags=no_out
2211 	 * @param terminator cast=(const gchar *),flags=sentinel
2212 	 */
gtk_style_context_get(long context, int state, byte [] property, long [] value, long terminator)2213 	public static final native void gtk_style_context_get(long context, int state, byte [] property, long [] value, long terminator);
2214 	/**
2215 	 * @method flags=dynamic
2216 	 * @param property cast=(const gchar *),flags=no_out
2217 	 * @param terminator cast=(const gchar *),flags=sentinel
2218 	 */
gtk_style_context_get(long context, byte [] property, long [] value, long terminator)2219 	public static final native void gtk_style_context_get(long context, byte [] property, long [] value, long terminator);
2220 	/**
2221 	 * @method flags=dynamic
2222 	 * @param context cast=(GtkStyleContext *)
2223 	 * @param state cast=(GtkStateFlags)
2224 	 * @param padding cast=(GtkBorder *),flags=no_in
2225 	 */
2226 	/* [GTK3 only] */
gtk_style_context_get_border(long context, int state, GtkBorder padding)2227 	public static final native void gtk_style_context_get_border(long context, int state, GtkBorder padding);
2228 	/**
2229 	 * @method flags=dynamic
2230 	 * @param context cast=(GtkStyleContext *)
2231 	 * @param padding cast=(GtkBorder *),flags=no_in
2232 	 */
2233 	/* [GTK4 only] */
gtk_style_context_get_border(long context, GtkBorder padding)2234 	public static final native void gtk_style_context_get_border(long context, GtkBorder padding);
2235 	/** @method flags=dynamic */
2236 	/* [GTK3; 3.12 deprecated] */
gtk_style_context_invalidate(long context)2237 	public static final native void gtk_style_context_invalidate(long context);
2238 	/**
2239 	 * @param self cast=(GtkStyleContext *)
2240 	 */
gtk_style_context_save(long self)2241 	public static final native void gtk_style_context_save(long self);
2242 	/**
2243 	 * @param context cast=(GtkStyleContext *)
2244 	 */
gtk_style_context_restore(long context)2245 	public static final native void gtk_style_context_restore(long context);
2246 	/**
2247 	 * @param self cast=(GtkWidget *)
2248 	 */
gtk_widget_get_state_flags(long self)2249 	public static final native int gtk_widget_get_state_flags(long self);
2250 	/**
2251 	 * @param context cast=(GtkStyleContext *)
2252 	 * @param flags cast=(GtkStateFlags)
2253 	 */
gtk_style_context_set_state(long context, long flags)2254 	public static final native void gtk_style_context_set_state(long context, long flags);
2255 	/**
2256 	 * @param targets cast=(const GtkTargetEntry *)
2257 	 * @param ntargets cast=(guint)
2258 	 */
2259 	/* [GTK3 only, if-def'd in os.h] */
gtk_target_list_new(long targets, int ntargets)2260 	public static final native long gtk_target_list_new(long targets, int ntargets);
2261 	/** @param list cast=(GtkTargetList *) */
2262 	/* [GTK3 only, if-def'd in os.h] */
gtk_target_list_unref(long list)2263 	public static final native void gtk_target_list_unref(long list);
2264 	/**
2265 	 * @method flags=dynamic
2266 	 * @param buffer cast=(GtkTextBuffer *)
2267 	 */
2268 	/* [GTK3/GTK4, GTK3 uses GtkClipboard but GTK4 uses GdkClipboard -- method signature otherwise identical] */
gtk_text_buffer_copy_clipboard(long buffer, long clipboard)2269 	public static final native void gtk_text_buffer_copy_clipboard(long buffer, long clipboard);
2270 	/**
2271 	 * @param buffer cast=(GtkTextBuffer *)
2272 	 * @param mark_name cast=(const gchar *)
2273 	 * @param where cast=(GtkTextIter *)
2274 	 * @param left_gravity cast=(gboolean)
2275 	 */
gtk_text_buffer_create_mark(long buffer, byte [] mark_name, byte [] where, boolean left_gravity)2276 	public static final native long gtk_text_buffer_create_mark(long buffer, byte [] mark_name, byte [] where, boolean left_gravity);
2277 	/**
2278 	 * @method flags=dynamic
2279 	 * @param buffer cast=(GtkTextBuffer *)
2280 	 * @param default_editable cast=(gboolean)
2281 	 */
2282 	/* [GTK3/GTK4, GTK3 uses GtkClipboard but GTK4 uses GdkClipboard -- method signature otherwise identical] */
gtk_text_buffer_cut_clipboard(long buffer, long clipboard, boolean default_editable)2283 	public static final native void gtk_text_buffer_cut_clipboard(long buffer, long clipboard, boolean default_editable);
2284 	/**
2285 	 * @param buffer cast=(GtkTextBuffer *)
2286 	 * @param start cast=(GtkTextIter *)
2287 	 * @param end cast=(GtkTextIter *)
2288 	 */
gtk_text_buffer_delete(long buffer, byte[] start, byte[] end)2289 	public static final native void gtk_text_buffer_delete(long buffer, byte[] start, byte[] end);
2290 	/**
2291 	 * @param buffer cast=(GtkTextBuffer *)
2292 	 * @param start cast=(GtkTextIter *)
2293 	 * @param end cast=(GtkTextIter *)
2294 	 */
gtk_text_buffer_get_bounds(long buffer, byte[] start, byte[] end)2295 	public static final native void gtk_text_buffer_get_bounds(long buffer, byte[] start, byte[] end);
2296 	/**
2297 	 * @param buffer cast=(GtkTextBuffer *)
2298 	 * @param iter cast=(GtkTextIter *)
2299 	 */
gtk_text_buffer_get_end_iter(long buffer, byte[] iter)2300 	public static final native void gtk_text_buffer_get_end_iter(long buffer, byte[] iter);
2301 	/** @param buffer cast=(GtkTextBuffer *) */
gtk_text_buffer_get_insert(long buffer)2302 	public static final native long gtk_text_buffer_get_insert(long buffer);
2303 	/**
2304 	 * @param buffer cast=(GtkTextBuffer *)
2305 	 * @param iter cast=(GtkTextIter *)
2306 	 * @param line_number cast=(gint)
2307 	 */
gtk_text_buffer_get_iter_at_line(long buffer, byte[] iter, int line_number)2308 	public static final native void gtk_text_buffer_get_iter_at_line(long buffer, byte[] iter, int line_number);
2309 	/**
2310 	 * @param buffer cast=(GtkTextBuffer *)
2311 	 * @param iter cast=(GtkTextIter *)
2312 	 * @param mark cast=(GtkTextMark *)
2313 	 */
gtk_text_buffer_get_iter_at_mark(long buffer, byte[] iter, long mark)2314 	public static final native void gtk_text_buffer_get_iter_at_mark(long buffer, byte[] iter, long mark);
2315 	/**
2316 	 * @param buffer cast=(GtkTextBuffer *)
2317 	 * @param iter cast=(GtkTextIter *)
2318 	 * @param char_offset cast=(gint)
2319 	 */
gtk_text_buffer_get_iter_at_offset(long buffer, byte[] iter, int char_offset)2320 	public static final native void gtk_text_buffer_get_iter_at_offset(long buffer, byte[] iter, int char_offset);
2321 	/** @param buffer cast=(GtkTextBuffer *) */
gtk_text_buffer_get_line_count(long buffer)2322 	public static final native int gtk_text_buffer_get_line_count(long buffer);
2323 	/** @param buffer cast=(GtkTextBuffer *) */
gtk_text_buffer_get_selection_bound(long buffer)2324 	public static final native long gtk_text_buffer_get_selection_bound(long buffer);
2325 	/**
2326 	 * @param buffer cast=(GtkTextBuffer *)
2327 	 * @param start cast=(GtkTextIter *)
2328 	 * @param end cast=(GtkTextIter *)
2329 	 */
gtk_text_buffer_get_selection_bounds(long buffer, byte[] start, byte[] end)2330 	public static final native boolean gtk_text_buffer_get_selection_bounds(long buffer, byte[] start, byte[] end);
2331 	/**
2332 	 * @param buffer cast=(GtkTextBuffer *)
2333 	 * @param start cast=(GtkTextIter *)
2334 	 * @param end cast=(GtkTextIter *)
2335 	 * @param include_hidden_chars cast=(gboolean)
2336 	 */
gtk_text_buffer_get_text(long buffer, byte[] start, byte[] end, boolean include_hidden_chars)2337 	public static final native long gtk_text_buffer_get_text(long buffer, byte[] start, byte[] end, boolean include_hidden_chars);
2338 	/**
2339 	 * @param buffer cast=(GtkTextBuffer *)
2340 	 * @param iter cast=(GtkTextIter *)
2341 	 * @param text cast=(const gchar *)
2342 	 * @param len cast=(gint)
2343 	 */
gtk_text_buffer_insert(long buffer, byte[] iter, byte[] text, int len)2344 	public static final native void gtk_text_buffer_insert(long buffer, byte[] iter, byte[] text, int len);
2345 	/**
2346 	 * @param buffer cast=(GtkTextBuffer *)
2347 	 * @param iter cast=(GtkTextIter *)
2348 	 * @param text cast=(const gchar *)
2349 	 * @param len cast=(gint)
2350 	 */
gtk_text_buffer_insert(long buffer, long iter, byte[] text, int len)2351 	public static final native void gtk_text_buffer_insert(long buffer, long iter, byte[] text, int len);
2352 	/**
2353 	 * @param buffer cast=(GtkTextBuffer *)
2354 	 * @param ins cast=(const GtkTextIter *)
2355 	 * @param bound cast=(const GtkTextIter *)
2356 	 */
gtk_text_buffer_select_range(long buffer, byte[] ins, byte[] bound)2357 	public static final native void gtk_text_buffer_select_range(long buffer, byte[] ins, byte[] bound);
2358 	/**
2359 	 * @method flags=dynamic
2360 	 * @param buffer cast=(GtkTextBuffer *)
2361 	 * @param override_location cast=(GtkTextIter *)
2362 	 * @param default_editable cast=(gboolean)
2363 	 */
2364 	/* [GTK3/GTK4, GTK3 uses GtkClipboard but GTK4 uses GdkClipboard -- method signature otherwise identical] */
gtk_text_buffer_paste_clipboard(long buffer, long clipboard, byte[] override_location, boolean default_editable)2365 	public static final native void gtk_text_buffer_paste_clipboard(long buffer, long clipboard, byte[] override_location, boolean default_editable);
2366 	/**
2367 	 * @param buffer cast=(GtkTextBuffer *)
2368 	 * @param where cast=(const GtkTextIter *)
2369 	 */
gtk_text_buffer_place_cursor(long buffer, byte[] where)2370 	public static final native void gtk_text_buffer_place_cursor(long buffer, byte[] where);
2371 	/**
2372 	 * @param buffer cast=(GtkTextBuffer *)
2373 	 * @param text cast=(const gchar *)
2374 	 * @param len cast=(gint)
2375 	 */
gtk_text_buffer_set_text(long buffer, byte[] text, int len)2376 	public static final native void gtk_text_buffer_set_text(long buffer, byte[] text, int len);
2377 	/** @param iter cast=(const GtkTextIter *) */
gtk_text_iter_get_line(byte[] iter)2378 	public static final native int gtk_text_iter_get_line(byte[] iter);
2379 	/** @param iter cast=(const GtkTextIter *) */
gtk_text_iter_get_offset(byte[] iter)2380 	public static final native int gtk_text_iter_get_offset(byte[] iter);
2381 	/**
2382 	 * @method flags=dynamic
2383 	 * @param text_view cast=(GtkTextView *)
2384 	 * @param win cast=(GtkTextWindowType)
2385 	 * @param buffer_x cast=(gint)
2386 	 * @param buffer_y cast=(gint)
2387 	 * @param window_x cast=(gint *)
2388 	 * @param window_y cast=(gint *)
2389 	 */
2390 	/* [GTK3 only] */
gtk_text_view_buffer_to_window_coords(long text_view, int win, int buffer_x, int buffer_y, int[] window_x, int[] window_y)2391 	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);
2392 	/**
2393 	 * @method flags=dynamic
2394 	 * @param text_view cast=(GtkTextView *)
2395 	 * @param win cast=(GtkTextWindowType)
2396 	 * @param buffer_x cast=(gint)
2397 	 * @param buffer_y cast=(gint)
2398 	 * @param window_x cast=(gint *)
2399 	 * @param window_y cast=(gint *)
2400 	 */
2401 	/* [GTK4 only] */
gtk_text_view_buffer_to_surface_coords(long text_view, int win, int buffer_x, int buffer_y, int[] window_x, int[] window_y)2402 	public static final native void gtk_text_view_buffer_to_surface_coords(long text_view, int win, int buffer_x, int buffer_y, int[] window_x, int[] window_y);
2403 	/** @param text_view cast=(GtkTextView *) */
gtk_text_view_get_buffer(long text_view)2404 	public static final native long gtk_text_view_get_buffer(long text_view);
2405 	/** @param text_view cast=(GtkTextView *) */
gtk_text_view_get_editable(long text_view)2406 	public static final native boolean gtk_text_view_get_editable(long text_view);
2407 	/**
2408 	 * @param text_view cast=(GtkTextView *)
2409 	 * @param iter cast=(GtkTextIter *)
2410 	 * @param x cast=(gint)
2411 	 * @param y cast=(gint)
2412 	 */
gtk_text_view_get_iter_at_location(long text_view, byte[] iter, int x, int y)2413 	public static final native void gtk_text_view_get_iter_at_location(long text_view, byte[] iter, int x, int y);
2414 	/**
2415 	 * @param text_view cast=(GtkTextView *)
2416 	 * @param iter cast=(const GtkTextIter *)
2417 	 * @param location cast=(GdkRectangle *),flags=no_in
2418 	 */
gtk_text_view_get_iter_location(long text_view, byte[] iter, GdkRectangle location)2419 	public static final native void gtk_text_view_get_iter_location(long text_view, byte[] iter, GdkRectangle location);
2420 	/**
2421 	 * @param text_view cast=(GtkTextView *)
2422 	 * @param target_iter cast=(GtkTextIter *)
2423 	 * @param y cast=(gint)
2424 	 * @param line_top cast=(gint *)
2425 	 */
gtk_text_view_get_line_at_y(long text_view, byte[] target_iter, int y, int[] line_top)2426 	public static final native void gtk_text_view_get_line_at_y(long text_view, byte[] target_iter, int y, int[] line_top);
2427 	/**
2428 	 * @param text_view cast=(GtkTextView *)
2429 	 * @param target_iter cast=(GtkTextIter *)
2430 	 * @param y cast=(gint *)
2431 	 * @param height cast=(gint *)
2432 	 */
gtk_text_view_get_line_yrange(long text_view, byte[] target_iter, int[] y, int[] height)2433 	public static final native void gtk_text_view_get_line_yrange(long text_view, byte[] target_iter, int[] y, int[] height);
2434 	/**
2435 	 * @param text_view cast=(GtkTextView *)
2436 	 * @param visible_rect cast=(GdkRectangle *),flags=no_in
2437 	 */
gtk_text_view_get_visible_rect(long text_view, GdkRectangle visible_rect)2438 	public static final native void gtk_text_view_get_visible_rect(long text_view, GdkRectangle visible_rect);
2439 	/**
2440 	 * @param text_view cast=(GtkTextView *)
2441 	 * @param win cast=(GtkTextWindowType)
2442 	 */
2443 	/* [GTK3 only, if-def'd in os.h] */
gtk_text_view_get_window(long text_view, int win)2444 	public static final native long gtk_text_view_get_window(long text_view, int win);
gtk_text_view_new()2445 	public static final native long gtk_text_view_new();
2446 	/**
2447 	 * @param text_view cast=(GtkTextView *)
2448 	 * @param mark cast=(GtkTextMark *)
2449 	 * @param within_margin cast=(gdouble)
2450 	 * @param use_align cast=(gboolean)
2451 	 * @param xalign cast=(gdouble)
2452 	 * @param yalign cast=(gdouble)
2453 	 */
gtk_text_view_scroll_to_mark(long text_view, long mark, double within_margin, boolean use_align, double xalign, double yalign)2454 	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);
2455 	/**
2456 	 * @param text_view cast=(GtkTextView *)
2457 	 * @param iter cast=(GtkTextIter *)
2458 	 * @param within_margin cast=(gdouble)
2459 	 * @param use_align cast=(gboolean)
2460 	 * @param xalign cast=(gdouble)
2461 	 * @param yalign cast=(gdouble)
2462 	 */
gtk_text_view_scroll_to_iter(long text_view, byte[] iter, double within_margin, boolean use_align, double xalign, double yalign)2463 	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);
2464 	/**
2465 	 * @param text_view cast=(GtkTextView *)
2466 	 * @param setting cast=(gboolean)
2467 	 */
gtk_text_view_set_editable(long text_view, boolean setting)2468 	public static final native void gtk_text_view_set_editable(long text_view, boolean setting);
2469 	/** @param text_view cast=(GtkTextView *) */
gtk_text_view_set_justification(long text_view, int justification)2470 	public static final native void gtk_text_view_set_justification(long text_view, int justification);
2471 	/**
2472 	 * @param text_view cast=(GtkTextView *)
2473 	 * @param tabs cast=(PangoTabArray *)
2474 	 */
gtk_text_view_set_tabs(long text_view, long tabs)2475 	public static final native void gtk_text_view_set_tabs(long text_view, long tabs);
2476 	/** @param text_view cast=(GtkTextView *) */
gtk_text_view_set_wrap_mode(long text_view, int wrap_mode)2477 	public static final native void gtk_text_view_set_wrap_mode(long text_view, int wrap_mode);
2478 	/** @param toggle_button cast=(GtkToggleButton *) */
gtk_toggle_button_get_active(long toggle_button)2479 	public static final native boolean gtk_toggle_button_get_active(long toggle_button);
gtk_toggle_button_new()2480 	public static final native long gtk_toggle_button_new();
2481 	/**
2482 	 * @param toggle_button cast=(GtkToggleButton *)
2483 	 * @param is_active cast=(gboolean)
2484 	 */
gtk_toggle_button_set_active(long toggle_button, boolean is_active)2485 	public static final native void gtk_toggle_button_set_active(long toggle_button, boolean is_active);
2486 	/**
2487 	 * @method flags=dynamic
2488 	 * @param toggle_button cast=(GtkToggleButton *)
2489 	 * @param setting cast=(gboolean)
2490 	 */
2491 	/* [GTK3 only] */
gtk_toggle_button_set_inconsistent(long toggle_button, boolean setting)2492 	public static final native void gtk_toggle_button_set_inconsistent(long toggle_button, boolean setting);
2493 	/** @param button cast=(GtkToggleToolButton *) */
gtk_toggle_tool_button_get_active(long button)2494 	public static final native boolean gtk_toggle_tool_button_get_active(long button);
gtk_toggle_tool_button_new()2495 	public static final native long gtk_toggle_tool_button_new();
2496 	/**
2497 	 * @param item cast=(GtkToggleToolButton *)
2498 	 * @param selected cast=(gboolean)
2499 	 */
gtk_toggle_tool_button_set_active(long item, boolean selected)2500 	public static final native void gtk_toggle_tool_button_set_active(long item, boolean selected);
2501 	/**
2502 	 * @param icon_widget cast=(GtkWidget *)
2503 	 * @param label cast=(const gchar *)
2504 	 */
gtk_tool_button_new(long icon_widget, byte[] label)2505 	public static final native long gtk_tool_button_new(long icon_widget, byte[] label);
2506 	/**
2507 	 * @param button cast=(GtkToolButton *)
2508 	 * @param widget cast=(GtkWidget *)
2509 	 */
gtk_tool_button_set_icon_widget(long button, long widget)2510 	public static final native void gtk_tool_button_set_icon_widget(long button, long widget);
2511 	/**
2512 	 * @param button cast=(GtkToolButton *)
2513 	 * @param widget cast=(GtkWidget *)
2514 	 */
gtk_tool_button_set_label_widget(long button, long widget)2515 	public static final native void gtk_tool_button_set_label_widget(long button,  long widget);
2516 	/**
2517 	 * @param item cast=(GtkToolButton *)
2518 	 * @param underline cast=(gboolean)
2519 	 */
gtk_tool_button_set_use_underline(long item, boolean underline)2520 	public static final native void gtk_tool_button_set_use_underline(long item, boolean underline);
2521 	/**
2522 	 * @param item cast=(GtkToolItem *)
2523 	 * @param menu_id cast=(const gchar *)
2524 	 */
gtk_tool_item_get_proxy_menu_item(long item, byte[] menu_id)2525 	public static final native long gtk_tool_item_get_proxy_menu_item(long item, byte[] menu_id);
2526 	/** @param item cast=(GtkToolItem *) */
gtk_tool_item_retrieve_proxy_menu_item(long item)2527 	public static final native long gtk_tool_item_retrieve_proxy_menu_item(long item);
2528 	/**
2529 	 * @param item cast=(GtkToolItem *)
2530 	 * @param important cast=(gboolean)
2531 	 */
gtk_tool_item_set_is_important(long item, boolean important)2532 	public static final native void gtk_tool_item_set_is_important(long item, boolean important);
2533 	/**
2534 	 * @param item cast=(GtkToolItem *)
2535 	 * @param homogeneous cast=(gboolean)
2536 	 */
gtk_tool_item_set_homogeneous(long item, boolean homogeneous)2537 	public static final native void gtk_tool_item_set_homogeneous(long item, boolean homogeneous);
2538 	/**
2539 	 * @param item cast=(GtkToolItem *)
2540 	 * @param menu_id cast=(const gchar *)
2541 	 * @param widget cast=(GtkWidget *)
2542 	 */
gtk_tool_item_set_proxy_menu_item(long item, byte[] menu_id, long widget)2543 	public static final native void gtk_tool_item_set_proxy_menu_item(long item, byte[] menu_id, long widget);
2544 	/**
2545 	 * @param toolbar cast=(GtkToolbar *)
2546 	 * @param item cast=(GtkToolItem *)
2547 	 */
gtk_toolbar_insert(long toolbar, long item, int pos)2548 	public static final native void gtk_toolbar_insert(long toolbar, long item, int pos);
gtk_toolbar_new()2549 	public static final native long gtk_toolbar_new();
2550 	/**
2551 	 * @param toolbar cast=(GtkToolbar *)
2552 	 * @param show_arrow cast=(gboolean)
2553 	 */
gtk_toolbar_set_show_arrow(long toolbar, boolean show_arrow)2554 	public static final native void gtk_toolbar_set_show_arrow(long toolbar, boolean show_arrow);
2555 	/** @param toolbar cast=(GtkToolbar *)
2556 	 * @param style cast=(GtkToolbarStyle)
2557 	 */
gtk_toolbar_set_style(long toolbar, int style)2558 	public static final native void gtk_toolbar_set_style(long toolbar, int style);
2559 	/**
2560 	 * @method flags=dynamic
2561 	 * @param toolbar cast=(GtkToolbar *)
2562 	 */
2563 	/* [GTK3 only] */
gtk_toolbar_set_icon_size(long toolbar, int size)2564 	public static final native void gtk_toolbar_set_icon_size(long toolbar, int size);
gtk_tooltip_get_type()2565 	public static final native long gtk_tooltip_get_type();
2566 	/**
2567 	 * @param tooltip cast=(GtkTooltip *)
2568 	 * @param custom_widget cast=(GtkWidget *)
2569 	 */
gtk_tooltip_set_custom(long tooltip, long custom_widget)2570 	public static final native void gtk_tooltip_set_custom(long tooltip, long custom_widget);
2571 	/**
2572 	 * @param tree_model cast=(GtkTreeModel *)
2573 	 * @param iter cast=(GtkTreeIter *)
2574 	 */
gtk_tree_model_get(long tree_model, long iter, int column, long[] value, int terminator)2575 	public static final native void gtk_tree_model_get(long tree_model, long iter, int column, long[] value, int terminator);
2576 	/**
2577 	 * @param tree_model cast=(GtkTreeModel *)
2578 	 * @param iter cast=(GtkTreeIter *)
2579 	 */
gtk_tree_model_get(long tree_model, long iter, int column, int[] value, int terminator)2580 	public static final native void gtk_tree_model_get(long tree_model, long iter, int column, int[] value, int terminator);
2581 	/**
2582 	 * @param tree_model cast=(GtkTreeModel *)
2583 	 * @param iter cast=(GtkTreeIter *)
2584 	 * @param path cast=(GtkTreePath *)
2585 	 */
gtk_tree_model_get_iter(long tree_model, long iter, long path)2586 	public static final native boolean gtk_tree_model_get_iter(long tree_model, long iter, long path);
2587 	/**
2588 	 * @param tree_model cast=(GtkTreeModel *)
2589 	 * @param iter cast=(GtkTreeIter *)
2590 	 */
gtk_tree_model_get_iter_first(long tree_model, long iter)2591 	public static final native boolean gtk_tree_model_get_iter_first(long tree_model, long iter);
2592 	/** @param tree_model cast=(GtkTreeModel *) */
gtk_tree_model_get_n_columns(long tree_model)2593 	public static final native int gtk_tree_model_get_n_columns(long tree_model);
2594 	/**
2595 	 * @param tree_model cast=(GtkTreeModel *)
2596 	 * @param iter cast=(GtkTreeIter *)
2597 	 */
gtk_tree_model_get_path(long tree_model, long iter)2598 	public static final native long gtk_tree_model_get_path(long tree_model, long iter);
gtk_tree_model_get_type()2599 	public static final native long gtk_tree_model_get_type();
2600 	/**
2601 	 * @param model cast=(GtkTreeModel *)
2602 	 * @param iter cast=(GtkTreeIter *)
2603 	 * @param parent cast=(GtkTreeIter *)
2604 	 */
gtk_tree_model_iter_children(long model, long iter, long parent)2605 	public static final native boolean gtk_tree_model_iter_children(long model, long iter, long parent);
2606 	/**
2607 	 * @param model cast=(GtkTreeModel *)
2608 	 * @param iter cast=(GtkTreeIter *)
2609 	 */
gtk_tree_model_iter_n_children(long model, long iter)2610 	public static final native int gtk_tree_model_iter_n_children(long model, long iter);
2611 	/**
2612 	 * @param model cast=(GtkTreeModel *)
2613 	 * @param iter cast=(GtkTreeIter *)
2614 	 */
gtk_tree_model_iter_next(long model, long iter)2615 	public static final native boolean gtk_tree_model_iter_next(long model, long iter);
2616 	/**
2617 	 * @param tree_model cast=(GtkTreeModel *)
2618 	 * @param iter cast=(GtkTreeIter *)
2619 	 * @param parent cast=(GtkTreeIter *)
2620 	 */
gtk_tree_model_iter_nth_child(long tree_model, long iter, long parent, int n)2621 	public static final native boolean gtk_tree_model_iter_nth_child(long tree_model, long iter, long parent, int n);
2622 	/** @param path cast=(GtkTreePath *) */
gtk_tree_path_append_index(long path, int index)2623 	public static final native void gtk_tree_path_append_index(long path, int index);
2624 	/**
2625 	 * @param a cast=(const GtkTreePath *)
2626 	 * @param b cast=(const GtkTreePath *)
2627 	 */
gtk_tree_path_compare(long a, long b)2628 	public static final native long gtk_tree_path_compare(long a, long b);
2629 	/** @param path cast=(GtkTreePath *) */
gtk_tree_path_free(long path)2630 	public static final native void gtk_tree_path_free(long path);
2631 	/** @param path cast=(GtkTreePath *) */
gtk_tree_path_get_depth(long path)2632 	public static final native int gtk_tree_path_get_depth(long path);
2633 	/** @param path cast=(GtkTreePath *) */
gtk_tree_path_get_indices(long path)2634 	public static final native long gtk_tree_path_get_indices(long path);
gtk_tree_path_new()2635 	public static final native long gtk_tree_path_new();
2636 	/** @param path cast=(const gchar *) */
gtk_tree_path_new_from_string(byte[] path)2637 	public static final native long gtk_tree_path_new_from_string(byte[] path);
2638 	/** @param path cast=(const gchar *) */
gtk_tree_path_new_from_string(long path)2639 	public static final native long gtk_tree_path_new_from_string(long path);
2640 	/** @param path cast=(GtkTreePath *) */
gtk_tree_path_next(long path)2641 	public static final native void gtk_tree_path_next(long path);
2642 	/** @param path cast=(GtkTreePath *) */
gtk_tree_path_prev(long path)2643 	public static final native boolean gtk_tree_path_prev(long path);
2644 	/** @param path cast=(GtkTreePath *) */
gtk_tree_path_up(long path)2645 	public static final native boolean gtk_tree_path_up(long path);
2646 	/**
2647 	 * @param selection cast=(GtkTreeSelection *)
2648 	 */
gtk_tree_selection_count_selected_rows(long selection)2649 	public static final native int gtk_tree_selection_count_selected_rows(long selection);
2650 	/**
2651 	 * @param selection cast=(GtkTreeSelection *)
2652 	 * @param model cast=(GtkTreeModel **)
2653 	 */
gtk_tree_selection_get_selected_rows(long selection, long [] model)2654 	public static final native long gtk_tree_selection_get_selected_rows(long selection, long [] model);
2655 	/**
2656 	 * @param selection cast=(GtkTreeSelection *)
2657 	 * @param path cast=(GtkTreePath *)
2658 	 */
gtk_tree_selection_path_is_selected(long selection, long path)2659 	public static final native boolean gtk_tree_selection_path_is_selected(long selection, long path);
2660 	/** @param selection cast=(GtkTreeSelection *) */
gtk_tree_selection_select_all(long selection)2661 	public static final native void gtk_tree_selection_select_all(long selection);
2662 	/**
2663 	 * @param selection cast=(GtkTreeSelection *)
2664 	 * @param iter cast=(GtkTreeIter *)
2665 	 */
gtk_tree_selection_select_iter(long selection, long iter)2666 	public static final native void gtk_tree_selection_select_iter(long selection, long iter);
2667 	/**
2668 	 * @param selection cast=(GtkTreeSelection *)
2669 	 * @param func cast=(GtkTreeSelectionFunc)
2670 	 * @param data cast=(gpointer)
2671 	 * @param destroy cast=(GDestroyNotify)
2672 	 */
gtk_tree_selection_set_select_function(long selection, long func, long data, long destroy)2673 	public static final native void gtk_tree_selection_set_select_function(long selection, long func, long data, long destroy);
2674 	/**
2675 	 * @param selection cast=(GtkTreeSelection *)
2676 	 * @param mode cast=(GtkSelectionMode)
2677 	 */
gtk_tree_selection_set_mode(long selection, int mode)2678 	public static final native void gtk_tree_selection_set_mode(long selection, int mode);
2679 	/**
2680 	 * @param selection cast=(GtkTreeSelection *)
2681 	 * @param path cast=(GtkTreePath *)
2682 	 */
gtk_tree_selection_unselect_path(long selection, long path)2683 	public static final native void gtk_tree_selection_unselect_path(long selection, long path);
2684 	/** @param selection cast=(GtkTreeSelection *) */
gtk_tree_selection_unselect_all(long selection)2685 	public static final native void gtk_tree_selection_unselect_all(long selection);
2686 	/**
2687 	 * @param selection cast=(GtkTreeSelection *)
2688 	 * @param iter cast=(GtkTreeIter *)
2689 	 */
gtk_tree_selection_unselect_iter(long selection, long iter)2690 	public static final native void gtk_tree_selection_unselect_iter(long selection, long iter);
2691 	/**
2692 	 * @param store cast=(GtkTreeStore *)
2693 	 * @param iter cast=(GtkTreeIter *)
2694 	 * @param parent cast=(GtkTreeIter *)
2695 	 */
gtk_tree_store_append(long store, long iter, long parent)2696 	public static final native void gtk_tree_store_append(long store, long iter, long parent);
2697 	/** @param store cast=(GtkTreeStore *) */
gtk_tree_store_clear(long store)2698 	public static final native void gtk_tree_store_clear(long store);
2699 	/**
2700 	 * @param store cast=(GtkTreeStore *)
2701 	 * @param iter cast=(GtkTreeIter *)
2702 	 * @param parent cast=(GtkTreeIter *)
2703 	 * @param position cast=(gint)
2704 	 */
gtk_tree_store_insert(long store, long iter, long parent, int position)2705 	public static final native void gtk_tree_store_insert(long store, long iter, long parent, int position);
2706 	/** @param types cast=(GType *) */
gtk_tree_store_newv(int numColumns, long [] types)2707 	public static final native long gtk_tree_store_newv(int numColumns, long [] types);
2708 	/**
2709 	 * @param store cast=(GtkTreeStore *)
2710 	 * @param iter cast=(GtkTreeIter *)
2711 	 * @param parent cast=(GtkTreeIter *)
2712 	 */
gtk_tree_store_prepend(long store, long iter, long parent)2713 	public static final native void gtk_tree_store_prepend(long store, long iter, long parent);
2714 	/**
2715 	 * @param store cast=(GtkTreeStore *)
2716 	 * @param iter cast=(GtkTreeIter *)
2717 	 */
gtk_tree_store_remove(long store, long iter)2718 	public static final native void gtk_tree_store_remove(long store, long iter);
2719 	/**
2720 	 * @param store cast=(GtkTreeStore *)
2721 	 * @param iter cast=(GtkTreeIter *)
2722 	 */
gtk_tree_store_set(long store, long iter, int column, byte[] value, int terminator)2723 	public static final native void gtk_tree_store_set(long store, long iter, int column, byte[] value, int terminator);
2724 	/**
2725 	 * @param store cast=(GtkTreeStore *)
2726 	 * @param iter cast=(GtkTreeIter *)
2727 	 */
gtk_tree_store_set(long store, long iter, int column, int value, int terminator)2728 	public static final native void gtk_tree_store_set(long store, long iter, int column, int value, int terminator);
2729 	/**
2730 	 * @param store cast=(GtkTreeStore *)
2731 	 * @param iter cast=(GtkTreeIter *)
2732 	 */
gtk_tree_store_set(long store, long iter, int column, long value, int terminator)2733 	public static final native void gtk_tree_store_set(long store, long iter, int column, long value, int terminator);
2734 	/**
2735 	 * @param store cast=(GtkTreeStore *)
2736 	 * @param iter cast=(GtkTreeIter *)
2737 	 * @param value flags=no_out
2738 	 */
gtk_tree_store_set(long store, long iter, int column, GdkRGBA value, int terminator)2739 	public static final native void gtk_tree_store_set(long store, long iter, int column, GdkRGBA value, int terminator);
2740 	/**
2741 	 * @param store cast=(GtkTreeStore *)
2742 	 * @param iter cast=(GtkTreeIter *)
2743 	 */
gtk_tree_store_set(long store, long iter, int column, boolean value, int terminator)2744 	public static final native void gtk_tree_store_set(long store, long iter, int column, boolean value, int terminator);
2745 	/**
2746 	 * @param view cast=(GtkTreeView *)
2747 	 * @param path cast=(GtkTreePath *)
2748 	 */
gtk_tree_view_create_row_drag_icon(long view, long path)2749 	public static final native long gtk_tree_view_create_row_drag_icon(long view, long path);
2750 	/**
2751 	 * @param view cast=(GtkTreeView *)
2752 	 * @param path cast=(GtkTreePath *)
2753 	 */
gtk_tree_view_collapse_row(long view, long path)2754 	public static final native boolean gtk_tree_view_collapse_row(long view, long path);
2755 	/**
2756 	 * @param treeColumn cast=(GtkTreeViewColumn *)
2757 	 * @param cellRenderer cast=(GtkCellRenderer *)
2758 	 * @param attribute cast=(const gchar *)
2759 	 * @param column cast=(gint)
2760 	 */
gtk_tree_view_column_add_attribute(long treeColumn, long cellRenderer, byte[] attribute, int column)2761 	public static final native void gtk_tree_view_column_add_attribute(long treeColumn, long cellRenderer, byte[] attribute, int column);
2762 	/**
2763 	 * @param tree_column cast=(GtkTreeViewColumn *)
2764 	 * @param cell_renderer cast=(GtkCellRenderer *)
2765 	 * @param start_pos cast=(gint *)
2766 	 * @param width cast=(gint *)
2767 	 */
gtk_tree_view_column_cell_get_position(long tree_column, long cell_renderer, int[] start_pos, int[] width)2768 	public static final native boolean gtk_tree_view_column_cell_get_position(long tree_column, long cell_renderer, int[] start_pos, int[] width);
2769 	/**
2770 	 * @param tree_column cast=(GtkTreeViewColumn *)
2771 	 * @param cell_area cast=(GdkRectangle *),flags=no_in
2772 	 * @param x_offset cast=(gint *)
2773 	 * @param y_offset cast=(gint *)
2774 	 * @param width cast=(gint *)
2775 	 * @param height cast=(gint *)
2776 	 */
gtk_tree_view_column_cell_get_size(long tree_column, GdkRectangle cell_area, int[] x_offset, int[] y_offset, int[] width, int[] height)2777 	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);
2778 	/**
2779 	 * @param tree_column cast=(GtkTreeViewColumn *)
2780 	 * @param tree_model cast=(GtkTreeModel *)
2781 	 * @param iter cast=(GtkTreeIter *)
2782 	 */
gtk_tree_view_column_cell_set_cell_data(long tree_column, long tree_model, long iter, boolean is_expander, boolean is_expanded)2783 	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);
2784 	/** @param tree_column cast=(GtkTreeViewColumn *) */
gtk_tree_view_column_clear(long tree_column)2785 	public static final native void gtk_tree_view_column_clear(long tree_column);
2786 	/**
2787 	 * @param column cast=(GtkTreeViewColumn *)
2788 	 */
gtk_tree_view_column_get_button(long column)2789 	public static final native long gtk_tree_view_column_get_button(long column);
2790 	/** @param column cast=(GtkTreeViewColumn *) */
gtk_tree_view_column_get_fixed_width(long column)2791 	public static final native int gtk_tree_view_column_get_fixed_width(long column);
2792 	/** @param column cast=(GtkTreeViewColumn *) */
gtk_tree_view_column_get_reorderable(long column)2793 	public static final native boolean gtk_tree_view_column_get_reorderable(long column);
2794 	/** @param column cast=(GtkTreeViewColumn *) */
gtk_tree_view_column_get_resizable(long column)2795 	public static final native boolean gtk_tree_view_column_get_resizable(long column);
2796 	/** @param column cast=(GtkTreeViewColumn *) */
gtk_tree_view_column_get_visible(long column)2797 	public static final native boolean gtk_tree_view_column_get_visible(long column);
2798 	/** @param column cast=(GtkTreeViewColumn *) */
gtk_tree_view_column_get_width(long column)2799 	public static final native int gtk_tree_view_column_get_width(long column);
gtk_tree_view_column_new()2800 	public static final native long gtk_tree_view_column_new();
2801 	/**
2802 	 * @param tree_column cast=(GtkTreeViewColumn *)
2803 	 * @param cell_renderer cast=(GtkCellRenderer *)
2804 	 * @param expand cast=(gboolean)
2805 	 */
gtk_tree_view_column_pack_start(long tree_column, long cell_renderer, boolean expand)2806 	public static final native void gtk_tree_view_column_pack_start(long tree_column, long cell_renderer, boolean expand);
2807 	/**
2808 	 * @param tree_column cast=(GtkTreeViewColumn *)
2809 	 * @param cell_renderer cast=(GtkCellRenderer *)
2810 	 * @param expand cast=(gboolean)
2811 	 */
gtk_tree_view_column_pack_end(long tree_column, long cell_renderer, boolean expand)2812 	public static final native void gtk_tree_view_column_pack_end(long tree_column, long cell_renderer, boolean expand);
2813 	/** @param tree_column cast=(GtkTreeViewColumn *) */
gtk_tree_view_column_set_alignment(long tree_column, float xalign)2814 	public static final native void gtk_tree_view_column_set_alignment(long tree_column, float xalign);
2815 	/**
2816 	 * @param tree_column cast=(GtkTreeViewColumn *)
2817 	 * @param cell_renderer cast=(GtkCellRenderer *)
2818 	 * @param func cast=(GtkTreeCellDataFunc)
2819 	 * @param func_data cast=(gpointer)
2820 	 * @param destroy cast=(GDestroyNotify)
2821 	 */
gtk_tree_view_column_set_cell_data_func(long tree_column, long cell_renderer, long func, long func_data, long destroy)2822 	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);
2823 	/**
2824 	 * @param column cast=(GtkTreeViewColumn *)
2825 	 * @param clickable cast=(gboolean)
2826 	 */
gtk_tree_view_column_set_clickable(long column, boolean clickable)2827 	public static final native void gtk_tree_view_column_set_clickable(long column, boolean clickable);
2828 	/**
2829 	 * @param column cast=(GtkTreeViewColumn *)
2830 	 * @param fixed_width cast=(gint)
2831 	 */
gtk_tree_view_column_set_fixed_width(long column, int fixed_width)2832 	public static final native void gtk_tree_view_column_set_fixed_width(long column, int fixed_width);
2833 	/**
2834 	 * @param tree_column cast=(GtkTreeViewColumn *)
2835 	 * @param min_width cast=(gint)
2836 	 */
gtk_tree_view_column_set_min_width(long tree_column, int min_width)2837 	public static final native void gtk_tree_view_column_set_min_width(long tree_column, int min_width);
2838 	/**
2839 	 * @param column cast=(GtkTreeViewColumn *)
2840 	 * @param reorderable cast=(gboolean)
2841 	 */
gtk_tree_view_column_set_reorderable(long column, boolean reorderable)2842 	public static final native void gtk_tree_view_column_set_reorderable(long column, boolean reorderable);
2843 	/**
2844 	 * @param column cast=(GtkTreeViewColumn *)
2845 	 * @param resizable cast=(gboolean)
2846 	 */
gtk_tree_view_column_set_resizable(long column, boolean resizable)2847 	public static final native void gtk_tree_view_column_set_resizable(long column, boolean resizable);
2848 	/**
2849 	 * @param column cast=(GtkTreeViewColumn *)
2850 	 * @param type cast=(GtkTreeViewColumnSizing)
2851 	 */
gtk_tree_view_column_set_sizing(long column, int type)2852 	public static final native void gtk_tree_view_column_set_sizing(long column, int type);
2853 	/**
2854 	 * @param tree_column cast=(GtkTreeViewColumn *)
2855 	 * @param setting cast=(gboolean)
2856 	 */
gtk_tree_view_column_set_sort_indicator(long tree_column, boolean setting)2857 	public static final native void gtk_tree_view_column_set_sort_indicator(long tree_column, boolean setting);
2858 	/**
2859 	 * @param tree_column cast=(GtkTreeViewColumn *)
2860 	 * @param order cast=(GtkSortType)
2861 	 */
gtk_tree_view_column_set_sort_order(long tree_column, int order)2862 	public static final native void gtk_tree_view_column_set_sort_order(long tree_column, int order);
2863 	/** @param tree_column cast=(GtkTreeViewColumn *) */
gtk_tree_view_column_set_visible(long tree_column, boolean visible)2864 	public static final native void gtk_tree_view_column_set_visible(long tree_column, boolean visible);
2865 	/**
2866 	 * @param tree_column cast=(GtkTreeViewColumn *)
2867 	 * @param widget cast=(GtkWidget *)
2868 	 */
gtk_tree_view_column_set_widget(long tree_column, long widget)2869 	public static final native void gtk_tree_view_column_set_widget(long tree_column, long widget);
2870 	/**
2871 	 * @param view cast=(GtkTreeView *)
2872 	 * @param path cast=(GtkTreePath *)
2873 	 */
gtk_tree_view_set_drag_dest_row(long view, long path, int pos)2874 	public static final native void gtk_tree_view_set_drag_dest_row(long view, long path, int pos);
2875 	/**
2876 	 * @param view cast=(GtkTreeView *)
2877 	 * @param path cast=(GtkTreePath *)
2878 	 * @param open_all cast=(gboolean)
2879 	 */
gtk_tree_view_expand_row(long view, long path, boolean open_all)2880 	public static final native boolean gtk_tree_view_expand_row(long view, long path, boolean open_all);
2881 	/**
2882 	 * @param tree_view cast=(GtkTreeView *)
2883 	 * @param path cast=(GtkTreePath *)
2884 	 * @param column cast=(GtkTreeViewColumn *)
2885 	 * @param rect cast=(GdkRectangle *)
2886 	 */
gtk_tree_view_get_background_area(long tree_view, long path, long column, GdkRectangle rect)2887 	public static final native void gtk_tree_view_get_background_area(long tree_view, long path, long column, GdkRectangle rect);
2888 	/**
2889 	 * @param tree_view cast=(GtkTreeView *)
2890 	 */
2891 	/* [GTK3 only, if-def'd in os.h] */
gtk_tree_view_get_bin_window(long tree_view)2892 	public static final native long gtk_tree_view_get_bin_window(long tree_view);
2893 	/**
2894 	 * @param tree_view cast=(GtkTreeView *)
2895 	 * @param path cast=(GtkTreePath *)
2896 	 * @param column cast=(GtkTreeViewColumn *)
2897 	 * @param rect cast=(GdkRectangle *),flags=no_in
2898 	 */
gtk_tree_view_get_cell_area(long tree_view, long path, long column, GdkRectangle rect)2899 	public static final native void gtk_tree_view_get_cell_area(long tree_view, long path, long column, GdkRectangle rect);
2900 	/** @param tree_view cast=(GtkTreeView *) */
gtk_tree_view_get_expander_column(long tree_view)2901 	public static final native long gtk_tree_view_get_expander_column(long tree_view);
2902 	/**
2903 	 * @param tree_view cast=(GtkTreeView *)
2904 	 * @param n cast=(gint)
2905 	 */
gtk_tree_view_get_column(long tree_view, int n)2906 	public static final native long gtk_tree_view_get_column(long tree_view, int n);
2907 	/** @param tree_view cast=(GtkTreeView *) */
gtk_tree_view_get_columns(long tree_view)2908 	public static final native long gtk_tree_view_get_columns(long tree_view);
2909 	/**
2910 	 * @param tree_view cast=(GtkTreeView *)
2911 	 * @param path cast=(GtkTreePath **)
2912 	 * @param focus_column cast=(GtkTreeViewColumn **)
2913 	 */
gtk_tree_view_get_cursor(long tree_view, long [] path, long [] focus_column)2914 	public static final native void gtk_tree_view_get_cursor(long tree_view, long [] path, long [] focus_column);
2915 	/** @param tree_view cast=(GtkTreeView *) */
gtk_tree_view_get_headers_visible(long tree_view)2916 	public static final native boolean gtk_tree_view_get_headers_visible(long tree_view);
2917 	/**
2918 	 * @param tree_view cast=(GtkTreeView *)
2919 	 * @param x cast=(gint)
2920 	 * @param y cast=(gint)
2921 	 * @param path cast=(GtkTreePath **)
2922 	 * @param column cast=(GtkTreeViewColumn **)
2923 	 * @param cell_x cast=(gint *)
2924 	 * @param cell_y cast=(gint *)
2925 	 */
gtk_tree_view_get_path_at_pos(long tree_view, int x, int y, long [] path, long [] column, int[] cell_x, int[] cell_y)2926 	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);
2927 	/** @param tree_view cast=(GtkTreeView *) */
gtk_tree_view_get_selection(long tree_view)2928 	public static final native long gtk_tree_view_get_selection(long tree_view);
2929 	/**
2930 	 * @param tree_view cast=(GtkTreeView *)
2931 	 * @param visible_rect flags=no_in
2932 	 */
gtk_tree_view_get_visible_rect(long tree_view, GdkRectangle visible_rect)2933 	public static final native void gtk_tree_view_get_visible_rect(long tree_view, GdkRectangle visible_rect);
2934 	/**
2935 	 * @param tree_view cast=(GtkTreeView *)
2936 	 * @param column cast=(GtkTreeViewColumn *)
2937 	 * @param position cast=(gint)
2938 	 */
gtk_tree_view_insert_column(long tree_view, long column, int position)2939 	public static final native int gtk_tree_view_insert_column(long tree_view, long column, int position);
2940 	/**
2941 	 * @param tree_view cast=(GtkTreeView *)
2942 	 * @param column cast=(GtkTreeViewColumn *)
2943 	 * @param base_column cast=(GtkTreeViewColumn *)
2944 	 */
gtk_tree_view_move_column_after(long tree_view, long column, long base_column)2945 	public static final native void gtk_tree_view_move_column_after(long tree_view, long column, long base_column);
2946 	/** @param model cast=(GtkTreeModel *) */
gtk_tree_view_new_with_model(long model)2947 	public static final native long gtk_tree_view_new_with_model(long model);
2948 	/**
2949 	 * @param tree_view cast=(GtkTreeView *)
2950 	 * @param column cast=(GtkTreeViewColumn *)
2951 	 */
gtk_tree_view_remove_column(long tree_view, long column)2952 	public static final native void gtk_tree_view_remove_column(long tree_view, long column);
2953 	/**
2954 	 * @param view cast=(GtkTreeView *)
2955 	 * @param path cast=(GtkTreePath *)
2956 	 */
gtk_tree_view_row_expanded(long view, long path)2957 	public static final native boolean gtk_tree_view_row_expanded(long view, long path);
2958 	/**
2959 	 * @param tree_view cast=(GtkTreeView *)
2960 	 * @param path cast=(GtkTreePath *)
2961 	 * @param column cast=(GtkTreeViewColumn *)
2962 	 * @param use_align cast=(gboolean)
2963 	 * @param row_aligh cast=(gfloat)
2964 	 * @param column_align cast=(gfloat)
2965 	 */
gtk_tree_view_scroll_to_cell(long tree_view, long path, long column, boolean use_align, float row_aligh, float column_align)2966 	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);
2967 	/**
2968 	 * @param tree_view cast=(GtkTreeView *)
2969 	 * @param tree_x cast=(gint)
2970 	 * @param tree_y cast=(gint)
2971 	 */
gtk_tree_view_scroll_to_point(long tree_view, int tree_x, int tree_y)2972 	public static final native void gtk_tree_view_scroll_to_point(long tree_view, int tree_x, int tree_y);
2973 	/**
2974 	 * @param tree_view cast=(GtkTreeView *)
2975 	 * @param path cast=(GtkTreePath *)
2976 	 * @param focus_column cast=(GtkTreeViewColumn *)
2977 	 */
gtk_tree_view_set_cursor(long tree_view, long path, long focus_column, boolean start_editing)2978 	public static final native void gtk_tree_view_set_cursor(long tree_view, long path, long focus_column, boolean start_editing);
2979 	/**
2980 	 * @param tree_view cast=(GtkTreeView*)
2981 	 * @param grid_lines cast=(GtkTreeViewGridLines)
2982 	 */
gtk_tree_view_set_grid_lines(long tree_view, int grid_lines)2983 	public static final native void gtk_tree_view_set_grid_lines(long tree_view, int grid_lines);
2984 	/**
2985 	 * @param tree_view cast=(GtkTreeView*)
2986 	 */
gtk_tree_view_get_grid_lines(long tree_view)2987 	public static final native int gtk_tree_view_get_grid_lines(long tree_view);
2988 	/**
2989 	 * @param tree_view cast=(GtkTreeView *)
2990 	 * @param visible cast=(gboolean)
2991 	 */
gtk_tree_view_set_headers_visible(long tree_view, boolean visible)2992 	public static final native void gtk_tree_view_set_headers_visible(long tree_view, boolean visible);
2993 	/**
2994 	 * @param tree_view cast=(GtkTreeView *)
2995 	 * @param model cast=(GtkTreeModel *)
2996 	 */
gtk_tree_view_set_model(long tree_view, long model)2997 	public static final native void gtk_tree_view_set_model(long tree_view, long model);
2998 	/**
2999 	 * @param tree_view cast=(GtkTreeView *)
3000 	 * @param column cast=(gint)
3001 	 */
gtk_tree_view_set_search_column(long tree_view, int column)3002 	public static final native void gtk_tree_view_set_search_column(long tree_view, int column);
3003 	/**
3004 	 * @param tree_view cast=(GtkTreeView *)
3005 	 * @param bx cast=(gint)
3006 	 * @param by cast=(gint)
3007 	 * @param tx cast=(gint *)
3008 	 * @param ty cast=(gint *)
3009 	 */
gtk_tree_view_convert_bin_window_to_tree_coords(long tree_view, int bx, int by, int[] tx, int[] ty)3010 	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);
3011 	/**
3012 	 * @param viewport cast=(GtkViewport *)
3013 	 * @param type cast=(GtkShadowType)
3014 	 */
gtk_viewport_set_shadow_type(long viewport, int type)3015 	public static final native void gtk_viewport_set_shadow_type(long viewport, int type);
3016 	/**
3017 	 * @param widget cast=(GtkWidget *)
3018 	 * @param accel_signal cast=(const gchar *)
3019 	 * @param accel_group cast=(GtkAccelGroup *)
3020 	 * @param accel_key cast=(guint)
3021 	 * @param accel_mods cast=(GdkModifierType)
3022 	 */
gtk_widget_add_accelerator(long widget, byte[] accel_signal, long accel_group, int accel_key, int accel_mods, int accel_flags)3023 	public static final native void gtk_widget_add_accelerator(long widget, byte[] accel_signal, long accel_group, int accel_key, int accel_mods, int accel_flags);
3024 	/**
3025 	 * @method flags=dynamic
3026 	 * @param widget cast=(GtkWidget *)
3027 	 * @param events cast=(gint)
3028 	 */
3029 	/* [GTK3 only] */
gtk_widget_add_events(long widget, int events)3030 	public static final native void gtk_widget_add_events(long widget, int events);
3031 	/** @param widget cast=(GtkWidget *) */
gtk_widget_child_focus(long widget, int direction)3032 	public static final native boolean gtk_widget_child_focus(long widget, int direction);
3033 	/**
3034 	 * @param widget cast=(GtkWidget *)
3035 	 * @param text cast=(const gchar *)
3036 	 */
gtk_widget_create_pango_layout(long widget, byte[] text)3037 	public static final native long gtk_widget_create_pango_layout(long widget, byte[] text);
3038 	/**
3039 	 * @param widget cast=(GtkWidget *)
3040 	 * @param text cast=(const gchar *)
3041 	 */
gtk_widget_create_pango_layout(long widget, long text)3042 	public static final native long gtk_widget_create_pango_layout(long widget, long text);
3043 	/** @param widget cast=(GtkWidget *) */
gtk_widget_destroy(long widget)3044 	public static final native void gtk_widget_destroy(long widget);
3045 	/**
3046 	 * @method flags=dynamic
3047 	 * @param widget cast=(GtkWidget *)
3048 	 * @param cr cast=(cairo_t *)
3049 	 */
3050 	/* [GTK3 only] */
gtk_widget_draw(long widget, long cr)3051 	public static final native void gtk_widget_draw(long widget, long cr);
3052 	/**
3053 	 * @param widget cast=(GtkWidget *)
3054 	 * @param event cast=(GdkEvent *)
3055 	 */
gtk_widget_event(long widget, long event)3056 	public static final native boolean gtk_widget_event(long widget, long event);
3057 	/** @param widget cast=(GtkWidget *) */
gtk_widget_get_accessible(long widget)3058 	public static final native long gtk_widget_get_accessible(long widget);
3059 	/** @param widget cast=(GtkWidget *) */
gtk_widget_get_visible(long widget)3060 	public static final native boolean gtk_widget_get_visible(long widget);
3061 	/** @param widget cast=(GtkWidget *) */
gtk_widget_get_realized(long widget)3062 	public static final native boolean gtk_widget_get_realized(long widget);
3063 	/**
3064 	 * @param widget cast=(GtkWidget *)
3065 	 */
3066 	/* [GTK3 only, if-def'd in os.h] */
gtk_widget_get_has_window(long widget)3067 	public static final native boolean gtk_widget_get_has_window(long widget);
3068 	/**
3069 	 * @param widget cast=(GtkWidget *)
3070 	 */
3071 	/* [GTK4 only, if-def'd in os.h] */
gtk_widget_get_has_surface(long widget)3072 	public static final native boolean gtk_widget_get_has_surface(long widget);
3073 	/** @param widget cast=(GtkWidget *) */
gtk_widget_get_can_default(long widget)3074 	public static final native boolean gtk_widget_get_can_default(long widget);
3075 	/** @param widget cast=(GtkWidget *) */
gtk_widget_get_child_visible(long widget)3076 	public static final native boolean gtk_widget_get_child_visible(long widget);
3077 	/**
3078 	 * @method flags=dynamic
3079 	 * @param widget cast=(GtkWidget *)
3080 	 */
3081 	/* [GTK3 only] */
gtk_widget_get_events(long widget)3082 	public static final native int gtk_widget_get_events(long widget);
3083 	/**
3084 	 * @method flags=dynamic
3085 	 * @param widget cast=(GtkWidget *)
3086 	 */
3087 	/* [GTK3 only] */
gtk_widget_get_window(long widget)3088 	public static final native long gtk_widget_get_window(long widget);
3089 	/**
3090 	 * @method flags=dynamic
3091 	 * @param widget cast=(GtkWidget *)
3092 	 */
3093 	/* [GTK4 only] */
gtk_widget_get_surface(long widget)3094 	public static final native long gtk_widget_get_surface(long widget);
3095 	/**
3096 	 * @method flags=dynamic
3097 	 * @param widget cast=(GtkWidget *)
3098 	 */
gtk_widget_get_margin_start(long widget)3099 	public static final native int gtk_widget_get_margin_start(long widget);
3100 	/**
3101 	 * @method flags=dynamic
3102 	 * @param widget cast=(GtkWidget *)
3103 	 */
gtk_widget_get_margin_end(long widget)3104 	public static final native int gtk_widget_get_margin_end(long widget);
3105 	/**
3106 	 * @method flags=dynamic
3107 	 * @param widget cast=(GtkWidget *)
3108 	 */
gtk_widget_get_margin_top(long widget)3109 	public static final native int gtk_widget_get_margin_top(long widget);
3110 	/**
3111 	 * @method flags=dynamic
3112 	 * @param widget cast=(GtkWidget *)
3113 	 */
gtk_widget_get_margin_bottom(long widget)3114 	public static final native int gtk_widget_get_margin_bottom(long widget);
3115 	/** @param widget cast=(GtkWidget *)  */
gtk_widget_get_mapped(long widget)3116 	public static final native boolean gtk_widget_get_mapped(long widget);
3117 	/** @param widget cast=(GtkWidget *) */
gtk_widget_get_pango_context(long widget)3118 	public static final native long gtk_widget_get_pango_context(long widget);
3119 	/** @param widget cast=(GtkWidget *) */
gtk_widget_get_parent(long widget)3120 	public static final native long gtk_widget_get_parent(long widget);
3121 	/**
3122 	 * @method flags=dynamic
3123 	 * @param widget cast=(GtkWidget *)
3124 	 */
gtk_widget_get_parent_window(long widget)3125 	public static final native long gtk_widget_get_parent_window(long widget);
3126 	/**
3127 	 * @method flags=dynamic
3128 	 * @param widget cast=(GtkWidget *)
3129 	 */
gtk_widget_get_parent_surface(long widget)3130 	public static final native long gtk_widget_get_parent_surface(long widget);
3131 	/**
3132 	 * @param widget cast=(GtkWidget *)
3133 	 * @param allocation cast=(GtkAllocation *),flags=no_in
3134 	 * */
gtk_widget_get_allocation(long widget, GtkAllocation allocation)3135 	public static final native void gtk_widget_get_allocation(long widget, GtkAllocation allocation);
3136 	/**
3137 	 * @param context cast=(GtkStyleContext *)
3138 	 * @param cr cast=(cairo_t *)
3139 	 * @param x cast=(gdouble)
3140 	 * @param y cast=(gdouble)
3141 	 * @param width cast=(gdouble)
3142 	 * @param height cast=(gdouble)
3143 	 */
gtk_render_handle(long context, long cr, double x , double y, double width, double height)3144 	public static final native void gtk_render_handle(long context, long cr, double x , double y, double width, double height);
3145 	/**
3146 	 * @param widget cast=(GtkWidget *)
3147 	 */
gtk_widget_get_style_context(long widget)3148 	public static final native long gtk_widget_get_style_context(long widget);
3149 	/**
3150 	 * @param widget cast=(GtkWidget *)
3151 	 * @param width cast=(gint *)
3152 	 * @param height cast=(gint *)
3153 	 */
gtk_widget_get_size_request(long widget, int [] width, int [] height)3154 	public static final native void gtk_widget_get_size_request(long widget, int [] width, int [] height);
3155 	/** @param widget cast=(GtkWidget *) */
gtk_widget_get_toplevel(long widget)3156 	public static final native long gtk_widget_get_toplevel(long widget);
3157 	/** @param widget cast=(GtkWidget *) */
gtk_widget_get_tooltip_text(long widget)3158 	public static final native long gtk_widget_get_tooltip_text(long widget);
3159 	/** @param widget cast=(GtkWidget *) */
gtk_widget_grab_focus(long widget)3160 	public static final native void gtk_widget_grab_focus(long widget);
3161 	/** @param widget cast=(GtkWidget *) */
gtk_widget_has_focus(long widget)3162 	public static final native boolean gtk_widget_has_focus(long widget);
3163 	/** @param widget cast=(GtkWidget *) */
gtk_widget_hide(long widget)3164 	public static final native void gtk_widget_hide(long widget);
3165 	/**
3166 	 * @param widget cast=(GtkWidget *)
3167 	 * @param region cast=(cairo_region_t *)
3168 	 */
gtk_widget_input_shape_combine_region(long widget, long region)3169 	public static final native void gtk_widget_input_shape_combine_region(long widget, long region);
3170 	/** @param widget cast=(GtkWidget *) */
gtk_widget_is_focus(long widget)3171 	public static final native boolean gtk_widget_is_focus(long widget);
3172 	/**
3173 	 * @param widget cast=(GtkWidget *)
3174 	 * @param orientation cast=(GtkOrientation)
3175 	 * @param for_size cast=(int)
3176 	 * @param minimum cast=(int *)
3177 	 * @param natural cast=(int *)
3178 	 * @param minimum_baseline cast=(int *)
3179 	 * @param natural_baseline cast=(int *)
3180 	 */
3181 	/* [GTK4 only, if-def'd in os.h] */
gtk_widget_measure(long widget, int orientation, int for_size, int[] minimum, int[] natural, int[] minimum_baseline, int[] natural_baseline)3182 	public static final native void gtk_widget_measure(long widget, int orientation, int for_size, int[] minimum, int[] natural, int[] minimum_baseline, int[] natural_baseline);
3183 	/**
3184 	 * @param widget cast=(GtkWidget *)
3185 	 * @param group_cycling cast=(gboolean)
3186 	 */
gtk_widget_mnemonic_activate(long widget, boolean group_cycling)3187 	public static final native boolean gtk_widget_mnemonic_activate(long widget, boolean group_cycling);
3188 	/**
3189 	 * @method flags=dynamic
3190 	 */
3191 	/* [GTK3; 3.16 deprecated] */
gtk_widget_override_font(long widget, long font)3192 	public static final native void gtk_widget_override_font(long widget, long font);
3193 	/** @param widget cast=(GtkWidget *) */
gtk_widget_queue_resize(long widget)3194 	public static final native void gtk_widget_queue_resize(long widget);
3195 	/** @param widget cast=(GtkWidget *) */
gtk_widget_realize(long widget)3196 	public static final native void gtk_widget_realize(long widget);
3197 	/**
3198 	 * @param widget cast=(GtkWidget *)
3199 	 * @param accel_group cast=(GtkAccelGroup *)
3200 	 * @param accel_key cast=(guint)
3201 	 * @param accel_mods cast=(GdkModifierType)
3202 	 */
gtk_widget_remove_accelerator(long widget, long accel_group, int accel_key, int accel_mods)3203 	public static final native void gtk_widget_remove_accelerator(long widget, long accel_group, int accel_key, int accel_mods);
3204 	/**
3205 	 * @method flags=dynamic
3206 	 * @param widget cast=(GtkWidget *)
3207 	 * @param new_parent cast=(GtkWidget *)
3208 	 */
3209 	/* deprecated as of 3.14 */
gtk_widget_reparent(long widget, long new_parent)3210 	public static final native void gtk_widget_reparent(long widget, long new_parent);
3211 	/** @param dir cast=(GtkTextDirection) */
gtk_widget_set_default_direction(int dir)3212 	public static final native void gtk_widget_set_default_direction(int dir);
3213 	/**
3214 	 * @param widget cast=(GtkWidget *)
3215 	 * @param can_default cast=(gboolean)
3216 	 */
gtk_widget_set_can_default(long widget, boolean can_default)3217 	public static final native void gtk_widget_set_can_default(long widget, boolean can_default);
3218 	/** @param widget cast=(GtkWidget *) */
gtk_widget_queue_draw(long widget)3219 	public static final native void gtk_widget_queue_draw(long widget);
3220 	/**
3221 	 * @param widget cast=(GtkWidget *)
3222 	 * @param can_focus cast=(gboolean)
3223 	 */
gtk_widget_set_can_focus(long widget, boolean can_focus)3224 	public static final native void gtk_widget_set_can_focus(long widget, boolean can_focus);
3225 	/**
3226 	 * @param widget cast=(GtkWidget *)
3227 	 * @param cursor cast=(GdkCursor *)
3228 	 */
3229 	/* [GTK4 only, if-def'd in os.h] */
gtk_widget_set_cursor(long widget, long cursor)3230 	public static final native void gtk_widget_set_cursor(long widget, long cursor);
3231 	/**
3232 	 * @param widget cast=(GtkWidget *)
3233 	 * @param visible cast=(gboolean)
3234 	 */
gtk_widget_set_visible(long widget, boolean visible)3235 	public static final native void gtk_widget_set_visible(long widget, boolean visible);
3236 	/**
3237 	 * @param widget cast=(GtkWidget *)
3238 	 * @param dir cast=(GtkTextDirection)
3239 	 */
gtk_widget_set_direction(long widget, int dir)3240 	public static final native void gtk_widget_set_direction(long widget, int dir);
3241 	/**
3242 	 * @param widget cast=(GtkWidget *)
3243 	 * @param receives_default cast=(gboolean)
3244 	 */
gtk_widget_set_receives_default(long widget, boolean receives_default)3245 	public static final native void gtk_widget_set_receives_default(long widget, boolean receives_default);
3246 	/**
3247 	 * @method flags=dynamic
3248 	 * @param widget cast=(GtkWidget *)
3249 	 * @param double_buffered cast=(gboolean)
3250 	 */
3251 	/* [GTK3 only; 3.14 deprecated] */
gtk_widget_set_double_buffered(long widget, boolean double_buffered)3252 	public static final native void gtk_widget_set_double_buffered(long widget, boolean double_buffered);
3253 	/**
3254 	 * @method flags=dynamic
3255 	 * @param widget cast=(GtkWidget *)
3256 	 * @param val cast=(gboolean)
3257 	 */
gtk_widget_set_focus_on_click(long widget, boolean val)3258 	public static final native void gtk_widget_set_focus_on_click(long widget, boolean val);
3259 	/**
3260 	 * @method flags=dynamic
3261 	 * @param widget cast=(GtkWidget *)
3262 	 */
gtk_widget_set_opacity(long widget, double opacity)3263 	public static final native void gtk_widget_set_opacity(long widget, double opacity);
3264 	/**
3265 	 * @method flags=dynamic
3266 	 * @param widget cast=(GtkWidget *)
3267 	 */
gtk_widget_get_opacity(long widget)3268 	public static final native double gtk_widget_get_opacity(long widget);
3269 	/**
3270 	 * @method flags=dynamic
3271 	 * @param widget cast=(GtkWidget *)
3272 	 * @param redraw cast=(gboolean)
3273 	 */
3274 	/* [GTK3 only] */
gtk_widget_set_redraw_on_allocate(long widget, boolean redraw)3275 	public static final native void gtk_widget_set_redraw_on_allocate(long widget, boolean redraw);
3276 	/**
3277 	 * @param widget cast=(GtkWidget *)
3278 	 * @param sensitive cast=(gboolean)
3279 	 */
gtk_widget_set_sensitive(long widget, boolean sensitive)3280 	public static final native void gtk_widget_set_sensitive(long widget, boolean sensitive);
3281 	/**
3282 	 * @param widget cast=(GtkWidget *)
3283 	 * @param width cast=(gint)
3284 	 * @param height cast=(gint)
3285 	 */
gtk_widget_set_size_request(long widget, int width, int height)3286 	public static final native void gtk_widget_set_size_request(long widget, int width, int height);
3287 	/** @param widget cast=(GtkWidget *) */
gtk_widget_show(long widget)3288 	public static final native void gtk_widget_show(long widget);
3289 	/**
3290 	 * @method flags=dynamic
3291 	 * @param widget cast=(GtkWidget *)
3292 	 * @param allocation cast=(GtkAllocation *),flags=no_out
3293 	 */
3294 	/* [GTK3 only, if-def'd in os.h] */
gtk_widget_size_allocate(long widget, GtkAllocation allocation)3295 	public static final native void gtk_widget_size_allocate(long widget, GtkAllocation allocation);
3296 	/**
3297 	 * @method flags=dynamic
3298 	 * @param widget cast=(GtkWidget *)
3299 	 * @param allocation cast=(GtkAllocation *),flags=no_out
3300 	 */
3301 	/* [GTK4 only, if-def'd in os.h] */
gtk_widget_size_allocate(long widget, GtkAllocation allocation, int baseline)3302 	public static final native void gtk_widget_size_allocate(long widget, GtkAllocation allocation, int baseline);
3303 	/**
3304 	 * @method flags=dynamic
3305 	 * @param widget cast=(GtkWidget *)
3306 	 * @param allocation cast=(GtkAllocation *),flags=no_out
3307 	 */
3308 	/* [GTK3 only] */
gtk_widget_set_allocation(long widget, GtkAllocation allocation)3309 	public static final native void gtk_widget_set_allocation(long widget, GtkAllocation allocation);
3310 	/**
3311 	 * @param widget cast=(GtkWidget *)
3312 	 * @param property_name cast=(const gchar *)
3313 	 * @param terminator cast=(const gchar *),flags=sentinel
3314 	 */
3315 	/* [GTK3 only, if-def'd in os.h] */
gtk_widget_style_get(long widget, byte[] property_name, int[] value, long terminator)3316 	public static final native void gtk_widget_style_get(long widget, byte[] property_name, int[] value, long terminator);
3317 	/**
3318 	 * @param widget cast=(GtkWidget *)
3319 	 * @param property_name cast=(const gchar *)
3320 	 * @param terminator cast=(const gchar *),flags=sentinel
3321 	 */
3322 	/* [GTK3 only, if-def'd in os.h] */
gtk_widget_style_get(long widget, byte[] property_name, long[] value, long terminator)3323 	public static final native void gtk_widget_style_get(long widget, byte[] property_name, long[] value, long terminator);
3324 	/**
3325 	 * @param src_widget cast=(GtkWidget *)
3326 	 * @param dest_widget cast=(GtkWidget *)
3327 	 * @param dest_x cast=(gint *)
3328 	 * @param dest_y cast=(gint *)
3329 	 */
gtk_widget_translate_coordinates(long src_widget, long dest_widget, int src_x, int src_y, int[] dest_x, int[] dest_y)3330 	public static final native boolean gtk_widget_translate_coordinates(long src_widget, long dest_widget, int src_x, int src_y, int[] dest_x, int[] dest_y);
3331 	/** @param window cast=(GtkWindow *) */
gtk_window_activate_default(long window)3332 	public static final native boolean gtk_window_activate_default(long window);
3333 	/**
3334 	 * @param window cast=(GtkWindow *)
3335 	 * @param accel_group cast=(GtkAccelGroup *)
3336 	 */
gtk_window_add_accel_group(long window, long accel_group)3337 	public static final native void gtk_window_add_accel_group(long window, long accel_group);
3338 	/** @param handle cast=(GtkWindow *) */
gtk_window_deiconify(long handle)3339 	public static final native void gtk_window_deiconify(long handle);
3340 	/** @param window cast=(GtkWindow *) */
gtk_window_get_focus(long window)3341 	public static final native long gtk_window_get_focus(long window);
3342 	/**
3343 	 * @param window cast=(GtkWindow *)
3344 	 */
gtk_window_get_group(long window)3345 	public static final native long gtk_window_get_group(long window);
3346 	/** @param window cast=(GtkWindow *) */
gtk_window_get_icon_list(long window)3347 	public static final native long gtk_window_get_icon_list(long window);
3348 	/** @param window cast=(GtkWindow *) */
gtk_window_get_modal(long window)3349 	public static final native boolean gtk_window_get_modal(long window);
3350 	/** @param window cast=(GtkWindow *) */
gtk_window_get_mnemonic_modifier(long window)3351 	public static final native int gtk_window_get_mnemonic_modifier(long window);
3352 	/**
3353 	 * @param handle cast=(GtkWindow *)
3354 	 * @param x cast=(gint *)
3355 	 * @param y cast=(gint *)
3356 	 */
gtk_window_get_position(long handle, int[] x, int[] y)3357 	public static final native void gtk_window_get_position(long handle, int[] x, int[] y);
3358 	/**
3359 	 * @param group cast=(GtkWindowGroup*)
3360 	 * @param window cast=(GtkWindow*)
3361 	 */
gtk_window_group_add_window(long group, long window)3362 	public static final native void gtk_window_group_add_window(long group, long window);
3363 	/**
3364 	 * @param group cast=(GtkWindowGroup*)
3365 	 * @param window cast=(GtkWindow*)
3366 	 */
gtk_window_group_remove_window(long group, long window)3367 	public static final native void gtk_window_group_remove_window(long group, long window);
gtk_window_group_new()3368 	public static final native long gtk_window_group_new();
3369 	/** @param handle cast=(GtkWindow *) */
gtk_window_is_active(long handle)3370 	public static final native boolean gtk_window_is_active(long handle);
3371 	/** @param handle cast=(GtkWindow *) */
gtk_window_iconify(long handle)3372 	public static final native void gtk_window_iconify(long handle);
gtk_window_list_toplevels()3373 	public static final native long gtk_window_list_toplevels();
3374 	/** @param handle cast=(GtkWindow *) */
gtk_window_maximize(long handle)3375 	public static final native void gtk_window_maximize(long handle);
3376 	/** @param handle cast=(GtkWindow *) */
gtk_window_fullscreen(long handle)3377 	public static final native void gtk_window_fullscreen(long handle);
3378 	/** @param handle cast=(GtkWindow *) */
gtk_window_unfullscreen(long handle)3379 	public static final native void gtk_window_unfullscreen(long handle);
3380 	/**
3381 	 * @param handle cast=(GtkWindow *)
3382 	 * @param x cast=(gint)
3383 	 * @param y cast=(gint)
3384 	 */
gtk_window_move(long handle, int x, int y)3385 	public static final native void gtk_window_move(long handle, int x, int y);
3386 	/** @param type cast=(GtkWindowType) */
gtk_window_new(int type)3387 	public static final native long gtk_window_new(int type);
3388 	/**
3389 	 * @param window cast=(GtkWindow *)
3390 	 * @param accel_group cast=(GtkAccelGroup *)
3391 	 */
gtk_window_remove_accel_group(long window, long accel_group)3392 	public static final native void gtk_window_remove_accel_group(long window, long accel_group);
3393 	/**
3394 	 * @param handle cast=(GtkWindow *)
3395 	 * @param x cast=(gint)
3396 	 * @param y cast=(gint)
3397 	 */
gtk_window_resize(long handle, int x, int y)3398 	public static final native void gtk_window_resize(long handle, int x, int y);
3399 	/**
3400 	 * @param handle cast=(GtkWindow *)
3401 	 * @param width cast=(gint *)
3402 	 * @param height cast=(gint *)
3403 	 */
gtk_window_get_size(long handle, int[] width, int[] height)3404 	public static final native void gtk_window_get_size(long handle, int[] width, int[] height);
3405 	/**
3406 	 * @param window cast=(GtkWindow *)
3407 	 * @param attach_widget cast=(GtkWidget *)
3408 	 */
gtk_window_set_attached_to(long window, long attach_widget)3409 	public static final native void gtk_window_set_attached_to(long window, long attach_widget);
3410 	/**
3411 	 * @param window cast=(GtkWindow *)
3412 	 * @param widget cast=(GtkWidget *)
3413 	 */
gtk_window_set_default(long window, long widget)3414 	public static final native void gtk_window_set_default(long window, long widget);
3415 	/**
3416 	 * @param window cast=(GtkWindow *)
3417 	 * @param decorated cast=(gboolean)
3418 	 */
gtk_window_set_decorated(long window, boolean decorated)3419 	public static final native void gtk_window_set_decorated(long window, boolean decorated);
3420 	/**
3421 	 * @param window cast=(GtkWindow *)
3422 	 * @param setting cast=(gboolean)
3423 	 */
gtk_window_set_destroy_with_parent(long window, boolean setting)3424 	public static final native void gtk_window_set_destroy_with_parent(long window, boolean setting);
3425 	/**
3426 	 * @param window cast=(GtkWindow *)
3427 	 * @param geometry_widget cast=(GtkWidget *)
3428 	 * @param geometry flags=no_out
3429 	 */
3430 	/* [GTK3 only, if-def'd in os.h] */
gtk_window_set_geometry_hints(long window, long geometry_widget, GdkGeometry geometry, int geom_mask)3431 	public static final native void gtk_window_set_geometry_hints(long window, long geometry_widget, GdkGeometry geometry, int geom_mask);
3432 	/**
3433 	 * @param window cast=(GtkWindow *)
3434 	 * @param list cast=(GList *)
3435 	 */
gtk_window_set_icon_list(long window, long list)3436 	public static final native void gtk_window_set_icon_list(long window, long list);
3437 	/**
3438 	 * @param window cast=(GtkWindow *)
3439 	 * @param setting cast=(gboolean)
3440 	 */
gtk_window_set_keep_above(long window, boolean setting)3441 	public static final native void gtk_window_set_keep_above(long window, boolean setting);
3442 	/**
3443 	 * @param window cast=(GtkWindow *)
3444 	 * @param modal cast=(gboolean)
3445 	 */
gtk_window_set_modal(long window, boolean modal)3446 	public static final native void gtk_window_set_modal(long window, boolean modal);
3447 	/**
3448 	 * @param widget cast=(GtkWidget *)
3449 	 * @param tip_text cast=(const gchar *)
3450 	 */
gtk_widget_set_tooltip_text(long widget, byte[] tip_text)3451 	public static final native void gtk_widget_set_tooltip_text(long widget, byte[] tip_text);
3452 	/**
3453 	 * @param widget cast=(GtkWidget *)
3454 	 * @param parent_window cast=(GdkWindow *)
3455 	 */
3456 	/* [GTK3 only, if-def'd in os.h] */
gtk_widget_set_parent_window(long widget, long parent_window)3457 	public static final native void gtk_widget_set_parent_window(long widget, long parent_window);
3458 	/**
3459 	 * @param widget cast=(GtkWidget *)
3460 	 * @param parent_surface cast=(GdkSurface *)
3461 	 */
3462 	/* [GTK4 only, if-def'd in os.h] */
gtk_widget_set_parent_surface(long widget, long parent_surface)3463 	public static final native void gtk_widget_set_parent_surface(long widget, long parent_surface);
3464 	/**
3465 	 * @param window cast=(GtkWindow *)
3466 	 * @param resizable cast=(gboolean)
3467 	 */
gtk_window_set_resizable(long window, boolean resizable)3468 	public static final native void gtk_window_set_resizable(long window, boolean resizable);
3469 	/**
3470 	 * @param window cast=(GtkWindow *)
3471 	 * @param title cast=(const gchar *)
3472 	 */
gtk_window_set_title(long window, byte[] title)3473 	public static final native void gtk_window_set_title(long window, byte[] title);
3474 	/**
3475 	 * @param window cast=(GtkWindow *)
3476 	 * @param skips_taskbar cast=(gboolean)
3477 	 */
gtk_window_set_skip_taskbar_hint(long window, boolean skips_taskbar)3478 	public static final native void gtk_window_set_skip_taskbar_hint(long window, boolean skips_taskbar);
3479 	/** @param window cast=(GtkWindow *) */
gtk_window_set_type_hint(long window, int hint)3480 	public static final native void gtk_window_set_type_hint(long window, int hint);
3481 	/**
3482 	 * @param window cast=(GtkWindow *)
3483 	 * @param parent cast=(GtkWindow *)
3484 	 */
gtk_window_set_transient_for(long window, long parent)3485 	public static final native void gtk_window_set_transient_for(long window, long parent);
3486 	/** @param handle cast=(GtkWindow *) */
gtk_window_unmaximize(long handle)3487 	public static final native void gtk_window_unmaximize(long handle);
3488 	/** @method flags=dynamic */
gtk_printer_option_widget_get_type()3489 	public static final native long gtk_printer_option_widget_get_type();
3490 	/**
3491 	 * @method flags=dynamic
3492 	 * @param widget cast=(GtkWidget *)
3493 	 * @param region cast=(cairo_region_t *)
3494 	 */
3495 	/* [GTK3 only] */
gtk_widget_shape_combine_region(long widget, long region)3496 	public static final native void gtk_widget_shape_combine_region(long widget, long region);
3497 	/**
3498 	 * @param widget cast=(GtkWidget *)
3499 	 * @param child cast=(GtkWidget *)
3500 	 * @param snapshot cast=(GtkSnapshot *)
3501 	 */
3502 	/* [GTK4 only, if-def'd in os.h] */
gtk_widget_snapshot_child(long widget, long child, long snapshot)3503 	public static final native void gtk_widget_snapshot_child(long widget, long child, long snapshot);
3504 }
3505