]> Pileus Git - ~andy/gtk/blob - docs/reference/gdk/tmpl/windows.sgml
Umm, I'm on crack. Use gtk_accelerator_get_default_mod_mask().
[~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_set_keep_above ##### -->
420 <para>
421
422 </para>
423
424 @window: 
425 @setting: 
426
427
428 <!-- ##### FUNCTION gdk_window_set_keep_below ##### -->
429 <para>
430
431 </para>
432
433 @window: 
434 @setting: 
435
436
437 <!-- ##### FUNCTION gdk_window_move ##### -->
438 <para>
439
440 </para>
441
442 @window: 
443 @x: 
444 @y: 
445
446
447 <!-- ##### FUNCTION gdk_window_resize ##### -->
448 <para>
449
450 </para>
451
452 @window: 
453 @width: 
454 @height: 
455
456
457 <!-- ##### FUNCTION gdk_window_move_resize ##### -->
458 <para>
459
460 </para>
461
462 @window: 
463 @x: 
464 @y: 
465 @width: 
466 @height: 
467
468
469 <!-- ##### FUNCTION gdk_window_scroll ##### -->
470 <para>
471
472 </para>
473
474 @window: 
475 @dx: 
476 @dy: 
477
478
479 <!-- ##### FUNCTION gdk_window_reparent ##### -->
480 <para>
481
482 </para>
483
484 @window: 
485 @new_parent: 
486 @x: 
487 @y: 
488
489
490 <!-- ##### FUNCTION gdk_window_clear ##### -->
491 <para>
492
493 </para>
494
495 @window: 
496
497
498 <!-- ##### FUNCTION gdk_window_clear_area ##### -->
499 <para>
500
501 </para>
502
503 @window: 
504 @x: 
505 @y: 
506 @width: 
507 @height: 
508
509
510 <!-- ##### FUNCTION gdk_window_clear_area_e ##### -->
511 <para>
512
513 </para>
514
515 @window: 
516 @x: 
517 @y: 
518 @width: 
519 @height: 
520
521
522 <!-- ##### MACRO gdk_window_copy_area ##### -->
523 <para>
524 Deprecated equivalent to gdk_draw_drawable(), see that function for docs
525 </para>
526
527 @drawable: 
528 @gc: 
529 @x: 
530 @y: 
531 @source_drawable: 
532 @source_x: 
533 @source_y: 
534 @width: 
535 @height: 
536
537
538 <!-- ##### FUNCTION gdk_window_raise ##### -->
539 <para>
540
541 </para>
542
543 @window: 
544
545
546 <!-- ##### FUNCTION gdk_window_lower ##### -->
547 <para>
548
549 </para>
550
551 @window: 
552
553
554 <!-- ##### FUNCTION gdk_window_focus ##### -->
555 <para>
556
557 </para>
558
559 @window: 
560 @timestamp: 
561
562
563 <!-- ##### FUNCTION gdk_window_register_dnd ##### -->
564 <para>
565 Registers a window as a potential drop destination.
566 </para>
567
568 @window: a #GdkWindow.
569
570
571 <!-- ##### FUNCTION gdk_window_begin_resize_drag ##### -->
572 <para>
573
574 </para>
575
576 @window: 
577 @edge: 
578 @button: 
579 @root_x: 
580 @root_y: 
581 @timestamp: 
582
583
584 <!-- ##### FUNCTION gdk_window_begin_move_drag ##### -->
585 <para>
586
587 </para>
588
589 @window: 
590 @button: 
591 @root_x: 
592 @root_y: 
593 @timestamp: 
594
595
596 <!-- ##### FUNCTION gdk_window_constrain_size ##### -->
597 <para>
598
599 </para>
600
601 @geometry: 
602 @flags: 
603 @width: 
604 @height: 
605 @new_width: 
606 @new_height: 
607
608
609 <!-- ##### FUNCTION gdk_window_begin_paint_rect ##### -->
610 <para>
611
612 </para>
613
614 @window: 
615 @rectangle: 
616
617
618 <!-- ##### FUNCTION gdk_window_begin_paint_region ##### -->
619 <para>
620
621 </para>
622
623 @window: 
624 @region: 
625
626
627 <!-- ##### FUNCTION gdk_window_end_paint ##### -->
628 <para>
629
630 </para>
631
632 @window: 
633
634
635 <!-- ##### FUNCTION gdk_window_invalidate_rect ##### -->
636 <para>
637
638 </para>
639
640 @window: 
641 @rect: 
642 @invalidate_children: 
643
644
645 <!-- ##### FUNCTION gdk_window_invalidate_region ##### -->
646 <para>
647
648 </para>
649
650 @window: 
651 @region: 
652 @invalidate_children: 
653
654
655 <!-- ##### FUNCTION gdk_window_invalidate_maybe_recurse ##### -->
656 <para>
657
658 </para>
659
660 @window: 
661 @region: 
662 @child_func: 
663 @user_data: 
664
665
666 <!-- ##### FUNCTION gdk_window_get_update_area ##### -->
667 <para>
668
669 </para>
670
671 @window: 
672 @Returns: 
673
674
675 <!-- ##### FUNCTION gdk_window_freeze_updates ##### -->
676 <para>
677
678 </para>
679
680 @window: 
681
682
683 <!-- ##### FUNCTION gdk_window_thaw_updates ##### -->
684 <para>
685
686 </para>
687
688 @window: 
689
690
691 <!-- ##### FUNCTION gdk_window_process_all_updates ##### -->
692 <para>
693
694 </para>
695
696
697
698 <!-- ##### FUNCTION gdk_window_process_updates ##### -->
699 <para>
700
701 </para>
702
703 @window: 
704 @update_children: 
705
706
707 <!-- ##### FUNCTION gdk_window_set_debug_updates ##### -->
708 <para>
709
710 </para>
711
712 @setting: 
713
714
715 <!-- ##### FUNCTION gdk_window_get_internal_paint_info ##### -->
716 <para>
717
718 </para>
719
720 @window: 
721 @real_drawable: 
722 @x_offset: 
723 @y_offset: 
724
725
726 <!-- ##### FUNCTION gdk_window_set_user_data ##### -->
727 <para>
728
729 </para>
730
731 @window: 
732 @user_data: 
733
734
735 <!-- ##### FUNCTION gdk_window_set_override_redirect ##### -->
736 <para>
737
738 </para>
739
740 @window: 
741 @override_redirect: 
742
743
744 <!-- ##### FUNCTION gdk_window_set_accept_focus ##### -->
745 <para>
746
747 </para>
748
749 @window: 
750 @accept_focus: 
751
752
753 <!-- ##### FUNCTION gdk_window_add_filter ##### -->
754 <para>
755
756 </para>
757
758 @window: 
759 @function: 
760 @data: 
761
762
763 <!-- ##### FUNCTION gdk_window_remove_filter ##### -->
764 <para>
765
766 </para>
767
768 @window: 
769 @function: 
770 @data: 
771
772
773 <!-- ##### USER_FUNCTION GdkFilterFunc ##### -->
774 <para>
775 Specifies the type of function used to filter native events before they are
776 converted to GDK events. 
777 </para>
778
779 <para>
780 When a filter is called, @event is unpopulated, except for
781 <literal>event-&gt;window</literal>. The filter may translate the native
782 event to a GDK event and store the result in @event, or handle it without
783 translation. If the filter translates the event and processing should
784 continue, it should return <literal>GDK_FILTER_TRANSLATE</literal>.
785 </para>
786
787 @xevent: the native event to filter.
788 @event: the GDK event to which the X event will be translated.
789 @data: user data set when the filter was installed.
790 @Returns: a #GdkFilterReturn value.
791
792
793 <!-- ##### ENUM GdkFilterReturn ##### -->
794 <para>
795 Specifies the result of applying a #GdkFilterFunc to a native event.
796 </para>
797
798 @GDK_FILTER_CONTINUE: event not handled, continue processing.
799 @GDK_FILTER_TRANSLATE: native event translated into a GDK event and stored
800                        in the <literal>event</literal> structure that was passed in.
801 @GDK_FILTER_REMOVE: event handled, terminate processing.
802
803 <!-- ##### TYPEDEF GdkXEvent ##### -->
804 <para>
805 Used to represent native events (<type>XEvent</type>s for the X11 
806 backend, <type>MSG</type>s for Win32).
807 </para>
808
809
810 <!-- ##### FUNCTION gdk_window_shape_combine_mask ##### -->
811 <para>
812
813 </para>
814
815 @window: 
816 @mask: 
817 @x: 
818 @y: 
819
820
821 <!-- ##### FUNCTION gdk_window_shape_combine_region ##### -->
822 <para>
823
824 </para>
825
826 @window: 
827 @shape_region: 
828 @offset_x: 
829 @offset_y: 
830
831
832 <!-- ##### FUNCTION gdk_window_set_child_shapes ##### -->
833 <para>
834
835 </para>
836
837 @window: 
838
839
840 <!-- ##### FUNCTION gdk_window_merge_child_shapes ##### -->
841 <para>
842
843 </para>
844
845 @window: 
846
847
848 <!-- ##### FUNCTION gdk_window_set_static_gravities ##### -->
849 <para>
850
851 </para>
852
853 @window: 
854 @use_static: 
855 @Returns: 
856
857
858 <!-- ##### FUNCTION gdk_window_set_hints ##### -->
859 <para>
860
861 </para>
862
863 @window: 
864 @x: 
865 @y: 
866 @min_width: 
867 @min_height: 
868 @max_width: 
869 @max_height: 
870 @flags: 
871
872
873 <!-- ##### FUNCTION gdk_window_set_title ##### -->
874 <para>
875
876 </para>
877
878 @window: 
879 @title: 
880
881
882 <!-- ##### FUNCTION gdk_window_set_background ##### -->
883 <para>
884
885 </para>
886
887 @window: 
888 @color: 
889
890
891 <!-- ##### FUNCTION gdk_window_set_back_pixmap ##### -->
892 <para>
893
894 </para>
895
896 @window: 
897 @pixmap: 
898 @parent_relative: 
899
900
901 <!-- ##### MACRO GDK_PARENT_RELATIVE ##### -->
902 <para>
903 A special value for <literal>GdkPixmap*</literal> variables, indicating
904 that the background pixmap for a window should be inherited from the parent
905 window.
906 </para>
907
908
909
910 <!-- ##### FUNCTION gdk_window_set_cursor ##### -->
911 <para>
912
913 </para>
914
915 @window: 
916 @cursor: 
917
918
919 <!-- ##### MACRO gdk_window_set_colormap ##### -->
920 <para>
921 Deprecated equivalent to gdk_drawable_set_colormap()
922 </para>
923
924
925
926 <!-- ##### FUNCTION gdk_window_get_user_data ##### -->
927 <para>
928
929 </para>
930
931 @window: 
932 @data: 
933
934
935 <!-- ##### FUNCTION gdk_window_get_geometry ##### -->
936 <para>
937
938 </para>
939
940 @window: 
941 @x: 
942 @y: 
943 @width: 
944 @height: 
945 @depth: 
946
947
948 <!-- ##### FUNCTION gdk_window_set_geometry_hints ##### -->
949 <para>
950
951 </para>
952
953 @window: 
954 @geometry: 
955 @geom_mask: 
956
957
958 <!-- ##### FUNCTION gdk_window_set_icon_list ##### -->
959 <para>
960
961 </para>
962
963 @window: 
964 @pixbufs: 
965
966
967 <!-- ##### FUNCTION gdk_window_set_modal_hint ##### -->
968 <para>
969
970 </para>
971
972 @window: 
973 @modal: 
974
975
976 <!-- ##### FUNCTION gdk_window_set_type_hint ##### -->
977 <para>
978
979 </para>
980
981 @window: 
982 @hint: 
983
984
985 <!-- ##### FUNCTION gdk_window_set_skip_taskbar_hint ##### -->
986 <para>
987
988 </para>
989
990 @window: 
991 @skips_taskbar: 
992
993
994 <!-- ##### FUNCTION gdk_window_set_skip_pager_hint ##### -->
995 <para>
996
997 </para>
998
999 @window: 
1000 @skips_pager: 
1001
1002
1003 <!-- ##### FUNCTION gdk_window_get_position ##### -->
1004 <para>
1005
1006 </para>
1007
1008 @window: 
1009 @x: 
1010 @y: 
1011
1012
1013 <!-- ##### FUNCTION gdk_window_get_root_origin ##### -->
1014 <para>
1015
1016 </para>
1017
1018 @window: 
1019 @x: 
1020 @y: 
1021
1022
1023 <!-- ##### FUNCTION gdk_window_get_frame_extents ##### -->
1024 <para>
1025
1026 </para>
1027
1028 @window: 
1029 @rect: 
1030
1031
1032 <!-- ##### MACRO gdk_window_get_size ##### -->
1033 <para>
1034 Deprecated equivalent of gdk_drawable_get_size().
1035 </para>
1036
1037
1038
1039 <!-- ##### MACRO gdk_window_get_visual ##### -->
1040 <para>
1041 Deprecated equivalent of gdk_drawable_get_visual().
1042 </para>
1043
1044 @Returns: 
1045
1046
1047 <!-- ##### MACRO gdk_window_get_colormap ##### -->
1048 <para>
1049 Deprecated equivalent of gdk_drawable_get_colormap().
1050 </para>
1051
1052 @Returns: colormap for the window
1053
1054
1055 <!-- ##### MACRO gdk_window_get_type ##### -->
1056 <para>
1057 Deprecated equivalent of gdk_drawable_get_type().
1058 </para>
1059
1060 @Returns: type of drawable
1061
1062
1063 <!-- ##### FUNCTION gdk_window_get_origin ##### -->
1064 <para>
1065
1066 </para>
1067
1068 @window: 
1069 @x: 
1070 @y: 
1071 @Returns: 
1072
1073
1074 <!-- ##### FUNCTION gdk_window_get_deskrelative_origin ##### -->
1075 <para>
1076
1077 </para>
1078
1079 @window: 
1080 @x: 
1081 @y: 
1082 @Returns: 
1083
1084
1085 <!-- ##### FUNCTION gdk_window_get_pointer ##### -->
1086 <para>
1087
1088 </para>
1089
1090 @window: 
1091 @x: 
1092 @y: 
1093 @mask: 
1094 @Returns: 
1095
1096
1097 <!-- ##### ENUM GdkModifierType ##### -->
1098 <para>
1099 A set of bit-flags to indicate the state of modifier keys and mouse buttons 
1100 in various event types. Typical modifier keys are Shift, Control, Meta, Super,
1101 Hyper, Alt, Compose, Apple, CapsLock or ShiftLock. 
1102 </para>
1103 <para>
1104 Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
1105 </para>
1106
1107 @GDK_SHIFT_MASK: the Shift key.
1108 @GDK_LOCK_MASK: a Lock key (depending on the modifier mapping of the 
1109   X server this may either be CapsLock or ShiftLock).
1110 @GDK_CONTROL_MASK: the Control key.
1111 @GDK_MOD1_MASK: the fourth modifier key (it depends on the modifier 
1112   mapping of the X server which key is interpreted as this modifier, but 
1113   normally it is the Alt key).
1114 @GDK_MOD2_MASK: the fifth modifier key (it depends on the modifier 
1115   mapping of the X server which key is interpreted as this modifier).
1116 @GDK_MOD3_MASK: the sixth modifier key (it depends on the modifier 
1117   mapping of the X server which key is interpreted as this modifier).
1118 @GDK_MOD4_MASK: the seventh modifier key (it depends on the modifier 
1119   mapping of the X server which key is interpreted as this modifier).
1120 @GDK_MOD5_MASK: the eighth modifier key (it depends on the modifier 
1121   mapping of the X server which key is interpreted as this modifier).
1122 @GDK_BUTTON1_MASK: the first mouse button.
1123 @GDK_BUTTON2_MASK: the second mouse button.
1124 @GDK_BUTTON3_MASK: the third mouse button.
1125 @GDK_BUTTON4_MASK: the fourth mouse button.
1126 @GDK_BUTTON5_MASK: the fifth mouse button.
1127 @GDK_RELEASE_MASK: not used in GDK itself. GTK+ uses it to differentiate 
1128   between (keyval, modifiers) pairs from key press and release events.
1129 @GDK_MODIFIER_MASK: 
1130
1131 <!-- ##### FUNCTION gdk_window_get_parent ##### -->
1132 <para>
1133
1134 </para>
1135
1136 @window: 
1137 @Returns: 
1138
1139
1140 <!-- ##### FUNCTION gdk_window_get_toplevel ##### -->
1141 <para>
1142
1143 </para>
1144
1145 @window: 
1146 @Returns: 
1147
1148
1149 <!-- ##### FUNCTION gdk_window_get_children ##### -->
1150 <para>
1151
1152 </para>
1153
1154 @window: 
1155 @Returns: 
1156
1157
1158 <!-- ##### FUNCTION gdk_window_peek_children ##### -->
1159 <para>
1160
1161 </para>
1162
1163 @window: 
1164 @Returns: 
1165
1166
1167 <!-- ##### FUNCTION gdk_window_get_events ##### -->
1168 <para>
1169
1170 </para>
1171
1172 @window: 
1173 @Returns: 
1174
1175
1176 <!-- ##### FUNCTION gdk_window_set_events ##### -->
1177 <para>
1178
1179 </para>
1180
1181 @window: 
1182 @event_mask: 
1183
1184
1185 <!-- ##### FUNCTION gdk_window_set_icon ##### -->
1186 <para>
1187
1188 </para>
1189
1190 @window: 
1191 @icon_window: 
1192 @pixmap: 
1193 @mask: 
1194
1195
1196 <!-- ##### FUNCTION gdk_window_set_icon_name ##### -->
1197 <para>
1198
1199 </para>
1200
1201 @window: 
1202 @name: 
1203
1204
1205 <!-- ##### FUNCTION gdk_window_set_transient_for ##### -->
1206 <para>
1207
1208 </para>
1209
1210 @window: 
1211 @parent: 
1212
1213
1214 <!-- ##### FUNCTION gdk_window_set_role ##### -->
1215 <para>
1216
1217 </para>
1218
1219 @window: 
1220 @role: 
1221
1222
1223 <!-- ##### FUNCTION gdk_window_set_group ##### -->
1224 <para>
1225
1226 </para>
1227
1228 @window: 
1229 @leader: 
1230
1231
1232 <!-- ##### FUNCTION gdk_window_get_group ##### -->
1233 <para>
1234
1235 </para>
1236
1237 @window: 
1238 @Returns: 
1239
1240
1241 <!-- ##### FUNCTION gdk_window_set_decorations ##### -->
1242 <para>
1243
1244 </para>
1245
1246 @window: 
1247 @decorations: 
1248
1249
1250 <!-- ##### FUNCTION gdk_window_get_decorations ##### -->
1251 <para>
1252
1253 </para>
1254
1255 @window: The window to get the decorations from
1256 @decorations: The window decorations will be written here
1257 @Returns: %TRUE if the window has decorations set, %FALSE otherwise.
1258
1259
1260 <!-- ##### ENUM GdkWMDecoration ##### -->
1261 <para>
1262 These are hints originally defined by the Motif toolkit.
1263 The window manager can use them when determining how to decorate
1264 the window. The hint must be set before mapping the window.
1265 </para>
1266
1267 @GDK_DECOR_ALL: all decorations should be applied.
1268 @GDK_DECOR_BORDER: a frame should be drawn around the window.
1269 @GDK_DECOR_RESIZEH: the frame should have resize handles.
1270 @GDK_DECOR_TITLE: a titlebar should be placed above the window.
1271 @GDK_DECOR_MENU: a button for opening a menu should be included.
1272 @GDK_DECOR_MINIMIZE: a minimize button should be included.
1273 @GDK_DECOR_MAXIMIZE: a maximize button should be included.
1274
1275 <!-- ##### FUNCTION gdk_window_set_functions ##### -->
1276 <para>
1277
1278 </para>
1279
1280 @window: 
1281 @functions: 
1282
1283
1284 <!-- ##### ENUM GdkWMFunction ##### -->
1285 <para>
1286 These are hints originally defined by the Motif toolkit.
1287 The window manager can use them when determining the functions 
1288 to offer for the window. 
1289 The hint must be set before mapping the window.
1290 </para>
1291
1292 @GDK_FUNC_ALL: all functions should be offered.
1293 @GDK_FUNC_RESIZE: the window should be resizable.
1294 @GDK_FUNC_MOVE: the window should be movable.
1295 @GDK_FUNC_MINIMIZE: the window should be minimizable.
1296 @GDK_FUNC_MAXIMIZE: the window should be maximizable.
1297 @GDK_FUNC_CLOSE: the window should be closable.
1298
1299 <!-- ##### FUNCTION gdk_window_get_toplevels ##### -->
1300 <para>
1301
1302 </para>
1303
1304 @Returns: 
1305
1306
1307 <!-- ##### FUNCTION gdk_get_default_root_window ##### -->
1308 <para>
1309
1310 </para>
1311
1312 @Returns: 
1313
1314
1315 <!-- ##### STRUCT GdkPointerHooks ##### -->
1316 <para>
1317 A table of pointers to functions for getting quantities related to 
1318 the current pointer position. GDK has one global table of this type,
1319 which can be set using gdk_set_pointer_hooks().
1320 </para>
1321 <para>
1322 This is only useful for such low-level tools as an event recorder. 
1323 Applications should never have any reason to use this facility
1324 </para>
1325
1326 @get_pointer: Obtains the current pointer position and modifier state.
1327   The position is given in coordinates relative to the window containing 
1328   the pointer, which is returned in @window.
1329 @window_at_pointer: Obtains the window underneath the mouse pointer, 
1330   returning the location of that window in @win_x, @win_y. Returns %NULL 
1331   if the window under the mouse pointer is not known to GDK (for example, 
1332   belongs to another application).
1333
1334 <!-- ##### FUNCTION gdk_set_pointer_hooks ##### -->
1335 <para>
1336
1337 </para>
1338
1339 @new_hooks: 
1340 @Returns: 
1341
1342
1343 <!--
1344 Local variables:
1345 mode: sgml
1346 sgml-parent-document: ("../gdk-docs.sgml" "book" "refsect2" "")
1347 End:
1348 -->