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 <!-- ##### STRUCT GdkDisplay ##### -->
36 The <structname>GdkDisplay</structname> struct is the GDK representation
37 of an X display. All its fields are private and should not be accessed directly.
42 <!-- ##### SIGNAL GdkDisplay::closed ##### -->
47 @gdkdisplay: the object which received the signal.
50 <!-- ##### FUNCTION gdk_display_open ##### -->
59 <!-- ##### FUNCTION gdk_display_get_default ##### -->
67 <!-- ##### FUNCTION gdk_display_get_name ##### -->
76 <!-- ##### FUNCTION gdk_display_get_n_screens ##### -->
85 <!-- ##### FUNCTION gdk_display_get_screen ##### -->
95 <!-- ##### FUNCTION gdk_display_get_default_screen ##### -->
104 <!-- ##### FUNCTION gdk_display_pointer_ungrab ##### -->
113 <!-- ##### FUNCTION gdk_display_keyboard_ungrab ##### -->
122 <!-- ##### FUNCTION gdk_display_pointer_is_grabbed ##### -->
131 <!-- ##### FUNCTION gdk_display_beep ##### -->
139 <!-- ##### FUNCTION gdk_display_sync ##### -->
147 <!-- ##### FUNCTION gdk_display_flush ##### -->
155 <!-- ##### FUNCTION gdk_display_close ##### -->
163 <!-- ##### FUNCTION gdk_display_list_devices ##### -->
172 <!-- ##### FUNCTION gdk_display_get_event ##### -->
181 <!-- ##### FUNCTION gdk_display_peek_event ##### -->
190 <!-- ##### FUNCTION gdk_display_put_event ##### -->
199 <!-- ##### FUNCTION gdk_display_add_client_message_filter ##### -->
210 <!-- ##### FUNCTION gdk_display_set_double_click_time ##### -->
219 <!-- ##### FUNCTION gdk_display_set_double_click_distance ##### -->
228 <!-- ##### FUNCTION gdk_display_get_pointer ##### -->
240 <!-- ##### FUNCTION gdk_display_get_window_at_pointer ##### -->
251 <!-- ##### STRUCT GdkDisplayPointerHooks ##### -->
253 A table of pointers to functions for getting quantities related to
254 the current pointer position. Each #GdkDisplay has a table of this type,
255 which can be set using gdk_display_set_pointer_hooks().
258 This is only useful for such low-level tools as an event recorder.
259 Applications should never have any reason to use this facility
262 @get_pointer: Obtains the current pointer position and modifier state.
263 The position is given in coordinates relative to the window containing
264 the pointer, which is returned in @window.
265 @window_get_pointer: Obtains the window underneath the mouse pointer.
266 Current pointer position and modifier state are returned in @x, @y and
267 @mask. The position is given in coordinates relative to @window.
268 @window_at_pointer: Obtains the window underneath the mouse pointer,
269 returning the location of that window in @win_x, @win_y. Returns %NULL
270 if the window under the mouse pointer is not known to GDK (for example,
271 belongs to another application).
274 <!-- ##### FUNCTION gdk_display_set_pointer_hooks ##### -->
284 <!-- ##### FUNCTION gdk_display_warp_pointer ##### -->
295 <!-- ##### FUNCTION gdk_display_supports_cursor_color ##### -->
304 <!-- ##### FUNCTION gdk_display_supports_cursor_alpha ##### -->
313 <!-- ##### FUNCTION gdk_display_get_default_cursor_size ##### -->
322 <!-- ##### FUNCTION gdk_display_get_maximal_cursor_size ##### -->
332 <!-- ##### FUNCTION gdk_display_get_default_group ##### -->
341 <!-- ##### FUNCTION gdk_display_supports_selection_notification ##### -->
350 <!-- ##### FUNCTION gdk_display_request_selection_notification ##### -->
360 <!-- ##### FUNCTION gdk_display_supports_clipboard_persistence ##### -->
369 <!-- ##### FUNCTION gdk_display_store_clipboard ##### -->
381 <!-- ##### FUNCTION gdk_display_supports_shapes ##### -->
390 <!-- ##### FUNCTION gdk_display_supports_input_shapes ##### -->