1
  
2
  
3
  
4
  
5
  
6
  
7
  
8
  
9
  
10
  
11
  
12
  
13
  
14
  
15
  
16
  
17
  
18
  
19
  
20
  
21
  
22
  
23
  
24
  
25
  
26
  
27
  
28
  
29
  
30
  
31
  
32
  
33
  
34
  
35
  
36
  
37
  
38
  
39
  
40
  
41
  
42
  
43
  
44
  
45
  
46
  
47
  
48
  
49
  
50
  
51
  
52
  
53
  
54
  
55
  
56
  
57
  
58
  
59
  
60
  
61
  
62
  
63
  
64
  
65
  
66
  
67
  
68
  
69
  
70
  
71
  
72
  
73
  
74
  
75
  
76
  
77
  
78
  
79
  
80
  
81
  
82
  
83
  
84
  
85
  
86
  
87
  
88
  
89
  
90
  
91
  
92
  
93
  
94
  
95
  
96
  
97
  
98
  
99
  
100
  
101
  
102
  
103
  
104
  
105
  
106
  
107
  
108
  
109
  
110
  
111
  
112
  
113
  
114
  
115
  
116
  
117
  
118
  
119
  
120
  
121
  
122
  
123
  
124
  
125
  
126
  
127
  
128
  
129
  
130
  
131
  
132
  
133
  
134
  
135
  
136
  
137
  
138
  
139
  
140
  
141
  
142
  
143
  
144
  
145
  
146
  
147
  
148
  
149
  
150
  
151
  
152
  
153
  
154
  
155
  
156
  
157
  
158
  
159
  
160
  
161
  
162
  
163
  
164
  
165
  
166
  
167
  
168
  
169
  
170
  
171
  
172
  
173
  
174
  
175
  
176
  
177
  
178
  
179
  
180
  
181
  
182
  
183
  
184
  
185
  
186
  
187
  
188
  
189
  
190
  
191
  
192
  
193
  
194
  
195
  
196
  
197
  
198
  
199
  
200
  
201
  
202
  
203
  
204
  
205
  
206
  
207
  
208
  
209
  
210
  
211
  
212
  
213
  
214
  
215
  
216
  
217
  
218
  
219
  
220
  
221
  
222
  
223
  
224
  
225
  
226
  
227
  
228
  
//! a GDK2.Window object. 
//! 
//! NOIMG 
//! 
//! 
 
inherit GDK2.Drawable; 
 
GDK2.Window change_property( GDK2.Atom property, GDK2.Atom type, int mode, string data ); 
//! mode is one of @[GDK_PROP_MODE_APPEND], @[GDK_PROP_MODE_PREPEND] and @[GDK_PROP_MODE_REPLACE] 
//! 
//! 
 
array children( ); 
//! Returns an array of GDK2.Window objects. 
//! 
//! 
 
protected GDK2.Window create( GTK2.GdkWindow parent, mapping|void attributes ); 
//! Not for non-experts. I promise. 
//! 
//! 
 
GDK2.Window delete_property( GDK2.Atom a ); 
//! Delete a property. 
//! 
//! 
 
mapping get_geometry( ); 
//! Returns ([ "x":xpos, "y":ypos, "width":width, "height":height, "depth":bits_per_pixel ]) 
//! 
//! 
 
mapping get_property( GDK2.Atom atom, int|void offset, int|void delete_when_done ); 
//! Returns the value (as a string) of the specified property. 
//! The arguments are: 
//!  
//! property: The property atom, as an example GDK2.Atom.__SWM_VROOT 
//! offset (optional): The starting offset, in elements 
//! delete_when_done (optional): If set, the property will be deleted when it has 
//! been fetched. 
//!  
//! Example usage: Find the 'virtual' root window (many window managers 
//! put large windows over the screen) 
//!  
//! @pre{ 
//!   GDK2.Window root = GTK.root_window(); 
//!   array maybe=root->children()-> 
//!               get_property(GDK2.Atom.__SWM_VROOT)-({0}); 
//!   if(sizeof(maybe)) 
//!     root=GDK2.Window( maybe[0]->data[0] ); 
//! @} 
//! 
//! 
 
GDK2.Window grab_input_focus( ); 
//! Forcibly grab the input focus. 
//! 
//! Useful for override-redirect windows in games. Note that the only 
//! way to get rid of the focus is to close the window, be careful. 
//! 
//! 
 
int is_viewable( ); 
//! Return 1 if the window is mapped. 
//! 
//! 
 
int is_visible( ); 
//! Return 1 if the window, or a part of the window, is visible right now. 
//! 
//! 
 
GDK2.Window lower( ); 
//! Lower this window if the window manager allows that. 
//! 
//! 
 
GDK2.Window move_resize( int x, int y, int w, int h ); 
//! Move and resize the window in one call. 
//! 
//! 
 
GDK2.Window raise( ); 
//! Raise this window if the window manager allows that. 
//! 
//! 
 
GDK2.Window set_background( GTK2.GdkColor to ); 
//! Set the background color or image. 
//! The argument is either a GDK2.Pixmap or a GDK2.Color object. 
//! 
//! 
 
GDK2.Window set_bitmap_cursor( GTK2.GdkBitmap image, GTK2.GdkBitmap mask, GTK2.GdkColor fg, GTK2.GdkColor bg, int xhot, int yhot ); 
//! xhot,yhot are the locations of the x and y hotspot relative to the 
//! upper left corner of the cursor image. 
//! 
//! 
 
GDK2.Window set_cursor( int new_cursor ); 
//! Change the window cursor.<table border="0" cellpadding="3" cellspacing="0"> 
//! CURS(GDK2.Arrow) 
//! CURS(GDK2.BasedArrowDown) 
//! CURS(GDK2.BasedArrowUp) 
//! CURS(GDK2.Boat) 
//! CURS(GDK2.Bogosity) 
//! CURS(GDK2.BottomLeftCorner) 
//! CURS(GDK2.BottomRightCorner) 
//! CURS(GDK2.BottomSide) 
//! CURS(GDK2.BottomTee) 
//! CURS(GDK2.BoxSpiral) 
//! CURS(GDK2.CenterPtr) 
//! CURS(GDK2.Circle) 
//! CURS(GDK2.Clock) 
//! CURS(GDK2.CoffeeMug) 
//! CURS(GDK2.Cross) 
//! CURS(GDK2.CrossReverse) 
//! CURS(GDK2.Crosshair) 
//! CURS(GDK2.DiamondCross) 
//! CURS(GDK2.Dot) 
//! CURS(GDK2.Dotbox) 
//! CURS(GDK2.DoubleArrow) 
//! CURS(GDK2.DraftLarge) 
//! CURS(GDK2.DraftSmall) 
//! CURS(GDK2.DrapedBox) 
//! CURS(GDK2.Exchange) 
//! CURS(GDK2.Fleur) 
//! CURS(GDK2.Gobbler) 
//! CURS(GDK2.Gumby) 
//! CURS(GDK2.Hand1) 
//! CURS(GDK2.Hand2) 
//! CURS(GDK2.Heart) 
//! CURS(GDK2.Icon) 
//! CURS(GDK2.IronCross) 
//! CURS(GDK2.LeftPtr) 
//! CURS(GDK2.LeftSide) 
//! CURS(GDK2.LeftTee) 
//! CURS(GDK2.Leftbutton) 
//! CURS(GDK2.LlAngle) 
//! CURS(GDK2.LrAngle) 
//! CURS(GDK2.Man) 
//! CURS(GDK2.Middlebutton) 
//! CURS(GDK2.Mouse) 
//! CURS(GDK2.Pencil) 
//! CURS(GDK2.Pirate) 
//! CURS(GDK2.Plus) 
//! CURS(GDK2.QuestionArrow) 
//! CURS(GDK2.RightPtr) 
//! CURS(GDK2.RightSide) 
//! CURS(GDK2.RightTee) 
//! CURS(GDK2.Rightbutton) 
//! CURS(GDK2.RtlLogo) 
//! CURS(GDK2.Sailboat) 
//! CURS(GDK2.SbDownArrow) 
//! CURS(GDK2.SbHDoubleArrow) 
//! CURS(GDK2.SbLeftArrow) 
//! CURS(GDK2.SbRightArrow) 
//! CURS(GDK2.SbUpArrow) 
//! CURS(GDK2.SbVDoubleArrow) 
//! CURS(GDK2.Shuttle) 
//! CURS(GDK2.Sizing) 
//! CURS(GDK2.Spider) 
//! CURS(GDK2.Spraycan) 
//! CURS(GDK2.Star) 
//! CURS(GDK2.Target) 
//! CURS(GDK2.Tcross) 
//! CURS(GDK2.TopLeftArrow) 
//! CURS(GDK2.TopLeftCorner) 
//! CURS(GDK2.TopRightCorner) 
//! CURS(GDK2.TopSide) 
//! CURS(GDK2.TopTee) 
//! CURS(GDK2.Trek) 
//! CURS(GDK2.UlAngle) 
//! CURS(GDK2.Umbrella) 
//! CURS(GDK2.UrAngle) 
//! CURS(GDK2.Watch) 
//! CURS(GDK2.Xterm) 
//! </table> 
//! 
//! 
 
GDK2.Window set_events( int events ); 
//! events is a bitwise or of one or more of the following constants: 
//! GDK2.ExposureMask, 
//! GDK2.PointerMotionMask, 
//! GDK2.PointerMotion_HINTMask, 
//! GDK2.ButtonMotionMask, 
//! GDK2.Button1MotionMask, 
//! GDK2.Button2MotionMask, 
//! GDK2.Button3MotionMask, 
//! GDK2.ButtonPressMask, 
//! GDK2.ButtonReleaseMask, 
//! GDK2.KeyPressMask, 
//! GDK2.KeyReleaseMask, 
//! GDK2.EnterNotifyMask, 
//! GDK2.LeaveNotifyMask, 
//! GDK2.FocusChangeMask, 
//! GDK2.StructureMask, 
//! GDK2.PropertyChangeMask, 
//! GDK2.VisibilityNotifyMask, 
//! GDK2.ProximityInMask, 
//! GDK2.ProximityOutMask and 
//! GDK2.AllEventsMask 
//! 
//! 
 
GDK2.Window set_icon( GTK2.GdkPixmap pixmap, GTK2.GdkBitmap mask, GTK2.GdkWindow window ); 
//! Set the icon to the specified image (with mask) or the specified 
//! GDK2.Window.  It is up to the window manager to display the icon. 
//! Most window manager handles window and pixmap icons, but only a few 
//! can handle the mask argument. If you want a shaped icon, the only 
//! safe bet is a shaped window. 
//! 
//! 
 
GDK2.Window set_icon_name( string name ); 
//! Set the icon name to the specified string. 
//! 
//! 
 
GDK2.Window shape_combine_mask( GTK2.GdkBitmap mask, int xoffset, int yoffset ); 
//! Set the shape of the widget, or, rather, it's window, to that of 
//! the supplied bitmap. 
//! 
//!