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
  
//! GdkDisplay object. 
//! 
//! 
//!  Signals: 
//! @b{closed@} 
//! 
 
inherit G.Object; 
 
GDK2.Display beep( ); 
//! Emits a short beep on display 
//! 
//! 
 
GDK2.Display close( ); 
//! Closes the connection to the window system for the given display, and 
//! cleans up associated resources. 
//! 
//! 
 
protected GDK2.Display create( ); 
//! Get the default display. 
//! 
//! 
 
GDK2.Display flush( ); 
//! Flushes any requests queued for the windowing system; this happens 
//! automatically when the main loop blocks waiting for new events, but if 
//! your application is drawing without returning control to the main loop, 
//! you may need to call this function explicitly.  A common case where this 
//! function needs to be called is when an application is executing drawing 
//! commands from a thread other than the thread where the main loop is 
//! running. 
//! 
//! 
 
int get_default_cursor_size( ); 
//! Returns the default size to use for cursors. 
//! 
//! 
 
GTK2.GdkWindow get_default_group( ); 
//! Returns the default group leader window for all toplevel windows.  This 
//! window is implicitly create by GDK. 
//! 
//! 
 
GTK2.GdkScreen get_default_screen( ); 
//! Get the default screen. 
//! 
//! 
 
GTK2.GdkEvent get_event( ); 
//! Gets the next GDK2.Event to be processed, fetching events from the 
//! windowing system if necessary. 
//! 
//! 
 
mapping get_maximal_cursor_size( ); 
//! Returns the maximal size to use for cursors. 
//! 
//! 
 
int get_n_screens( ); 
//! Gets the number of screens managed by the display. 
//! 
//! 
 
string get_name( ); 
//! Gets the name of the display. 
//! 
//! 
 
mapping get_pointer( ); 
//! Gets the current location of the pointer and the current modifier mask. 
//! 
//! 
 
GTK2.GdkScreen get_screen( int screen_num ); 
//! Returns a screen for one of the screens. 
//! 
//! 
 
mapping get_window_at_pointer( ); 
//! Obtains the window underneath the mouse pointer, and the x,y location. 
//! Returns 0 if the window is not known to GDK (for example, belongs to 
//! another application). 
//! 
//! 
 
GDK2.Display keyboard_ungrab( ); 
//! Release any keyboard grab. 
//! 
//! 
 
GDK2.Display open( string name ); 
//! Opens a display. 
//! 
//! 
 
GTK2.GdkEvent peek_event( ); 
//! Gets a copy of the first GDK2.Event in the event queue, without removing 
//! the event from the queue.  (Note that this function will not get more 
//! events from the windowing system.  It only checks the events that have 
//! already been moved to the GDK event queue.) 
//! 
//! 
 
int pointer_is_grabbed( ); 
//! Test if the pointer is grabbed. 
//! 
//! 
 
GDK2.Display pointer_ungrab( ); 
//! Release any pointer grab. 
//! 
//! 
 
GDK2.Display put_event( GTK2.GdkEvent event ); 
//! Appends a copy of the given event onto the front of the event queue. 
//! 
//! 
 
int request_selection_notification( GDK2.Atom selection ); 
//! Request GdkEventOwnerChange events for ownership changes of the selection 
//! named by the given atom. 
//! 
//! 
 
GDK2.Display set_double_click_distance( int distance ); 
//! Sets the double click distance (two clicks within this distance count as 
//! a double click and result in a GDK_2BUTTON_PRESS event).  See also 
//! set_double_click_time(). 
//! 
//! 
 
GDK2.Display set_double_click_time( int msec ); 
//! Sets the double click time (two clicks within this time interval counts 
//! as a double click and result in a GDK_2BUTTON_PRESS event).  Applications 
//! should not set this, it is a global user-configured setting. 
//! 
//! 
 
GDK2.Display store_clipboard( GTK2.GdkWindow clipboard_window, array targets ); 
//! Issues a request to the clipboard manager to store the clipboard data. 
//! 
//! 
 
int supports_clipboard_persistence( ); 
//! Returns whether the specified display supports clipboard persistence, i.e. 
//! if it's possible to store the clipboard data after an application has quit. 
//! On X11 this checks if a clipboard daemon is running. 
//! 
//! 
 
int supports_cursor_alpha( ); 
//! Returns true if cursors can use an 8bit alpha channel.  Otherwise, cursors 
//! are restricted to bilevel alpha (i.e. a mask). 
//! 
//! 
 
int supports_cursor_color( ); 
//! Returns true if multicolored cursors are supported.  Otherwise, cursors 
//! have only a foreground and a background color. 
//! 
//! 
 
int supports_selection_notification( ); 
//! Returns whether GdkEventOwnerChange events will be sent when the owner 
//! of a selection changes. 
//! 
//! 
 
GDK2.Display sync( ); 
//! Flushes any requests queued for the windowing system and waits until all 
//! requests have been handled.  This is often used for making sure that the 
//! display is synchronized with the current state of the program.  Calling 
//! sync() before (gdk_error_trap_pop()) makes sure that any errors 
//! generated from earlier requests are handled before the error trap is 
//! removed. 
//!  
//! This is most useful for X11.  On windowing systems where requests are 
//! handled synchronously, this function will do nothing. 
//! 
//! 
 
GDK2.Display warp_pointer( GTK2.GdkScreen screen, int x, int y ); 
//! Warps the pointer to the point x,y on the screen, unless the pointer 
//! is confined to a window by a grab, in which case it will be moved as far 
//! as allowed by the grab.  Warping the pointer creates events as if the 
//! user had moved the mouse instantaneously to the destination. 
//! 
//!