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 <!-- ##### ENUM GdkWindowType ##### -->
194 Describes the kind of window.
197 @GDK_WINDOW_ROOT: root window; this window has no parent, covers the entire screen, and is created by the window system
198 @GDK_WINDOW_TOPLEVEL: toplevel window (used to implement #GtkWindow)
199 @GDK_WINDOW_CHILD: child window (used to implement e.g. #GtkEntry)
200 @GDK_WINDOW_DIALOG: useless/deprecated compatibility type
201 @GDK_WINDOW_TEMP: override redirect temporary window (used to implement #GtkMenu)
202 @GDK_WINDOW_FOREIGN: foreign window (see gdk_window_foreign_new())
204 <!-- ##### ENUM GdkWindowClass ##### -->
206 @GDK_INPUT_OUTPUT windows are the standard kind of window you might expect.
207 @GDK_INPUT_ONLY windows are invisible; they are used to trap events, but
208 you can't draw on them.
211 @GDK_INPUT_OUTPUT: window for graphics and events
212 @GDK_INPUT_ONLY: window for events only
214 <!-- ##### ENUM GdkWindowHints ##### -->
216 Used to indicate which fields of a #GdkGeometry struct should be paid attention
217 to. Also, the presence/absence of @GDK_HINT_POS, @GDK_HINT_USER_POS, and
218 @GDK_HINT_USER_SIZE is significant, though they don't directly refer to
219 #GdkGeometry fields. @GDK_HINT_USER_POS will be set automatically by #GtkWindow
220 if you call gtk_window_move(). @GDK_HINT_USER_POS and @GDK_HINT_USER_SIZE
221 should be set if the user specified a size/position using a --geometry
222 command-line argument; gtk_window_parse_geometry() automatically sets these
226 @GDK_HINT_POS: indicates that the program has positioned the window
227 @GDK_HINT_MIN_SIZE: min size fields are set
228 @GDK_HINT_MAX_SIZE: max size fields are set
229 @GDK_HINT_BASE_SIZE: base size fields are set
230 @GDK_HINT_ASPECT: aspect ratio fields are set
231 @GDK_HINT_RESIZE_INC: resize increment fields are set
232 @GDK_HINT_WIN_GRAVITY: window gravity field is set
233 @GDK_HINT_USER_POS: indicates that the window's position was explicitly set by the user
234 @GDK_HINT_USER_SIZE: indicates that the window's size was explicitly set by the user
236 <!-- ##### STRUCT GdkGeometry ##### -->
238 The #GdkGeometry struct gives the window manager information about
239 a window's geometry constraints. Normally you would set these on
240 the GTK+ level using gtk_window_set_geometry_hints(). #GtkWindow
241 then sets the hints on the #GdkWindow it creates.
245 gdk_window_set_geometry_hints() expects the hints to be fully valid already and
246 simply passes them to the window manager; in contrast,
247 gtk_window_set_geometry_hints() performs some interpretation. For example,
248 #GtkWindow will apply the hints to the geometry widget instead of the toplevel
249 window, if you set a geometry widget. Also, the
250 @min_width/@min_height/@max_width/@max_height fields may be set to -1, and
251 #GtkWindow will substitute the size request of the window or geometry widget. If
252 the minimum size hint is not provided, #GtkWindow will use its requisition as
253 the minimum size. If the minimum size is provided and a geometry widget is set,
254 #GtkWindow will take the minimum size as the minimum size of the geometry widget
255 rather than the entire window. The base size is treated similarly.
259 The canonical use-case for gtk_window_set_geometry_hints() is to get a terminal
260 widget to resize properly. Here, the terminal text area should be the geometry
261 widget; #GtkWindow will then automatically set the base size to the size of
262 other widgets in the terminal window, such as the menubar and scrollbar. Then,
263 the @width_inc and @height_inc fields should be set to the size of one character
264 in the terminal. Finally, the base size should be set to the size of one
265 character. The net effect is that the minimum size of the terminal
266 will have a 1x1 character terminal area, and only terminal sizes on
267 the "character grid" will be allowed.
271 Here's an example of how the terminal example would be implemented, assuming
272 a terminal area widget called "terminal" and a toplevel window "toplevel":
273 <informalexample><programlisting>
276 hints.base_width = terminal->char_width;
277 hints.base_height = terminal->char_height;
278 hints.min_width = terminal->char_width;
279 hints.min_height = terminal->char_height;
280 hints.width_inc = terminal->char_width;
281 hints.height_inc = terminal->char_height;
283 gtk_window_set_geometry_hints (GTK_WINDOW (toplevel),
284 GTK_WIDGET (terminal),
286 GDK_HINT_RESIZE_INC |
289 </programlisting></informalexample>
293 The other useful fields are the @min_aspect and @max_aspect fields; these
294 contain a width/height ratio as a floating point number. If a geometry widget is
295 set, the aspect applies to the geometry widget rather than the entire window.
296 The most common use of these hints is probably to set @min_aspect and
297 @max_aspect to the same value, thus forcing the window to keep a constant aspect
301 @min_width: minimum width of window (or -1 to use requisition, with #GtkWindow only)
302 @min_height: minimum height of window (or -1 to use requisition, with #GtkWindow only)
303 @max_width: maximum width of window (or -1 to use requisition, with #GtkWindow only)
304 @max_height: maximum height of window (or -1 to use requisition, with #GtkWindow only)
305 @base_width: allowed window widths are @base_width + @width_inc * N where N is any integer (-1 allowed with #GtkWindow)
306 @base_height: allowed window widths are @base_height + @height_inc * N where N is any integer (-1 allowed with #GtkWindow)
307 @width_inc: width resize increment
308 @height_inc: height resize increment
309 @min_aspect: minimum width/height ratio
310 @max_aspect: maximum width/height ratio
311 @win_gravity: window gravity, see gtk_window_set_gravity()
313 <!-- ##### ENUM GdkGravity ##### -->
315 Defines the reference point of a window and the meaning of coordinates
316 passed to gtk_window_move(). See gtk_window_move() and the "implementation
317 notes" section of the
318 <ulink url="http://www.freedesktop.org/Standards/wm-spec">Extended
319 Window Manager Hints</ulink> specification for more details.
322 @GDK_GRAVITY_NORTH_WEST: the reference point is at the top left corner.
323 @GDK_GRAVITY_NORTH: the reference point is in the middle of the top edge.
324 @GDK_GRAVITY_NORTH_EAST: the reference point is at the top right corner.
325 @GDK_GRAVITY_WEST: the reference point is at the middle of the left edge.
326 @GDK_GRAVITY_CENTER: the reference point is at the center of the window.
327 @GDK_GRAVITY_EAST: the reference point is at the middle of the right edge.
328 @GDK_GRAVITY_SOUTH_WEST: the reference point is at the lower left corner.
329 @GDK_GRAVITY_SOUTH: the reference point is at the middle of the lower edge.
330 @GDK_GRAVITY_SOUTH_EAST: the reference point is at the lower right corner.
331 @GDK_GRAVITY_STATIC: the reference point is at the top left corner of the
332 window itself, ignoring window manager decorations.
334 <!-- ##### ENUM GdkWindowEdge ##### -->
336 Determines a window edge or corner.
339 @GDK_WINDOW_EDGE_NORTH_WEST: the top left corner.
340 @GDK_WINDOW_EDGE_NORTH: the top edge.
341 @GDK_WINDOW_EDGE_NORTH_EAST: the top right corner.
342 @GDK_WINDOW_EDGE_WEST: the left edge.
343 @GDK_WINDOW_EDGE_EAST: the right edge.
344 @GDK_WINDOW_EDGE_SOUTH_WEST: the lower left corner.
345 @GDK_WINDOW_EDGE_SOUTH: the lower edge.
346 @GDK_WINDOW_EDGE_SOUTH_EAST: the lower right corner.
348 <!-- ##### ENUM GdkWindowTypeHint ##### -->
350 These are hints for the window manager that indicate what type of function
351 the window has. The window manager can use this when determining decoration
352 and behaviour of the window. The hint must be set before mapping the window.
356 <ulink url="http://www.freedesktop.org/Standards/wm-spec">Extended
357 Window Manager Hints</ulink> specification for more details about
361 @GDK_WINDOW_TYPE_HINT_NORMAL: Normal toplevel window.
362 @GDK_WINDOW_TYPE_HINT_DIALOG: Dialog window.
363 @GDK_WINDOW_TYPE_HINT_MENU: Window used to implement a menu; GTK+ uses
364 this hint only for torn-off menus, see #GtkTearoffMenuItem.
365 @GDK_WINDOW_TYPE_HINT_TOOLBAR: Window used to implement toolbars.
366 @GDK_WINDOW_TYPE_HINT_SPLASHSCREEN: Window used to display a splash
367 screen during application startup.
368 @GDK_WINDOW_TYPE_HINT_UTILITY: Utility windows which are not detached
370 @GDK_WINDOW_TYPE_HINT_DOCK: Used for creating dock or panel windows.
371 @GDK_WINDOW_TYPE_HINT_DESKTOP: Used for creating the desktop background
373 @GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU: A menu that belongs to a menubar.
374 @GDK_WINDOW_TYPE_HINT_POPUP_MENU: A menu that does not belong to a menubar,
376 @GDK_WINDOW_TYPE_HINT_TOOLTIP: A tooltip.
377 @GDK_WINDOW_TYPE_HINT_NOTIFICATION: A notification - typically a "bubble"
378 that belongs to a status icon.
379 @GDK_WINDOW_TYPE_HINT_COMBO: A popup from a combo box.
380 @GDK_WINDOW_TYPE_HINT_DND: A window that is used to implement a DND cursor.
382 <!-- ##### STRUCT GdkWindowAttr ##### -->
384 Attributes to use for a newly-created window.
387 @title: title of the window (for toplevel windows)
388 @event_mask: event mask (see gdk_window_set_events())
389 @x: X coordinate relative to parent window (see gdk_window_move())
390 @y: Y coordinate relative to parent window (see gdk_window_move())
391 @width: width of window
392 @height: height of window
393 @wclass: #GDK_INPUT_OUTPUT (normal window) or #GDK_INPUT_ONLY (invisible window that receives events)
394 @visual: #GdkVisual for window
395 @colormap: #GdkColormap for window
396 @window_type: type of window
397 @cursor: cursor for the window (see gdk_window_set_cursor())
398 @wmclass_name: don't use (see gtk_window_set_wmclass())
399 @wmclass_class: don't use (see gtk_window_set_wmclass())
400 @override_redirect: %TRUE to bypass the window manager
401 @type_hint: a hint of the function of the window
403 <!-- ##### ENUM GdkWindowAttributesType ##### -->
405 Used to indicate which fields in the #GdkWindowAttr struct should be
406 honored. For example, if you filled in the "cursor" and "x" fields of
407 #GdkWindowAttr, pass "@GDK_WA_X | @GDK_WA_CURSOR" to gdk_window_new(). Fields
408 in #GdkWindowAttr not covered by a bit in this enum are required; for example,
409 the @width/@height, @wclass, and @window_type fields are required, they have no
410 corresponding flag in #GdkWindowAttributesType.
413 @GDK_WA_TITLE: Honor the title field
414 @GDK_WA_X: Honor the X coordinate field
415 @GDK_WA_Y: Honor the Y coordinate field
416 @GDK_WA_CURSOR: Honor the cursor field
417 @GDK_WA_COLORMAP: Honor the colormap field
418 @GDK_WA_VISUAL: Honor the visual field
419 @GDK_WA_WMCLASS: Honor the wmclass_class and wmclass_name fields
420 @GDK_WA_NOREDIR: Honor the override_redirect field
421 @GDK_WA_TYPE_HINT: Honor the type_hint field
423 <!-- ##### FUNCTION gdk_window_new ##### -->
434 <!-- ##### FUNCTION gdk_window_destroy ##### -->
442 <!-- ##### MACRO gdk_window_ref ##### -->
444 Deprecated equivalent of g_object_ref()
450 <!-- ##### MACRO gdk_window_unref ##### -->
452 Deprecated equivalent of g_object_unref()
457 <!-- ##### FUNCTION gdk_window_get_window_type ##### -->
466 <!-- ##### FUNCTION gdk_window_at_pointer ##### -->
476 <!-- ##### FUNCTION gdk_window_show ##### -->
484 <!-- ##### FUNCTION gdk_window_show_unraised ##### -->
492 <!-- ##### FUNCTION gdk_window_hide ##### -->
500 <!-- ##### FUNCTION gdk_window_is_visible ##### -->
509 <!-- ##### FUNCTION gdk_window_is_viewable ##### -->
518 <!-- ##### FUNCTION gdk_window_get_state ##### -->
527 <!-- ##### FUNCTION gdk_window_withdraw ##### -->
535 <!-- ##### FUNCTION gdk_window_iconify ##### -->
543 <!-- ##### FUNCTION gdk_window_deiconify ##### -->
551 <!-- ##### FUNCTION gdk_window_stick ##### -->
559 <!-- ##### FUNCTION gdk_window_unstick ##### -->
567 <!-- ##### FUNCTION gdk_window_maximize ##### -->
575 <!-- ##### FUNCTION gdk_window_unmaximize ##### -->
583 <!-- ##### FUNCTION gdk_window_fullscreen ##### -->
591 <!-- ##### FUNCTION gdk_window_unfullscreen ##### -->
599 <!-- ##### FUNCTION gdk_window_set_keep_above ##### -->
608 <!-- ##### FUNCTION gdk_window_set_keep_below ##### -->
617 <!-- ##### FUNCTION gdk_window_set_opacity ##### -->
626 <!-- ##### FUNCTION gdk_window_set_composited ##### -->
635 <!-- ##### FUNCTION gdk_window_move ##### -->
645 <!-- ##### FUNCTION gdk_window_resize ##### -->
655 <!-- ##### FUNCTION gdk_window_move_resize ##### -->
667 <!-- ##### FUNCTION gdk_window_scroll ##### -->
677 <!-- ##### FUNCTION gdk_window_move_region ##### -->
688 <!-- ##### FUNCTION gdk_window_reparent ##### -->
699 <!-- ##### FUNCTION gdk_window_clear ##### -->
707 <!-- ##### FUNCTION gdk_window_clear_area ##### -->
719 <!-- ##### FUNCTION gdk_window_clear_area_e ##### -->
731 <!-- ##### MACRO gdk_window_copy_area ##### -->
733 Deprecated equivalent to gdk_draw_drawable(), see that function for docs
736 @drawable: a #GdkDrawable
737 @gc: a #GdkGC sharing the drawable's visual and colormap
738 @x: X position in @drawable where the rectangle should be drawn
739 @y: Y position in @drawable where the rectangle should be drawn
740 @source_drawable: the source #GdkDrawable, which may be the same as @drawable
741 @source_x: X position in @src of rectangle to draw
742 @source_y: Y position in @src of rectangle to draw
743 @width: width of rectangle to draw, or -1 for entire @src width
744 @height: height of rectangle to draw, or -1 for entire @src height
745 <!-- # Unused Parameters # -->
746 @drawable: a #GdkDrawable
747 @xdest: X position in @drawable where the rectangle should be drawn
748 @ydest: Y position in @drawable where the rectangle should be drawn
751 <!-- ##### FUNCTION gdk_window_raise ##### -->
759 <!-- ##### FUNCTION gdk_window_lower ##### -->
767 <!-- ##### FUNCTION gdk_window_focus ##### -->
776 <!-- ##### FUNCTION gdk_window_register_dnd ##### -->
778 Registers a window as a potential drop destination.
781 @window: a #GdkWindow.
784 <!-- ##### FUNCTION gdk_window_begin_resize_drag ##### -->
797 <!-- ##### FUNCTION gdk_window_begin_move_drag ##### -->
809 <!-- ##### FUNCTION gdk_window_constrain_size ##### -->
822 <!-- ##### FUNCTION gdk_window_beep ##### -->
830 <!-- ##### FUNCTION gdk_window_begin_paint_rect ##### -->
839 <!-- ##### FUNCTION gdk_window_begin_paint_region ##### -->
848 <!-- ##### FUNCTION gdk_window_end_paint ##### -->
856 <!-- ##### FUNCTION gdk_window_invalidate_rect ##### -->
863 @invalidate_children:
866 <!-- ##### FUNCTION gdk_window_invalidate_region ##### -->
873 @invalidate_children:
876 <!-- ##### FUNCTION gdk_window_invalidate_maybe_recurse ##### -->
887 <!-- ##### FUNCTION gdk_window_get_update_area ##### -->
896 <!-- ##### FUNCTION gdk_window_freeze_updates ##### -->
904 <!-- ##### FUNCTION gdk_window_thaw_updates ##### -->
912 <!-- ##### FUNCTION gdk_window_process_all_updates ##### -->
919 <!-- ##### FUNCTION gdk_window_process_updates ##### -->
928 <!-- ##### FUNCTION gdk_window_set_debug_updates ##### -->
936 <!-- ##### FUNCTION gdk_window_get_internal_paint_info ##### -->
947 <!-- ##### FUNCTION gdk_window_enable_synchronized_configure ##### -->
955 <!-- ##### FUNCTION gdk_window_configure_finished ##### -->
963 <!-- ##### FUNCTION gdk_window_set_user_data ##### -->
972 <!-- ##### FUNCTION gdk_window_set_override_redirect ##### -->
981 <!-- ##### FUNCTION gdk_window_set_accept_focus ##### -->
990 <!-- ##### FUNCTION gdk_window_set_focus_on_map ##### -->
999 <!-- ##### FUNCTION gdk_window_add_filter ##### -->
1009 <!-- ##### FUNCTION gdk_window_remove_filter ##### -->
1019 <!-- ##### USER_FUNCTION GdkFilterFunc ##### -->
1021 Specifies the type of function used to filter native events before they are
1022 converted to GDK events.
1026 When a filter is called, @event is unpopulated, except for
1027 <literal>event->window</literal>. The filter may translate the native
1028 event to a GDK event and store the result in @event, or handle it without
1029 translation. If the filter translates the event and processing should
1030 continue, it should return <literal>GDK_FILTER_TRANSLATE</literal>.
1033 @xevent: the native event to filter.
1034 @event: the GDK event to which the X event will be translated.
1035 @data: user data set when the filter was installed.
1036 @Returns: a #GdkFilterReturn value.
1039 <!-- ##### ENUM GdkFilterReturn ##### -->
1041 Specifies the result of applying a #GdkFilterFunc to a native event.
1044 @GDK_FILTER_CONTINUE: event not handled, continue processing.
1045 @GDK_FILTER_TRANSLATE: native event translated into a GDK event and stored
1046 in the <literal>event</literal> structure that was passed in.
1047 @GDK_FILTER_REMOVE: event handled, terminate processing.
1049 <!-- ##### TYPEDEF GdkXEvent ##### -->
1051 Used to represent native events (<type>XEvent</type>s for the X11
1052 backend, <type>MSG</type>s for Win32).
1056 <!-- ##### FUNCTION gdk_window_shape_combine_mask ##### -->
1067 <!-- ##### FUNCTION gdk_window_shape_combine_region ##### -->
1078 <!-- ##### FUNCTION gdk_window_set_child_shapes ##### -->
1086 <!-- ##### FUNCTION gdk_window_merge_child_shapes ##### -->
1094 <!-- ##### FUNCTION gdk_window_input_shape_combine_mask ##### -->
1105 <!-- ##### FUNCTION gdk_window_input_shape_combine_region ##### -->
1116 <!-- ##### FUNCTION gdk_window_set_child_input_shapes ##### -->
1124 <!-- ##### FUNCTION gdk_window_merge_child_input_shapes ##### -->
1132 <!-- ##### FUNCTION gdk_window_set_static_gravities ##### -->
1142 <!-- ##### FUNCTION gdk_window_set_hints ##### -->
1157 <!-- ##### FUNCTION gdk_window_set_title ##### -->
1166 <!-- ##### FUNCTION gdk_window_set_background ##### -->
1175 <!-- ##### FUNCTION gdk_window_set_back_pixmap ##### -->
1185 <!-- ##### MACRO GDK_PARENT_RELATIVE ##### -->
1187 A special value for <literal>GdkPixmap*</literal> variables, indicating
1188 that the background pixmap for a window should be inherited from the parent
1194 <!-- ##### FUNCTION gdk_window_set_cursor ##### -->
1203 <!-- ##### MACRO gdk_window_set_colormap ##### -->
1205 Deprecated equivalent to gdk_drawable_set_colormap()
1210 <!-- ##### FUNCTION gdk_window_get_user_data ##### -->
1219 <!-- ##### FUNCTION gdk_window_get_geometry ##### -->
1232 <!-- ##### FUNCTION gdk_window_set_geometry_hints ##### -->
1242 <!-- ##### FUNCTION gdk_window_set_icon_list ##### -->
1251 <!-- ##### FUNCTION gdk_window_set_modal_hint ##### -->
1260 <!-- ##### FUNCTION gdk_window_set_type_hint ##### -->
1269 <!-- ##### FUNCTION gdk_window_get_type_hint ##### -->
1278 <!-- ##### FUNCTION gdk_window_set_skip_taskbar_hint ##### -->
1287 <!-- ##### FUNCTION gdk_window_set_skip_pager_hint ##### -->
1296 <!-- ##### FUNCTION gdk_window_set_urgency_hint ##### -->
1305 <!-- ##### FUNCTION gdk_window_get_position ##### -->
1315 <!-- ##### FUNCTION gdk_window_get_root_origin ##### -->
1325 <!-- ##### FUNCTION gdk_window_get_frame_extents ##### -->
1334 <!-- ##### MACRO gdk_window_get_size ##### -->
1336 Deprecated equivalent of gdk_drawable_get_size().
1341 <!-- ##### MACRO gdk_window_get_visual ##### -->
1343 Deprecated equivalent of gdk_drawable_get_visual().
1346 @Returns: the #GdkVisual of the window
1349 <!-- ##### MACRO gdk_window_get_colormap ##### -->
1351 Deprecated equivalent of gdk_drawable_get_colormap().
1354 @Returns: colormap for the window
1357 <!-- ##### MACRO gdk_window_get_type ##### -->
1359 Deprecated equivalent of gdk_drawable_get_type().
1362 @Returns: type of drawable
1365 <!-- ##### FUNCTION gdk_window_get_origin ##### -->
1376 <!-- ##### FUNCTION gdk_window_get_deskrelative_origin ##### -->
1387 <!-- ##### FUNCTION gdk_window_get_pointer ##### -->
1399 <!-- ##### ENUM GdkModifierType ##### -->
1401 A set of bit-flags to indicate the state of modifier keys and mouse buttons
1402 in various event types. Typical modifier keys are Shift, Control, Meta, Super,
1403 Hyper, Alt, Compose, Apple, CapsLock or ShiftLock.
1406 Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
1409 Since 2.10, GDK recognizes which of the Meta, Super or Hyper keys are mapped
1410 to Mod2 - Mod5, and indicates this by setting %GDK_SUPER_MASK, %GDK_HYPER_MASK
1411 or %GDK_META_MASK in the state field of key events.
1414 @GDK_SHIFT_MASK: the Shift key.
1415 @GDK_LOCK_MASK: a Lock key (depending on the modifier mapping of the
1416 X server this may either be CapsLock or ShiftLock).
1417 @GDK_CONTROL_MASK: the Control key.
1418 @GDK_MOD1_MASK: the fourth modifier key (it depends on the modifier
1419 mapping of the X server which key is interpreted as this modifier, but
1420 normally it is the Alt key).
1421 @GDK_MOD2_MASK: the fifth modifier key (it depends on the modifier
1422 mapping of the X server which key is interpreted as this modifier).
1423 @GDK_MOD3_MASK: the sixth modifier key (it depends on the modifier
1424 mapping of the X server which key is interpreted as this modifier).
1425 @GDK_MOD4_MASK: the seventh modifier key (it depends on the modifier
1426 mapping of the X server which key is interpreted as this modifier).
1427 @GDK_MOD5_MASK: the eighth modifier key (it depends on the modifier
1428 mapping of the X server which key is interpreted as this modifier).
1429 @GDK_BUTTON1_MASK: the first mouse button.
1430 @GDK_BUTTON2_MASK: the second mouse button.
1431 @GDK_BUTTON3_MASK: the third mouse button.
1432 @GDK_BUTTON4_MASK: the fourth mouse button.
1433 @GDK_BUTTON5_MASK: the fifth mouse button.
1434 @GDK_SUPER_MASK: the Super modifier. Since 2.10
1435 @GDK_HYPER_MASK: the Hyper modifier. Since 2.10
1436 @GDK_META_MASK: the Meta modifier. Since 2.10
1437 @GDK_RELEASE_MASK: not used in GDK itself. GTK+ uses it to differentiate
1438 between (keyval, modifiers) pairs from key press and release events.
1439 @GDK_MODIFIER_MASK: a mask covering all modifier types.
1441 <!-- ##### FUNCTION gdk_window_get_parent ##### -->
1450 <!-- ##### FUNCTION gdk_window_get_toplevel ##### -->
1459 <!-- ##### FUNCTION gdk_window_get_children ##### -->
1468 <!-- ##### FUNCTION gdk_window_peek_children ##### -->
1477 <!-- ##### FUNCTION gdk_window_get_events ##### -->
1486 <!-- ##### FUNCTION gdk_window_set_events ##### -->
1495 <!-- ##### FUNCTION gdk_window_set_icon ##### -->
1506 <!-- ##### FUNCTION gdk_window_set_icon_name ##### -->
1515 <!-- ##### FUNCTION gdk_window_set_transient_for ##### -->
1524 <!-- ##### FUNCTION gdk_window_set_role ##### -->
1533 <!-- ##### FUNCTION gdk_window_set_startup_id ##### -->
1542 <!-- ##### FUNCTION gdk_window_set_group ##### -->
1551 <!-- ##### FUNCTION gdk_window_get_group ##### -->
1560 <!-- ##### FUNCTION gdk_window_set_decorations ##### -->
1569 <!-- ##### FUNCTION gdk_window_get_decorations ##### -->
1574 @window: The window to get the decorations from
1575 @decorations: The window decorations will be written here
1576 @Returns: %TRUE if the window has decorations set, %FALSE otherwise.
1579 <!-- ##### ENUM GdkWMDecoration ##### -->
1581 These are hints originally defined by the Motif toolkit.
1582 The window manager can use them when determining how to decorate
1583 the window. The hint must be set before mapping the window.
1586 @GDK_DECOR_ALL: all decorations should be applied.
1587 @GDK_DECOR_BORDER: a frame should be drawn around the window.
1588 @GDK_DECOR_RESIZEH: the frame should have resize handles.
1589 @GDK_DECOR_TITLE: a titlebar should be placed above the window.
1590 @GDK_DECOR_MENU: a button for opening a menu should be included.
1591 @GDK_DECOR_MINIMIZE: a minimize button should be included.
1592 @GDK_DECOR_MAXIMIZE: a maximize button should be included.
1594 <!-- ##### FUNCTION gdk_window_set_functions ##### -->
1603 <!-- ##### ENUM GdkWMFunction ##### -->
1605 These are hints originally defined by the Motif toolkit.
1606 The window manager can use them when determining the functions
1607 to offer for the window.
1608 The hint must be set before mapping the window.
1611 @GDK_FUNC_ALL: all functions should be offered.
1612 @GDK_FUNC_RESIZE: the window should be resizable.
1613 @GDK_FUNC_MOVE: the window should be movable.
1614 @GDK_FUNC_MINIMIZE: the window should be minimizable.
1615 @GDK_FUNC_MAXIMIZE: the window should be maximizable.
1616 @GDK_FUNC_CLOSE: the window should be closable.
1618 <!-- ##### FUNCTION gdk_window_get_toplevels ##### -->
1626 <!-- ##### FUNCTION gdk_get_default_root_window ##### -->
1634 <!-- ##### STRUCT GdkPointerHooks ##### -->
1636 A table of pointers to functions for getting quantities related to
1637 the current pointer position. GDK has one global table of this type,
1638 which can be set using gdk_set_pointer_hooks().
1641 This is only useful for such low-level tools as an event recorder.
1642 Applications should never have any reason to use this facility
1645 @get_pointer: Obtains the current pointer position and modifier state.
1646 The position is given in coordinates relative to the window containing
1647 the pointer, which is returned in @window.
1648 @window_at_pointer: Obtains the window underneath the mouse pointer,
1649 returning the location of that window in @win_x, @win_y. Returns %NULL
1650 if the window under the mouse pointer is not known to GDK (for example,
1651 belongs to another application).
1653 <!-- ##### FUNCTION gdk_set_pointer_hooks ##### -->
1665 sgml-parent-document: ("../gdk-docs.sgml" "book" "refsect2" "")
1670 <!-- ##### STRUCT GdkWindowRedirect ##### -->
1676 <!-- ##### FUNCTION gdk_window_redirect_to_drawable ##### -->
1691 <!-- ##### FUNCTION gdk_window_remove_redirection ##### -->