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.
16 <!-- ##### SECTION See_Also ##### -->
21 <!-- ##### SECTION Stability_Level ##### -->
24 <!-- ##### STRUCT GdkWindow ##### -->
26 An opaque structure representing an onscreen drawable.
27 Pointers to structures of type #GdkPixmap, #GdkBitmap,
28 and #GdkWindow, can often be used interchangeably.
29 The type #GdkDrawable refers generically to any of
34 <!-- ##### ENUM GdkWindowType ##### -->
36 Describes the kind of window.
39 @GDK_WINDOW_ROOT: root window; this window has no parent, covers the entire screen, and is created by the window system
40 @GDK_WINDOW_TOPLEVEL: toplevel window (used to implement #GtkWindow)
41 @GDK_WINDOW_CHILD: child window (used to implement e.g. #GtkButton)
42 @GDK_WINDOW_DIALOG: useless/deprecated compatibility type
43 @GDK_WINDOW_TEMP: override redirect temporary window (used to implement #GtkMenu)
44 @GDK_WINDOW_FOREIGN: foreign window (see gdk_window_foreign_new())
46 <!-- ##### ENUM GdkWindowClass ##### -->
48 @GDK_INPUT_OUTPUT windows are the standard kind of window you might expect.
49 @GDK_INPUT_ONLY windows are invisible; they are used to trap events, but
50 you can't draw on them.
53 @GDK_INPUT_OUTPUT: window for graphics and events
54 @GDK_INPUT_ONLY: window for events only
56 <!-- ##### ENUM GdkWindowHints ##### -->
58 Used to indicate which fields of a #GdkGeometry struct should be paid attention
59 to. Also, the presence/absence of @GDK_HINT_POS, @GDK_HINT_USER_POS, and
60 @GDK_HINT_USER_SIZE is significant, though they don't directly refer to
61 #GdkGeometry fields. @GDK_HINT_USER_POS will be set automatically by #GtkWindow
62 if you call gtk_window_move(). @GDK_HINT_USER_POS and @GDK_HINT_USER_SIZE
63 should be set if the user specified a size/position using a --geometry
64 command-line argument; gtk_window_parse_geometry() automatically sets these
68 @GDK_HINT_POS: indicates that the program has positioned the window
69 @GDK_HINT_MIN_SIZE: min size fields are set
70 @GDK_HINT_MAX_SIZE: max size fields are set
71 @GDK_HINT_BASE_SIZE: base size fields are set
72 @GDK_HINT_ASPECT: aspect ratio fields are set
73 @GDK_HINT_RESIZE_INC: resize increment fields are set
74 @GDK_HINT_WIN_GRAVITY: window gravity field is set
75 @GDK_HINT_USER_POS: indicates that the window's position was explicitly set by the user
76 @GDK_HINT_USER_SIZE: indicates that the window's size was explicitly set by the user
78 <!-- ##### STRUCT GdkGeometry ##### -->
80 The #GdkGeometry struct gives the window manager information about
81 a window's geometry constraints. Normally you would set these on
82 the GTK+ level using gtk_window_set_geometry_hints(). #GtkWindow
83 then sets the hints on the #GdkWindow it creates.
87 gdk_window_set_geometry_hints() expects the hints to be fully valid already and
88 simply passes them to the window manager; in contrast,
89 gtk_window_set_geometry_hints() performs some interpretation. For example,
90 #GtkWindow will apply the hints to the geometry widget instead of the toplevel
91 window, if you set a geometry widget. Also, the
92 @min_width/@min_height/@max_width/@max_height fields may be set to -1, and
93 #GtkWindow will substitute the size request of the window or geometry widget. If
94 the minimum size hint is not provided, #GtkWindow will use its requisition as
95 the minimum size. If the minimum size is provided and a geometry widget is set,
96 #GtkWindow will take the minimum size as the minimum size of the geometry widget
97 rather than the entire window. The base size is treated similarly.
101 The canonical use-case for gtk_window_set_geometry_hints() is to get a terminal
102 widget to resize properly. Here, the terminal text area should be the geometry
103 widget; #GtkWindow will then automatically set the base size to the size of
104 other widgets in the terminal window, such as the menubar and scrollbar. Then,
105 the @width_inc and @height_inc fields should be set to the size of one character
106 in the terminal. Finally, the base size should be set to the size of one
107 character. The net effect is that the minimum size of the terminal
108 will have a 1x1 character terminal area, and only terminal sizes on
109 the "character grid" will be allowed.
113 Here's an example of how the terminal example would be implemented, assuming
114 a terminal area widget called "terminal" and a toplevel window "toplevel":
115 <informalexample><programlisting>
118 hints.base_width = terminal->char_width;
119 hints.base_height = terminal->char_height;
120 hints.min_width = terminal->char_width;
121 hints.min_height = terminal->char_height;
122 hints.width_inc = terminal->char_width;
123 hints.height_inc = terminal->char_height;
125 gtk_window_set_geometry_hints (GTK_WINDOW (toplevel),
126 GTK_WIDGET (terminal),
128 GDK_HINT_RESIZE_INC |
131 </programlisting></informalexample>
135 The other useful fields are the @min_aspect and @max_aspect fields; these
136 contain a width/height ratio as a floating point number. If a geometry widget is
137 set, the aspect applies to the geometry widget rather than the entire window.
138 The most common use of these hints is probably to set @min_aspect and
139 @max_aspect to the same value, thus forcing the window to keep a constant aspect
143 @min_width: minimum width of window (or -1 to use requisition, with #GtkWindow only)
144 @min_height minimum height of window (or -1 to use requisition, with #GtkWindow only)
146 @max_width: maximum width of window (or -1 to use requisition, with #GtkWindow only)
147 @max_height: maximum height of window (or -1 to use requisition, with #GtkWindow only)
148 @base_width: allowed window widths are @base_width + @width_inc * N where N is any integer (-1 allowed with #GtkWindow)
149 @base_height: allowed window widths are @base_height + @height_inc * N where N is any integer (-1 allowed with #GtkWindow)
150 @width_inc: width resize increment
151 @height_inc: height resize increment
152 @min_aspect: minimum width/height ratio
153 @max_aspect: maximum width/height ratio
154 @win_gravity: window gravity, see gtk_window_set_gravity()
156 <!-- ##### ENUM GdkGravity ##### -->
158 Defines the reference point of a window and the meaning of coordinates
159 passed to gtk_window_move(). See gtk_window_move() and the "implementation
160 notes" section of the
161 <ulink url="http://www.freedesktop.org/standards/wm-spec">extended
162 window manager hints</ulink> specification for more details.
165 @GDK_GRAVITY_NORTH_WEST: the reference point is at the top left corner.
166 @GDK_GRAVITY_NORTH: the reference point is in the middle of the top edge.
167 @GDK_GRAVITY_NORTH_EAST: the reference point is at the top right corner.
168 @GDK_GRAVITY_WEST: the reference point is at the middle of the left edge.
169 @GDK_GRAVITY_CENTER: the reference point is at the center of the window.
170 @GDK_GRAVITY_EAST: the reference point is at the middle of the right edge.
171 @GDK_GRAVITY_SOUTH_WEST: the reference point is at the lower left corner.
172 @GDK_GRAVITY_SOUTH: the reference point is at the middle of the lower edge.
173 @GDK_GRAVITY_SOUTH_EAST: the reference point is at the lower right corner.
174 @GDK_GRAVITY_STATIC: the reference point is at the top left corner of the
175 window itself, ignoring window manager decorations.
177 <!-- ##### ENUM GdkWindowEdge ##### -->
179 Determines a window edge or corner.
182 @GDK_WINDOW_EDGE_NORTH_WEST: the top left corner.
183 @GDK_WINDOW_EDGE_NORTH: the top edge.
184 @GDK_WINDOW_EDGE_NORTH_EAST: the top right corner.
185 @GDK_WINDOW_EDGE_WEST: the left edge.
186 @GDK_WINDOW_EDGE_EAST: the right edge.
187 @GDK_WINDOW_EDGE_SOUTH_WEST: the lower left corner.
188 @GDK_WINDOW_EDGE_SOUTH: the lower edge.
189 @GDK_WINDOW_EDGE_SOUTH_EAST: the lower right corner.
191 <!-- ##### ENUM GdkWindowTypeHint ##### -->
193 These are hints for the window manager that indicate what type of function
194 the window has. The window manager can use this when determining decoration
195 and behaviour of the window. The hint must be set before mapping the window.
199 <ulink url="http://www.freedesktop.org/standards/wm-spec">extended
200 window manager hints</ulink> specification for more details about
204 @GDK_WINDOW_TYPE_HINT_NORMAL: Normal toplevel window.
205 @GDK_WINDOW_TYPE_HINT_DIALOG: Dialog window.
206 @GDK_WINDOW_TYPE_HINT_MENU: Window used to implement a menu.
207 @GDK_WINDOW_TYPE_HINT_TOOLBAR: Window used to implement toolbars.
208 @GDK_WINDOW_TYPE_HINT_SPLASHSCREEN: Window used to display a splash
209 screen during application startup.
210 @GDK_WINDOW_TYPE_HINT_UTILITY: Utility windows which are not detached
212 @GDK_WINDOW_TYPE_HINT_DOCK: Used for creating dock or panel windows.
213 @GDK_WINDOW_TYPE_HINT_DESKTOP: Used for creating the desktop background
216 <!-- ##### STRUCT GdkWindowAttr ##### -->
218 Attributes to use for a newly-created window.
221 @title: title of the window (for toplevel windows)
222 @event_mask: event mask (see gdk_window_set_events())
223 @x: X coordinate relative to parent window (see gdk_window_move())
224 @y: Y coordinate relative to parent window (see gdk_window_move())
225 @width: width of window
226 @height: height of window
227 @wclass: #GDK_INPUT_OUTPUT (normal window) or #GDK_INPUT_ONLY (invisible window that receives events)
228 @visual: #GdkVisual for window
229 @colormap: #GdkColormap for window
230 @window_type: type of window
231 @cursor: cursor for the window (see gdk_window_set_cursor())
232 @wmclass_name: don't use (see gtk_window_set_wmclass())
233 @wmclass_class: don't use (see gtk_window_set_wmclass())
234 @override_redirect: %TRUE to bypass the window manager
236 <!-- ##### ENUM GdkWindowAttributesType ##### -->
238 Used to indicate which fields in the #GdkWindowAttr struct should be
239 honored. For example, if you filled in the "cursor" and "x" fields of
240 #GdkWindowAttr, pass "@GDK_WA_X | @GDK_WA_CURSOR" to gdk_window_new(). Fields
241 in #GdkWindowAttr not covered by a bit in this enum are required; for example,
242 the @width/@height, @wclass, and @window_type fields are required, they have no
243 corresponding flag in #GdkWindowAttributesType.
246 @GDK_WA_TITLE: Honor the title field
247 @GDK_WA_X: Honor the X coordinate field
248 @GDK_WA_Y: Honor the Y coordinate field
249 @GDK_WA_CURSOR: Honor the cursor field
250 @GDK_WA_COLORMAP: Honor the colormap field
251 @GDK_WA_VISUAL: Honor the visual field
252 @GDK_WA_WMCLASS: Honor the wmclass_class and wmclass_name fields
253 @GDK_WA_NOREDIR: Honor the override_redirect field
255 <!-- ##### FUNCTION gdk_window_new ##### -->
266 <!-- ##### FUNCTION gdk_window_destroy ##### -->
274 <!-- ##### MACRO gdk_window_ref ##### -->
276 Deprecated equivalent of g_object_ref()
282 <!-- ##### MACRO gdk_window_unref ##### -->
284 Deprecated equivalent of g_object_unref()
289 <!-- ##### FUNCTION gdk_window_get_window_type ##### -->
298 <!-- ##### FUNCTION gdk_window_at_pointer ##### -->
308 <!-- ##### FUNCTION gdk_window_show ##### -->
316 <!-- ##### FUNCTION gdk_window_show_unraised ##### -->
324 <!-- ##### FUNCTION gdk_window_hide ##### -->
332 <!-- ##### FUNCTION gdk_window_is_visible ##### -->
341 <!-- ##### FUNCTION gdk_window_is_viewable ##### -->
350 <!-- ##### FUNCTION gdk_window_get_state ##### -->
359 <!-- ##### FUNCTION gdk_window_withdraw ##### -->
367 <!-- ##### FUNCTION gdk_window_iconify ##### -->
375 <!-- ##### FUNCTION gdk_window_deiconify ##### -->
383 <!-- ##### FUNCTION gdk_window_stick ##### -->
391 <!-- ##### FUNCTION gdk_window_unstick ##### -->
399 <!-- ##### FUNCTION gdk_window_maximize ##### -->
407 <!-- ##### FUNCTION gdk_window_unmaximize ##### -->
415 <!-- ##### FUNCTION gdk_window_fullscreen ##### -->
423 <!-- ##### FUNCTION gdk_window_unfullscreen ##### -->
431 <!-- ##### FUNCTION gdk_window_set_keep_above ##### -->
440 <!-- ##### FUNCTION gdk_window_set_keep_below ##### -->
449 <!-- ##### FUNCTION gdk_window_move ##### -->
459 <!-- ##### FUNCTION gdk_window_resize ##### -->
469 <!-- ##### FUNCTION gdk_window_move_resize ##### -->
481 <!-- ##### FUNCTION gdk_window_scroll ##### -->
491 <!-- ##### FUNCTION gdk_window_move_region ##### -->
502 <!-- ##### FUNCTION gdk_window_reparent ##### -->
513 <!-- ##### FUNCTION gdk_window_clear ##### -->
521 <!-- ##### FUNCTION gdk_window_clear_area ##### -->
533 <!-- ##### FUNCTION gdk_window_clear_area_e ##### -->
545 <!-- ##### MACRO gdk_window_copy_area ##### -->
547 Deprecated equivalent to gdk_draw_drawable(), see that function for docs
550 @drawable: a #GdkDrawable
551 @gc: a #GdkGC sharing the drawable's visual and colormap
552 @x: X position in @drawable where the rectangle should be drawn
553 @y: Y position in @drawable where the rectangle should be drawn
554 @source_drawable: the source #GdkDrawable, which may be the same as @drawable
555 @source_x: X position in @src of rectangle to draw
556 @source_y: Y position in @src of rectangle to draw
557 @width: width of rectangle to draw, or -1 for entire @src width
558 @height: height of rectangle to draw, or -1 for entire @src height
559 <!-- # Unused Parameters # -->
560 @drawable: a #GdkDrawable
561 @xdest: X position in @drawable where the rectangle should be drawn
562 @ydest: Y position in @drawable where the rectangle should be drawn
565 <!-- ##### FUNCTION gdk_window_raise ##### -->
573 <!-- ##### FUNCTION gdk_window_lower ##### -->
581 <!-- ##### FUNCTION gdk_window_focus ##### -->
590 <!-- ##### FUNCTION gdk_window_register_dnd ##### -->
592 Registers a window as a potential drop destination.
595 @window: a #GdkWindow.
598 <!-- ##### FUNCTION gdk_window_begin_resize_drag ##### -->
611 <!-- ##### FUNCTION gdk_window_begin_move_drag ##### -->
623 <!-- ##### FUNCTION gdk_window_constrain_size ##### -->
636 <!-- ##### FUNCTION gdk_window_begin_paint_rect ##### -->
645 <!-- ##### FUNCTION gdk_window_begin_paint_region ##### -->
654 <!-- ##### FUNCTION gdk_window_end_paint ##### -->
662 <!-- ##### FUNCTION gdk_window_invalidate_rect ##### -->
669 @invalidate_children:
672 <!-- ##### FUNCTION gdk_window_invalidate_region ##### -->
679 @invalidate_children:
682 <!-- ##### FUNCTION gdk_window_invalidate_maybe_recurse ##### -->
693 <!-- ##### FUNCTION gdk_window_get_update_area ##### -->
702 <!-- ##### FUNCTION gdk_window_freeze_updates ##### -->
710 <!-- ##### FUNCTION gdk_window_thaw_updates ##### -->
718 <!-- ##### FUNCTION gdk_window_process_all_updates ##### -->
725 <!-- ##### FUNCTION gdk_window_process_updates ##### -->
734 <!-- ##### FUNCTION gdk_window_set_debug_updates ##### -->
742 <!-- ##### FUNCTION gdk_window_get_internal_paint_info ##### -->
753 <!-- ##### FUNCTION gdk_window_enable_synchronized_configure ##### -->
761 <!-- ##### FUNCTION gdk_window_configure_finished ##### -->
769 <!-- ##### FUNCTION gdk_window_set_user_data ##### -->
778 <!-- ##### FUNCTION gdk_window_set_override_redirect ##### -->
787 <!-- ##### FUNCTION gdk_window_set_accept_focus ##### -->
796 <!-- ##### FUNCTION gdk_window_set_focus_on_map ##### -->
805 <!-- ##### FUNCTION gdk_window_add_filter ##### -->
815 <!-- ##### FUNCTION gdk_window_remove_filter ##### -->
825 <!-- ##### USER_FUNCTION GdkFilterFunc ##### -->
827 Specifies the type of function used to filter native events before they are
828 converted to GDK events.
832 When a filter is called, @event is unpopulated, except for
833 <literal>event->window</literal>. The filter may translate the native
834 event to a GDK event and store the result in @event, or handle it without
835 translation. If the filter translates the event and processing should
836 continue, it should return <literal>GDK_FILTER_TRANSLATE</literal>.
839 @xevent: the native event to filter.
840 @event: the GDK event to which the X event will be translated.
841 @data: user data set when the filter was installed.
842 @Returns: a #GdkFilterReturn value.
845 <!-- ##### ENUM GdkFilterReturn ##### -->
847 Specifies the result of applying a #GdkFilterFunc to a native event.
850 @GDK_FILTER_CONTINUE: event not handled, continue processing.
851 @GDK_FILTER_TRANSLATE: native event translated into a GDK event and stored
852 in the <literal>event</literal> structure that was passed in.
853 @GDK_FILTER_REMOVE: event handled, terminate processing.
855 <!-- ##### TYPEDEF GdkXEvent ##### -->
857 Used to represent native events (<type>XEvent</type>s for the X11
858 backend, <type>MSG</type>s for Win32).
862 <!-- ##### FUNCTION gdk_window_shape_combine_mask ##### -->
873 <!-- ##### FUNCTION gdk_window_shape_combine_region ##### -->
884 <!-- ##### FUNCTION gdk_window_set_child_shapes ##### -->
892 <!-- ##### FUNCTION gdk_window_merge_child_shapes ##### -->
900 <!-- ##### FUNCTION gdk_window_set_static_gravities ##### -->
910 <!-- ##### FUNCTION gdk_window_set_hints ##### -->
925 <!-- ##### FUNCTION gdk_window_set_title ##### -->
934 <!-- ##### FUNCTION gdk_window_set_background ##### -->
943 <!-- ##### FUNCTION gdk_window_set_back_pixmap ##### -->
953 <!-- ##### MACRO GDK_PARENT_RELATIVE ##### -->
955 A special value for <literal>GdkPixmap*</literal> variables, indicating
956 that the background pixmap for a window should be inherited from the parent
962 <!-- ##### FUNCTION gdk_window_set_cursor ##### -->
971 <!-- ##### MACRO gdk_window_set_colormap ##### -->
973 Deprecated equivalent to gdk_drawable_set_colormap()
978 <!-- ##### FUNCTION gdk_window_get_user_data ##### -->
987 <!-- ##### FUNCTION gdk_window_get_geometry ##### -->
1000 <!-- ##### FUNCTION gdk_window_set_geometry_hints ##### -->
1010 <!-- ##### FUNCTION gdk_window_set_icon_list ##### -->
1019 <!-- ##### FUNCTION gdk_window_set_modal_hint ##### -->
1028 <!-- ##### FUNCTION gdk_window_set_type_hint ##### -->
1037 <!-- ##### FUNCTION gdk_window_set_skip_taskbar_hint ##### -->
1046 <!-- ##### FUNCTION gdk_window_set_skip_pager_hint ##### -->
1055 <!-- ##### FUNCTION gdk_window_set_urgency_hint ##### -->
1064 <!-- ##### FUNCTION gdk_window_get_position ##### -->
1074 <!-- ##### FUNCTION gdk_window_get_root_origin ##### -->
1084 <!-- ##### FUNCTION gdk_window_get_frame_extents ##### -->
1093 <!-- ##### MACRO gdk_window_get_size ##### -->
1095 Deprecated equivalent of gdk_drawable_get_size().
1100 <!-- ##### MACRO gdk_window_get_visual ##### -->
1102 Deprecated equivalent of gdk_drawable_get_visual().
1105 @Returns: the #GdkVisual of the window
1108 <!-- ##### MACRO gdk_window_get_colormap ##### -->
1110 Deprecated equivalent of gdk_drawable_get_colormap().
1113 @Returns: colormap for the window
1116 <!-- ##### MACRO gdk_window_get_type ##### -->
1118 Deprecated equivalent of gdk_drawable_get_type().
1121 @Returns: type of drawable
1124 <!-- ##### FUNCTION gdk_window_get_origin ##### -->
1135 <!-- ##### FUNCTION gdk_window_get_deskrelative_origin ##### -->
1146 <!-- ##### FUNCTION gdk_window_get_pointer ##### -->
1158 <!-- ##### ENUM GdkModifierType ##### -->
1160 A set of bit-flags to indicate the state of modifier keys and mouse buttons
1161 in various event types. Typical modifier keys are Shift, Control, Meta, Super,
1162 Hyper, Alt, Compose, Apple, CapsLock or ShiftLock.
1165 Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
1168 @GDK_SHIFT_MASK: the Shift key.
1169 @GDK_LOCK_MASK: a Lock key (depending on the modifier mapping of the
1170 X server this may either be CapsLock or ShiftLock).
1171 @GDK_CONTROL_MASK: the Control key.
1172 @GDK_MOD1_MASK: the fourth modifier key (it depends on the modifier
1173 mapping of the X server which key is interpreted as this modifier, but
1174 normally it is the Alt key).
1175 @GDK_MOD2_MASK: the fifth modifier key (it depends on the modifier
1176 mapping of the X server which key is interpreted as this modifier).
1177 @GDK_MOD3_MASK: the sixth modifier key (it depends on the modifier
1178 mapping of the X server which key is interpreted as this modifier).
1179 @GDK_MOD4_MASK: the seventh modifier key (it depends on the modifier
1180 mapping of the X server which key is interpreted as this modifier).
1181 @GDK_MOD5_MASK: the eighth modifier key (it depends on the modifier
1182 mapping of the X server which key is interpreted as this modifier).
1183 @GDK_BUTTON1_MASK: the first mouse button.
1184 @GDK_BUTTON2_MASK: the second mouse button.
1185 @GDK_BUTTON3_MASK: the third mouse button.
1186 @GDK_BUTTON4_MASK: the fourth mouse button.
1187 @GDK_BUTTON5_MASK: the fifth mouse button.
1188 @GDK_RELEASE_MASK: not used in GDK itself. GTK+ uses it to differentiate
1189 between (keyval, modifiers) pairs from key press and release events.
1190 @GDK_MODIFIER_MASK: a mask covering all modifier types.
1192 <!-- ##### FUNCTION gdk_window_get_parent ##### -->
1201 <!-- ##### FUNCTION gdk_window_get_toplevel ##### -->
1210 <!-- ##### FUNCTION gdk_window_get_children ##### -->
1219 <!-- ##### FUNCTION gdk_window_peek_children ##### -->
1228 <!-- ##### FUNCTION gdk_window_get_events ##### -->
1237 <!-- ##### FUNCTION gdk_window_set_events ##### -->
1246 <!-- ##### FUNCTION gdk_window_set_icon ##### -->
1257 <!-- ##### FUNCTION gdk_window_set_icon_name ##### -->
1266 <!-- ##### FUNCTION gdk_window_set_transient_for ##### -->
1275 <!-- ##### FUNCTION gdk_window_set_role ##### -->
1284 <!-- ##### FUNCTION gdk_window_set_group ##### -->
1293 <!-- ##### FUNCTION gdk_window_get_group ##### -->
1302 <!-- ##### FUNCTION gdk_window_set_decorations ##### -->
1311 <!-- ##### FUNCTION gdk_window_get_decorations ##### -->
1316 @window: The window to get the decorations from
1317 @decorations: The window decorations will be written here
1318 @Returns: %TRUE if the window has decorations set, %FALSE otherwise.
1321 <!-- ##### ENUM GdkWMDecoration ##### -->
1323 These are hints originally defined by the Motif toolkit.
1324 The window manager can use them when determining how to decorate
1325 the window. The hint must be set before mapping the window.
1328 @GDK_DECOR_ALL: all decorations should be applied.
1329 @GDK_DECOR_BORDER: a frame should be drawn around the window.
1330 @GDK_DECOR_RESIZEH: the frame should have resize handles.
1331 @GDK_DECOR_TITLE: a titlebar should be placed above the window.
1332 @GDK_DECOR_MENU: a button for opening a menu should be included.
1333 @GDK_DECOR_MINIMIZE: a minimize button should be included.
1334 @GDK_DECOR_MAXIMIZE: a maximize button should be included.
1336 <!-- ##### FUNCTION gdk_window_set_functions ##### -->
1345 <!-- ##### ENUM GdkWMFunction ##### -->
1347 These are hints originally defined by the Motif toolkit.
1348 The window manager can use them when determining the functions
1349 to offer for the window.
1350 The hint must be set before mapping the window.
1353 @GDK_FUNC_ALL: all functions should be offered.
1354 @GDK_FUNC_RESIZE: the window should be resizable.
1355 @GDK_FUNC_MOVE: the window should be movable.
1356 @GDK_FUNC_MINIMIZE: the window should be minimizable.
1357 @GDK_FUNC_MAXIMIZE: the window should be maximizable.
1358 @GDK_FUNC_CLOSE: the window should be closable.
1360 <!-- ##### FUNCTION gdk_window_get_toplevels ##### -->
1368 <!-- ##### FUNCTION gdk_get_default_root_window ##### -->
1376 <!-- ##### STRUCT GdkPointerHooks ##### -->
1378 A table of pointers to functions for getting quantities related to
1379 the current pointer position. GDK has one global table of this type,
1380 which can be set using gdk_set_pointer_hooks().
1383 This is only useful for such low-level tools as an event recorder.
1384 Applications should never have any reason to use this facility
1387 @get_pointer: Obtains the current pointer position and modifier state.
1388 The position is given in coordinates relative to the window containing
1389 the pointer, which is returned in @window.
1390 @window_at_pointer: Obtains the window underneath the mouse pointer,
1391 returning the location of that window in @win_x, @win_y. Returns %NULL
1392 if the window under the mouse pointer is not known to GDK (for example,
1393 belongs to another application).
1395 <!-- ##### FUNCTION gdk_set_pointer_hooks ##### -->
1407 sgml-parent-document: ("../gdk-docs.sgml" "book" "refsect2" "")