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