1 /*******************************************************************************
2  * Copyright (c) 2018, 2020 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 GDK 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 GDK extends OS {
23 
24 	/** Constants */
25 	public static final int GDK_2BUTTON_PRESS = 0x5;
26 	public static final int GDK_3BUTTON_PRESS = 0x6;
27 	public static final int GDK_ACTION_COPY = 1 << 1;
28 	public static final int GDK_ACTION_MOVE = 1 << 2;
29 	public static final int GDK_ACTION_LINK = 1 << 3;
30 	public static final int GDK_Alt_L = 0xffe9;
31 	public static final int GDK_Alt_R = 0xffea;
32 	public static final int GDK_BackSpace = 0xff08;
33 	public static final int GDK_BUTTON1_MASK = 0x100;
34 	public static final int GDK_BUTTON2_MASK = 0x200;
35 	public static final int GDK_BUTTON3_MASK = 0x400;
36 	public static final int GDK_BUTTON_MOTION_MASK	= 1 << 4;
37 	public static final int GDK_BUTTON1_MOTION_MASK	= 1 << 5;
38 	public static final int GDK_BUTTON2_MOTION_MASK	= 1 << 6;
39 	public static final int GDK_BUTTON3_MOTION_MASK	= 1 << 7;
40 	public static final int GDK_BUTTON_PRESS = 0x4;
41 	public static final int GDK_BUTTON_PRESS_MASK = 0x100;
42 	public static final int GDK_BUTTON_RELEASE = 0x7;
43 	public static final int GDK_BUTTON_RELEASE_MASK = 0x200;
44 	public static final int GDK_COLORSPACE_RGB = 0;
45 	public static final int GDK_CONFIGURE = 13;
46 	public static final int GDK_CONTROL_MASK = 0x4;
47 	public static final int GDK_CROSSING_NORMAL = 0;
48 	public static final int GDK_CROSSING_GRAB = 1;
49 	public static final int GDK_CROSSING_UNGRAB = 2;
50 	public static final int GDK_Break = 0xff6b;
51 	public static final int GDK_Caps_Lock = 0xffE5;
52 	public static final int GDK_Control_L = 0xffe3;
53 	public static final int GDK_Control_R = 0xffe4;
54 	public static final int GDK_CURRENT_TIME = 0x0;
55 	public static final int GDK_DECOR_BORDER = 0x2;
56 	public static final int GDK_DECOR_MAXIMIZE = 0x40;
57 	public static final int GDK_DECOR_MENU = 0x10;
58 	public static final int GDK_DECOR_MINIMIZE = 0x20;
59 	public static final int GDK_DECOR_RESIZEH = 0x4;
60 	public static final int GDK_DECOR_TITLE = 0x8;
61 	public static final int GDK_Delete = 0xffff;
62 	public static final int GDK_Down = 0xff54;
63 	public static final int GDK_ENTER_NOTIFY_MASK = 0x1000;
64 	public static final int GDK_ENTER_NOTIFY = 10;
65 	public static final int GDK_EVEN_ODD_RULE = 0;
66 	public static final int GDK_EXPOSE = 2;
67 	public static final int GDK_EXPOSURE_MASK = 0x2;
68 	public static final int GDK_End = 0xff57;
69 	public static final int GDK_Escape = 0xff1b;
70 	public static final int GDK_ISO_Enter = 0xfe34;
71 	public static final int GDK_F1 = 0xffbe;
72 	public static final int GDK_F10 = 0xffc7;
73 	public static final int GDK_F11 = 0xffc8;
74 	public static final int GDK_F12 = 0xffc9;
75 	public static final int GDK_F13 = 0xffca;
76 	public static final int GDK_F14 = 0xffcb;
77 	public static final int GDK_F15 = 0xffcc;
78 	public static final int GDK_F16 = 0xffcd;
79 	public static final int GDK_F17 = 0xffce;
80 	public static final int GDK_F18 = 0xffcf;
81 	public static final int GDK_F19 = 0xffd0;
82 	public static final int GDK_F20 = 0xffd1;
83 	public static final int GDK_F2 = 0xffbf;
84 	public static final int GDK_F3 = 0xffc0;
85 	public static final int GDK_F4 = 0xffc1;
86 	public static final int GDK_F5 = 0xffc2;
87 	public static final int GDK_F6 = 0xffc3;
88 	public static final int GDK_F7 = 0xffc4;
89 	public static final int GDK_F8 = 0xffc5;
90 	public static final int GDK_F9 = 0xffc6;
91 	public static final int GDK_KEY_a = 0x061;
92 	public static final int GDK_KEY_z = 0x07a;
93 	public static final int GDK_FOCUS_CHANGE = 0xc;
94 	public static final int GDK_FOCUS_CHANGE_MASK = 0x4000;
95 	public static final int GDK_FUNC_ALL = 1;
96 	public static final int GDK_FUNC_RESIZE = 2;
97 	public static final int GDK_FUNC_MOVE = 4;
98 	public static final int GDK_FUNC_MINIMIZE = 8;
99 	public static final int GDK_FUNC_MAXIMIZE = 16;
100 	public static final int GDK_FUNC_CLOSE = 32;
101 	public static final int GDK_GRAB_SUCCESS = 0x0;
102 	public static final int GDK_GRAVITY_NORTH_WEST = 1;
103 	public static final int GDK_Help = 0xFF6A;
104 	public static final int GDK_HINT_MIN_SIZE = 1 << 1;
105 	public static final int GDK_Home = 0xff50;
106 	public static final int GDK_INPUT_ONLY = 1;
107 	public static final int GDK_INTERP_BILINEAR = 0x2;
108 	public static final int GDK_Insert = 0xff63;
109 	public static final int GDK_ISO_Left_Tab = 0xfe20;
110 	public static final int GDK_ISO_Level3_Shift = 0xfe03;
111 	public static final int GDK_KEY_PRESS = 0x8;
112 	public static final int GDK_KEY_PRESS_MASK = 0x400;
113 	public static final int GDK_KEY_RELEASE = 0x9;
114 	public static final int GDK_KEY_RELEASE_MASK = 0x800;
115 	public static final int GDK_KP_0 = 0xffb0;
116 	public static final int GDK_KP_1 = 0xffb1;
117 	public static final int GDK_KP_2 = 0xffb2;
118 	public static final int GDK_KP_3 = 0xffb3;
119 	public static final int GDK_KP_4 = 0xffb4;
120 	public static final int GDK_KP_5 = 0xffb5;
121 	public static final int GDK_KP_6 = 0xffb6;
122 	public static final int GDK_KP_7 = 0xffb7;
123 	public static final int GDK_KP_8 = 0xffb8;
124 	public static final int GDK_KP_9 = 0xffb9;
125 	public static final int GDK_KP_Add = 0xffab;
126 	public static final int GDK_KP_Decimal = 0xffae;
127 	public static final int GDK_KP_Delete = 0xFF9F;
128 	public static final int GDK_KP_Divide = 0xffaf;
129 	public static final int GDK_KP_Down = 0xFF99;
130 	public static final int GDK_KP_End = 0xFF9C;
131 	public static final int GDK_KP_Enter = 0xff8d;
132 	public static final int GDK_KP_Equal = 0xffbd;
133 	public static final int GDK_KP_Home = 0xFF95;
134 	public static final int GDK_KP_Insert = 0xFF9E;
135 	public static final int GDK_KP_Left = 0xFF96;
136 	public static final int GDK_KP_Multiply = 0xffaa;
137 	public static final int GDK_KP_Page_Down = 0xFF9B;
138 	public static final int GDK_KP_Page_Up = 0xFF9A;
139 	public static final int GDK_KP_Right = 0xFF98;
140 	public static final int GDK_KP_Subtract = 0xffad;
141 	public static final int GDK_KP_Up = 0xFF97;
142 	public static final int GDK_LEAVE_NOTIFY = 11;
143 	public static final int GDK_LEAVE_NOTIFY_MASK = 0x2000;
144 	public static final int GDK_Linefeed = 0xff0A;
145 	public static final int GDK_Left = 0xff51;
146 	public static final int GDK_Meta_L = 0xFFE7;
147 	public static final int GDK_Meta_R = 0xFFE8;
148 	public static final int GDK_MAP = 14;
149 
150 	/**
151 	 * <p>
152 	 * GDK_MOD1_MASK = usually 'alt' button   			<br>
153 	 * GDK_SUPER_MASK = usually win/cmd button			<br>
154 	 * GDK_HYPER_MASK = usually ctrl button				<br>
155 	 * By 'usually' I mean you should test. In my experience keyboard behaviour can vary.
156 	 * </p>
157 	 *
158 	 * See also:
159 	 * <a href="https://askubuntu.com/questions/19558/what-are-the-meta-super-and-hyper-keys">Stack Overflow post</a>
160 	 */
161 	public static final int GDK_MOD1_MASK = 1 << 3,
162 							GDK_MOD5_MASK = 1 << 7,
163 							GDK_SUPER_MASK = 0x4000000,
164 							GDK_HYPER_MASK = 0x8000000,
165 							GDK_META_MASK = 0x10000000;
166 
167 	public static final int GDK_MOTION_NOTIFY = 0x3;
168 	public static final int GDK_NO_EXPOSE = 30;
169 	public static final int GDK_NONE = 0;
170 	public static final int GDK_Num_Lock = 0xFF7F;
171 	public static final int GDK_OWNERSHIP_NONE = 0;
172 	public static final int GDK_POINTER_MOTION_HINT_MASK = 0x8;
173 	public static final int GDK_POINTER_MOTION_MASK = 0x4;
174 	public static final int GDK_PROPERTY_NOTIFY = 16;
175 	public static final int GDK_PROPERTY_CHANGE_MASK = 1 << 16;
176 	public static final int GDK_Page_Down = 0xff56;
177 	public static final int GDK_Page_Up = 0xff55;
178 	public static final int GDK_Pause = 0xff13;
179 	public static final int GDK_Print = 0xff61;
180 	public static final int GDK_Return = 0xff0d;
181 	public static final int GDK_Right = 0xff53;
182 	public static final int GDK_space = 0x20;
183 	public static final int GDK_SEAT_CAPABILITY_NONE = 0;
184 	public static final int GDK_SEAT_CAPABILITY_POINTER = 1 << 0;
185 	public static final int GDK_SEAT_CAPABILITY_TOUCH = 1 << 1;
186 	public static final int GDK_SEAT_CAPABILITY_TABLET_STYLUS = 1 << 2;
187 	public static final int GDK_SEAT_CAPABILITY_KEYBOARD = 1 << 3;
188 	public static final int GDK_SEAT_CAPABILITY_TABLET_PAD = 1 << 4;
189 	public static final int GDK_SEAT_CAPABILITY_ALL_POINTING = GDK_SEAT_CAPABILITY_POINTER | GDK_SEAT_CAPABILITY_TOUCH | GDK_SEAT_CAPABILITY_TABLET_STYLUS;
190 	public static final int GDK_SEAT_CAPABILITY_ALL = GDK_SEAT_CAPABILITY_ALL_POINTING | GDK_SEAT_CAPABILITY_KEYBOARD;
191 	public static final int GDK_SCROLL_UP = 0;
192 	public static final int GDK_SCROLL_DOWN = 1;
193 	public static final int GDK_SCROLL_LEFT = 2;
194 	public static final int GDK_SCROLL_RIGHT = 3;
195 	public static final int GDK_SCROLL_SMOOTH = 4;
196 	public static final int GDK_SCROLL_MASK = 1 << 21;
197 	public static final int GDK_SMOOTH_SCROLL_MASK = 1 << 23;
198 	public static final int GDK_SELECTION_CLEAR = 17;
199 	public static final int GDK_SELECTION_NOTIFY = 19;
200 	public static final int GDK_SELECTION_REQUEST = 18;
201 	public static final int GDK_SHIFT_MASK = 0x1;
202 	public static final int GDK_SURFACE_STATE_ICONIFIED = 1 << 1;
203 	public static final int GDK_SURFACE_STATE_MAXIMIZED = 1 << 2;
204 	public static final int GDK_SURFACE_STATE_FULLSCREEN = 1 << 4;
205 	public static final int GDK_Shift_L = 0xffe1;
206 	public static final int GDK_Shift_R = 0xffe2;
207 	public static final int GDK_Scroll_Lock = 0xff14;
208 	public static final int GDK_Tab = 0xff09;
209 	public static final int GDK_Up = 0xff52;
210 	public static final int GDK_WINDOW_CHILD = 2;
211 	public static final int GDK_WINDOW_STATE = 32;
212 	public static final int GDK_WINDOW_STATE_WITHDRAWN  = 1 << 0;
213 	public static final int GDK_WINDOW_STATE_ICONIFIED  = 1 << 1;
214 	public static final int GDK_WINDOW_STATE_MAXIMIZED  = 1 << 2;
215 	public static final int GDK_WINDOW_STATE_FULLSCREEN  = 1 << 4;
216 	public static final int GDK_WINDOW_STATE_FOCUSED = 1 << 7;
217 	public static final int GDK_UNMAP = 15;
218 	public static final int GDK_WA_X = 1 << 2;
219 	public static final int GDK_WA_Y = 1 << 3;
220 	public static final int GDK_WA_VISUAL = 1<<5;
221 	public static final int GDK_WINDOW_TYPE_HINT_DIALOG = 1;
222 	public static final int GDK_WINDOW_TYPE_HINT_UTILITY = 5;
223 	public static final int GDK_WINDOW_TYPE_HINT_TOOLTIP = 10;
224 
225 	/** GdkEventType constants are different on GTK4 */
226 	public static final int GDK4_EXPOSE = 3;
227 	public static final int GDK4_MOTION_NOTIFY = 4;
228 	public static final int GDK4_BUTTON_PRESS = 5;
229 	public static final int GDK4_BUTTON_RELEASE = 6;
230 	public static final int GDK4_KEY_PRESS = 7;
231 	public static final int GDK4_KEY_RELEASE = 8;
232 	public static final int GDK4_ENTER_NOTIFY = 9;
233 	public static final int GDK4_LEAVE_NOTIFY = 10;
234 	public static final int GDK4_FOCUS_CHANGE = 11;
235 	public static final int GDK4_CONFIGURE = 12;
236 	public static final int GDK4_MAP = 13;
237 	public static final int GDK4_UNMAP = 14;
238 
239 	/** sizeof(TYPE) for 32/64 bit support */
GdkKeymapKey_sizeof()240 	public static final native int GdkKeymapKey_sizeof();
GdkRGBA_sizeof()241 	public static final native int GdkRGBA_sizeof();
GdkEvent_sizeof()242 	public static final native int GdkEvent_sizeof();
GdkEventButton_sizeof()243 	public static final native int GdkEventButton_sizeof();
GdkEventCrossing_sizeof()244 	public static final native int GdkEventCrossing_sizeof();
GdkEventFocus_sizeof()245 	public static final native int GdkEventFocus_sizeof();
GdkEventKey_sizeof()246 	public static final native int GdkEventKey_sizeof();
GdkEventMotion_sizeof()247 	public static final native int GdkEventMotion_sizeof();
GdkEventWindowState_sizeof()248 	public static final native int GdkEventWindowState_sizeof();
GdkGeometry_sizeof()249 	public static final native int GdkGeometry_sizeof();
GdkRectangle_sizeof()250 	public static final native int GdkRectangle_sizeof();
GdkWindowAttr_sizeof()251 	public static final native int GdkWindowAttr_sizeof();
252 
253 
254 	/** Macros */
255 	/** @param event cast=(GdkEvent *) */
GDK_EVENT_TYPE(long event)256 	public static final native int GDK_EVENT_TYPE(long event);
257 	/** @param event cast=(GdkEventAny *) */
GDK_EVENT_WINDOW(long event)258 	public static final native long GDK_EVENT_WINDOW(long event);
259 	/** @param display cast=(GdkDisplay *) */
GDK_IS_X11_DISPLAY(long display)260 	public static final native boolean GDK_IS_X11_DISPLAY(long display);
261 	/** @method flags=const */
GDK_TYPE_RGBA()262 	public static final native long GDK_TYPE_RGBA();
263 	/** @method flags=const */
GDK_TYPE_PIXBUF()264 	public static final native long GDK_TYPE_PIXBUF();
265 
266 	/** @param gdkdisplay cast=(GdkDisplay *) */
gdk_x11_display_get_xdisplay(long gdkdisplay)267 	public static final native long gdk_x11_display_get_xdisplay(long gdkdisplay);
gdk_x11_get_default_xdisplay()268 	public static final native long gdk_x11_get_default_xdisplay();
269 	/**
270 	 * @method flags=dynamic
271 	 * @param xvisualid cast=(VisualID)
272 	 */
273 	/* [GTK3/GTK4, GTK3 uses GdkScreen but GTK4 uses GdkX11Screen -- method signature otherwise identical] */
gdk_x11_screen_lookup_visual(long screen, int xvisualid)274 	public static final native long gdk_x11_screen_lookup_visual(long screen, int xvisualid);
275 	/**
276 	 * @method flags=dynamic
277 	 */
278 	/* [GTK3/GTK4, GTK3 uses GdkScreen but GTK4 uses GdkX11Screen -- method signature otherwise identical] */
gdk_x11_screen_get_window_manager_name(long screen)279 	public static final native long gdk_x11_screen_get_window_manager_name(long screen);
280 	/**
281 	* @param gdkwindow cast=(GdkWindow *)
282 	*/
283 	/* [GTK3 only, if-def'd in os.h] */
gdk_x11_window_get_xid(long gdkwindow)284 	public static final native long gdk_x11_window_get_xid(long gdkwindow);
285 	/**
286 	* @param surface cast=(GdkSurface *)
287 	*/
288 	/* [GTK4 only, if-def'd in os.h] */
gdk_x11_surface_get_xid(long surface)289 	public static final native long gdk_x11_surface_get_xid(long surface);
290 	/**
291 	 * @param gdkdisplay cast=(GdkDisplay *)
292 	 * @param xid cast=(Window)
293 	 */
294 	/* [GTK3 only, if-def'd in os.h] */
gdk_x11_window_lookup_for_display(long gdkdisplay, long xid)295 	public static final native long gdk_x11_window_lookup_for_display(long gdkdisplay, long xid);
296 	/**
297 	 * @param gdkdisplay cast=(GdkDisplay *)
298 	 * @param xid cast=(Window)
299 	 */
300 	/* [GTK4 only, if-def'd in os.h] */
gdk_x11_surface_lookup_for_display(long gdkdisplay, long xid)301 	public static final native long gdk_x11_surface_lookup_for_display(long gdkdisplay, long xid);
302 	/**
303 	 * @method flags=dynamic
304 	 * @param atom_name cast=(const gchar *),flags=no_out critical
305 	 */
306 	/* [GTK3 only] */
gdk_atom_intern(byte[] atom_name, boolean only_if_exists)307 	public static final native long gdk_atom_intern(byte[] atom_name, boolean only_if_exists);
308 	/** @param atom cast=(GdkAtom) */
309 	/* [GTK3 only, if-def'd in os.h] */
gdk_atom_name(long atom)310 	public static final native long gdk_atom_name(long atom);
311 	/**
312 	 * @param display cast=(GdkDisplay *)
313 	 */
gdk_display_beep(long display)314 	public static final native void gdk_display_beep(long display);
315 	/**
316 	 * @method flags=dynamic
317 	 * @param window cast=(GdkWindow *)
318 	 */
319 	/* [GTK3 only, if-def'd in os.h; 3.22 deprecated, replaced] */
gdk_cairo_create(long window)320 	public static final native long gdk_cairo_create(long window);
321 	/**
322 	 * @param cr cast=(cairo_t *)
323 	 * @param rect cast=(GdkRectangle *),flags=no_in
324 	 */
gdk_cairo_get_clip_rectangle(long cr, GdkRectangle rect)325 	public static final native boolean gdk_cairo_get_clip_rectangle(long cr, GdkRectangle rect);
326 	/**
327 	 * @param cairo cast=(cairo_t *)
328 	 * @param region cast=(cairo_region_t *)
329 	 */
gdk_cairo_region(long cairo, long region)330 	public static final native void gdk_cairo_region(long cairo, long region);
331 	/**
332 	 * @param cairo cast=(cairo_t *)
333 	 * @param rgba cast=(const GdkRGBA *)
334 	 */
gdk_cairo_set_source_rgba(long cairo, GdkRGBA rgba)335 	public static final native void gdk_cairo_set_source_rgba(long cairo, GdkRGBA rgba);
336 	/**
337 	 * @param window cast=(GdkWindow *)
338 	 */
339 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_state(long window)340 	public static final native int gdk_window_get_state(long window);
341 	/**
342 	 * @param window cast=(GdkWindow *)
343 	 */
344 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_width(long window)345 	public static final native int gdk_window_get_width(long window);
346 	/**
347 	 * @param surface cast=(GdkSurface *)
348 	 */
349 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_get_width(long surface)350 	public static final native int gdk_surface_get_width(long surface);
351 	/**
352 	 * @param surface cast=(GdkSurface *)
353 	 */
354 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_get_state(long surface)355 	public static final native int gdk_surface_get_state(long surface);
356 	/**
357 	 * @param window cast=(GdkWindow *)
358 	 */
359 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_visible_region(long window)360 	public static final native long gdk_window_get_visible_region(long window);
361 	/**
362 	 *  @param window cast=(GdkWindow *)
363 	 */
364 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_height(long window)365 	public static final native int gdk_window_get_height(long window);
366 	/**
367 	 *  @param surface cast=(GdkSurface *)
368 	 */
369 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_get_height(long surface)370 	public static final native int gdk_surface_get_height(long surface);
371 	/**
372 	 * @param cairo cast=(cairo_t *)
373 	 * @param pixbuf cast=(const GdkPixbuf *)
374 	 * @param pixbuf_x cast=(gdouble)
375 	 * @param pixbuf_y cast=(gdouble)
376 	 */
gdk_cairo_set_source_pixbuf(long cairo, long pixbuf, double pixbuf_x, double pixbuf_y)377 	public static final native void gdk_cairo_set_source_pixbuf(long cairo, long pixbuf, double pixbuf_x, double pixbuf_y);
378 	/**
379 	 * @param cairo cast=(cairo_t *)
380 	 * @param window cast=(GdkWindow *)
381 	 * @param x cast=(gdouble)
382 	 * @param y cast=(gdouble)
383 	 */
384 	/* [GTK3 only, if-def'd in os.h] */
gdk_cairo_set_source_window(long cairo, long window, int x, int y)385 	public static final native void gdk_cairo_set_source_window(long cairo, long window, int x, int y);
386 	/**
387 	 * @param display cast=(GdkDisplay *)
388 	 * @param cursor_name cast=(const gchar *)
389 	 */
390 	/* [GTK3 only, if-def'd in os.h] */
gdk_cursor_new_from_name(long display, String cursor_name)391 	public static final native long gdk_cursor_new_from_name(long display, String cursor_name);
392 	/**
393 	 * @param cursor_name cast=(const gchar *)
394 	 * @param fallback cast=(GdkCursor *)
395 	 */
396 	/* [GTK4 only, if-def'd in os.h] */
gdk_cursor_new_from_name(String cursor_name, long fallback)397 	public static final native long gdk_cursor_new_from_name(String cursor_name, long fallback);
398 	/**
399 	 * @param display cast=(GdkDisplay *)
400 	 * @param pixbuf cast=(GdkPixbuf *)
401 	 * @param x cast=(gint)
402 	 * @param y cast=(gint)
403 	 */
404 	/* [GTK3 only, if-def'd in os.h] */
gdk_cursor_new_from_pixbuf(long display, long pixbuf, int x, int y)405 	public static final native long gdk_cursor_new_from_pixbuf(long display, long pixbuf, int x, int y);
406 	/**
407 	 * @param texture cast=(GdkTexture *)
408 	 * @param x cast=(gint)
409 	 * @param y cast=(gint)
410 	 * @param fallback cast=(GdkCursor *)
411 	 */
412 	/* [GTK4 only, if-def'd in os.h] */
gdk_cursor_new_from_texture(long texture, int x, int y, long fallback)413 	public static final native long gdk_cursor_new_from_texture(long texture, int x, int y, long fallback);
414 	/**
415 	 * @param device cast=(GdkDevice *)
416 	 * @param screen cast=(GdkScreen *)
417 	 * @param x cast=(gint)
418 	 * @param y cast=(gint)
419 	 */
420 	/* [GTK3 only, if-def'd in os.h] */
gdk_device_warp(long device, long screen, int x, int y)421 	public static final native void gdk_device_warp(long device, long screen, int x, int y);
422 	/**
423 	 * @param device cast=(GdkDevice *)
424 	 * @param x cast=(gint)
425 	 * @param y cast=(gint)
426 	 */
427 	/* [GTK4 only, if-def'd in os.h] */
gdk_device_warp(long device, int x, int y)428 	public static final native void gdk_device_warp(long device, int x, int y);
gdk_display_get_default()429 	public static final native long gdk_display_get_default();
430 	/**
431 	 *  @param display cast=(GdkDisplay *)
432 	 */
gdk_display_get_default_group(long display)433 	public static final native long gdk_display_get_default_group(long display);
434 	/**
435 	 *  @param display cast=(GdkDisplay *)
436 	 */
437 	/* [GTK4 only, if-def'd in os.h] */
gdk_display_get_clipboard(long display)438 	public static final native long gdk_display_get_clipboard(long display);
439 	/**
440 	 *  @param display cast=(GdkDisplay *)
441 	 */
442 	/* [GTK4 only, if-def'd in os.h] */
gdk_display_get_primary_clipboard(long display)443 	public static final native long gdk_display_get_primary_clipboard(long display);
444 	/**
445 	 * @method flags=dynamic
446 	 */
gdk_display_get_default_seat(long display)447 	public static final native long gdk_display_get_default_seat(long display);
448 	/**
449 	 *  @param window cast=(GdkWindow *)
450 	 */
451 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_display(long window)452 	public static final native long gdk_window_get_display(long window);
453 	/**
454 	 *  @param surface cast=(GdkSurface *)
455 	 */
456 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_get_display(long surface)457 	public static final native long gdk_surface_get_display(long surface);
458 	/**
459 	 * @param device cast=(GdkDevice *)
460 	 * @param win_x cast=(gint *)
461 	 * @param win_y cast=(gint *)
462 	 */
463 	/* [GTK3 only] */
gdk_device_get_window_at_position(long device, int[] win_x, int[] win_y)464 	public static final native long gdk_device_get_window_at_position(long device, int[] win_x, int[] win_y);
465 	/**
466 	 * @param device cast=(GdkDevice *)
467 	 * @param win_x cast=(gint *)
468 	 * @param win_y cast=(gint *)
469 	 */
470 	/* [GTK4 only] */
gdk_device_get_surface_at_position(long device, int[] win_x, int[] win_y)471 	public static final native long gdk_device_get_surface_at_position(long device, int[] win_x, int[] win_y);
472 	/**
473 	 * @param display cast=(GdkDisplay *)
474 	 */
475 	/* [GTK3 only, if-def'd in os.h] */
gdk_display_supports_cursor_color(long display)476 	public static final native boolean gdk_display_supports_cursor_color(long display);
477 	/**
478 	 * @method flags=dynamic
479 	 */
480 	// TODO GTK4 function removed
gdk_drag_context_get_actions(long context)481 	public static final native int gdk_drag_context_get_actions(long context);
482 	/**
483 	 * @param context cast=(GdkDragContext *)
484 	 */
485 	/* [GTK3 only, if-def'd in os.h] */
gdk_drag_context_get_dest_window(long context)486 	public static final native long gdk_drag_context_get_dest_window(long context);
487 	/**
488 	 * @method flags=dynamic
489 	 */
490 	// TODO GTK4 function removed
gdk_drag_context_get_selected_action(long context)491 	public static final native int gdk_drag_context_get_selected_action(long context);
492 	/**
493 	 * @param context cast=(GdkDragContext *)
494 	 */
495 	/* [GTK3 only, if-def'd in os.h] */
gdk_drag_context_list_targets(long context)496 	public static final native long gdk_drag_context_list_targets(long context);
497 	/**
498 	 * @param context cast=(GdkDragContext *)
499 	 * @param action cast=(GdkDragAction)
500 	 * @param time cast=(guint32)
501 	 */
502 	/* [GTK3 only, if-def'd in os.h] */
gdk_drag_status(long context, int action, int time)503 	public static final native void gdk_drag_status(long context, int action, int time);
504 	/** @param event cast=(GdkEvent *) */
gdk_event_copy(long event)505 	public static final native long gdk_event_copy(long event);
506 	/** @param event cast=(GdkEvent *) */
507 	/* [GTK3 only, if-def'd in os.h] */
gdk_event_free(long event)508 	public static final native void gdk_event_free(long event);
509 	/* [GTK3 only, if-def'd in os.h] */
gdk_event_get()510 	public static final native long gdk_event_get();
511 	/**
512 	 * @param event cast=(GdkEvent *)
513 	 * @param px cast=(gdouble *)
514 	 * @param py cast=(gdouble *)
515 	 */
gdk_event_get_coords(long event, double[] px, double[] py)516 	public static final native boolean gdk_event_get_coords(long event, double[] px, double[] py);
517 	/**
518 	 * @param event cast=(GdkEvent *)
519 	 * @param mode cast=(GdkCrossingMode *)
520 	 */
521 	/* [GTK4 only, if-def'd in os.h] */
gdk_event_get_crossing_mode(long event, int [] mode)522 	public static final native boolean gdk_event_get_crossing_mode(long event, int [] mode);
523 	/**
524 	 * @param event cast=(GdkEvent *)
525 	 * @param button cast=(guint *)
526 	 */
gdk_event_get_button(long event, int[] button)527 	public static final native boolean gdk_event_get_button(long event, int[] button);
528 	/**
529 	 * @param event cast=(GdkEvent *)
530 	 * @param in cast=(gboolean *)
531 	 */
532 	/* [GTK4 only, if-def'd in os.h] */
gdk_event_get_focus_in(long event, boolean [] in)533 	public static final native boolean gdk_event_get_focus_in(long event, boolean [] in);
534 	/**
535 	 * @param event cast=(GdkEvent *)
536 	 * @param keyval cast=(guint *)
537 	 */
gdk_event_get_keyval(long event,int [] keyval)538 	public static final native boolean gdk_event_get_keyval(long event,int [] keyval);
539 	/**
540 	 * @param event cast=(GdkEvent *)
541 	 * @param keycode cast=(guint16 *)
542 	 */
gdk_event_get_keycode(long event, short [] keycode)543 	public static final native boolean gdk_event_get_keycode(long event, short [] keycode);
544 	/**
545 	 * @param event cast=(GdkEvent *)
546 	 * @param group cast=(guint *)
547 	 */
548 	/* [GTK4 only, if-def'd in os.h] */
gdk_event_get_key_group(long event,int [] group)549 	public static final native boolean gdk_event_get_key_group(long event,int [] group);
550 	/**
551 	 * @param event cast=(GdkEvent *)
552 	 * @param x cast=(gdouble *)
553 	 * @param y cast=(gdouble *)
554 	 */
gdk_event_get_root_coords(long event, double[] x, double[] y)555 	public static final native boolean gdk_event_get_root_coords(long event, double[] x, double[] y);
556 	/**
557 	 * @param event cast=(GdkEvent *)
558 	 * @param pmod cast=(GdkModifierType *)
559 	 */
gdk_event_get_state(long event, int[] pmod)560 	public static final native boolean gdk_event_get_state(long event, int[] pmod);
561 	/**
562 	 * @param event cast=(GdkEvent *)
563 	 * @param string cast=(const char **)
564 	 */
565 	/* [GTK4 only, if-def'd in os.h] */
gdk_event_get_string(long event, long [] string)566 	public static final native boolean gdk_event_get_string(long event, long [] string);
567 	/**
568 	 * @param event cast=(const GdkEvent *)
569 	 * @param delta_x cast=(gdouble *)
570 	 * @param delta_y cast=(gdouble *)
571 	 */
gdk_event_get_scroll_deltas(long event, double[] delta_x, double[] delta_y)572 	public static final native boolean gdk_event_get_scroll_deltas(long event, double[] delta_x, double[] delta_y);
573 	/**
574 	 * @param event cast=(const GdkEvent *)
575 	 * @param direction cast=(GdkScrollDirection *)
576 	 */
gdk_event_get_scroll_direction(long event, int [] direction)577 	public static final native boolean gdk_event_get_scroll_direction(long event, int [] direction);
578 	/**
579 	 * @method flags=dynamic
580 	 */
gdk_event_get_seat(long event)581 	public static final native long gdk_event_get_seat(long event);
582 	/**
583 	 * @param event cast=(GdkEvent *)
584 	 */
585 	/* [GTK4 only, if-def'd in os.h] **/
gdk_event_get_surface(long event)586 	public static final native long gdk_event_get_surface(long event);
587 	/**
588 	 * @param event cast=(GdkEvent *)
589 	 */
590 	/* [GTK3 only, if-def'd in os.h] **/
gdk_event_get_window(long event)591 	public static final native long gdk_event_get_window(long event);
592 	/** @param event cast=(GdkEvent *) */
gdk_event_get_time(long event)593 	public static final native int gdk_event_get_time(long event);
594 	/**
595 	 * @method flags=dynamic
596 	 * @param event cast=(GdkEvent *)
597 	 */
598 	/* [GTK3.10+] */
gdk_event_get_event_type(long event)599 	public static final native int gdk_event_get_event_type(long event);
600 	/**
601 	 * @method flags=dynamic
602 	 */
603 	// TODO GTK4 function removed
gdk_event_handler_set(long func, long data, long notify)604 	public static final native void gdk_event_handler_set(long func, long data, long notify);
gdk_event_new(int type)605 	public static final native long gdk_event_new(int type);
606 	/* [GTK3 only, if-def'd in os.h] */
gdk_event_peek()607 	public static final native long gdk_event_peek();
608 	/**
609 	 * @param event cast=(GdkEvent *)
610 	 * @param device cast=(GdkDevice *)
611 	 */
gdk_event_set_device(long event, long device)612 	public static final native void gdk_event_set_device(long event, long device);
613 	/** @param event cast=(GdkEvent *) */
614 	/* [GTK3 only, if-def'd in os.h] */
gdk_event_put(long event)615 	public static final native void gdk_event_put(long event);
616 	/**
617 	 * @param display cast=(GdkDisplay *)
618 	 */
gdk_x11_display_error_trap_push(long display)619 	public static final native void gdk_x11_display_error_trap_push(long display);
620 	/**
621 	 * @param display cast=(GdkDisplay *)
622 	 */
gdk_x11_display_error_trap_pop_ignored(long display)623 	public static final native void gdk_x11_display_error_trap_pop_ignored(long display);
624 	/* [GTK3 only, if-def'd in os.h] */
gdk_get_default_root_window()625 	public static final native long gdk_get_default_root_window();
626 	/**
627 	 * @method flags=dynamic
628 	 * @param display cast=(GdkDisplay *)
629 	 */
630 	/* [GTK3 only] */
gdk_keymap_get_for_display(long display)631 	public static final native long gdk_keymap_get_for_display(long display);
632 	/**
633 	 * @param display cast=(GdkDisplay *)
634 	 */
635 	/* [GTK4 only, if-def'd in os.h] */
gdk_display_get_keymap(long display)636 	public static final native long gdk_display_get_keymap(long display);
637 	/**
638 	 * @param keymap cast=(GdkKeymap *)
639 	 * @param hardware_keycode cast=(guint)
640 	 * @param state cast=(GdkModifierType)
641 	 * @param group cast=(gint)
642 	 * @param keyval cast=(guint *)
643 	 * @param effective_group cast=(gint *)
644 	 * @param level cast=(gint *)
645 	 * @param consumed_modifiers cast=(GdkModifierType *)
646 	 */
gdk_keymap_translate_keyboard_state(long keymap, int hardware_keycode, int state, int group, int[] keyval, int[] effective_group, int[] level, int[] consumed_modifiers)647 	public static final native boolean gdk_keymap_translate_keyboard_state(long keymap, int hardware_keycode, int state, int group, int[] keyval, int[] effective_group, int[] level,  int[] consumed_modifiers);
648 	/**
649 	 * @param keymap cast=(GdkKeymap*)
650 	 * @param keyval cast=(guint)
651 	 * @param keys cast=(GdkKeymapKey**)
652 	 * @param n_keys cast=(gint*)
653 	 */
gdk_keymap_get_entries_for_keyval(long keymap, int keyval, long [] keys, int[] n_keys)654 	public static final native boolean gdk_keymap_get_entries_for_keyval(long keymap, int keyval, long [] keys, int[] n_keys);
gdk_keyval_to_lower(long keyval)655 	public static final native long gdk_keyval_to_lower(long keyval);
gdk_keyval_to_unicode(long keyval)656 	public static final native long gdk_keyval_to_unicode(long keyval);
657 	/**
658 	 * @method flags=dynamic
659 	 */
660 	/* [GTK3 only] */
gdk_pango_context_get()661 	public static final native long gdk_pango_context_get();
662 	/**
663 	 * @param layout cast=(PangoLayout *)
664 	 * @param index_ranges cast=(gint *)
665 	 */
gdk_pango_layout_get_clip_region(long layout, int x_origin, int y_origin, int[] index_ranges, int n_ranges)666 	public static final native long gdk_pango_layout_get_clip_region(long layout, int x_origin, int y_origin, int[] index_ranges, int n_ranges);
667 	/** @param animation cast=(GdkPixbufAnimation *) */
gdk_pixbuf_animation_is_static_image(long animation)668 	public static final native boolean gdk_pixbuf_animation_is_static_image(long animation);
669 	/** @param iter cast=(GdkPixbufAnimationIter *) */
gdk_pixbuf_animation_iter_get_delay_time(long iter)670 	public static final native int gdk_pixbuf_animation_iter_get_delay_time(long iter);
671 	/** @param iter cast=(GdkPixbufAnimationIter *) */
gdk_pixbuf_animation_iter_get_pixbuf(long iter)672 	public static final native long gdk_pixbuf_animation_iter_get_pixbuf(long iter);
673 	/**
674 	 * @param iter cast=(GdkPixbufAnimationIter *)
675 	 * @param current_time cast=(const GTimeVal *)
676 	 */
gdk_pixbuf_animation_iter_advance(long iter, long current_time)677 	public static final native boolean gdk_pixbuf_animation_iter_advance(long iter, long current_time);
678 	/**
679 	 * @param animation cast=(GdkPixbufAnimation *)
680 	 * @param start_time cast=(const GTimeVal *)
681 	 */
gdk_pixbuf_animation_get_iter(long animation, long start_time)682 	public static final native long gdk_pixbuf_animation_get_iter(long animation, long start_time);
683 	/** @param animation cast=(GdkPixbufAnimation *) */
gdk_pixbuf_animation_get_static_image(long animation)684 	public static final native long gdk_pixbuf_animation_get_static_image(long animation);
685 	/**
686 	 * @param src_pixbuf cast=(GdkPixbuf *)
687 	 * @param dest_pixbuf cast=(GdkPixbuf *)
688 	 */
gdk_pixbuf_copy_area(long src_pixbuf, int src_x, int src_y, int width, int height, long dest_pixbuf, int dest_x, int dest_y)689 	public static final native void gdk_pixbuf_copy_area(long src_pixbuf, int src_x, int src_y, int width, int height, long dest_pixbuf, int dest_x, int dest_y);
690 	/** @param pixbuf cast=(const GdkPixbuf *) */
gdk_pixbuf_get_has_alpha(long pixbuf)691 	public static final native boolean gdk_pixbuf_get_has_alpha(long pixbuf);
692 	/**
693 	 * @param window cast=(GdkWindow *)
694 	 */
695 	/* [GTK3 only, if-def'd in os.h] */
gdk_pixbuf_get_from_window(long window, int x, int y, int width, int height)696 	public static final native long gdk_pixbuf_get_from_window(long window, int x, int y, int width, int height);
697 	/** @param pixbuf cast=(const GdkPixbuf *) */
gdk_pixbuf_get_height(long pixbuf)698 	public static final native int gdk_pixbuf_get_height(long pixbuf);
699 	/** @param pixbuf cast=(const GdkPixbuf *) */
gdk_pixbuf_get_pixels(long pixbuf)700 	public static final native long gdk_pixbuf_get_pixels(long pixbuf);
701 	/** @param pixbuf cast=(const GdkPixbuf *) */
gdk_pixbuf_get_rowstride(long pixbuf)702 	public static final native int gdk_pixbuf_get_rowstride(long pixbuf);
703 	/** @param pixbuf cast=(const GdkPixbuf *) */
gdk_pixbuf_get_width(long pixbuf)704 	public static final native int gdk_pixbuf_get_width(long pixbuf);
705 	/** @param pixbuf cast=(const GdkPixbuf *) */
gdk_pixbuf_get_n_channels(long pixbuf)706 	public static final native int gdk_pixbuf_get_n_channels(long pixbuf);
707 	/** @param pixbuf cast=(const GdkPixbuf *) */
gdk_pixbuf_get_bits_per_sample(long pixbuf)708 	public static final native int gdk_pixbuf_get_bits_per_sample(long pixbuf);
709 	/** @param pixbuf cast=(const GdkPixbuf *) */
gdk_pixbuf_copy(long pixbuf)710 	public static final native long gdk_pixbuf_copy(long pixbuf);
711 	/** @param loader cast=(GdkPixbufLoader *) */
gdk_pixbuf_loader_get_format(long loader)712 	public static final native long gdk_pixbuf_loader_get_format(long loader);
713 	/** @param format cast=(GdkPixbufFormat *) */
gdk_pixbuf_format_get_name(long format)714 	public static final native long gdk_pixbuf_format_get_name(long format);
715 	/** @param loader cast=(GdkPixbufLoader *) */
gdk_pixbuf_loader_get_animation(long loader)716 	public static final native long gdk_pixbuf_loader_get_animation(long loader);
717 	/**
718 	 * @param data cast=(const guchar *)
719 	 * @param colorspace cast=(GdkColorspace)
720 	 * @param has_alpha cast=(gboolean)
721 	 * @param destroy_fn cast=(GdkPixbufDestroyNotify)
722 	 * @param destroy_fn_data cast=(gpointer)
723 	 */
gdk_pixbuf_new_from_data(long data, int colorspace, boolean has_alpha, int bits_per_sample, int width, int height, int rowstride, long destroy_fn, long destroy_fn_data)724 	public static final native long gdk_pixbuf_new_from_data(long data, int colorspace, boolean has_alpha, int bits_per_sample, int width, int height, int rowstride, long destroy_fn, long destroy_fn_data);
gdk_pixbuf_loader_new()725 	public static final native long gdk_pixbuf_loader_new();
726 	/**
727 	 * @param loader cast=(GdkPixbufLoader *)
728 	 * @param error cast=(GError **)
729 	 */
gdk_pixbuf_loader_close(long loader, long [] error)730 	public static final native boolean gdk_pixbuf_loader_close(long loader, long [] error);
731 	/** @param loader cast=(GdkPixbufLoader *) */
gdk_pixbuf_loader_get_pixbuf(long loader)732 	public static final native long gdk_pixbuf_loader_get_pixbuf(long loader);
733 	/**
734 	 * @param loader cast=(GdkPixbufLoader *)
735 	 * @param buffer cast=(const guchar *)
736 	 * @param count cast=(gsize)
737 	 * @param error cast=(GError **)
738 	 */
gdk_pixbuf_loader_write(long loader, long buffer, int count, long [] error)739 	public static final native boolean gdk_pixbuf_loader_write(long loader, long buffer, int count, long [] error);
740 	/**
741 	 * @param colorspace cast=(GdkColorspace)
742 	 * @param has_alpha cast=(gboolean)
743 	 */
gdk_pixbuf_new(int colorspace, boolean has_alpha, int bits_per_sample, int width, int height)744 	public static final native long gdk_pixbuf_new(int colorspace, boolean has_alpha, int bits_per_sample, int width, int height);
745 	/**
746 	 * @param filename cast=(const char *)
747 	 * @param error cast=(GError**)
748 	 */
gdk_pixbuf_new_from_file(byte[] filename, long [] error)749 	public static final native long gdk_pixbuf_new_from_file(byte[] filename, long [] error);
750 	/**
751 	 * @param pixbuf cast=(GdkPixbuf *)
752 	 * @param buffer cast=(gchar **)
753 	 * @param buffer_size cast=(gsize *)
754 	 * @param type cast=(const char *)
755 	 * @param option_keys cast=(char **)
756 	 * @param option_values cast=(char **)
757 	 * @param error cast=(GError **)
758 	 */
gdk_pixbuf_save_to_bufferv(long pixbuf, long [] buffer, long [] buffer_size, byte [] type, long [] option_keys, long [] option_values, long [] error)759 	public static final native boolean gdk_pixbuf_save_to_bufferv(long pixbuf, long [] buffer, long [] buffer_size, byte [] type, long [] option_keys, long [] option_values, long [] error);
760 	/**
761 	 * @param src cast=(const GdkPixbuf *)
762 	 * @param interp_type cast=(GdkInterpType)
763 	 */
gdk_pixbuf_scale_simple(long src, int dest_width, int dest_height, int interp_type)764 	public static final native long gdk_pixbuf_scale_simple(long src, int dest_width, int dest_height, int interp_type);
765 	/**
766 	 * @param device cast=(GdkDevice *)
767 	 */
gdk_device_get_associated_device(long device)768 	public static final native long gdk_device_get_associated_device(long device);
769 	/**
770 	 * @method flags=dynamic
771 	 * @param device cast=(GdkDevice *)
772 	 */
gdk_device_get_seat(long device)773 	public static final native long gdk_device_get_seat(long device);
774 	/**
775 	 * @param window cast=(GdkWindow *)
776 	 * @param property cast=(GdkAtom)
777 	 * @param type cast=(GdkAtom)
778 	 * @param actual_property_type cast=(GdkAtom *)
779 	 * @param actual_format cast=(gint *)
780 	 * @param actual_length cast=(gint *)
781 	 * @param data cast=(guchar **)
782 	 */
783 	/* [GTK3 only, if-def'd in os.h] */
gdk_property_get(long window, long property, long type, long offset, long length, int pdelete, long [] actual_property_type, int[] actual_format, int[] actual_length, long [] data)784 	public static final native boolean gdk_property_get(long window, long property, long type, long offset, long length, int pdelete, long [] actual_property_type, int[] actual_format, int[] actual_length, long [] data);
785 	/**
786 	 * @param surface cast=(cairo_surface_t *)
787 	 */
gdk_cairo_region_create_from_surface(long surface)788 	public static final native long gdk_cairo_region_create_from_surface(long surface);
789 	/**
790 	 * @param rgba cast=(GdkRGBA *)
791 	 */
gdk_rgba_to_string(GdkRGBA rgba)792 	public static final native long gdk_rgba_to_string(GdkRGBA rgba);
793 	/**
794 	 * @param rgba cast=(GdkRGBA *)
795 	 */
gdk_rgba_free(long rgba)796 	public static final native void gdk_rgba_free(long rgba);
797 	/**
798 	 * @param rgba cast=(GdkRGBA *)
799 	 * @param property cast=(const gchar *)
800 	 */
gdk_rgba_parse(GdkRGBA rgba, byte[] property)801 	public static final native long gdk_rgba_parse(GdkRGBA rgba, byte[] property);
802 	/* [GTK3 only, if-def'd in os.h] */
gdk_screen_get_default()803 	public static final native long gdk_screen_get_default();
804 	/**
805 	 * @param screen cast=(GdkScreen *)
806 	 */
807 	/* [GTK3 only, if-def'd in os.h] */
gdk_screen_get_resolution(long screen)808 	public static final native double gdk_screen_get_resolution(long screen);
809 	/**
810 	 * @param clipboard cast=(GdkClipboard *)
811 	 * @param provider cast=(GdkContentProvider *)
812 	 */
813 	/* [GTK4 only, if-def'd in os.h] */
gdk_clipboard_set_content(long clipboard, long provider)814 	public static final native long gdk_clipboard_set_content(long clipboard, long provider);
815 	/**
816 	 * @method flags=dynamic
817 	 * @param screen cast=(GdkScreen *)
818 	 * @param monitor_num cast=(gint)
819 	 */
820 	/* [GTK3 only, if-def'd in os.h; 3.22 deprecated, replaced] */
gdk_screen_get_monitor_scale_factor(long screen, int monitor_num)821 	public static final native int gdk_screen_get_monitor_scale_factor(long screen, int monitor_num);
822 	/**
823 	 * @method flags=dynamic
824 	 */
gdk_monitor_get_scale_factor(long window)825 	public static final native int gdk_monitor_get_scale_factor(long window);
826 	/**
827 	 * @method flags=dynamic
828 	 * @param screen cast=(GdkScreen *)
829 	 * @param x cast=(gint)
830 	 * @param y cast=(gint)
831 	 */
832 	/* [GTK3 only, if-def'd in os.h; 3.22 deprecated, replaced] */
gdk_screen_get_monitor_at_point(long screen, int x, int y)833 	public static final native int gdk_screen_get_monitor_at_point(long screen, int x, int y);
834 	/**
835 	 * @method flags=dynamic
836 	 * @param screen cast=(GdkScreen *)
837 	 * @param window cast=(GdkWindow *)
838 	 */
839 	/* [GTK3 only, if-def'd in os.h; 3.22 deprecated, replaced] */
gdk_screen_get_monitor_at_window(long screen, long window)840 	public static final native int gdk_screen_get_monitor_at_window(long screen, long window);
841 	/**
842 	 * @method flags=dynamic
843 	 */
gdk_display_get_monitor(long display, int monitor_num)844 	public static final native long gdk_display_get_monitor(long display, int monitor_num);
845 	/**
846 	 * @method flags=dynamic
847 	 */
gdk_display_get_monitor_at_point(long display, int x, int y)848 	public static final native long gdk_display_get_monitor_at_point(long display, int x, int y);
849 	/**
850 	 * @method flags=dynamic
851 	 * @param display cast=(GdkDisplay *)
852 	 * @param window cast=(GdkWindow *)
853 	 */
854 	/* [GTK3 only, if-def'd in os.h] */
gdk_display_get_monitor_at_window(long display, long window)855 	public static final native long gdk_display_get_monitor_at_window(long display, long window);
856 	/**
857 	 * @param display cast=(GdkDisplay *)
858 	 * @param surface cast=(GdkSurface *)
859 	 */
860 	/* [GTK4 only, if-def'd in os.h] */
gdk_display_get_monitor_at_surface(long display, long surface)861 	public static final native long gdk_display_get_monitor_at_surface(long display, long surface);
862 	/**
863 	 * @method flags=dynamic
864 	 */
gdk_display_get_n_monitors(long display)865 	public static final native int gdk_display_get_n_monitors(long display);
866 	/**
867 	 * @method flags=dynamic
868 	 */
gdk_display_get_primary_monitor(long display)869 	public static final native long gdk_display_get_primary_monitor(long display);
870 	/**
871 	 * @param display cast=(GdkDisplay *)
872 	 */
873 	/* [GTK4 only, if-def'd in os.h] */
gdk_display_is_composited(long display)874 	public static final native boolean gdk_display_is_composited(long display);
875 	/** @param display cast=(GdkDisplay *) */
gdk_display_peek_event(long display)876 	public static final native long gdk_display_peek_event(long display);
877 	/**
878 	 * @param display cast=(GdkDisplay *)
879 	 * @param event cast=(const GdkEvent *)
880 	 */
gdk_display_put_event(long display, long event)881 	public static final native void gdk_display_put_event(long display, long event);
882 	/**
883 	 * @method flags=dynamic
884 	 * @param screen cast=(GdkScreen *)
885 	 * @param dest flags=no_in
886 	 */
887 	/* [GTK3 only, if-def'd in os.h; 3.22 deprecated, replaced] */
gdk_screen_get_monitor_geometry(long screen, int monitor_num, GdkRectangle dest)888 	public static final native void gdk_screen_get_monitor_geometry(long screen, int monitor_num, GdkRectangle dest);
889 	/**
890 	 * @method flags=dynamic
891 	 * @param dest flags=no_in
892 	 */
gdk_monitor_get_geometry(long monitor, GdkRectangle dest)893 	public static final native void gdk_monitor_get_geometry(long monitor, GdkRectangle dest);
894 	/**
895 	 * @method flags=dynamic
896 	 * @param dest flags=no_in
897 	 */
gdk_monitor_get_workarea(long monitor, GdkRectangle dest)898 	public static final native void gdk_monitor_get_workarea(long monitor, GdkRectangle dest);
899 	/**
900 	 * @method flags=dynamic
901 	 * @param screen cast=(GdkScreen *)
902 	 * @param dest flags=no_in
903 	 */
904 	/* [GTK3 only, if-def'd in os.h; 3.22 deprecated, replaced] */
gdk_screen_get_monitor_workarea(long screen, int monitor_num, GdkRectangle dest)905 	public static final native void gdk_screen_get_monitor_workarea(long screen, int monitor_num, GdkRectangle dest);
906 	/**
907 	 * @method flags=dynamic
908 	 * @param screen cast=(GdkScreen *)
909 	 */
910 	/* [GTK3 only, if-def'd in os.h; 3.22 deprecated, replaced] */
gdk_screen_get_n_monitors(long screen)911 	public static final native int gdk_screen_get_n_monitors(long screen);
912 	/**
913 	 * @method flags=dynamic
914 	 * @param screen cast=(GdkScreen *)
915 	 */
916 	/* [GTK3 only, if-def'd in os.h; 3.22 deprecated, replaced] */
gdk_screen_get_primary_monitor(long screen)917 	public static final native int gdk_screen_get_primary_monitor(long screen);
918 	/**
919 	 * @param screen cast=(GdkScreen *)
920 	 */
921 	/* [GTK3 only, if-def'd in os.h] */
gdk_screen_get_system_visual(long screen)922 	public static final native long gdk_screen_get_system_visual(long screen);
923 	/**
924 	 * @method flags=dynamic
925 	 */
gdk_screen_height()926 	public static final native int gdk_screen_height();
927 	/**
928 	 * @param screen cast=(GdkScreen *)
929 	 */
930 	/* [GTK3 only, if-def'd in os.h] */
gdk_screen_is_composited(long screen)931 	public static final native boolean gdk_screen_is_composited(long screen);
932 	/**
933 	 * @method flags=dynamic
934 	 */
gdk_screen_width()935 	public static final native int gdk_screen_width();
936 	/**
937 	 * @method flags=dynamic
938 	 */
gdk_seat_grab(long seat, long window, int capabilities, boolean owner_events, long cursor, long event, long func, long func_data)939 	public static final native int gdk_seat_grab(long seat, long window, int capabilities, boolean owner_events, long cursor, long event, long func, long func_data);
940 	/**
941 	 * @method flags=dynamic
942 	 */
gdk_seat_ungrab(long seat)943 	public static final native void gdk_seat_ungrab(long seat);
944 	/**
945 	 * @method flags=dynamic
946 	 */
gdk_seat_get_pointer(long seat)947 	public static final native long gdk_seat_get_pointer(long seat);
948 	/**
949 	 * @method flags=dynamic
950 	 */
gdk_seat_get_keyboard(long seat)951 	public static final native long gdk_seat_get_keyboard(long seat);
952 	/**
953 	 * @method flags=dynamic
954 	 * @param program_class cast=(const char *)
955 	 */
956 	/* [GTK3 only] */
gdk_set_program_class(byte[] program_class)957 	public static final native void gdk_set_program_class(byte[] program_class);
958 	/** @param atom cast=(GdkAtom) */
959 	/* [GTK3 only, if-def'd in os.h] */
gdk_selection_owner_get(long atom)960 	public static final native void gdk_selection_owner_get(long atom);
961 	/**
962 	 * @param owner cast=(GdkWindow *)
963 	 * @param atom cast=(GdkAtom)
964 	 * @param time cast=(guint32)
965 	 * @param send_event cast=(gboolean)
966 	 */
967 	/* [GTK3 only, if-def'd in os.h] */
gdk_selection_owner_set(long owner, long atom, int time, boolean send_event)968 	public static final native void gdk_selection_owner_set(long owner, long atom, int time, boolean send_event);
969 	/**
970 	 * @param display cast=(GdkDisplay *)
971 	 * @param str cast=(const gchar*)
972 	 * @param encoding cast=(GdkAtom *)
973 	 * @param format cast=(gint *)
974 	 * @param ctext cast=(guchar **)
975 	 * @param length cast=(gint *)
976 	 */
gdk_x11_display_utf8_to_compound_text(long display, byte[] str, long [] encoding, int[] format, long [] ctext, int[] length)977 	public static final native boolean gdk_x11_display_utf8_to_compound_text(long display, byte[] str, long [] encoding, int[] format, long [] ctext, int[] length);
978 	/** @param str cast=(const gchar *) */
gdk_utf8_to_string_target(byte[] str)979 	public static final native long gdk_utf8_to_string_target(byte[] str);
980 	/**
981 	 * @param display cast=(GdkDisplay *)
982 	 * @param encoding cast=(GdkAtom)
983 	 * @param text cast=(guchar *)
984 	 * @param list cast=(gchar ***)
985 	 */
gdk_text_property_to_utf8_list_for_display(long display, long encoding, int format, long text, int length, long [] list)986 	public static final native int gdk_text_property_to_utf8_list_for_display(long display, long encoding, int format, long text, int length,  long [] list);
987 	/**
988 	 * @param pixbuf cast=(GdkPixbuf *)
989 	 */
990 	/* [GTK4 only, if-def'd in os.h] */
gdk_texture_new_for_pixbuf(long pixbuf)991 	public static final native long gdk_texture_new_for_pixbuf(long pixbuf);
gdk_threads_leave()992 	public static final native void gdk_threads_leave ();
gdk_unicode_to_keyval(int wc)993 	public static final native  int gdk_unicode_to_keyval(int wc);
994 	/**
995 	 * @param visual cast=(GdkVisual *)
996 	 */
997 	/* [GTK3 only, if-def'd in os.h] */
gdk_visual_get_depth(long visual)998 	public static final native int gdk_visual_get_depth(long visual);
999 	/**
1000 	 * @param window cast=(GdkWindow *)
1001 	 * @param content cast=(cairo_content_t)
1002 	 */
1003 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_create_similar_surface(long window, int content, int width, int height)1004 	public static final native long gdk_window_create_similar_surface(long window, int content, int width, int height);
1005 	/**
1006 	 * @param window cast=(GdkSurface *)
1007 	 * @param content cast=(cairo_content_t)
1008 	 */
1009 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_create_similar_surface(long window, int content, int width, int height)1010 	public static final native long gdk_surface_create_similar_surface(long window, int content, int width, int height);
1011 	/** @param window cast=(GdkWindow *) */
1012 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_destroy(long window)1013 	public static final native void gdk_window_destroy(long window);
1014 	/** @param window cast=(GdkSurface *) */
1015 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_destroy(long window)1016 	public static final native void gdk_surface_destroy(long window);
1017 	/** @param window cast=(GdkWindow *) */
1018 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_children(long window)1019 	public static final native long gdk_window_get_children(long window);
1020 	/** @param surface cast=(GdkSurface *) */
1021 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_get_children(long surface)1022 	public static final native long gdk_surface_get_children(long surface);
1023 	/** @param window cast=(GdkWindow *) */
1024 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_events(long window)1025 	public static final native int gdk_window_get_events(long window);
1026 	/** @param window cast=(GdkWindow *) */
1027 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_focus(long window, int timestamp)1028 	public static final native void gdk_window_focus(long window, int timestamp);
1029 	/** @param surface cast=(GdkSurface *) */
1030 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_focus(long surface, int timestamp)1031 	public static final native void gdk_surface_focus(long surface, int timestamp);
1032 	/**
1033 	 * @param window cast=(GdkWindow *)
1034 	 * @param rect cast=(GdkRectangle *),flags=no_in
1035 	 */
1036 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_frame_extents(long window, GdkRectangle rect)1037 	public static final native void gdk_window_get_frame_extents(long window, GdkRectangle rect);
1038 	/**
1039 	 * @param surface cast=(GdkSurface *)
1040 	 * @param rect cast=(GdkRectangle *),flags=no_in
1041 	 */
1042 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_get_frame_extents(long surface, GdkRectangle rect)1043 	public static final native void gdk_surface_get_frame_extents(long surface, GdkRectangle rect);
1044 	/**
1045 	 * @param window cast=(GdkWindow *)
1046 	 * @param x cast=(gint *)
1047 	 * @param y cast=(gint *)
1048 	 */
1049 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_origin(long window, int[] x, int[] y)1050 	public static final native int gdk_window_get_origin(long window, int[] x, int[] y);
1051 	/**
1052 	 * @param surface cast=(GdkSurface *)
1053 	 * @param x cast=(gint *)
1054 	 * @param y cast=(gint *)
1055 	 */
1056 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_get_origin(long surface, int[] x, int[] y)1057 	public static final native int gdk_surface_get_origin(long surface, int[] x, int[] y);
1058 	/**
1059 	 * @param window cast=(GdkWindow *)
1060 	 * @param device cast=(GdkDevice *)
1061 	 * @param x cast=(gint *)
1062 	 * @param y cast=(gint *)
1063 	 * @param mask cast=(GdkModifierType *)
1064 	 */
1065 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_device_position(long window, long device, int[] x, int[] y, int[] mask)1066 	public static final native long gdk_window_get_device_position(long window, long device, int[] x, int[] y, int[] mask);
1067 	/**
1068 	 * @param surface cast=(GdkSurface *)
1069 	 * @param device cast=(GdkDevice *)
1070 	 * @param x cast=(gint *)
1071 	 * @param y cast=(gint *)
1072 	 * @param mask cast=(GdkModifierType *)
1073 	 */
1074 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_get_device_position(long surface, long device, int[] x, int[] y, int[] mask)1075 	public static final native long gdk_surface_get_device_position(long surface, long device, int[] x, int[] y, int[] mask);
1076 	/** @param window cast=(GdkWindow *) */
1077 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_parent(long window)1078 	public static final native long gdk_window_get_parent(long window);
1079 	/**
1080 	 * @param window cast=(GdkWindow *)
1081 	 * @param x cast=(gint *)
1082 	 * @param y cast=(gint *)
1083 	 */
1084 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_root_origin(long window, int[] x, int[] y)1085 	public static final native void gdk_window_get_root_origin(long window, int[] x, int[] y);
1086 	/**
1087 	 * @param surface cast=(GdkSurface *)
1088 	 * @param x cast=(gint *)
1089 	 * @param y cast=(gint *)
1090 	 */
1091 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_get_root_origin(long surface, int[] x, int[] y)1092 	public static final native void gdk_surface_get_root_origin(long surface, int[] x, int[] y);
1093 	/**
1094 	 * @param window cast=(GdkWindow *)
1095 	 * @param data cast=(gpointer *)
1096 	 */
1097 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_get_user_data(long window, long [] data)1098 	public static final native void gdk_window_get_user_data(long window, long [] data);
1099 	/**
1100 	 * @param surface cast=(GdkSurface *)
1101 	 * @param data cast=(gpointer *)
1102 	 */
1103 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_get_user_data(long surface, long [] data)1104 	public static final native void gdk_surface_get_user_data(long surface, long [] data);
1105 	/** @param window cast=(GdkWindow *) */
1106 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_hide(long window)1107 	public static final native void gdk_window_hide(long window);
1108 	/** @param surface cast=(GdkSurface *) */
1109 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_hide(long surface)1110 	public static final native void gdk_surface_hide(long surface);
1111 	/**
1112 	 * @param window cast=(GdkWindow *)
1113 	 * @param rectangle cast=(GdkRectangle *),flags=no_out
1114 	 * @param invalidate_children cast=(gboolean)
1115 	 */
1116 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_invalidate_rect(long window, GdkRectangle rectangle, boolean invalidate_children)1117 	public static final native void gdk_window_invalidate_rect(long window, GdkRectangle rectangle, boolean invalidate_children);
1118 	/**
1119 	 * @param surface cast=(GdkSurface *)
1120 	 * @param rectangle cast=(GdkRectangle *),flags=no_out
1121 	 */
1122 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_invalidate_rect(long surface, GdkRectangle rectangle)1123 	public static final native void gdk_surface_invalidate_rect(long surface, GdkRectangle rectangle);
1124 	/**
1125 	 * @param window cast=(GdkWindow *)
1126 	 * @param region cast=(const cairo_region_t *)
1127 	 * @param invalidate_children cast=(gboolean)
1128 	 */
1129 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_invalidate_region(long window, long region, boolean invalidate_children)1130 	public static final native void gdk_window_invalidate_region(long window, long region, boolean invalidate_children);
1131 	/**
1132 	 * @param surface cast=(GdkSurface *)
1133 	 * @param region cast=(const cairo_region_t *)
1134 	 */
1135 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_invalidate_region(long surface, long region)1136 	public static final native void gdk_surface_invalidate_region(long surface, long region);
1137 	/** @param window cast=(GdkWindow *) */
1138 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_move(long window, int x, int y)1139 	public static final native void gdk_window_move(long window, int x, int y);
1140 	/** @param surface cast=(GdkSurface *) */
1141 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_move(long surface, int x, int y)1142 	public static final native void gdk_surface_move(long surface, int x, int y);
1143 	/** @param window cast=(GdkWindow *) */
1144 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_move_resize(long window, int x, int y, int width, int height)1145 	public static final native void gdk_window_move_resize(long window, int x, int y, int width, int height);
1146 	/** @param surface cast=(GdkSurface *) */
1147 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_move_resize(long surface, int x, int y, int width, int height)1148 	public static final native void gdk_surface_move_resize(long surface, int x, int y, int width, int height);
1149 	/**
1150 	 * @param parent cast=(GdkWindow *)
1151 	 * @param attributes flags=no_out
1152 	 */
1153 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_new(long parent, GdkWindowAttr attributes, int attributes_mask)1154 	public static final native long gdk_window_new(long parent, GdkWindowAttr attributes, int attributes_mask);
1155 	/**
1156 	 * @param surface cast=(GdkSurface *)
1157 	 * @param rect flags=no_out
1158 	 */
1159 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_new_child(long surface, GdkRectangle rect)1160 	public static final native long gdk_surface_new_child(long surface, GdkRectangle rect);
1161 	/** @param window cast=(GdkWindow *) */
1162 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_lower(long window)1163 	public static final native void gdk_window_lower(long window);
1164 	/** @param surface cast=(GdkSurface *) */
1165 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_lower(long surface)1166 	public static final native void gdk_surface_lower(long surface);
1167 	/** @param window cast=(GdkWindow *) */
1168 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_raise(long window)1169 	public static final native void gdk_window_raise(long window);
1170 	/** @param surface cast=(GdkSurface *) */
1171 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_raise(long surface)1172 	public static final native void gdk_surface_raise(long surface);
1173 	/** @param window cast=(GdkWindow *) */
1174 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_resize(long window, int width, int height)1175 	public static final native void gdk_window_resize(long window, int width, int height);
1176 	/** @param surface cast=(GdkSurface *) */
1177 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_resize(long surface, int width, int height)1178 	public static final native void gdk_surface_resize(long surface, int width, int height);
1179 	/**
1180 	 * @param window cast=(GdkWindow *)
1181 	 * @param sibling cast=(GdkWindow *)
1182 	 * @param above cast=(gboolean)
1183 	 */
1184 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_restack(long window, long sibling, boolean above)1185 	public static final native void gdk_window_restack(long window, long sibling, boolean above);
1186 	/**
1187 	 * @param surface cast=(GdkSurface *)
1188 	 * @param sibling cast=(GdkSurface *)
1189 	 * @param above cast=(gboolean)
1190 	 */
1191 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_restack(long surface, long sibling, boolean above)1192 	public static final native void gdk_surface_restack(long surface, long sibling, boolean above);
1193 	/**
1194 	 * @param window cast=(GdkWindow *)
1195 	 * @param pattern cast=(cairo_pattern_t *)
1196 	 */
1197 	/*  [GTK3 only; 3.22 deprecated] */
gdk_window_set_background_pattern(long window, long pattern)1198 	public static final native void gdk_window_set_background_pattern(long window, long pattern);
1199 	/**
1200 	 * @param window cast=(GdkWindow *)
1201 	 * @param cursor cast=(GdkCursor *)
1202 	 */
1203 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_set_cursor(long window, long cursor)1204 	public static final native void gdk_window_set_cursor(long window, long cursor);
1205 	/**
1206 	 * @param surface cast=(GdkSurface *)
1207 	 * @param cursor cast=(GdkCursor *)
1208 	 */
1209 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_set_cursor(long surface, long cursor)1210 	public static final native void gdk_surface_set_cursor(long surface, long cursor);
1211 	/**
1212 	 * @param window cast=(GdkWindow *)
1213 	 * @param decorations cast=(GdkWMDecoration)
1214 	 */
1215 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_set_decorations(long window, int decorations)1216 	public static final native void gdk_window_set_decorations(long window, int decorations);
1217 	/**
1218 	 * @param surface cast=(GdkSurface *)
1219 	 * @param decorations cast=(GdkWMDecoration)
1220 	 */
1221 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_set_decorations(long surface, int decorations)1222 	public static final native void gdk_surface_set_decorations(long surface, int decorations);
1223 	/**
1224 	 * @param window cast=(GdkWindow *)
1225 	 * @param functions cast=(GdkWMFunction)
1226 	 */
1227 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_set_functions(long window, int functions)1228 	public static final native void gdk_window_set_functions(long window, int functions);
1229 	/**
1230 	 * @param surface cast=(GdkSurface *)
1231 	 * @param functions cast=(GdkWMFunction)
1232 	 */
1233 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_set_functions(long surface, int functions)1234 	public static final native void gdk_surface_set_functions(long surface, int functions);
1235 	/** @param window cast=(GdkWindow *) */
1236 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_set_events(long window, int event_mask)1237 	public static final native void gdk_window_set_events(long window, int event_mask);
1238 	/**
1239 	 * @param window cast=(GdkWindow *)
1240 	 * @param override_redirect cast=(gboolean)
1241 	 */
1242 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_set_override_redirect(long window, boolean override_redirect)1243 	public static final native void gdk_window_set_override_redirect(long window, boolean override_redirect);
1244 	/**
1245 	 * @param window cast=(GdkWindow *)
1246 	 * @param user_data cast=(gpointer)
1247 	 */
1248 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_set_user_data(long window, long user_data)1249 	public static final native void gdk_window_set_user_data(long window, long user_data);
1250 	/**
1251 	 * @param surface cast=(GdkSurface *)
1252 	 * @param user_data cast=(gpointer)
1253 	 */
1254 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_set_user_data(long surface, long user_data)1255 	public static final native void gdk_surface_set_user_data(long surface, long user_data);
1256 	/** @param window cast=(GdkWindow *) */
1257 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_show(long window)1258 	public static final native void gdk_window_show(long window);
1259 	/** @param surface cast=(GdkSurface *) */
1260 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_show(long surface)1261 	public static final native void gdk_surface_show(long surface);
1262 	/** @param window cast=(GdkWindow *) */
1263 	/* [GTK3 only, if-def'd in os.h] */
gdk_window_show_unraised(long window)1264 	public static final native void gdk_window_show_unraised(long window);
1265 
1266 	/** @param surface cast=(GdkSurface *) */
1267 	/* [GTK4 only, if-def'd in os.h] */
gdk_surface_show_unraised(long surface)1268 	public static final native void gdk_surface_show_unraised(long surface);
1269 
gdk_get_pointer(long display)1270 	public static long gdk_get_pointer (long display) {
1271 		long default_seat = GDK.gdk_display_get_default_seat(display);
1272 		return GDK.gdk_seat_get_pointer(default_seat);
1273 	}
1274 
1275 }
1276