1/* GDK - The GIMP Drawing Kit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18/*
19 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
20 * file for a list of people on the GTK+ Team. See the ChangeLog
21 * files for a list of changes. These files are distributed with
22 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
23 */
24
25#ifndef __GDK_WINDOW_H__
26#define __GDK_WINDOW_H__
27
28#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
29#error "Only <gdk/gdk.h> can be included directly."
30#endif
31
32#include <gdk/gdkversionmacros.h>
33#include <gdk/gdktypes.h>
34#include <gdk/gdkdrawingcontext.h>
35#include <gdk/gdkevents.h>
36#include <gdk/gdkframeclock.h>
37
38G_BEGIN_DECLS
39
40typedef struct _GdkGeometry GdkGeometry;
41typedef struct _GdkWindowAttr GdkWindowAttr;
42typedef struct _GdkWindowRedirect GdkWindowRedirect;
43
44/**
45 * GdkWindowWindowClass:
46 * @GDK_INPUT_OUTPUT: window for graphics and events
47 * @GDK_INPUT_ONLY: window for events only
48 *
49 * @GDK_INPUT_OUTPUT windows are the standard kind of window you might expect.
50 * Such windows receive events and are also displayed on screen.
51 * @GDK_INPUT_ONLY windows are invisible; they are usually placed above other
52 * windows in order to trap or filter the events. You can’t draw on
53 * @GDK_INPUT_ONLY windows.
54 */
55typedef enum
56{
57 GDK_INPUT_OUTPUT, /*< nick=input-output >*/
58 GDK_INPUT_ONLY /*< nick=input-only >*/
59} GdkWindowWindowClass;
60
61/**
62 * GdkWindowType:
63 * @GDK_WINDOW_ROOT: root window; this window has no parent, covers the entire
64 * screen, and is created by the window system
65 * @GDK_WINDOW_TOPLEVEL: toplevel window (used to implement #GtkWindow)
66 * @GDK_WINDOW_CHILD: child window (used to implement e.g. #GtkEntry)
67 * @GDK_WINDOW_TEMP: override redirect temporary window (used to implement
68 * #GtkMenu)
69 * @GDK_WINDOW_FOREIGN: foreign window (see gdk_window_foreign_new())
70 * @GDK_WINDOW_OFFSCREEN: offscreen window (see
71 * [Offscreen Windows][OFFSCREEN-WINDOWS]). Since 2.18
72 * @GDK_WINDOW_SUBSURFACE: subsurface-based window; This window is visually
73 * tied to a toplevel, and is moved/stacked with it. Currently this window
74 * type is only implemented in Wayland. Since 3.14
75 *
76 * Describes the kind of window.
77 */
78typedef enum
79{
80 GDK_WINDOW_ROOT,
81 GDK_WINDOW_TOPLEVEL,
82 GDK_WINDOW_CHILD,
83 GDK_WINDOW_TEMP,
84 GDK_WINDOW_FOREIGN,
85 GDK_WINDOW_OFFSCREEN,
86 GDK_WINDOW_SUBSURFACE
87} GdkWindowType;
88
89/**
90 * GdkWindowAttributesType:
91 * @GDK_WA_TITLE: Honor the title field
92 * @GDK_WA_X: Honor the X coordinate field
93 * @GDK_WA_Y: Honor the Y coordinate field
94 * @GDK_WA_CURSOR: Honor the cursor field
95 * @GDK_WA_VISUAL: Honor the visual field
96 * @GDK_WA_WMCLASS: Honor the wmclass_class and wmclass_name fields
97 * @GDK_WA_NOREDIR: Honor the override_redirect field
98 * @GDK_WA_TYPE_HINT: Honor the type_hint field
99 *
100 * Used to indicate which fields in the #GdkWindowAttr struct should be honored.
101 * For example, if you filled in the “cursor” and “x” fields of #GdkWindowAttr,
102 * pass @GDK_WA_X | @GDK_WA_CURSOR” to gdk_window_new(). Fields in
103 * #GdkWindowAttr not covered by a bit in this enum are required; for example,
104 * the @width/@height, @wclass, and @window_type fields are required, they have
105 * no corresponding flag in #GdkWindowAttributesType.
106 */
107typedef enum
108{
109 GDK_WA_TITLE = 1 << 1,
110 GDK_WA_X = 1 << 2,
111 GDK_WA_Y = 1 << 3,
112 GDK_WA_CURSOR = 1 << 4,
113 GDK_WA_VISUAL = 1 << 5,
114 GDK_WA_WMCLASS = 1 << 6,
115 GDK_WA_NOREDIR = 1 << 7,
116 GDK_WA_TYPE_HINT = 1 << 8
117} GdkWindowAttributesType;
118
119/* Size restriction enumeration.
120 */
121/**
122 * GdkWindowHints:
123 * @GDK_HINT_POS: indicates that the program has positioned the window
124 * @GDK_HINT_MIN_SIZE: min size fields are set
125 * @GDK_HINT_MAX_SIZE: max size fields are set
126 * @GDK_HINT_BASE_SIZE: base size fields are set
127 * @GDK_HINT_ASPECT: aspect ratio fields are set
128 * @GDK_HINT_RESIZE_INC: resize increment fields are set
129 * @GDK_HINT_WIN_GRAVITY: window gravity field is set
130 * @GDK_HINT_USER_POS: indicates that the window’s position was explicitly set
131 * by the user
132 * @GDK_HINT_USER_SIZE: indicates that the window’s size was explicitly set by
133 * the user
134 *
135 * Used to indicate which fields of a #GdkGeometry struct should be paid
136 * attention to. Also, the presence/absence of @GDK_HINT_POS,
137 * @GDK_HINT_USER_POS, and @GDK_HINT_USER_SIZE is significant, though they don't
138 * directly refer to #GdkGeometry fields. @GDK_HINT_USER_POS will be set
139 * automatically by #GtkWindow if you call gtk_window_move().
140 * @GDK_HINT_USER_POS and @GDK_HINT_USER_SIZE should be set if the user
141 * specified a size/position using a --geometry command-line argument;
142 * gtk_window_parse_geometry() automatically sets these flags.
143 */
144typedef enum
145{
146 GDK_HINT_POS = 1 << 0,
147 GDK_HINT_MIN_SIZE = 1 << 1,
148 GDK_HINT_MAX_SIZE = 1 << 2,
149 GDK_HINT_BASE_SIZE = 1 << 3,
150 GDK_HINT_ASPECT = 1 << 4,
151 GDK_HINT_RESIZE_INC = 1 << 5,
152 GDK_HINT_WIN_GRAVITY = 1 << 6,
153 GDK_HINT_USER_POS = 1 << 7,
154 GDK_HINT_USER_SIZE = 1 << 8
155} GdkWindowHints;
156
157/* The next two enumeration values current match the
158 * Motif constants. If this is changed, the implementation
159 * of gdk_window_set_decorations/gdk_window_set_functions
160 * will need to change as well.
161 */
162/**
163 * GdkWMDecoration:
164 * @GDK_DECOR_ALL: all decorations should be applied.
165 * @GDK_DECOR_BORDER: a frame should be drawn around the window.
166 * @GDK_DECOR_RESIZEH: the frame should have resize handles.
167 * @GDK_DECOR_TITLE: a titlebar should be placed above the window.
168 * @GDK_DECOR_MENU: a button for opening a menu should be included.
169 * @GDK_DECOR_MINIMIZE: a minimize button should be included.
170 * @GDK_DECOR_MAXIMIZE: a maximize button should be included.
171 *
172 * These are hints originally defined by the Motif toolkit.
173 * The window manager can use them when determining how to decorate
174 * the window. The hint must be set before mapping the window.
175 */
176typedef enum
177{
178 GDK_DECOR_ALL = 1 << 0,
179 GDK_DECOR_BORDER = 1 << 1,
180 GDK_DECOR_RESIZEH = 1 << 2,
181 GDK_DECOR_TITLE = 1 << 3,
182 GDK_DECOR_MENU = 1 << 4,
183 GDK_DECOR_MINIMIZE = 1 << 5,
184 GDK_DECOR_MAXIMIZE = 1 << 6
185} GdkWMDecoration;
186
187/**
188 * GdkWMFunction:
189 * @GDK_FUNC_ALL: all functions should be offered.
190 * @GDK_FUNC_RESIZE: the window should be resizable.
191 * @GDK_FUNC_MOVE: the window should be movable.
192 * @GDK_FUNC_MINIMIZE: the window should be minimizable.
193 * @GDK_FUNC_MAXIMIZE: the window should be maximizable.
194 * @GDK_FUNC_CLOSE: the window should be closable.
195 *
196 * These are hints originally defined by the Motif toolkit. The window manager
197 * can use them when determining the functions to offer for the window. The
198 * hint must be set before mapping the window.
199 */
200typedef enum
201{
202 GDK_FUNC_ALL = 1 << 0,
203 GDK_FUNC_RESIZE = 1 << 1,
204 GDK_FUNC_MOVE = 1 << 2,
205 GDK_FUNC_MINIMIZE = 1 << 3,
206 GDK_FUNC_MAXIMIZE = 1 << 4,
207 GDK_FUNC_CLOSE = 1 << 5
208} GdkWMFunction;
209
210/* Currently, these are the same values numerically as in the
211 * X protocol. If you change that, gdkwindow-x11.c/gdk_window_set_geometry_hints()
212 * will need fixing.
213 */
214/**
215 * GdkGravity:
216 * @GDK_GRAVITY_NORTH_WEST: the reference point is at the top left corner.
217 * @GDK_GRAVITY_NORTH: the reference point is in the middle of the top edge.
218 * @GDK_GRAVITY_NORTH_EAST: the reference point is at the top right corner.
219 * @GDK_GRAVITY_WEST: the reference point is at the middle of the left edge.
220 * @GDK_GRAVITY_CENTER: the reference point is at the center of the window.
221 * @GDK_GRAVITY_EAST: the reference point is at the middle of the right edge.
222 * @GDK_GRAVITY_SOUTH_WEST: the reference point is at the lower left corner.
223 * @GDK_GRAVITY_SOUTH: the reference point is at the middle of the lower edge.
224 * @GDK_GRAVITY_SOUTH_EAST: the reference point is at the lower right corner.
225 * @GDK_GRAVITY_STATIC: the reference point is at the top left corner of the
226 * window itself, ignoring window manager decorations.
227 *
228 * Defines the reference point of a window and the meaning of coordinates
229 * passed to gtk_window_move(). See gtk_window_move() and the "implementation
230 * notes" section of the
231 * [Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec)
232 * specification for more details.
233 */
234typedef enum
235{
236 GDK_GRAVITY_NORTH_WEST = 1,
237 GDK_GRAVITY_NORTH,
238 GDK_GRAVITY_NORTH_EAST,
239 GDK_GRAVITY_WEST,
240 GDK_GRAVITY_CENTER,
241 GDK_GRAVITY_EAST,
242 GDK_GRAVITY_SOUTH_WEST,
243 GDK_GRAVITY_SOUTH,
244 GDK_GRAVITY_SOUTH_EAST,
245 GDK_GRAVITY_STATIC
246} GdkGravity;
247
248/**
249 * GdkAnchorHints:
250 * @GDK_ANCHOR_FLIP_X: allow flipping anchors horizontally
251 * @GDK_ANCHOR_FLIP_Y: allow flipping anchors vertically
252 * @GDK_ANCHOR_SLIDE_X: allow sliding window horizontally
253 * @GDK_ANCHOR_SLIDE_Y: allow sliding window vertically
254 * @GDK_ANCHOR_RESIZE_X: allow resizing window horizontally
255 * @GDK_ANCHOR_RESIZE_Y: allow resizing window vertically
256 * @GDK_ANCHOR_FLIP: allow flipping anchors on both axes
257 * @GDK_ANCHOR_SLIDE: allow sliding window on both axes
258 * @GDK_ANCHOR_RESIZE: allow resizing window on both axes
259 *
260 * Positioning hints for aligning a window relative to a rectangle.
261 *
262 * These hints determine how the window should be positioned in the case that
263 * the window would fall off-screen if placed in its ideal position.
264 *
265 * For example, %GDK_ANCHOR_FLIP_X will replace %GDK_GRAVITY_NORTH_WEST with
266 * %GDK_GRAVITY_NORTH_EAST and vice versa if the window extends beyond the left
267 * or right edges of the monitor.
268 *
269 * If %GDK_ANCHOR_SLIDE_X is set, the window can be shifted horizontally to fit
270 * on-screen. If %GDK_ANCHOR_RESIZE_X is set, the window can be shrunken
271 * horizontally to fit.
272 *
273 * In general, when multiple flags are set, flipping should take precedence over
274 * sliding, which should take precedence over resizing.
275 *
276 * Since: 3.22
277 * Stability: Unstable
278 */
279typedef enum
280{
281 GDK_ANCHOR_FLIP_X = 1 << 0,
282 GDK_ANCHOR_FLIP_Y = 1 << 1,
283 GDK_ANCHOR_SLIDE_X = 1 << 2,
284 GDK_ANCHOR_SLIDE_Y = 1 << 3,
285 GDK_ANCHOR_RESIZE_X = 1 << 4,
286 GDK_ANCHOR_RESIZE_Y = 1 << 5,
287 GDK_ANCHOR_FLIP = GDK_ANCHOR_FLIP_X | GDK_ANCHOR_FLIP_Y,
288 GDK_ANCHOR_SLIDE = GDK_ANCHOR_SLIDE_X | GDK_ANCHOR_SLIDE_Y,
289 GDK_ANCHOR_RESIZE = GDK_ANCHOR_RESIZE_X | GDK_ANCHOR_RESIZE_Y
290} GdkAnchorHints;
291
292/**
293 * GdkWindowEdge:
294 * @GDK_WINDOW_EDGE_NORTH_WEST: the top left corner.
295 * @GDK_WINDOW_EDGE_NORTH: the top edge.
296 * @GDK_WINDOW_EDGE_NORTH_EAST: the top right corner.
297 * @GDK_WINDOW_EDGE_WEST: the left edge.
298 * @GDK_WINDOW_EDGE_EAST: the right edge.
299 * @GDK_WINDOW_EDGE_SOUTH_WEST: the lower left corner.
300 * @GDK_WINDOW_EDGE_SOUTH: the lower edge.
301 * @GDK_WINDOW_EDGE_SOUTH_EAST: the lower right corner.
302 *
303 * Determines a window edge or corner.
304 */
305typedef enum
306{
307 GDK_WINDOW_EDGE_NORTH_WEST,
308 GDK_WINDOW_EDGE_NORTH,
309 GDK_WINDOW_EDGE_NORTH_EAST,
310 GDK_WINDOW_EDGE_WEST,
311 GDK_WINDOW_EDGE_EAST,
312 GDK_WINDOW_EDGE_SOUTH_WEST,
313 GDK_WINDOW_EDGE_SOUTH,
314 GDK_WINDOW_EDGE_SOUTH_EAST
315} GdkWindowEdge;
316
317/**
318 * GdkFullscreenMode:
319 * @GDK_FULLSCREEN_ON_CURRENT_MONITOR: Fullscreen on current monitor only.
320 * @GDK_FULLSCREEN_ON_ALL_MONITORS: Span across all monitors when fullscreen.
321 *
322 * Indicates which monitor (in a multi-head setup) a window should span over
323 * when in fullscreen mode.
324 *
325 * Since: 3.8
326 **/
327typedef enum
328{
329 GDK_FULLSCREEN_ON_CURRENT_MONITOR,
330 GDK_FULLSCREEN_ON_ALL_MONITORS
331} GdkFullscreenMode;
332
333/**
334 * GdkWindowAttr:
335 * @title: title of the window (for toplevel windows)
336 * @event_mask: event mask (see gdk_window_set_events())
337 * @x: X coordinate relative to parent window (see gdk_window_move())
338 * @y: Y coordinate relative to parent window (see gdk_window_move())
339 * @width: width of window
340 * @height: height of window
341 * @wclass: #GDK_INPUT_OUTPUT (normal window) or #GDK_INPUT_ONLY (invisible
342 * window that receives events)
343 * @visual: #GdkVisual for window
344 * @window_type: type of window
345 * @cursor: cursor for the window (see gdk_window_set_cursor())
346 * @wmclass_name: don’t use (see gtk_window_set_wmclass())
347 * @wmclass_class: don’t use (see gtk_window_set_wmclass())
348 * @override_redirect: %TRUE to bypass the window manager
349 * @type_hint: a hint of the function of the window
350 *
351 * Attributes to use for a newly-created window.
352 */
353struct _GdkWindowAttr
354{
355 gchar *title;
356 gint event_mask;
357 gint x, y;
358 gint width;
359 gint height;
360 GdkWindowWindowClass wclass;
361 GdkVisual *visual;
362 GdkWindowType window_type;
363 GdkCursor *cursor;
364 gchar *wmclass_name;
365 gchar *wmclass_class;
366 gboolean override_redirect;
367 GdkWindowTypeHint type_hint;
368};
369
370/**
371 * GdkGeometry:
372 * @min_width: minimum width of window (or -1 to use requisition, with
373 * #GtkWindow only)
374 * @min_height: minimum height of window (or -1 to use requisition, with
375 * #GtkWindow only)
376 * @max_width: maximum width of window (or -1 to use requisition, with
377 * #GtkWindow only)
378 * @max_height: maximum height of window (or -1 to use requisition, with
379 * #GtkWindow only)
380 * @base_width: allowed window widths are @base_width + @width_inc * N where N
381 * is any integer (-1 allowed with #GtkWindow)
382 * @base_height: allowed window widths are @base_height + @height_inc * N where
383 * N is any integer (-1 allowed with #GtkWindow)
384 * @width_inc: width resize increment
385 * @height_inc: height resize increment
386 * @min_aspect: minimum width/height ratio
387 * @max_aspect: maximum width/height ratio
388 * @win_gravity: window gravity, see gtk_window_set_gravity()
389 *
390 * The #GdkGeometry struct gives the window manager information about
391 * a window’s geometry constraints. Normally you would set these on
392 * the GTK+ level using gtk_window_set_geometry_hints(). #GtkWindow
393 * then sets the hints on the #GdkWindow it creates.
394 *
395 * gdk_window_set_geometry_hints() expects the hints to be fully valid already
396 * and simply passes them to the window manager; in contrast,
397 * gtk_window_set_geometry_hints() performs some interpretation. For example,
398 * #GtkWindow will apply the hints to the geometry widget instead of the
399 * toplevel window, if you set a geometry widget. Also, the
400 * @min_width/@min_height/@max_width/@max_height fields may be set to -1, and
401 * #GtkWindow will substitute the size request of the window or geometry widget.
402 * If the minimum size hint is not provided, #GtkWindow will use its requisition
403 * as the minimum size. If the minimum size is provided and a geometry widget is
404 * set, #GtkWindow will take the minimum size as the minimum size of the
405 * geometry widget rather than the entire window. The base size is treated
406 * similarly.
407 *
408 * The canonical use-case for gtk_window_set_geometry_hints() is to get a
409 * terminal widget to resize properly. Here, the terminal text area should be
410 * the geometry widget; #GtkWindow will then automatically set the base size to
411 * the size of other widgets in the terminal window, such as the menubar and
412 * scrollbar. Then, the @width_inc and @height_inc fields should be set to the
413 * size of one character in the terminal. Finally, the base size should be set
414 * to the size of one character. The net effect is that the minimum size of the
415 * terminal will have a 1x1 character terminal area, and only terminal sizes on
416 * the “character grid” will be allowed.
417 *
418 * Here’s an example of how the terminal example would be implemented, assuming
419 * a terminal area widget called “terminal” and a toplevel window “toplevel”:
420 *
421 * |[<!-- language="C" -->
422 * GdkGeometry hints;
423 *
424 * hints.base_width = terminal->char_width;
425 * hints.base_height = terminal->char_height;
426 * hints.min_width = terminal->char_width;
427 * hints.min_height = terminal->char_height;
428 * hints.width_inc = terminal->char_width;
429 * hints.height_inc = terminal->char_height;
430 *
431 * gtk_window_set_geometry_hints (GTK_WINDOW (toplevel),
432 * GTK_WIDGET (terminal),
433 * &hints,
434 * GDK_HINT_RESIZE_INC |
435 * GDK_HINT_MIN_SIZE |
436 * GDK_HINT_BASE_SIZE);
437 * ]|
438 *
439 * The other useful fields are the @min_aspect and @max_aspect fields; these
440 * contain a width/height ratio as a floating point number. If a geometry widget
441 * is set, the aspect applies to the geometry widget rather than the entire
442 * window. The most common use of these hints is probably to set @min_aspect and
443 * @max_aspect to the same value, thus forcing the window to keep a constant
444 * aspect ratio.
445 */
446struct _GdkGeometry
447{
448 gint min_width;
449 gint min_height;
450 gint max_width;
451 gint max_height;
452 gint base_width;
453 gint base_height;
454 gint width_inc;
455 gint height_inc;
456 gdouble min_aspect;
457 gdouble max_aspect;
458 GdkGravity win_gravity;
459};
460
461typedef struct _GdkWindowClass GdkWindowClass;
462
463#define GDK_TYPE_WINDOW (gdk_window_get_type ())
464#define GDK_WINDOW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_WINDOW, GdkWindow))
465#define GDK_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_WINDOW, GdkWindowClass))
466#define GDK_IS_WINDOW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_WINDOW))
467#define GDK_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WINDOW))
468#define GDK_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WINDOW, GdkWindowClass))
469
470
471struct _GdkWindowClass
472{
473 GObjectClass parent_class;
474
475 GdkWindow * (* pick_embedded_child) (GdkWindow *window,
476 gdouble x,
477 gdouble y);
478
479 /* the following 3 signals will only be emitted by offscreen windows */
480 void (* to_embedder) (GdkWindow *window,
481 gdouble offscreen_x,
482 gdouble offscreen_y,
483 gdouble *embedder_x,
484 gdouble *embedder_y);
485 void (* from_embedder) (GdkWindow *window,
486 gdouble embedder_x,
487 gdouble embedder_y,
488 gdouble *offscreen_x,
489 gdouble *offscreen_y);
490 cairo_surface_t * (* create_surface) (GdkWindow *window,
491 gint width,
492 gint height);
493
494 /* Padding for future expansion */
495 void (*_gdk_reserved1) (void);
496 void (*_gdk_reserved2) (void);
497 void (*_gdk_reserved3) (void);
498 void (*_gdk_reserved4) (void);
499 void (*_gdk_reserved5) (void);
500 void (*_gdk_reserved6) (void);
501 void (*_gdk_reserved7) (void);
502 void (*_gdk_reserved8) (void);
503};
504
505/* Windows
506 */
507GDK_AVAILABLE_IN_ALL
508GType gdk_window_get_type (void) G_GNUC_CONST;
509GDK_AVAILABLE_IN_ALL
510GdkWindow* gdk_window_new (GdkWindow *parent,
511 GdkWindowAttr *attributes,
512 gint attributes_mask);
513GDK_AVAILABLE_IN_ALL
514void gdk_window_destroy (GdkWindow *window);
515GDK_AVAILABLE_IN_ALL
516GdkWindowType gdk_window_get_window_type (GdkWindow *window);
517GDK_AVAILABLE_IN_ALL
518gboolean gdk_window_is_destroyed (GdkWindow *window);
519
520GDK_AVAILABLE_IN_ALL
521GdkVisual * gdk_window_get_visual (GdkWindow *window);
522GDK_AVAILABLE_IN_ALL
523GdkScreen * gdk_window_get_screen (GdkWindow *window);
524GDK_AVAILABLE_IN_ALL
525GdkDisplay * gdk_window_get_display (GdkWindow *window);
526#ifndef GDK_MULTIDEVICE_SAFE
527GDK_DEPRECATED_IN_3_0_FOR(gdk_device_get_window_at_position)
528GdkWindow* gdk_window_at_pointer (gint *win_x,
529 gint *win_y);
530#endif /* GDK_MULTIDEVICE_SAFE */
531GDK_AVAILABLE_IN_ALL
532void gdk_window_show (GdkWindow *window);
533GDK_AVAILABLE_IN_ALL
534void gdk_window_hide (GdkWindow *window);
535GDK_AVAILABLE_IN_ALL
536void gdk_window_withdraw (GdkWindow *window);
537GDK_AVAILABLE_IN_ALL
538void gdk_window_show_unraised (GdkWindow *window);
539GDK_AVAILABLE_IN_ALL
540void gdk_window_move (GdkWindow *window,
541 gint x,
542 gint y);
543GDK_AVAILABLE_IN_ALL
544void gdk_window_resize (GdkWindow *window,
545 gint width,
546 gint height);
547GDK_AVAILABLE_IN_ALL
548void gdk_window_move_resize (GdkWindow *window,
549 gint x,
550 gint y,
551 gint width,
552 gint height);
553GDK_AVAILABLE_IN_ALL
554void gdk_window_reparent (GdkWindow *window,
555 GdkWindow *new_parent,
556 gint x,
557 gint y);
558GDK_AVAILABLE_IN_ALL
559void gdk_window_raise (GdkWindow *window);
560GDK_AVAILABLE_IN_ALL
561void gdk_window_lower (GdkWindow *window);
562GDK_AVAILABLE_IN_ALL
563void gdk_window_restack (GdkWindow *window,
564 GdkWindow *sibling,
565 gboolean above);
566GDK_AVAILABLE_IN_ALL
567void gdk_window_focus (GdkWindow *window,
568 guint32 timestamp);
569GDK_AVAILABLE_IN_ALL
570void gdk_window_set_user_data (GdkWindow *window,
571 gpointer user_data);
572GDK_AVAILABLE_IN_ALL
573void gdk_window_set_override_redirect (GdkWindow *window,
574 gboolean override_redirect);
575GDK_AVAILABLE_IN_ALL
576gboolean gdk_window_get_accept_focus (GdkWindow *window);
577GDK_AVAILABLE_IN_ALL
578void gdk_window_set_accept_focus (GdkWindow *window,
579 gboolean accept_focus);
580GDK_AVAILABLE_IN_ALL
581gboolean gdk_window_get_focus_on_map (GdkWindow *window);
582GDK_AVAILABLE_IN_ALL
583void gdk_window_set_focus_on_map (GdkWindow *window,
584 gboolean focus_on_map);
585GDK_AVAILABLE_IN_ALL
586void gdk_window_add_filter (GdkWindow *window,
587 GdkFilterFunc function,
588 gpointer data);
589GDK_AVAILABLE_IN_ALL
590void gdk_window_remove_filter (GdkWindow *window,
591 GdkFilterFunc function,
592 gpointer data);
593GDK_AVAILABLE_IN_ALL
594void gdk_window_scroll (GdkWindow *window,
595 gint dx,
596 gint dy);
597GDK_AVAILABLE_IN_ALL
598void gdk_window_move_region (GdkWindow *window,
599 const cairo_region_t *region,
600 gint dx,
601 gint dy);
602GDK_AVAILABLE_IN_ALL
603gboolean gdk_window_ensure_native (GdkWindow *window);
604
605/*
606 * This allows for making shaped (partially transparent) windows
607 * - cool feature, needed for Drag and Drag for example.
608 */
609GDK_AVAILABLE_IN_ALL
610void gdk_window_shape_combine_region (GdkWindow *window,
611 const cairo_region_t *shape_region,
612 gint offset_x,
613 gint offset_y);
614
615/*
616 * This routine allows you to quickly take the shapes of all the child windows
617 * of a window and use their shapes as the shape mask for this window - useful
618 * for container windows that dont want to look like a big box
619 *
620 * - Raster
621 */
622GDK_AVAILABLE_IN_ALL
623void gdk_window_set_child_shapes (GdkWindow *window);
624
625GDK_DEPRECATED_IN_3_16
626gboolean gdk_window_get_composited (GdkWindow *window);
627GDK_DEPRECATED_IN_3_16
628void gdk_window_set_composited (GdkWindow *window,
629 gboolean composited);
630
631/*
632 * This routine allows you to merge (ie ADD) child shapes to your
633 * own window’s shape keeping its current shape and ADDING the child
634 * shapes to it.
635 *
636 * - Raster
637 */
638GDK_AVAILABLE_IN_ALL
639void gdk_window_merge_child_shapes (GdkWindow *window);
640
641GDK_AVAILABLE_IN_ALL
642void gdk_window_input_shape_combine_region (GdkWindow *window,
643 const cairo_region_t *shape_region,
644 gint offset_x,
645 gint offset_y);
646GDK_AVAILABLE_IN_ALL
647void gdk_window_set_child_input_shapes (GdkWindow *window);
648GDK_AVAILABLE_IN_ALL
649void gdk_window_merge_child_input_shapes (GdkWindow *window);
650
651
652GDK_AVAILABLE_IN_3_18
653void gdk_window_set_pass_through (GdkWindow *window,
654 gboolean pass_through);
655GDK_AVAILABLE_IN_3_18
656gboolean gdk_window_get_pass_through (GdkWindow *window);
657
658/*
659 * Check if a window has been shown, and whether all its
660 * parents up to a toplevel have been shown, respectively.
661 * Note that a window that is_viewable below is not necessarily
662 * viewable in the X sense.
663 */
664GDK_AVAILABLE_IN_ALL
665gboolean gdk_window_is_visible (GdkWindow *window);
666GDK_AVAILABLE_IN_ALL
667gboolean gdk_window_is_viewable (GdkWindow *window);
668GDK_AVAILABLE_IN_ALL
669gboolean gdk_window_is_input_only (GdkWindow *window);
670GDK_AVAILABLE_IN_ALL
671gboolean gdk_window_is_shaped (GdkWindow *window);
672
673GDK_AVAILABLE_IN_ALL
674GdkWindowState gdk_window_get_state (GdkWindow *window);
675
676/* Set static bit gravity on the parent, and static
677 * window gravity on all children.
678 */
679GDK_DEPRECATED_IN_3_16
680gboolean gdk_window_set_static_gravities (GdkWindow *window,
681 gboolean use_static);
682
683/* GdkWindow */
684
685/**
686 * GdkWindowInvalidateHandlerFunc:
687 * @window: a #GdkWindow
688 * @region: a #cairo_region_t
689 *
690 * Whenever some area of the window is invalidated (directly in the
691 * window or in a child window) this gets called with @region in
692 * the coordinate space of @window. You can use @region to just
693 * keep track of the dirty region, or you can actually change
694 * @region in case you are doing display tricks like showing
695 * a child in multiple places.
696 *
697 * Since: 3.10
698 */
699typedef void (*GdkWindowInvalidateHandlerFunc) (GdkWindow *window,
700 cairo_region_t *region);
701GDK_AVAILABLE_IN_3_10
702void gdk_window_set_invalidate_handler (GdkWindow *window,
703 GdkWindowInvalidateHandlerFunc handler);
704
705GDK_AVAILABLE_IN_ALL
706gboolean gdk_window_has_native (GdkWindow *window);
707GDK_AVAILABLE_IN_ALL
708void gdk_window_set_type_hint (GdkWindow *window,
709 GdkWindowTypeHint hint);
710GDK_AVAILABLE_IN_ALL
711GdkWindowTypeHint gdk_window_get_type_hint (GdkWindow *window);
712
713GDK_AVAILABLE_IN_ALL
714gboolean gdk_window_get_modal_hint (GdkWindow *window);
715GDK_AVAILABLE_IN_ALL
716void gdk_window_set_modal_hint (GdkWindow *window,
717 gboolean modal);
718
719GDK_AVAILABLE_IN_ALL
720void gdk_window_set_skip_taskbar_hint (GdkWindow *window,
721 gboolean skips_taskbar);
722GDK_AVAILABLE_IN_ALL
723void gdk_window_set_skip_pager_hint (GdkWindow *window,
724 gboolean skips_pager);
725GDK_AVAILABLE_IN_ALL
726void gdk_window_set_urgency_hint (GdkWindow *window,
727 gboolean urgent);
728
729GDK_AVAILABLE_IN_ALL
730void gdk_window_set_geometry_hints (GdkWindow *window,
731 const GdkGeometry *geometry,
732 GdkWindowHints geom_mask);
733
734GDK_AVAILABLE_IN_ALL
735cairo_region_t *gdk_window_get_clip_region (GdkWindow *window);
736GDK_AVAILABLE_IN_ALL
737cairo_region_t *gdk_window_get_visible_region(GdkWindow *window);
738
739
740GDK_DEPRECATED_IN_3_22_FOR(gdk_window_begin_draw_frame)
741void gdk_window_begin_paint_rect (GdkWindow *window,
742 const GdkRectangle *rectangle);
743GDK_AVAILABLE_IN_3_16
744void gdk_window_mark_paint_from_clip (GdkWindow *window,
745 cairo_t *cr);
746GDK_DEPRECATED_IN_3_22_FOR(gdk_window_begin_draw_frame)
747void gdk_window_begin_paint_region (GdkWindow *window,
748 const cairo_region_t *region);
749GDK_DEPRECATED_IN_3_22_FOR(gdk_window_end_draw_frame)
750void gdk_window_end_paint (GdkWindow *window);
751
752GDK_AVAILABLE_IN_3_22
753GdkDrawingContext *gdk_window_begin_draw_frame (GdkWindow *window,
754 const cairo_region_t *region);
755GDK_AVAILABLE_IN_3_22
756void gdk_window_end_draw_frame (GdkWindow *window,
757 GdkDrawingContext *context);
758
759GDK_DEPRECATED_IN_3_14
760void gdk_window_flush (GdkWindow *window);
761
762GDK_AVAILABLE_IN_ALL
763void gdk_window_set_title (GdkWindow *window,
764 const gchar *title);
765GDK_AVAILABLE_IN_ALL
766void gdk_window_set_role (GdkWindow *window,
767 const gchar *role);
768GDK_AVAILABLE_IN_ALL
769void gdk_window_set_startup_id (GdkWindow *window,
770 const gchar *startup_id);
771GDK_AVAILABLE_IN_ALL
772void gdk_window_set_transient_for (GdkWindow *window,
773 GdkWindow *parent);
774GDK_DEPRECATED_IN_3_4
775void gdk_window_set_background (GdkWindow *window,
776 const GdkColor *color);
777GDK_DEPRECATED_IN_3_22
778void gdk_window_set_background_rgba (GdkWindow *window,
779 const GdkRGBA *rgba);
780GDK_DEPRECATED_IN_3_22
781void gdk_window_set_background_pattern (GdkWindow *window,
782 cairo_pattern_t *pattern);
783GDK_DEPRECATED_IN_3_22
784cairo_pattern_t *gdk_window_get_background_pattern (GdkWindow *window);
785
786GDK_AVAILABLE_IN_ALL
787void gdk_window_set_cursor (GdkWindow *window,
788 GdkCursor *cursor);
789GDK_AVAILABLE_IN_ALL
790GdkCursor *gdk_window_get_cursor (GdkWindow *window);
791GDK_AVAILABLE_IN_ALL
792void gdk_window_set_device_cursor (GdkWindow *window,
793 GdkDevice *device,
794 GdkCursor *cursor);
795GDK_AVAILABLE_IN_ALL
796GdkCursor *gdk_window_get_device_cursor (GdkWindow *window,
797 GdkDevice *device);
798GDK_AVAILABLE_IN_ALL
799void gdk_window_get_user_data (GdkWindow *window,
800 gpointer *data);
801GDK_AVAILABLE_IN_ALL
802void gdk_window_get_geometry (GdkWindow *window,
803 gint *x,
804 gint *y,
805 gint *width,
806 gint *height);
807GDK_AVAILABLE_IN_ALL
808int gdk_window_get_width (GdkWindow *window);
809GDK_AVAILABLE_IN_ALL
810int gdk_window_get_height (GdkWindow *window);
811GDK_AVAILABLE_IN_ALL
812void gdk_window_get_position (GdkWindow *window,
813 gint *x,
814 gint *y);
815GDK_AVAILABLE_IN_ALL
816gint gdk_window_get_origin (GdkWindow *window,
817 gint *x,
818 gint *y);
819GDK_AVAILABLE_IN_ALL
820void gdk_window_get_root_coords (GdkWindow *window,
821 gint x,
822 gint y,
823 gint *root_x,
824 gint *root_y);
825GDK_AVAILABLE_IN_ALL
826void gdk_window_coords_to_parent (GdkWindow *window,
827 gdouble x,
828 gdouble y,
829 gdouble *parent_x,
830 gdouble *parent_y);
831GDK_AVAILABLE_IN_ALL
832void gdk_window_coords_from_parent (GdkWindow *window,
833 gdouble parent_x,
834 gdouble parent_y,
835 gdouble *x,
836 gdouble *y);
837
838GDK_AVAILABLE_IN_ALL
839void gdk_window_get_root_origin (GdkWindow *window,
840 gint *x,
841 gint *y);
842GDK_AVAILABLE_IN_ALL
843void gdk_window_get_frame_extents (GdkWindow *window,
844 GdkRectangle *rect);
845
846GDK_AVAILABLE_IN_3_10
847gint gdk_window_get_scale_factor (GdkWindow *window);
848
849#ifndef GDK_MULTIDEVICE_SAFE
850GDK_DEPRECATED_IN_3_0_FOR(gdk_window_get_device_position)
851GdkWindow * gdk_window_get_pointer (GdkWindow *window,
852 gint *x,
853 gint *y,
854 GdkModifierType *mask);
855#endif /* GDK_MULTIDEVICE_SAFE */
856GDK_AVAILABLE_IN_ALL
857GdkWindow * gdk_window_get_device_position (GdkWindow *window,
858 GdkDevice *device,
859 gint *x,
860 gint *y,
861 GdkModifierType *mask);
862GDK_AVAILABLE_IN_3_10
863GdkWindow * gdk_window_get_device_position_double (GdkWindow *window,
864 GdkDevice *device,
865 gdouble *x,
866 gdouble *y,
867 GdkModifierType *mask);
868GDK_AVAILABLE_IN_ALL
869GdkWindow * gdk_window_get_parent (GdkWindow *window);
870GDK_AVAILABLE_IN_ALL
871GdkWindow * gdk_window_get_toplevel (GdkWindow *window);
872
873GDK_AVAILABLE_IN_ALL
874GdkWindow * gdk_window_get_effective_parent (GdkWindow *window);
875GDK_AVAILABLE_IN_ALL
876GdkWindow * gdk_window_get_effective_toplevel (GdkWindow *window);
877
878GDK_AVAILABLE_IN_ALL
879GList * gdk_window_get_children (GdkWindow *window);
880GDK_AVAILABLE_IN_ALL
881GList * gdk_window_peek_children (GdkWindow *window);
882GDK_AVAILABLE_IN_3_10
883GList * gdk_window_get_children_with_user_data (GdkWindow *window,
884 gpointer user_data);
885
886GDK_AVAILABLE_IN_ALL
887GdkEventMask gdk_window_get_events (GdkWindow *window);
888GDK_AVAILABLE_IN_ALL
889void gdk_window_set_events (GdkWindow *window,
890 GdkEventMask event_mask);
891GDK_AVAILABLE_IN_ALL
892void gdk_window_set_device_events (GdkWindow *window,
893 GdkDevice *device,
894 GdkEventMask event_mask);
895GDK_AVAILABLE_IN_ALL
896GdkEventMask gdk_window_get_device_events (GdkWindow *window,
897 GdkDevice *device);
898
899GDK_AVAILABLE_IN_ALL
900void gdk_window_set_source_events (GdkWindow *window,
901 GdkInputSource source,
902 GdkEventMask event_mask);
903GDK_AVAILABLE_IN_ALL
904GdkEventMask gdk_window_get_source_events (GdkWindow *window,
905 GdkInputSource source);
906
907GDK_AVAILABLE_IN_ALL
908void gdk_window_set_icon_list (GdkWindow *window,
909 GList *pixbufs);
910GDK_AVAILABLE_IN_ALL
911void gdk_window_set_icon_name (GdkWindow *window,
912 const gchar *name);
913GDK_AVAILABLE_IN_ALL
914void gdk_window_set_group (GdkWindow *window,
915 GdkWindow *leader);
916GDK_AVAILABLE_IN_ALL
917GdkWindow* gdk_window_get_group (GdkWindow *window);
918GDK_AVAILABLE_IN_ALL
919void gdk_window_set_decorations (GdkWindow *window,
920 GdkWMDecoration decorations);
921GDK_AVAILABLE_IN_ALL
922gboolean gdk_window_get_decorations (GdkWindow *window,
923 GdkWMDecoration *decorations);
924GDK_AVAILABLE_IN_ALL
925void gdk_window_set_functions (GdkWindow *window,
926 GdkWMFunction functions);
927
928GDK_AVAILABLE_IN_ALL
929cairo_surface_t *
930 gdk_window_create_similar_surface (GdkWindow *window,
931 cairo_content_t content,
932 int width,
933 int height);
934GDK_AVAILABLE_IN_3_10
935cairo_surface_t *
936 gdk_window_create_similar_image_surface (GdkWindow *window,
937 cairo_format_t format,
938 int width,
939 int height,
940 int scale);
941
942GDK_AVAILABLE_IN_ALL
943void gdk_window_beep (GdkWindow *window);
944GDK_AVAILABLE_IN_ALL
945void gdk_window_iconify (GdkWindow *window);
946GDK_AVAILABLE_IN_ALL
947void gdk_window_deiconify (GdkWindow *window);
948GDK_AVAILABLE_IN_ALL
949void gdk_window_stick (GdkWindow *window);
950GDK_AVAILABLE_IN_ALL
951void gdk_window_unstick (GdkWindow *window);
952GDK_AVAILABLE_IN_ALL
953void gdk_window_maximize (GdkWindow *window);
954GDK_AVAILABLE_IN_ALL
955void gdk_window_unmaximize (GdkWindow *window);
956GDK_AVAILABLE_IN_ALL
957void gdk_window_fullscreen (GdkWindow *window);
958GDK_AVAILABLE_IN_3_18
959void gdk_window_fullscreen_on_monitor (GdkWindow *window,
960 gint monitor);
961GDK_AVAILABLE_IN_3_8
962void gdk_window_set_fullscreen_mode (GdkWindow *window,
963 GdkFullscreenMode mode);
964GDK_AVAILABLE_IN_3_8
965GdkFullscreenMode
966 gdk_window_get_fullscreen_mode (GdkWindow *window);
967GDK_AVAILABLE_IN_ALL
968void gdk_window_unfullscreen (GdkWindow *window);
969GDK_AVAILABLE_IN_ALL
970void gdk_window_set_keep_above (GdkWindow *window,
971 gboolean setting);
972GDK_AVAILABLE_IN_ALL
973void gdk_window_set_keep_below (GdkWindow *window,
974 gboolean setting);
975GDK_AVAILABLE_IN_ALL
976void gdk_window_set_opacity (GdkWindow *window,
977 gdouble opacity);
978GDK_AVAILABLE_IN_ALL
979void gdk_window_register_dnd (GdkWindow *window);
980
981GDK_AVAILABLE_IN_ALL
982GdkDragProtocol
983 gdk_window_get_drag_protocol(GdkWindow *window,
984 GdkWindow **target);
985
986GDK_AVAILABLE_IN_ALL
987void gdk_window_begin_resize_drag (GdkWindow *window,
988 GdkWindowEdge edge,
989 gint button,
990 gint root_x,
991 gint root_y,
992 guint32 timestamp);
993GDK_AVAILABLE_IN_3_4
994void gdk_window_begin_resize_drag_for_device (GdkWindow *window,
995 GdkWindowEdge edge,
996 GdkDevice *device,
997 gint button,
998 gint root_x,
999 gint root_y,
1000 guint32 timestamp);
1001GDK_AVAILABLE_IN_ALL
1002void gdk_window_begin_move_drag (GdkWindow *window,
1003 gint button,
1004 gint root_x,
1005 gint root_y,
1006 guint32 timestamp);
1007GDK_AVAILABLE_IN_3_4
1008void gdk_window_begin_move_drag_for_device (GdkWindow *window,
1009 GdkDevice *device,
1010 gint button,
1011 gint root_x,
1012 gint root_y,
1013 guint32 timestamp);
1014
1015/* Interface for dirty-region queueing */
1016GDK_AVAILABLE_IN_ALL
1017void gdk_window_invalidate_rect (GdkWindow *window,
1018 const GdkRectangle *rect,
1019 gboolean invalidate_children);
1020GDK_AVAILABLE_IN_ALL
1021void gdk_window_invalidate_region (GdkWindow *window,
1022 const cairo_region_t *region,
1023 gboolean invalidate_children);
1024
1025/**
1026 * GdkWindowChildFunc:
1027 * @window: a #GdkWindow
1028 * @user_data: user data
1029 *
1030 * A function of this type is passed to gdk_window_invalidate_maybe_recurse().
1031 * It gets called for each child of the window to determine whether to
1032 * recursively invalidate it or now.
1033 *
1034 * Returns: %TRUE to invalidate @window recursively
1035 */
1036typedef gboolean (*GdkWindowChildFunc) (GdkWindow *window,
1037 gpointer user_data);
1038
1039GDK_AVAILABLE_IN_ALL
1040void gdk_window_invalidate_maybe_recurse (GdkWindow *window,
1041 const cairo_region_t *region,
1042 GdkWindowChildFunc child_func,
1043 gpointer user_data);
1044GDK_AVAILABLE_IN_ALL
1045cairo_region_t *gdk_window_get_update_area (GdkWindow *window);
1046
1047GDK_AVAILABLE_IN_ALL
1048void gdk_window_freeze_updates (GdkWindow *window);
1049GDK_AVAILABLE_IN_ALL
1050void gdk_window_thaw_updates (GdkWindow *window);
1051
1052GDK_DEPRECATED_IN_3_16
1053void gdk_window_freeze_toplevel_updates_libgtk_only (GdkWindow *window);
1054GDK_DEPRECATED_IN_3_16
1055void gdk_window_thaw_toplevel_updates_libgtk_only (GdkWindow *window);
1056
1057GDK_DEPRECATED_IN_3_22
1058void gdk_window_process_all_updates (void);
1059GDK_DEPRECATED_IN_3_22
1060void gdk_window_process_updates (GdkWindow *window,
1061 gboolean update_children);
1062
1063/* Enable/disable flicker, so you can tell if your code is inefficient. */
1064GDK_DEPRECATED_IN_3_22
1065void gdk_window_set_debug_updates (gboolean setting);
1066
1067GDK_AVAILABLE_IN_ALL
1068void gdk_window_constrain_size (GdkGeometry *geometry,
1069 GdkWindowHints flags,
1070 gint width,
1071 gint height,
1072 gint *new_width,
1073 gint *new_height);
1074
1075GDK_DEPRECATED_IN_3_8
1076void gdk_window_enable_synchronized_configure (GdkWindow *window);
1077GDK_DEPRECATED_IN_3_8
1078void gdk_window_configure_finished (GdkWindow *window);
1079
1080GDK_AVAILABLE_IN_ALL
1081GdkWindow *gdk_get_default_root_window (void);
1082
1083/* Offscreen redirection */
1084GDK_AVAILABLE_IN_ALL
1085cairo_surface_t *
1086 gdk_offscreen_window_get_surface (GdkWindow *window);
1087GDK_AVAILABLE_IN_ALL
1088void gdk_offscreen_window_set_embedder (GdkWindow *window,
1089 GdkWindow *embedder);
1090GDK_AVAILABLE_IN_ALL
1091GdkWindow *gdk_offscreen_window_get_embedder (GdkWindow *window);
1092GDK_AVAILABLE_IN_ALL
1093void gdk_window_geometry_changed (GdkWindow *window);
1094
1095/* Multidevice support */
1096GDK_AVAILABLE_IN_ALL
1097void gdk_window_set_support_multidevice (GdkWindow *window,
1098 gboolean support_multidevice);
1099GDK_AVAILABLE_IN_ALL
1100gboolean gdk_window_get_support_multidevice (GdkWindow *window);
1101
1102/* Frame clock */
1103GDK_AVAILABLE_IN_3_8
1104GdkFrameClock* gdk_window_get_frame_clock (GdkWindow *window);
1105
1106GDK_AVAILABLE_IN_3_10
1107void gdk_window_set_opaque_region (GdkWindow *window,
1108 cairo_region_t *region);
1109
1110GDK_AVAILABLE_IN_3_12
1111void gdk_window_set_event_compression (GdkWindow *window,
1112 gboolean event_compression);
1113GDK_AVAILABLE_IN_3_12
1114gboolean gdk_window_get_event_compression (GdkWindow *window);
1115
1116GDK_AVAILABLE_IN_3_12
1117void gdk_window_set_shadow_width (GdkWindow *window,
1118 gint left,
1119 gint right,
1120 gint top,
1121 gint bottom);
1122GDK_AVAILABLE_IN_3_14
1123gboolean gdk_window_show_window_menu (GdkWindow *window,
1124 GdkEvent *event);
1125
1126GDK_AVAILABLE_IN_3_16
1127GdkGLContext * gdk_window_create_gl_context (GdkWindow *window,
1128 GError **error);
1129
1130G_END_DECLS
1131
1132#endif /* __GDK_WINDOW_H__ */
1133