1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Controls the keyboard/mouse pointer grabs and a set of <type>GdkScreen</type>s
7 <!-- ##### SECTION Long_Description ##### -->
9 #GdkDisplay objects purpose are two fold:
11 <listitem><para>To grab/ungrab keyboard focus and mouse pointer</para></listitem>
12 <listitem><para>To manage and provide information about the #GdkScreen(s)
13 available for this #GdkDisplay
18 #GdkDisplay objects are the GDK representation of the X Display which can be
19 described as <emphasis>a workstation consisting of a keyboard a pointing
20 device (such as a mouse) and one or more screens</emphasis>.
21 It is used to open and keep track of various #GdkScreen objects currently
22 instanciated by the application. It is also used to grab and release the keyboard
23 and the mouse pointer.
26 <!-- ##### SECTION See_Also ##### -->
31 <!-- ##### SECTION Stability_Level ##### -->
34 <!-- ##### SECTION Image ##### -->
37 <!-- ##### STRUCT GdkDisplay ##### -->
39 The <structname>GdkDisplay</structname> struct is the GDK representation
40 of an X display. All its fields are private and should not be accessed directly.
45 <!-- ##### SIGNAL GdkDisplay::closed ##### -->
50 @gdkdisplay: the object which received the signal.
53 <!-- ##### FUNCTION gdk_display_open ##### -->
62 <!-- ##### FUNCTION gdk_display_get_default ##### -->
71 <!-- ##### FUNCTION gdk_display_get_name ##### -->
80 <!-- ##### FUNCTION gdk_display_get_n_screens ##### -->
89 <!-- ##### FUNCTION gdk_display_get_screen ##### -->
99 <!-- ##### FUNCTION gdk_display_get_default_screen ##### -->
108 <!-- ##### FUNCTION gdk_display_pointer_ungrab ##### -->
117 <!-- ##### FUNCTION gdk_display_keyboard_ungrab ##### -->
126 <!-- ##### FUNCTION gdk_display_pointer_is_grabbed ##### -->
135 <!-- ##### FUNCTION gdk_display_beep ##### -->
143 <!-- ##### FUNCTION gdk_display_sync ##### -->
151 <!-- ##### FUNCTION gdk_display_flush ##### -->
159 <!-- ##### FUNCTION gdk_display_close ##### -->
167 <!-- ##### FUNCTION gdk_display_list_devices ##### -->
176 <!-- ##### FUNCTION gdk_display_get_event ##### -->
185 <!-- ##### FUNCTION gdk_display_peek_event ##### -->
194 <!-- ##### FUNCTION gdk_display_put_event ##### -->
203 <!-- ##### FUNCTION gdk_display_add_client_message_filter ##### -->
214 <!-- ##### FUNCTION gdk_display_set_double_click_time ##### -->
223 <!-- ##### FUNCTION gdk_display_set_double_click_distance ##### -->
232 <!-- ##### FUNCTION gdk_display_get_pointer ##### -->
244 <!-- ##### FUNCTION gdk_display_get_window_at_pointer ##### -->
255 <!-- ##### STRUCT GdkDisplayPointerHooks ##### -->
257 A table of pointers to functions for getting quantities related to
258 the current pointer position. Each #GdkDisplay has a table of this type,
259 which can be set using gdk_display_set_pointer_hooks().
262 This is only useful for such low-level tools as an event recorder.
263 Applications should never have any reason to use this facility
266 @get_pointer: Obtains the current pointer position and modifier state.
267 The position is given in coordinates relative to the window containing
268 the pointer, which is returned in @window.
269 @window_get_pointer: Obtains the window underneath the mouse pointer.
270 Current pointer position and modifier state are returned in @x, @y and
271 @mask. The position is given in coordinates relative to @window.
272 @window_at_pointer: Obtains the window underneath the mouse pointer,
273 returning the location of that window in @win_x, @win_y. Returns %NULL
274 if the window under the mouse pointer is not known to GDK (for example,
275 belongs to another application).
278 <!-- ##### FUNCTION gdk_display_set_pointer_hooks ##### -->
288 <!-- ##### FUNCTION gdk_display_warp_pointer ##### -->
299 <!-- ##### FUNCTION gdk_display_supports_cursor_color ##### -->
308 <!-- ##### FUNCTION gdk_display_supports_cursor_alpha ##### -->
317 <!-- ##### FUNCTION gdk_display_get_default_cursor_size ##### -->
326 <!-- ##### FUNCTION gdk_display_get_maximal_cursor_size ##### -->
336 <!-- ##### FUNCTION gdk_display_get_default_group ##### -->
345 <!-- ##### FUNCTION gdk_display_supports_selection_notification ##### -->
354 <!-- ##### FUNCTION gdk_display_request_selection_notification ##### -->
364 <!-- ##### FUNCTION gdk_display_supports_clipboard_persistence ##### -->
373 <!-- ##### FUNCTION gdk_display_store_clipboard ##### -->
385 <!-- ##### FUNCTION gdk_display_supports_shapes ##### -->
394 <!-- ##### FUNCTION gdk_display_supports_input_shapes ##### -->
403 <!-- ##### FUNCTION gdk_display_supports_composite ##### -->