1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Onscreen display areas in the target window system
7 <!-- ##### SECTION Long_Description ##### -->
9 A #GdkWindow is a rectangular region on the screen. It's a low-level object,
10 used to implement high-level objects such as #GtkWidget and #GtkWindow on the
11 GTK+ level. A #GtkWindow is a toplevel window, the thing a user might think of
12 as a "window" with a titlebar and so on; a #GtkWindow may contain many #GdkWindow.
13 For example, each #GtkButton has a #GdkWindow associated with it.
15 <example id="composited-window-example"><title>Composited windows</title>
16 <programlisting><![CDATA[
19 /* The expose event handler for the event box.
21 * This function simply draws a transparency onto a widget on the area
22 * for which it receives expose events. This is intended to give the
23 * event box a "transparent" background.
25 * In order for this to work properly, the widget must have an RGBA
26 * colourmap. The widget should also be set as app-paintable since it
27 * doesn't make sense for GTK+ to draw a background if we are drawing it
28 * (and because GTK+ might actually replace our transparency with its
29 * default background colour).
32 transparent_expose (GtkWidget *widget,
33 GdkEventExpose *event)
37 cr = gdk_cairo_create (widget->window);
38 cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
39 gdk_cairo_region (cr, event->region);
46 /* The expose event handler for the window.
48 * This function performs the actual compositing of the event box onto
49 * the already-existing background of the window at 50% normal opacity.
51 * In this case we do not want app-paintable to be set on the widget
52 * since we want it to draw its own (red) background. Because of this,
53 * however, we must ensure that we use g_signal_connect_after so that
54 * this handler is called after the red has been drawn. If it was
55 * called before then GTK would just blindly paint over our work.
57 * Note: if the child window has children, then you need a cairo 1.16
58 * feature to make this work correctly.
61 window_expose_event (GtkWidget *widget,
62 GdkEventExpose *event)
68 /* get our child (in this case, the event box) */
69 child = gtk_bin_get_child (GTK_BIN (widget));
71 /* create a cairo context to draw to the window */
72 cr = gdk_cairo_create (widget->window);
74 /* the source data is the (composited) event box */
75 gdk_cairo_set_source_pixmap (cr, child->window,
79 /* draw no more than our expose event intersects our child */
80 region = gdk_region_rectangle (&child->allocation);
81 gdk_region_intersect (region, event->region);
82 gdk_cairo_region (cr, region);
85 /* composite, with a 50% opacity */
86 cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
87 cairo_paint_with_alpha (cr, 0.5);
96 main (int argc, char **argv)
98 GtkWidget *window, *event, *button;
103 gtk_init (&argc, &argv);
105 /* Make the widgets */
106 button = gtk_button_new_with_label ("A Button");
107 event = gtk_event_box_new ();
108 window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
110 /* Put a red background on the window */
111 gdk_color_parse ("red", &red);
112 gtk_widget_modify_bg (window, GTK_STATE_NORMAL, &red);
114 /* Set the colourmap for the event box.
115 * Must be done before the event box is realised.
117 screen = gtk_widget_get_screen (event);
118 rgba = gdk_screen_get_rgba_colormap (screen);
119 gtk_widget_set_colormap (event, rgba);
121 /* Set our event box to have a fully-transparent background
122 * drawn on it. Currently there is no way to simply tell GTK+
123 * that "transparency" is the background colour for a widget.
125 gtk_widget_set_app_paintable (GTK_WIDGET (event), TRUE);
126 g_signal_connect (event, "expose-event",
127 G_CALLBACK (transparent_expose), NULL);
129 /* Put them inside one another */
130 gtk_container_set_border_width (GTK_CONTAINER (window), 10);
131 gtk_container_add (GTK_CONTAINER (window), event);
132 gtk_container_add (GTK_CONTAINER (event), button);
134 /* Realise and show everything */
135 gtk_widget_show_all (window);
137 /* Set the event box GdkWindow to be composited.
138 * Obviously must be performed after event box is realised.
140 gdk_window_set_composited (event->window, TRUE);
142 /* Set up the compositing handler.
143 * Note that we do _after_ so that the normal (red) background is drawn
144 * by gtk before our compositing occurs.
146 g_signal_connect_after (window, "expose-event",
147 G_CALLBACK (window_expose_event), NULL);
154 </programlisting></example>
156 In the example <xref linkend="composited-window-example"/>, a button is
157 placed inside of an event box inside of a window. The event box is
158 set as composited and therefore is no longer automatically drawn to
162 When the contents of the event box change, an expose event is
163 generated on its parent window (which, in this case, belongs to
164 the toplevel #GtkWindow). The expose handler for this widget is
165 responsible for merging the changes back on the screen in the way
169 In our case, we merge the contents with a 50% transparency. We
170 also set the background colour of the window to red. The effect is
171 that the background shows through the button.
174 <!-- ##### SECTION See_Also ##### -->
179 <!-- ##### SECTION Stability_Level ##### -->
182 <!-- ##### STRUCT GdkWindow ##### -->
184 An opaque structure representing an onscreen drawable.
185 Pointers to structures of type #GdkPixmap, #GdkBitmap,
186 and #GdkWindow, can often be used interchangeably.
187 The type #GdkDrawable refers generically to any of
192 <!-- ##### SIGNAL GdkWindow::from-embedder ##### -->
197 @gdkwindow: the object which received the signal.
203 <!-- ##### SIGNAL GdkWindow::pick-embedded-child ##### -->
208 @gdkwindow: the object which received the signal.
213 <!-- ##### SIGNAL GdkWindow::to-embedder ##### -->
218 @gdkwindow: the object which received the signal.
224 <!-- ##### ARG GdkWindow:cursor ##### -->
229 <!-- ##### ENUM GdkWindowType ##### -->
231 Describes the kind of window.
234 @GDK_WINDOW_ROOT: root window; this window has no parent, covers the entire screen, and is created by the window system
235 @GDK_WINDOW_TOPLEVEL: toplevel window (used to implement #GtkWindow)
236 @GDK_WINDOW_CHILD: child window (used to implement e.g. #GtkEntry)
237 @GDK_WINDOW_DIALOG: useless/deprecated compatibility type
238 @GDK_WINDOW_TEMP: override redirect temporary window (used to implement #GtkMenu)
239 @GDK_WINDOW_FOREIGN: foreign window (see gdk_window_foreign_new())
240 @GDK_WINDOW_OFFSCREEN: offscreen window. Since 2.18
242 <!-- ##### ENUM GdkWindowClass ##### -->
244 @GDK_INPUT_OUTPUT windows are the standard kind of window you might expect.
245 @GDK_INPUT_ONLY windows are invisible; they are used to trap events, but
246 you can't draw on them.
249 @GDK_INPUT_OUTPUT: window for graphics and events
250 @GDK_INPUT_ONLY: window for events only
252 <!-- ##### ENUM GdkWindowHints ##### -->
254 Used to indicate which fields of a #GdkGeometry struct should be paid attention
255 to. Also, the presence/absence of @GDK_HINT_POS, @GDK_HINT_USER_POS, and
256 @GDK_HINT_USER_SIZE is significant, though they don't directly refer to
257 #GdkGeometry fields. @GDK_HINT_USER_POS will be set automatically by #GtkWindow
258 if you call gtk_window_move(). @GDK_HINT_USER_POS and @GDK_HINT_USER_SIZE
259 should be set if the user specified a size/position using a --geometry
260 command-line argument; gtk_window_parse_geometry() automatically sets these
264 @GDK_HINT_POS: indicates that the program has positioned the window
265 @GDK_HINT_MIN_SIZE: min size fields are set
266 @GDK_HINT_MAX_SIZE: max size fields are set
267 @GDK_HINT_BASE_SIZE: base size fields are set
268 @GDK_HINT_ASPECT: aspect ratio fields are set
269 @GDK_HINT_RESIZE_INC: resize increment fields are set
270 @GDK_HINT_WIN_GRAVITY: window gravity field is set
271 @GDK_HINT_USER_POS: indicates that the window's position was explicitly set by the user
272 @GDK_HINT_USER_SIZE: indicates that the window's size was explicitly set by the user
274 <!-- ##### STRUCT GdkGeometry ##### -->
276 The #GdkGeometry struct gives the window manager information about
277 a window's geometry constraints. Normally you would set these on
278 the GTK+ level using gtk_window_set_geometry_hints(). #GtkWindow
279 then sets the hints on the #GdkWindow it creates.
283 gdk_window_set_geometry_hints() expects the hints to be fully valid already and
284 simply passes them to the window manager; in contrast,
285 gtk_window_set_geometry_hints() performs some interpretation. For example,
286 #GtkWindow will apply the hints to the geometry widget instead of the toplevel
287 window, if you set a geometry widget. Also, the
288 @min_width/@min_height/@max_width/@max_height fields may be set to -1, and
289 #GtkWindow will substitute the size request of the window or geometry widget. If
290 the minimum size hint is not provided, #GtkWindow will use its requisition as
291 the minimum size. If the minimum size is provided and a geometry widget is set,
292 #GtkWindow will take the minimum size as the minimum size of the geometry widget
293 rather than the entire window. The base size is treated similarly.
297 The canonical use-case for gtk_window_set_geometry_hints() is to get a terminal
298 widget to resize properly. Here, the terminal text area should be the geometry
299 widget; #GtkWindow will then automatically set the base size to the size of
300 other widgets in the terminal window, such as the menubar and scrollbar. Then,
301 the @width_inc and @height_inc fields should be set to the size of one character
302 in the terminal. Finally, the base size should be set to the size of one
303 character. The net effect is that the minimum size of the terminal
304 will have a 1x1 character terminal area, and only terminal sizes on
305 the "character grid" will be allowed.
309 Here's an example of how the terminal example would be implemented, assuming
310 a terminal area widget called "terminal" and a toplevel window "toplevel":
311 <informalexample><programlisting>
314 hints.base_width = terminal->char_width;
315 hints.base_height = terminal->char_height;
316 hints.min_width = terminal->char_width;
317 hints.min_height = terminal->char_height;
318 hints.width_inc = terminal->char_width;
319 hints.height_inc = terminal->char_height;
321 gtk_window_set_geometry_hints (GTK_WINDOW (toplevel),
322 GTK_WIDGET (terminal),
324 GDK_HINT_RESIZE_INC |
327 </programlisting></informalexample>
331 The other useful fields are the @min_aspect and @max_aspect fields; these
332 contain a width/height ratio as a floating point number. If a geometry widget is
333 set, the aspect applies to the geometry widget rather than the entire window.
334 The most common use of these hints is probably to set @min_aspect and
335 @max_aspect to the same value, thus forcing the window to keep a constant aspect
339 @min_width: minimum width of window (or -1 to use requisition, with #GtkWindow only)
340 @min_height: minimum height of window (or -1 to use requisition, with #GtkWindow only)
341 @max_width: maximum width of window (or -1 to use requisition, with #GtkWindow only)
342 @max_height: maximum height of window (or -1 to use requisition, with #GtkWindow only)
343 @base_width: allowed window widths are @base_width + @width_inc * N where N is any integer (-1 allowed with #GtkWindow)
344 @base_height: allowed window widths are @base_height + @height_inc * N where N is any integer (-1 allowed with #GtkWindow)
345 @width_inc: width resize increment
346 @height_inc: height resize increment
347 @min_aspect: minimum width/height ratio
348 @max_aspect: maximum width/height ratio
349 @win_gravity: window gravity, see gtk_window_set_gravity()
351 <!-- ##### ENUM GdkGravity ##### -->
353 Defines the reference point of a window and the meaning of coordinates
354 passed to gtk_window_move(). See gtk_window_move() and the "implementation
355 notes" section of the
356 <ulink url="http://www.freedesktop.org/Standards/wm-spec">Extended
357 Window Manager Hints</ulink> specification for more details.
360 @GDK_GRAVITY_NORTH_WEST: the reference point is at the top left corner.
361 @GDK_GRAVITY_NORTH: the reference point is in the middle of the top edge.
362 @GDK_GRAVITY_NORTH_EAST: the reference point is at the top right corner.
363 @GDK_GRAVITY_WEST: the reference point is at the middle of the left edge.
364 @GDK_GRAVITY_CENTER: the reference point is at the center of the window.
365 @GDK_GRAVITY_EAST: the reference point is at the middle of the right edge.
366 @GDK_GRAVITY_SOUTH_WEST: the reference point is at the lower left corner.
367 @GDK_GRAVITY_SOUTH: the reference point is at the middle of the lower edge.
368 @GDK_GRAVITY_SOUTH_EAST: the reference point is at the lower right corner.
369 @GDK_GRAVITY_STATIC: the reference point is at the top left corner of the
370 window itself, ignoring window manager decorations.
372 <!-- ##### ENUM GdkWindowEdge ##### -->
374 Determines a window edge or corner.
377 @GDK_WINDOW_EDGE_NORTH_WEST: the top left corner.
378 @GDK_WINDOW_EDGE_NORTH: the top edge.
379 @GDK_WINDOW_EDGE_NORTH_EAST: the top right corner.
380 @GDK_WINDOW_EDGE_WEST: the left edge.
381 @GDK_WINDOW_EDGE_EAST: the right edge.
382 @GDK_WINDOW_EDGE_SOUTH_WEST: the lower left corner.
383 @GDK_WINDOW_EDGE_SOUTH: the lower edge.
384 @GDK_WINDOW_EDGE_SOUTH_EAST: the lower right corner.
386 <!-- ##### ENUM GdkWindowTypeHint ##### -->
388 These are hints for the window manager that indicate what type of function
389 the window has. The window manager can use this when determining decoration
390 and behaviour of the window. The hint must be set before mapping the window.
394 <ulink url="http://www.freedesktop.org/Standards/wm-spec">Extended
395 Window Manager Hints</ulink> specification for more details about
399 @GDK_WINDOW_TYPE_HINT_NORMAL: Normal toplevel window.
400 @GDK_WINDOW_TYPE_HINT_DIALOG: Dialog window.
401 @GDK_WINDOW_TYPE_HINT_MENU: Window used to implement a menu; GTK+ uses
402 this hint only for torn-off menus, see #GtkTearoffMenuItem.
403 @GDK_WINDOW_TYPE_HINT_TOOLBAR: Window used to implement toolbars.
404 @GDK_WINDOW_TYPE_HINT_SPLASHSCREEN: Window used to display a splash
405 screen during application startup.
406 @GDK_WINDOW_TYPE_HINT_UTILITY: Utility windows which are not detached
408 @GDK_WINDOW_TYPE_HINT_DOCK: Used for creating dock or panel windows.
409 @GDK_WINDOW_TYPE_HINT_DESKTOP: Used for creating the desktop background
411 @GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU: A menu that belongs to a menubar.
412 @GDK_WINDOW_TYPE_HINT_POPUP_MENU: A menu that does not belong to a menubar,
414 @GDK_WINDOW_TYPE_HINT_TOOLTIP: A tooltip.
415 @GDK_WINDOW_TYPE_HINT_NOTIFICATION: A notification - typically a "bubble"
416 that belongs to a status icon.
417 @GDK_WINDOW_TYPE_HINT_COMBO: A popup from a combo box.
418 @GDK_WINDOW_TYPE_HINT_DND: A window that is used to implement a DND cursor.
420 <!-- ##### STRUCT GdkWindowAttr ##### -->
422 Attributes to use for a newly-created window.
425 @title: title of the window (for toplevel windows)
426 @event_mask: event mask (see gdk_window_set_events())
427 @x: X coordinate relative to parent window (see gdk_window_move())
428 @y: Y coordinate relative to parent window (see gdk_window_move())
429 @width: width of window
430 @height: height of window
431 @wclass: #GDK_INPUT_OUTPUT (normal window) or #GDK_INPUT_ONLY (invisible window that receives events)
432 @visual: #GdkVisual for window
433 @colormap: #GdkColormap for window
434 @window_type: type of window
435 @cursor: cursor for the window (see gdk_window_set_cursor())
436 @wmclass_name: don't use (see gtk_window_set_wmclass())
437 @wmclass_class: don't use (see gtk_window_set_wmclass())
438 @override_redirect: %TRUE to bypass the window manager
439 @type_hint: a hint of the function of the window
441 <!-- ##### ENUM GdkWindowAttributesType ##### -->
443 Used to indicate which fields in the #GdkWindowAttr struct should be
444 honored. For example, if you filled in the "cursor" and "x" fields of
445 #GdkWindowAttr, pass "@GDK_WA_X | @GDK_WA_CURSOR" to gdk_window_new(). Fields
446 in #GdkWindowAttr not covered by a bit in this enum are required; for example,
447 the @width/@height, @wclass, and @window_type fields are required, they have no
448 corresponding flag in #GdkWindowAttributesType.
451 @GDK_WA_TITLE: Honor the title field
452 @GDK_WA_X: Honor the X coordinate field
453 @GDK_WA_Y: Honor the Y coordinate field
454 @GDK_WA_CURSOR: Honor the cursor field
455 @GDK_WA_COLORMAP: Honor the colormap field
456 @GDK_WA_VISUAL: Honor the visual field
457 @GDK_WA_WMCLASS: Honor the wmclass_class and wmclass_name fields
458 @GDK_WA_NOREDIR: Honor the override_redirect field
459 @GDK_WA_TYPE_HINT: Honor the type_hint field
461 <!-- ##### FUNCTION gdk_window_new ##### -->
472 <!-- ##### FUNCTION gdk_window_destroy ##### -->
480 <!-- ##### MACRO gdk_window_ref ##### -->
482 Deprecated equivalent of g_object_ref()
488 <!-- ##### MACRO gdk_window_unref ##### -->
490 Deprecated equivalent of g_object_unref()
495 <!-- ##### FUNCTION gdk_window_get_window_type ##### -->
504 <!-- ##### FUNCTION gdk_window_at_pointer ##### -->
514 <!-- ##### FUNCTION gdk_window_show ##### -->
522 <!-- ##### FUNCTION gdk_window_show_unraised ##### -->
530 <!-- ##### FUNCTION gdk_window_hide ##### -->
538 <!-- ##### FUNCTION gdk_window_is_visible ##### -->
547 <!-- ##### FUNCTION gdk_window_is_viewable ##### -->
556 <!-- ##### FUNCTION gdk_window_get_state ##### -->
565 <!-- ##### FUNCTION gdk_window_withdraw ##### -->
573 <!-- ##### FUNCTION gdk_window_iconify ##### -->
581 <!-- ##### FUNCTION gdk_window_deiconify ##### -->
589 <!-- ##### FUNCTION gdk_window_stick ##### -->
597 <!-- ##### FUNCTION gdk_window_unstick ##### -->
605 <!-- ##### FUNCTION gdk_window_maximize ##### -->
613 <!-- ##### FUNCTION gdk_window_unmaximize ##### -->
621 <!-- ##### FUNCTION gdk_window_fullscreen ##### -->
629 <!-- ##### FUNCTION gdk_window_unfullscreen ##### -->
637 <!-- ##### FUNCTION gdk_window_set_keep_above ##### -->
646 <!-- ##### FUNCTION gdk_window_set_keep_below ##### -->
655 <!-- ##### FUNCTION gdk_window_set_opacity ##### -->
664 <!-- ##### FUNCTION gdk_window_set_composited ##### -->
673 <!-- ##### FUNCTION gdk_window_move ##### -->
683 <!-- ##### FUNCTION gdk_window_resize ##### -->
693 <!-- ##### FUNCTION gdk_window_move_resize ##### -->
705 <!-- ##### FUNCTION gdk_window_scroll ##### -->
715 <!-- ##### FUNCTION gdk_window_move_region ##### -->
726 <!-- ##### FUNCTION gdk_window_ensure_native ##### -->
735 <!-- ##### FUNCTION gdk_window_reparent ##### -->
746 <!-- ##### FUNCTION gdk_window_clear ##### -->
754 <!-- ##### FUNCTION gdk_window_clear_area ##### -->
766 <!-- ##### FUNCTION gdk_window_clear_area_e ##### -->
778 <!-- ##### MACRO gdk_window_copy_area ##### -->
780 Deprecated equivalent to gdk_draw_drawable(), see that function for docs
783 @drawable: a #GdkDrawable
784 @gc: a #GdkGC sharing the drawable's visual and colormap
785 @x: X position in @drawable where the rectangle should be drawn
786 @y: Y position in @drawable where the rectangle should be drawn
787 @source_drawable: the source #GdkDrawable, which may be the same as @drawable
788 @source_x: X position in @src of rectangle to draw
789 @source_y: Y position in @src of rectangle to draw
790 @width: width of rectangle to draw, or -1 for entire @src width
791 @height: height of rectangle to draw, or -1 for entire @src height
792 <!-- # Unused Parameters # -->
793 @drawable: a #GdkDrawable
794 @xdest: X position in @drawable where the rectangle should be drawn
795 @ydest: Y position in @drawable where the rectangle should be drawn
798 <!-- ##### FUNCTION gdk_window_raise ##### -->
806 <!-- ##### FUNCTION gdk_window_lower ##### -->
814 <!-- ##### FUNCTION gdk_window_focus ##### -->
823 <!-- ##### FUNCTION gdk_window_register_dnd ##### -->
825 Registers a window as a potential drop destination.
828 @window: a #GdkWindow.
831 <!-- ##### FUNCTION gdk_window_begin_resize_drag ##### -->
844 <!-- ##### FUNCTION gdk_window_begin_move_drag ##### -->
856 <!-- ##### FUNCTION gdk_window_constrain_size ##### -->
869 <!-- ##### FUNCTION gdk_window_beep ##### -->
877 <!-- ##### FUNCTION gdk_window_begin_paint_rect ##### -->
886 <!-- ##### FUNCTION gdk_window_begin_paint_region ##### -->
895 <!-- ##### FUNCTION gdk_window_end_paint ##### -->
903 <!-- ##### FUNCTION gdk_window_invalidate_rect ##### -->
910 @invalidate_children:
913 <!-- ##### FUNCTION gdk_window_invalidate_region ##### -->
920 @invalidate_children:
923 <!-- ##### FUNCTION gdk_window_invalidate_maybe_recurse ##### -->
934 <!-- ##### FUNCTION gdk_window_get_update_area ##### -->
943 <!-- ##### FUNCTION gdk_window_freeze_updates ##### -->
951 <!-- ##### FUNCTION gdk_window_thaw_updates ##### -->
959 <!-- ##### FUNCTION gdk_window_process_all_updates ##### -->
966 <!-- ##### FUNCTION gdk_window_process_updates ##### -->
975 <!-- ##### FUNCTION gdk_window_set_debug_updates ##### -->
983 <!-- ##### FUNCTION gdk_window_get_internal_paint_info ##### -->
994 <!-- ##### FUNCTION gdk_window_enable_synchronized_configure ##### -->
1002 <!-- ##### FUNCTION gdk_window_configure_finished ##### -->
1010 <!-- ##### FUNCTION gdk_window_set_user_data ##### -->
1019 <!-- ##### FUNCTION gdk_window_set_override_redirect ##### -->
1028 <!-- ##### FUNCTION gdk_window_set_accept_focus ##### -->
1037 <!-- ##### FUNCTION gdk_window_set_focus_on_map ##### -->
1046 <!-- ##### FUNCTION gdk_window_add_filter ##### -->
1056 <!-- ##### FUNCTION gdk_window_remove_filter ##### -->
1066 <!-- ##### USER_FUNCTION GdkFilterFunc ##### -->
1068 Specifies the type of function used to filter native events before they are
1069 converted to GDK events.
1073 When a filter is called, @event is unpopulated, except for
1074 <literal>event->window</literal>. The filter may translate the native
1075 event to a GDK event and store the result in @event, or handle it without
1076 translation. If the filter translates the event and processing should
1077 continue, it should return <literal>GDK_FILTER_TRANSLATE</literal>.
1080 @xevent: the native event to filter.
1081 @event: the GDK event to which the X event will be translated.
1082 @data: user data set when the filter was installed.
1083 @Returns: a #GdkFilterReturn value.
1086 <!-- ##### ENUM GdkFilterReturn ##### -->
1088 Specifies the result of applying a #GdkFilterFunc to a native event.
1091 @GDK_FILTER_CONTINUE: event not handled, continue processing.
1092 @GDK_FILTER_TRANSLATE: native event translated into a GDK event and stored
1093 in the <literal>event</literal> structure that was passed in.
1094 @GDK_FILTER_REMOVE: event handled, terminate processing.
1096 <!-- ##### TYPEDEF GdkXEvent ##### -->
1098 Used to represent native events (<type>XEvent</type>s for the X11
1099 backend, <type>MSG</type>s for Win32).
1103 <!-- ##### FUNCTION gdk_window_shape_combine_mask ##### -->
1114 <!-- ##### FUNCTION gdk_window_shape_combine_region ##### -->
1125 <!-- ##### FUNCTION gdk_window_set_child_shapes ##### -->
1133 <!-- ##### FUNCTION gdk_window_merge_child_shapes ##### -->
1141 <!-- ##### FUNCTION gdk_window_input_shape_combine_mask ##### -->
1152 <!-- ##### FUNCTION gdk_window_input_shape_combine_region ##### -->
1163 <!-- ##### FUNCTION gdk_window_set_child_input_shapes ##### -->
1171 <!-- ##### FUNCTION gdk_window_merge_child_input_shapes ##### -->
1179 <!-- ##### FUNCTION gdk_window_set_static_gravities ##### -->
1189 <!-- ##### FUNCTION gdk_window_set_hints ##### -->
1204 <!-- ##### FUNCTION gdk_window_set_title ##### -->
1213 <!-- ##### FUNCTION gdk_window_set_background ##### -->
1222 <!-- ##### FUNCTION gdk_window_set_back_pixmap ##### -->
1232 <!-- ##### MACRO GDK_PARENT_RELATIVE ##### -->
1234 A special value for <literal>GdkPixmap*</literal> variables, indicating
1235 that the background pixmap for a window should be inherited from the parent
1241 <!-- ##### FUNCTION gdk_window_set_cursor ##### -->
1250 <!-- ##### MACRO gdk_window_set_colormap ##### -->
1252 Deprecated equivalent to gdk_drawable_set_colormap()
1257 <!-- ##### FUNCTION gdk_window_get_user_data ##### -->
1266 <!-- ##### FUNCTION gdk_window_get_geometry ##### -->
1279 <!-- ##### FUNCTION gdk_window_set_geometry_hints ##### -->
1289 <!-- ##### FUNCTION gdk_window_set_icon_list ##### -->
1298 <!-- ##### FUNCTION gdk_window_set_modal_hint ##### -->
1307 <!-- ##### FUNCTION gdk_window_set_type_hint ##### -->
1316 <!-- ##### FUNCTION gdk_window_get_type_hint ##### -->
1325 <!-- ##### FUNCTION gdk_window_set_skip_taskbar_hint ##### -->
1334 <!-- ##### FUNCTION gdk_window_set_skip_pager_hint ##### -->
1343 <!-- ##### FUNCTION gdk_window_set_urgency_hint ##### -->
1352 <!-- ##### FUNCTION gdk_window_get_position ##### -->
1362 <!-- ##### FUNCTION gdk_window_get_root_origin ##### -->
1372 <!-- ##### FUNCTION gdk_window_get_frame_extents ##### -->
1381 <!-- ##### MACRO gdk_window_get_size ##### -->
1383 Deprecated equivalent of gdk_drawable_get_size().
1388 <!-- ##### MACRO gdk_window_get_visual ##### -->
1390 Deprecated equivalent of gdk_drawable_get_visual().
1393 @Returns: the #GdkVisual of the window
1396 <!-- ##### MACRO gdk_window_get_colormap ##### -->
1398 Deprecated equivalent of gdk_drawable_get_colormap().
1401 @Returns: colormap for the window
1404 <!-- ##### MACRO gdk_window_get_type ##### -->
1406 Deprecated equivalent of gdk_drawable_get_type().
1409 @Returns: type of drawable
1412 <!-- ##### FUNCTION gdk_window_get_origin ##### -->
1423 <!-- ##### FUNCTION gdk_window_get_deskrelative_origin ##### -->
1434 <!-- ##### FUNCTION gdk_window_get_root_coords ##### -->
1446 <!-- ##### FUNCTION gdk_window_get_pointer ##### -->
1458 <!-- ##### ENUM GdkModifierType ##### -->
1460 A set of bit-flags to indicate the state of modifier keys and mouse buttons
1461 in various event types. Typical modifier keys are Shift, Control, Meta, Super,
1462 Hyper, Alt, Compose, Apple, CapsLock or ShiftLock.
1465 Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
1468 Since 2.10, GDK recognizes which of the Meta, Super or Hyper keys are mapped
1469 to Mod2 - Mod5, and indicates this by setting %GDK_SUPER_MASK, %GDK_HYPER_MASK
1470 or %GDK_META_MASK in the state field of key events.
1473 @GDK_SHIFT_MASK: the Shift key.
1474 @GDK_LOCK_MASK: a Lock key (depending on the modifier mapping of the
1475 X server this may either be CapsLock or ShiftLock).
1476 @GDK_CONTROL_MASK: the Control key.
1477 @GDK_MOD1_MASK: the fourth modifier key (it depends on the modifier
1478 mapping of the X server which key is interpreted as this modifier, but
1479 normally it is the Alt key).
1480 @GDK_MOD2_MASK: the fifth modifier key (it depends on the modifier
1481 mapping of the X server which key is interpreted as this modifier).
1482 @GDK_MOD3_MASK: the sixth modifier key (it depends on the modifier
1483 mapping of the X server which key is interpreted as this modifier).
1484 @GDK_MOD4_MASK: the seventh modifier key (it depends on the modifier
1485 mapping of the X server which key is interpreted as this modifier).
1486 @GDK_MOD5_MASK: the eighth modifier key (it depends on the modifier
1487 mapping of the X server which key is interpreted as this modifier).
1488 @GDK_BUTTON1_MASK: the first mouse button.
1489 @GDK_BUTTON2_MASK: the second mouse button.
1490 @GDK_BUTTON3_MASK: the third mouse button.
1491 @GDK_BUTTON4_MASK: the fourth mouse button.
1492 @GDK_BUTTON5_MASK: the fifth mouse button.
1493 @GDK_SUPER_MASK: the Super modifier. Since 2.10
1494 @GDK_HYPER_MASK: the Hyper modifier. Since 2.10
1495 @GDK_META_MASK: the Meta modifier. Since 2.10
1496 @GDK_RELEASE_MASK: not used in GDK itself. GTK+ uses it to differentiate
1497 between (keyval, modifiers) pairs from key press and release events.
1498 @GDK_MODIFIER_MASK: a mask covering all modifier types.
1500 <!-- ##### FUNCTION gdk_window_get_parent ##### -->
1509 <!-- ##### FUNCTION gdk_window_get_toplevel ##### -->
1518 <!-- ##### FUNCTION gdk_window_get_children ##### -->
1527 <!-- ##### FUNCTION gdk_window_peek_children ##### -->
1536 <!-- ##### FUNCTION gdk_window_get_events ##### -->
1545 <!-- ##### FUNCTION gdk_window_set_events ##### -->
1554 <!-- ##### FUNCTION gdk_window_set_icon ##### -->
1565 <!-- ##### FUNCTION gdk_window_set_icon_name ##### -->
1574 <!-- ##### FUNCTION gdk_window_set_transient_for ##### -->
1583 <!-- ##### FUNCTION gdk_window_set_role ##### -->
1592 <!-- ##### FUNCTION gdk_window_set_startup_id ##### -->
1601 <!-- ##### FUNCTION gdk_window_set_group ##### -->
1610 <!-- ##### FUNCTION gdk_window_get_group ##### -->
1619 <!-- ##### FUNCTION gdk_window_set_decorations ##### -->
1628 <!-- ##### FUNCTION gdk_window_get_decorations ##### -->
1633 @window: The window to get the decorations from
1634 @decorations: The window decorations will be written here
1635 @Returns: %TRUE if the window has decorations set, %FALSE otherwise.
1638 <!-- ##### ENUM GdkWMDecoration ##### -->
1640 These are hints originally defined by the Motif toolkit.
1641 The window manager can use them when determining how to decorate
1642 the window. The hint must be set before mapping the window.
1645 @GDK_DECOR_ALL: all decorations should be applied.
1646 @GDK_DECOR_BORDER: a frame should be drawn around the window.
1647 @GDK_DECOR_RESIZEH: the frame should have resize handles.
1648 @GDK_DECOR_TITLE: a titlebar should be placed above the window.
1649 @GDK_DECOR_MENU: a button for opening a menu should be included.
1650 @GDK_DECOR_MINIMIZE: a minimize button should be included.
1651 @GDK_DECOR_MAXIMIZE: a maximize button should be included.
1653 <!-- ##### FUNCTION gdk_window_set_functions ##### -->
1662 <!-- ##### ENUM GdkWMFunction ##### -->
1664 These are hints originally defined by the Motif toolkit.
1665 The window manager can use them when determining the functions
1666 to offer for the window.
1667 The hint must be set before mapping the window.
1670 @GDK_FUNC_ALL: all functions should be offered.
1671 @GDK_FUNC_RESIZE: the window should be resizable.
1672 @GDK_FUNC_MOVE: the window should be movable.
1673 @GDK_FUNC_MINIMIZE: the window should be minimizable.
1674 @GDK_FUNC_MAXIMIZE: the window should be maximizable.
1675 @GDK_FUNC_CLOSE: the window should be closable.
1677 <!-- ##### FUNCTION gdk_window_get_toplevels ##### -->
1685 <!-- ##### FUNCTION gdk_get_default_root_window ##### -->
1693 <!-- ##### STRUCT GdkPointerHooks ##### -->
1695 A table of pointers to functions for getting quantities related to
1696 the current pointer position. GDK has one global table of this type,
1697 which can be set using gdk_set_pointer_hooks().
1700 This is only useful for such low-level tools as an event recorder.
1701 Applications should never have any reason to use this facility
1704 @get_pointer: Obtains the current pointer position and modifier state.
1705 The position is given in coordinates relative to the window containing
1706 the pointer, which is returned in @window.
1707 @window_at_pointer: Obtains the window underneath the mouse pointer,
1708 returning the location of that window in @win_x, @win_y. Returns %NULL
1709 if the window under the mouse pointer is not known to GDK (for example,
1710 belongs to another application).
1712 <!-- ##### FUNCTION gdk_set_pointer_hooks ##### -->
1721 <!-- ##### FUNCTION gdk_offscreen_window_get_pixmap ##### -->
1730 <!-- ##### FUNCTION gdk_offscreen_window_set_embedder ##### -->
1739 <!-- ##### FUNCTION gdk_offscreen_window_get_embedder ##### -->
1748 <!-- ##### FUNCTION gdk_window_geometry_changed ##### -->
1756 <!-- ##### FUNCTION gdk_window_redirect_to_drawable ##### -->
1771 <!-- ##### FUNCTION gdk_window_remove_redirection ##### -->
1782 sgml-parent-document: ("../gdk-docs.sgml" "book" "refsect2" "")