]> Pileus Git - ~andy/gtk/blob - docs/reference/gdk/tmpl/windows.sgml
Fix a few doc comments. Link to style properties.
[~andy/gtk] / docs / reference / gdk / tmpl / windows.sgml
1 <!-- ##### SECTION Title ##### -->
2 Windows
3
4 <!-- ##### SECTION Short_Description ##### -->
5 Onscreen display areas in the target window system
6
7 <!-- ##### SECTION Long_Description ##### -->
8 <para>
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.
14 </para>
15
16 <!-- ##### SECTION See_Also ##### -->
17 <para>
18
19 </para>
20
21 <!-- ##### STRUCT GdkWindow ##### -->
22 <para>
23 An opaque structure representing an onscreen drawable.
24 Pointers to structures of type #GdkPixmap, #GdkBitmap,
25 and #GdkWindow, can often be used interchangeably.
26 The type #GdkDrawable refers generically to any of
27 these types.
28 </para>
29
30
31 <!-- ##### ENUM GdkWindowType ##### -->
32 <para>
33 Describes the kind of window.
34 </para>
35
36 @GDK_WINDOW_ROOT: root window; this window has no parent, covers the entire screen, and is created by the window system
37 @GDK_WINDOW_TOPLEVEL: toplevel window (used to implement #GtkWindow)
38 @GDK_WINDOW_CHILD: child window (used to implement e.g. #GtkButton)
39 @GDK_WINDOW_DIALOG: useless/deprecated compatibility type
40 @GDK_WINDOW_TEMP: override redirect temporary window (used to implement #GtkMenu)
41 @GDK_WINDOW_FOREIGN: foreign window (see gdk_window_foreign_new())
42
43 <!-- ##### ENUM GdkWindowClass ##### -->
44 <para>
45 @GDK_INPUT_OUTPUT windows are the standard kind of window you might expect. 
46 @GDK_INPUT_ONLY windows are invisible; they are used to trap events, but 
47 you can't draw on them.
48 </para>
49
50 @GDK_INPUT_OUTPUT: window for graphics and events
51 @GDK_INPUT_ONLY: window for events only
52
53 <!-- ##### ENUM GdkWindowHints ##### -->
54 <para>
55 Used to indicate which fields of a #GdkGeometry struct should be paid attention
56 to. Also, the presence/absence of @GDK_HINT_POS, @GDK_HINT_USER_POS, and
57 @GDK_HINT_USER_SIZE is significant, though they don't directly refer to
58 #GdkGeometry fields.  @GDK_HINT_USER_POS will be set automatically by #GtkWindow
59 if you call gtk_window_move(). @GDK_HINT_USER_POS and @GDK_HINT_USER_SIZE 
60 should be set if the user specified a size/position using a --geometry 
61 command-line argument; gtk_window_parse_geometry() automatically sets these
62 flags.
63 </para>
64
65 @GDK_HINT_POS: indicates that the program has positioned the window
66 @GDK_HINT_MIN_SIZE: min size fields are set
67 @GDK_HINT_MAX_SIZE: max size fields are set
68 @GDK_HINT_BASE_SIZE: base size fields are set
69 @GDK_HINT_ASPECT: aspect ratio fields are set
70 @GDK_HINT_RESIZE_INC: resize increment fields are set
71 @GDK_HINT_WIN_GRAVITY: window gravity field is set
72 @GDK_HINT_USER_POS: indicates that the window's position was explicitly set by the user
73 @GDK_HINT_USER_SIZE: indicates that the window's size was explicitly set by the user
74
75 <!-- ##### STRUCT GdkGeometry ##### -->
76 <para>
77 The #GdkGeometry struct gives the window manager information about 
78 a window's geometry constraints. Normally you would set these on 
79 the GTK+ level using gtk_window_set_geometry_hints(). #GtkWindow 
80 then sets the hints on the #GdkWindow it creates.
81 </para>
82
83 <para>
84 gdk_window_set_geometry_hints() expects the hints to be fully valid already and
85 simply passes them to the window manager; in contrast,
86 gtk_window_set_geometry_hints() performs some interpretation. For example,
87 #GtkWindow will apply the hints to the geometry widget instead of the toplevel
88 window, if you set a geometry widget. Also, the
89 @min_width/@min_height/@max_width/@max_height fields may be set to -1, and
90 #GtkWindow will substitute the size request of the window or geometry widget. If
91 the minimum size hint is not provided, #GtkWindow will use its requisition as
92 the minimum size.  If the minimum size is provided and a geometry widget is set,
93 #GtkWindow will take the minimum size as the minimum size of the geometry widget
94 rather than the entire window. The base size is treated similarly.
95 </para>
96
97 <para>
98 The canonical use-case for gtk_window_set_geometry_hints() is to get a terminal
99 widget to resize properly. Here, the terminal text area should be the geometry
100 widget; #GtkWindow will then automatically set the base size to the size of
101 other widgets in the terminal window, such as the menubar and scrollbar.  Then,
102 the @width_inc and @height_inc fields should be set to the size of one character
103 in the terminal. Finally, the base size should be set to the size of one
104 character. The net effect is that the minimum size of the terminal 
105 will have a 1x1 character terminal area, and only terminal sizes on 
106 the "character grid" will be allowed.
107 </para>
108
109 <para>
110 Here's an example of how the terminal example would be implemented, assuming 
111 a terminal area widget called "terminal" and a toplevel window "toplevel":
112 <informalexample><programlisting>
113         GdkGeometry hints;
114
115         hints.base_width = terminal->char_width;
116         hints.base_height = terminal->char_height;
117         hints.min_width = terminal->char_width;
118         hints.min_height = terminal->char_height;
119         hints.width_inc = terminal->char_width;
120         hints.height_inc = terminal->char_height;
121
122         gtk_window_set_geometry_hints (GTK_WINDOW (toplevel),
123                                        GTK_WIDGET (terminal),
124                                        &amp;hints,
125                                        GDK_HINT_RESIZE_INC |
126                                        GDK_HINT_MIN_SIZE |
127                                        GDK_HINT_BASE_SIZE);
128 </programlisting></informalexample>
129 </para>
130
131 <para>
132 The other useful fields are the @min_aspect and @max_aspect fields; these
133 contain a width/height ratio as a floating point number. If a geometry widget is
134 set, the aspect applies to the geometry widget rather than the entire window.
135 The most common use of these hints is probably to set @min_aspect and
136 @max_aspect to the same value, thus forcing the window to keep a constant aspect
137 ratio.
138 </para>
139
140 @min_width: minimum width of window (or -1 to use requisition, with #GtkWindow only)
141 @min_height minimum height of window (or -1 to use requisition, with #GtkWindow only)
142 @min_height: 
143 @max_width: maximum width of window (or -1 to use requisition, with #GtkWindow only)
144 @max_height: maximum height of window (or -1 to use requisition, with #GtkWindow only)
145 @base_width: allowed window widths are @base_width + @width_inc * N where N is any integer (-1 allowed with #GtkWindow)
146 @base_height: allowed window widths are @base_height + @height_inc * N where N is any integer (-1 allowed with #GtkWindow)
147 @width_inc: width resize increment
148 @height_inc: height resize increment
149 @min_aspect: minimum width/height ratio
150 @max_aspect: maximum width/height ratio
151 @win_gravity: window gravity, see gtk_window_set_gravity()
152
153 <!-- ##### ENUM GdkGravity ##### -->
154 <para>
155 Defines the reference point of a window and the meaning of coordinates
156 passed to gtk_window_move(). See gtk_window_move() and the "implementation 
157 notes" section of the 
158 <ulink url="http://www.freedesktop.org/standards/wm-spec.html">extended 
159 window manager hints</ulink> specification for more details.
160 </para>
161
162 @GDK_GRAVITY_NORTH_WEST: the reference point is at the top left corner.
163 @GDK_GRAVITY_NORTH: the reference point is in the middle of the top edge.
164 @GDK_GRAVITY_NORTH_EAST: the reference point is at the top right corner.
165 @GDK_GRAVITY_WEST: the reference point is at the middle of the left edge.
166 @GDK_GRAVITY_CENTER: the reference point is at the center of the window.
167 @GDK_GRAVITY_EAST: the reference point is at the middle of the right edge.
168 @GDK_GRAVITY_SOUTH_WEST: the reference point is at the lower left corner.
169 @GDK_GRAVITY_SOUTH: the reference point is at the middle of the lower edge.
170 @GDK_GRAVITY_SOUTH_EAST: the reference point is at the lower right corner.
171 @GDK_GRAVITY_STATIC: the reference point is at the top left corner of the 
172    window itself, ignoring window manager decorations.
173
174 <!-- ##### ENUM GdkWindowEdge ##### -->
175 <para>
176 Determines a window edge or corner. 
177 </para>
178
179 @GDK_WINDOW_EDGE_NORTH_WEST: the top left corner.
180 @GDK_WINDOW_EDGE_NORTH: the top edge.
181 @GDK_WINDOW_EDGE_NORTH_EAST: the top right corner.
182 @GDK_WINDOW_EDGE_WEST: the left edge.
183 @GDK_WINDOW_EDGE_EAST: the right edge.
184 @GDK_WINDOW_EDGE_SOUTH_WEST: the lower left corner.
185 @GDK_WINDOW_EDGE_SOUTH: the lower edge.
186 @GDK_WINDOW_EDGE_SOUTH_EAST: the lower right corner.
187
188 <!-- ##### ENUM GdkWindowTypeHint ##### -->
189 <para>
190 These are hints for the window manager that indicate what type of function 
191 the window has. The window manager can use this when determining decoration 
192 and behaviour of the window. The hint must be set before mapping the window.
193 </para>
194
195 @GDK_WINDOW_TYPE_HINT_NORMAL: Normal toplevel window.
196 @GDK_WINDOW_TYPE_HINT_DIALOG: Dialog window.
197 @GDK_WINDOW_TYPE_HINT_MENU: Window used to implement a menu.
198 @GDK_WINDOW_TYPE_HINT_TOOLBAR: Window used to implement toolbars.
199 @GDK_WINDOW_TYPE_HINT_SPLASHSCREEN: 
200 @GDK_WINDOW_TYPE_HINT_UTILITY: 
201 @GDK_WINDOW_TYPE_HINT_DOCK: 
202 @GDK_WINDOW_TYPE_HINT_DESKTOP: 
203
204 <!-- ##### STRUCT GdkWindowAttr ##### -->
205 <para>
206 Attributes to use for a newly-created window.
207 </para>
208
209 @title: title of the window (for toplevel windows)
210 @event_mask: event mask (see gdk_window_set_events())
211 @x: X coordinate relative to parent window (see gdk_window_move())
212 @y: Y coordinate relative to parent window (see gdk_window_move())
213 @width: width of window
214 @height: height of window
215 @wclass: #GDK_INPUT_OUTPUT (normal window) or #GDK_INPUT_ONLY (invisible window that receives events)
216 @visual: #GdkVisual for window
217 @colormap: #GdkColormap for window
218 @window_type: type of window
219 @cursor: cursor for the window (see gdk_window_set_cursor())
220 @wmclass_name: don't use (see gtk_window_set_wmclass())
221 @wmclass_class: don't use (see gtk_window_set_wmclass())
222 @override_redirect: %TRUE to bypass the window manager
223
224 <!-- ##### ENUM GdkWindowAttributesType ##### -->
225 <para>
226 Used to indicate which fields in the #GdkWindowAttr struct should be
227 honored. For example, if you filled in the "cursor" and "x" fields of
228 #GdkWindowAttr, pass "@GDK_WA_X | @GDK_WA_CURSOR" to gdk_window_new().  Fields
229 in #GdkWindowAttr not covered by a bit in this enum are required; for example,
230 the @width/@height, @wclass, and @window_type fields are required, they have no
231 corresponding flag in #GdkWindowAttributesType.
232 </para>
233
234 @GDK_WA_TITLE: Honor the title field
235 @GDK_WA_X: Honor the X coordinate field
236 @GDK_WA_Y: Honor the Y coordinate field
237 @GDK_WA_CURSOR: Honor the cursor field
238 @GDK_WA_COLORMAP: Honor the colormap field
239 @GDK_WA_VISUAL: Honor the visual field
240 @GDK_WA_WMCLASS: Honor the wmclass_class and wmclass_name fields
241 @GDK_WA_NOREDIR: Honor the override_redirect field
242
243 <!-- ##### FUNCTION gdk_window_new ##### -->
244 <para>
245
246 </para>
247
248 @parent: 
249 @attributes: 
250 @attributes_mask: 
251 @Returns: 
252
253
254 <!-- ##### FUNCTION gdk_window_destroy ##### -->
255 <para>
256
257 </para>
258
259 @window: 
260
261
262 <!-- ##### MACRO gdk_window_ref ##### -->
263 <para>
264 Deprecated equivalent of g_object_ref()
265 </para>
266
267 @Returns: 
268
269
270 <!-- ##### MACRO gdk_window_unref ##### -->
271 <para>
272 Deprecated equivalent of g_object_unref()
273 </para>
274
275
276
277 <!-- ##### FUNCTION gdk_window_get_window_type ##### -->
278 <para>
279
280 </para>
281
282 @window: 
283 @Returns: 
284
285
286 <!-- ##### FUNCTION gdk_window_at_pointer ##### -->
287 <para>
288
289 </para>
290
291 @win_x: 
292 @win_y: 
293 @Returns: 
294
295
296 <!-- ##### FUNCTION gdk_window_show ##### -->
297 <para>
298
299 </para>
300
301 @window: 
302
303
304 <!-- ##### FUNCTION gdk_window_show_unraised ##### -->
305 <para>
306
307 </para>
308
309 @window: 
310
311
312 <!-- ##### FUNCTION gdk_window_hide ##### -->
313 <para>
314
315 </para>
316
317 @window: 
318
319
320 <!-- ##### FUNCTION gdk_window_is_visible ##### -->
321 <para>
322
323 </para>
324
325 @window: 
326 @Returns: 
327
328
329 <!-- ##### FUNCTION gdk_window_is_viewable ##### -->
330 <para>
331
332 </para>
333
334 @window: 
335 @Returns: 
336
337
338 <!-- ##### FUNCTION gdk_window_get_state ##### -->
339 <para>
340
341 </para>
342
343 @window: 
344 @Returns: 
345
346
347 <!-- ##### FUNCTION gdk_window_withdraw ##### -->
348 <para>
349
350 </para>
351
352 @window: 
353
354
355 <!-- ##### FUNCTION gdk_window_iconify ##### -->
356 <para>
357
358 </para>
359
360 @window: 
361
362
363 <!-- ##### FUNCTION gdk_window_deiconify ##### -->
364 <para>
365
366 </para>
367
368 @window: 
369
370
371 <!-- ##### FUNCTION gdk_window_stick ##### -->
372 <para>
373
374 </para>
375
376 @window: 
377
378
379 <!-- ##### FUNCTION gdk_window_unstick ##### -->
380 <para>
381
382 </para>
383
384 @window: 
385
386
387 <!-- ##### FUNCTION gdk_window_maximize ##### -->
388 <para>
389
390 </para>
391
392 @window: 
393
394
395 <!-- ##### FUNCTION gdk_window_unmaximize ##### -->
396 <para>
397
398 </para>
399
400 @window: 
401
402
403 <!-- ##### FUNCTION gdk_window_fullscreen ##### -->
404 <para>
405
406 </para>
407
408 @window: 
409
410
411 <!-- ##### FUNCTION gdk_window_unfullscreen ##### -->
412 <para>
413
414 </para>
415
416 @window: 
417
418
419 <!-- ##### FUNCTION gdk_window_move ##### -->
420 <para>
421
422 </para>
423
424 @window: 
425 @x: 
426 @y: 
427
428
429 <!-- ##### FUNCTION gdk_window_resize ##### -->
430 <para>
431
432 </para>
433
434 @window: 
435 @width: 
436 @height: 
437
438
439 <!-- ##### FUNCTION gdk_window_move_resize ##### -->
440 <para>
441
442 </para>
443
444 @window: 
445 @x: 
446 @y: 
447 @width: 
448 @height: 
449
450
451 <!-- ##### FUNCTION gdk_window_scroll ##### -->
452 <para>
453
454 </para>
455
456 @window: 
457 @dx: 
458 @dy: 
459
460
461 <!-- ##### FUNCTION gdk_window_reparent ##### -->
462 <para>
463
464 </para>
465
466 @window: 
467 @new_parent: 
468 @x: 
469 @y: 
470
471
472 <!-- ##### FUNCTION gdk_window_clear ##### -->
473 <para>
474
475 </para>
476
477 @window: 
478
479
480 <!-- ##### FUNCTION gdk_window_clear_area ##### -->
481 <para>
482
483 </para>
484
485 @window: 
486 @x: 
487 @y: 
488 @width: 
489 @height: 
490
491
492 <!-- ##### FUNCTION gdk_window_clear_area_e ##### -->
493 <para>
494
495 </para>
496
497 @window: 
498 @x: 
499 @y: 
500 @width: 
501 @height: 
502
503
504 <!-- ##### MACRO gdk_window_copy_area ##### -->
505 <para>
506 Deprecated equivalent to gdk_draw_drawable(), see that function for docs
507 </para>
508
509 @drawable: 
510 @gc: 
511 @x: 
512 @y: 
513 @source_drawable: 
514 @source_x: 
515 @source_y: 
516 @width: 
517 @height: 
518
519
520 <!-- ##### FUNCTION gdk_window_raise ##### -->
521 <para>
522
523 </para>
524
525 @window: 
526
527
528 <!-- ##### FUNCTION gdk_window_lower ##### -->
529 <para>
530
531 </para>
532
533 @window: 
534
535
536 <!-- ##### FUNCTION gdk_window_focus ##### -->
537 <para>
538
539 </para>
540
541 @window: 
542 @timestamp: 
543
544
545 <!-- ##### FUNCTION gdk_window_register_dnd ##### -->
546 <para>
547 Registers a window as a potential drop destination.
548 </para>
549
550 @window: a #GdkWindow.
551
552
553 <!-- ##### FUNCTION gdk_window_begin_resize_drag ##### -->
554 <para>
555
556 </para>
557
558 @window: 
559 @edge: 
560 @button: 
561 @root_x: 
562 @root_y: 
563 @timestamp: 
564
565
566 <!-- ##### FUNCTION gdk_window_begin_move_drag ##### -->
567 <para>
568
569 </para>
570
571 @window: 
572 @button: 
573 @root_x: 
574 @root_y: 
575 @timestamp: 
576
577
578 <!-- ##### FUNCTION gdk_window_constrain_size ##### -->
579 <para>
580
581 </para>
582
583 @geometry: 
584 @flags: 
585 @width: 
586 @height: 
587 @new_width: 
588 @new_height: 
589
590
591 <!-- ##### FUNCTION gdk_window_begin_paint_rect ##### -->
592 <para>
593
594 </para>
595
596 @window: 
597 @rectangle: 
598
599
600 <!-- ##### FUNCTION gdk_window_begin_paint_region ##### -->
601 <para>
602
603 </para>
604
605 @window: 
606 @region: 
607
608
609 <!-- ##### FUNCTION gdk_window_end_paint ##### -->
610 <para>
611
612 </para>
613
614 @window: 
615
616
617 <!-- ##### FUNCTION gdk_window_invalidate_rect ##### -->
618 <para>
619
620 </para>
621
622 @window: 
623 @rect: 
624 @invalidate_children: 
625
626
627 <!-- ##### FUNCTION gdk_window_invalidate_region ##### -->
628 <para>
629
630 </para>
631
632 @window: 
633 @region: 
634 @invalidate_children: 
635
636
637 <!-- ##### FUNCTION gdk_window_invalidate_maybe_recurse ##### -->
638 <para>
639
640 </para>
641
642 @window: 
643 @region: 
644 @child_func: 
645 @user_data: 
646
647
648 <!-- ##### FUNCTION gdk_window_get_update_area ##### -->
649 <para>
650
651 </para>
652
653 @window: 
654 @Returns: 
655
656
657 <!-- ##### FUNCTION gdk_window_freeze_updates ##### -->
658 <para>
659
660 </para>
661
662 @window: 
663
664
665 <!-- ##### FUNCTION gdk_window_thaw_updates ##### -->
666 <para>
667
668 </para>
669
670 @window: 
671
672
673 <!-- ##### FUNCTION gdk_window_process_all_updates ##### -->
674 <para>
675
676 </para>
677
678
679
680 <!-- ##### FUNCTION gdk_window_process_updates ##### -->
681 <para>
682
683 </para>
684
685 @window: 
686 @update_children: 
687
688
689 <!-- ##### FUNCTION gdk_window_set_debug_updates ##### -->
690 <para>
691
692 </para>
693
694 @setting: 
695
696
697 <!-- ##### FUNCTION gdk_window_get_internal_paint_info ##### -->
698 <para>
699
700 </para>
701
702 @window: 
703 @real_drawable: 
704 @x_offset: 
705 @y_offset: 
706
707
708 <!-- ##### FUNCTION gdk_window_set_user_data ##### -->
709 <para>
710
711 </para>
712
713 @window: 
714 @user_data: 
715
716
717 <!-- ##### FUNCTION gdk_window_set_override_redirect ##### -->
718 <para>
719
720 </para>
721
722 @window: 
723 @override_redirect: 
724
725
726 <!-- ##### FUNCTION gdk_window_add_filter ##### -->
727 <para>
728
729 </para>
730
731 @window: 
732 @function: 
733 @data: 
734
735
736 <!-- ##### FUNCTION gdk_window_remove_filter ##### -->
737 <para>
738
739 </para>
740
741 @window: 
742 @function: 
743 @data: 
744
745
746 <!-- ##### USER_FUNCTION GdkFilterFunc ##### -->
747 <para>
748 Specifies the type of function used to filter native events before they are
749 converted to GDK events. A filter may translate the native event to a GDK
750 event or handle it without translation.
751 </para>
752
753 @xevent: the native event to filter.
754 @event: the GDK event to which the X event will be translated.
755 @data: user data set when the filter was installed.
756 @Returns: a #GdkFilterReturn value.
757
758
759 <!-- ##### ENUM GdkFilterReturn ##### -->
760 <para>
761 Specifies the result of applying a #GdkFilterFunc to a native event.
762 </para>
763
764 @GDK_FILTER_CONTINUE: event not handled, continue processing.
765 @GDK_FILTER_TRANSLATE: translated event stored.
766 @GDK_FILTER_REMOVE: event handled, terminate processing.
767
768 <!-- ##### TYPEDEF GdkXEvent ##### -->
769 <para>
770 Used to represent native events (<type>XEvent</type>s for the X11 
771 backend, <type>MSG</type>s for Win32).
772 </para>
773
774
775 <!-- ##### FUNCTION gdk_window_shape_combine_mask ##### -->
776 <para>
777
778 </para>
779
780 @window: 
781 @mask: 
782 @x: 
783 @y: 
784
785
786 <!-- ##### FUNCTION gdk_window_shape_combine_region ##### -->
787 <para>
788
789 </para>
790
791 @window: 
792 @shape_region: 
793 @offset_x: 
794 @offset_y: 
795
796
797 <!-- ##### FUNCTION gdk_window_set_child_shapes ##### -->
798 <para>
799
800 </para>
801
802 @window: 
803
804
805 <!-- ##### FUNCTION gdk_window_merge_child_shapes ##### -->
806 <para>
807
808 </para>
809
810 @window: 
811
812
813 <!-- ##### FUNCTION gdk_window_set_static_gravities ##### -->
814 <para>
815
816 </para>
817
818 @window: 
819 @use_static: 
820 @Returns: 
821
822
823 <!-- ##### FUNCTION gdk_window_set_hints ##### -->
824 <para>
825
826 </para>
827
828 @window: 
829 @x: 
830 @y: 
831 @min_width: 
832 @min_height: 
833 @max_width: 
834 @max_height: 
835 @flags: 
836
837
838 <!-- ##### FUNCTION gdk_window_set_title ##### -->
839 <para>
840
841 </para>
842
843 @window: 
844 @title: 
845
846
847 <!-- ##### FUNCTION gdk_window_set_background ##### -->
848 <para>
849
850 </para>
851
852 @window: 
853 @color: 
854
855
856 <!-- ##### FUNCTION gdk_window_set_back_pixmap ##### -->
857 <para>
858
859 </para>
860
861 @window: 
862 @pixmap: 
863 @parent_relative: 
864
865
866 <!-- ##### MACRO GDK_PARENT_RELATIVE ##### -->
867 <para>
868 A special value for <literal>GdkPixmap*</literal> variables, indicating
869 that the background pixmap for a window should be inherited from the parent
870 window.
871 </para>
872
873
874
875 <!-- ##### FUNCTION gdk_window_set_cursor ##### -->
876 <para>
877
878 </para>
879
880 @window: 
881 @cursor: 
882
883
884 <!-- ##### MACRO gdk_window_set_colormap ##### -->
885 <para>
886 Deprecated equivalent to gdk_drawable_set_colormap()
887 </para>
888
889
890
891 <!-- ##### FUNCTION gdk_window_get_user_data ##### -->
892 <para>
893
894 </para>
895
896 @window: 
897 @data: 
898
899
900 <!-- ##### FUNCTION gdk_window_get_geometry ##### -->
901 <para>
902
903 </para>
904
905 @window: 
906 @x: 
907 @y: 
908 @width: 
909 @height: 
910 @depth: 
911
912
913 <!-- ##### FUNCTION gdk_window_set_geometry_hints ##### -->
914 <para>
915
916 </para>
917
918 @window: 
919 @geometry: 
920 @geom_mask: 
921
922
923 <!-- ##### FUNCTION gdk_window_set_icon_list ##### -->
924 <para>
925
926 </para>
927
928 @window: 
929 @pixbufs: 
930
931
932 <!-- ##### FUNCTION gdk_window_set_modal_hint ##### -->
933 <para>
934
935 </para>
936
937 @window: 
938 @modal: 
939
940
941 <!-- ##### FUNCTION gdk_window_set_type_hint ##### -->
942 <para>
943
944 </para>
945
946 @window: 
947 @hint: 
948
949
950 <!-- ##### FUNCTION gdk_window_set_skip_taskbar_hint ##### -->
951 <para>
952
953 </para>
954
955 @window: 
956 @skips_taskbar: 
957
958
959 <!-- ##### FUNCTION gdk_window_set_skip_pager_hint ##### -->
960 <para>
961
962 </para>
963
964 @window: 
965 @skips_pager: 
966
967
968 <!-- ##### FUNCTION gdk_window_get_position ##### -->
969 <para>
970
971 </para>
972
973 @window: 
974 @x: 
975 @y: 
976
977
978 <!-- ##### FUNCTION gdk_window_get_root_origin ##### -->
979 <para>
980
981 </para>
982
983 @window: 
984 @x: 
985 @y: 
986
987
988 <!-- ##### FUNCTION gdk_window_get_frame_extents ##### -->
989 <para>
990
991 </para>
992
993 @window: 
994 @rect: 
995
996
997 <!-- ##### MACRO gdk_window_get_size ##### -->
998 <para>
999 Deprecated equivalent of gdk_drawable_get_size().
1000 </para>
1001
1002
1003
1004 <!-- ##### MACRO gdk_window_get_visual ##### -->
1005 <para>
1006 Deprecated equivalent of gdk_drawable_get_visual().
1007 </para>
1008
1009 @Returns: 
1010
1011
1012 <!-- ##### MACRO gdk_window_get_colormap ##### -->
1013 <para>
1014 Deprecated equivalent of gdk_drawable_get_colormap().
1015 </para>
1016
1017 @Returns: colormap for the window
1018
1019
1020 <!-- ##### MACRO gdk_window_get_type ##### -->
1021 <para>
1022 Deprecated equivalent of gdk_drawable_get_type().
1023 </para>
1024
1025 @Returns: type of drawable
1026
1027
1028 <!-- ##### FUNCTION gdk_window_get_origin ##### -->
1029 <para>
1030
1031 </para>
1032
1033 @window: 
1034 @x: 
1035 @y: 
1036 @Returns: 
1037
1038
1039 <!-- ##### FUNCTION gdk_window_get_deskrelative_origin ##### -->
1040 <para>
1041
1042 </para>
1043
1044 @window: 
1045 @x: 
1046 @y: 
1047 @Returns: 
1048
1049
1050 <!-- ##### FUNCTION gdk_window_get_pointer ##### -->
1051 <para>
1052
1053 </para>
1054
1055 @window: 
1056 @x: 
1057 @y: 
1058 @mask: 
1059 @Returns: 
1060
1061
1062 <!-- ##### ENUM GdkModifierType ##### -->
1063 <para>
1064 A set of bit-flags to indicate the state of modifier keys and mouse buttons 
1065 in various event types. Typical modifier keys are Shift, Control, Meta, Super,
1066 Hyper, Alt, Compose, Apple, CapsLock or ShiftLock. 
1067 </para>
1068 <para>
1069 Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
1070 </para>
1071
1072 @GDK_SHIFT_MASK: the Shift key.
1073 @GDK_LOCK_MASK: a Lock key (depending on the modifier mapping of the 
1074   X server this may either be CapsLock or ShiftLock).
1075 @GDK_CONTROL_MASK: the Control key.
1076 @GDK_MOD1_MASK: the fourth modifier key (it depends on the modifier 
1077   mapping of the X server which key is interpreted as this modifier, but 
1078   normally it is the Alt key).
1079 @GDK_MOD2_MASK: the fifth modifier key (it depends on the modifier 
1080   mapping of the X server which key is interpreted as this modifier).
1081 @GDK_MOD3_MASK: the sixth modifier key (it depends on the modifier 
1082   mapping of the X server which key is interpreted as this modifier).
1083 @GDK_MOD4_MASK: the seventh modifier key (it depends on the modifier 
1084   mapping of the X server which key is interpreted as this modifier).
1085 @GDK_MOD5_MASK: the eighth modifier key (it depends on the modifier 
1086   mapping of the X server which key is interpreted as this modifier).
1087 @GDK_BUTTON1_MASK: the first mouse button.
1088 @GDK_BUTTON2_MASK: the second mouse button.
1089 @GDK_BUTTON3_MASK: the third mouse button.
1090 @GDK_BUTTON4_MASK: the fourth mouse button.
1091 @GDK_BUTTON5_MASK: the fifth mouse button.
1092 @GDK_RELEASE_MASK: not used in GDK itself. GTK+ uses it to differentiate 
1093   between (keyval, modifiers) pairs from key press and release events.
1094 @GDK_MODIFIER_MASK: 
1095
1096 <!-- ##### FUNCTION gdk_window_get_parent ##### -->
1097 <para>
1098
1099 </para>
1100
1101 @window: 
1102 @Returns: 
1103
1104
1105 <!-- ##### FUNCTION gdk_window_get_toplevel ##### -->
1106 <para>
1107
1108 </para>
1109
1110 @window: 
1111 @Returns: 
1112
1113
1114 <!-- ##### FUNCTION gdk_window_get_children ##### -->
1115 <para>
1116
1117 </para>
1118
1119 @window: 
1120 @Returns: 
1121
1122
1123 <!-- ##### FUNCTION gdk_window_peek_children ##### -->
1124 <para>
1125
1126 </para>
1127
1128 @window: 
1129 @Returns: 
1130
1131
1132 <!-- ##### FUNCTION gdk_window_get_events ##### -->
1133 <para>
1134
1135 </para>
1136
1137 @window: 
1138 @Returns: 
1139
1140
1141 <!-- ##### FUNCTION gdk_window_set_events ##### -->
1142 <para>
1143
1144 </para>
1145
1146 @window: 
1147 @event_mask: 
1148
1149
1150 <!-- ##### FUNCTION gdk_window_set_icon ##### -->
1151 <para>
1152
1153 </para>
1154
1155 @window: 
1156 @icon_window: 
1157 @pixmap: 
1158 @mask: 
1159
1160
1161 <!-- ##### FUNCTION gdk_window_set_icon_name ##### -->
1162 <para>
1163
1164 </para>
1165
1166 @window: 
1167 @name: 
1168
1169
1170 <!-- ##### FUNCTION gdk_window_set_transient_for ##### -->
1171 <para>
1172
1173 </para>
1174
1175 @window: 
1176 @parent: 
1177
1178
1179 <!-- ##### FUNCTION gdk_window_set_role ##### -->
1180 <para>
1181
1182 </para>
1183
1184 @window: 
1185 @role: 
1186
1187
1188 <!-- ##### FUNCTION gdk_window_set_group ##### -->
1189 <para>
1190
1191 </para>
1192
1193 @window: 
1194 @leader: 
1195
1196
1197 <!-- ##### FUNCTION gdk_window_set_decorations ##### -->
1198 <para>
1199
1200 </para>
1201
1202 @window: 
1203 @decorations: 
1204
1205
1206 <!-- ##### FUNCTION gdk_window_get_decorations ##### -->
1207 <para>
1208
1209 </para>
1210
1211 @window: The window to get the decorations from
1212 @decorations: The window decorations will be written here
1213 @Returns: %TRUE if the window has decorations set, %FALSE otherwise.
1214
1215
1216 <!-- ##### ENUM GdkWMDecoration ##### -->
1217 <para>
1218 These are hints originally defined by the Motif toolkit.
1219 The window manager can use them when determining how to decorate
1220 the window. The hint must be set before mapping the window.
1221 </para>
1222
1223 @GDK_DECOR_ALL: all decorations should be applied.
1224 @GDK_DECOR_BORDER: a frame should be drawn around the window.
1225 @GDK_DECOR_RESIZEH: the frame should have resize handles.
1226 @GDK_DECOR_TITLE: a titlebar should be placed above the window.
1227 @GDK_DECOR_MENU: a button for opening a menu should be included.
1228 @GDK_DECOR_MINIMIZE: a minimize button should be included.
1229 @GDK_DECOR_MAXIMIZE: a maximize button should be included.
1230
1231 <!-- ##### FUNCTION gdk_window_set_functions ##### -->
1232 <para>
1233
1234 </para>
1235
1236 @window: 
1237 @functions: 
1238
1239
1240 <!-- ##### ENUM GdkWMFunction ##### -->
1241 <para>
1242 These are hints originally defined by the Motif toolkit.
1243 The window manager can use them when determining the functions 
1244 to offer for the window. 
1245 The hint must be set before mapping the window.
1246 </para>
1247
1248 @GDK_FUNC_ALL: all functions should be offered.
1249 @GDK_FUNC_RESIZE: the window should be resizable.
1250 @GDK_FUNC_MOVE: the window should be movable.
1251 @GDK_FUNC_MINIMIZE: the window should be minimizable.
1252 @GDK_FUNC_MAXIMIZE: the window should be maximizable.
1253 @GDK_FUNC_CLOSE: the window should be closable.
1254
1255 <!-- ##### FUNCTION gdk_window_get_toplevels ##### -->
1256 <para>
1257
1258 </para>
1259
1260 @Returns: 
1261
1262
1263 <!-- ##### FUNCTION gdk_get_default_root_window ##### -->
1264 <para>
1265
1266 </para>
1267
1268 @Returns: 
1269
1270
1271 <!-- ##### STRUCT GdkPointerHooks ##### -->
1272 <para>
1273 A table of pointers to functions for getting quantities related to 
1274 the current pointer position. GDK has one global table of this type,
1275 which can be set using gdk_set_pointer_hooks().
1276 </para>
1277 <para>
1278 This is only useful for such low-level tools as an event recorder. 
1279 Applications should never have any reason to use this facility
1280 </para>
1281
1282 @get_pointer: Obtains the current pointer position and modifier state.
1283   The position is given in coordinates relative to the window containing 
1284   the pointer, which is returned in @window.
1285 @window_at_pointer: Obtains the window underneath the mouse pointer, 
1286   returning the location of that window in @win_x, @win_y. Returns %NULL 
1287   if the window under the mouse pointer is not known to GDK (for example, 
1288   belongs to another application).
1289
1290 <!-- ##### FUNCTION gdk_set_pointer_hooks ##### -->
1291 <para>
1292
1293 </para>
1294
1295 @new_hooks: 
1296 @Returns: 
1297
1298