-
public void add_client_message_filter (Atom message_type, FilterFunc func)
-
public void beep ()
Emits a short beep on display
-
public void close ()
Closes the connection to the windowing system for the given display, and cleans up associated resources.
-
public void 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 explicitely. 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.
-
public weak Device get_core_pointer ()
Returns the core pointer device for the given display
-
public uint get_default_cursor_size ()
Returns the default size to use for cursors on display.
-
public weak Window get_default_group ()
Returns the default group leader window for all toplevel windows on display. This window is
implicitly created by GDK. See set_group.
-
public virtual weak Screen get_default_screen ()
Get the default Screen for display.
-
public virtual unowned string get_display_name ()
-
public Event get_event ()
Gets the next Event to be processed for display,
fetching events from the windowing system if necessary.
-
public void get_maximal_cursor_size (out uint width, out uint height)
Gets the maximal size to use for cursors on display.
-
public virtual int get_n_screens ()
Gets the number of screen managed by the display.
-
public unowned string get_name ()
Gets the name of the display.
-
public void get_pointer (out Screen screen, out int x, out int y, out ModifierType mask)
Gets the current location of the pointer and the current modifier mask for a given display.
-
public virtual weak Screen get_screen (int screen_num)
Returns a screen object for one of the screens of the display.
-
public weak Window get_window_at_pointer (int win_x, int win_y)
Obtains the window underneath the mouse pointer, returning the location of the pointer in that window in
win_x, win_y for screen. Returns null if the window under the mouse pointer is not
known to GDK (for example, belongs to another application).
-
public bool is_closed ()
Finds out if the display has been closed.
-
public void keyboard_ungrab (uint32 time_)
Release any keyboard grab
-
public unowned List<Device> list_devices ()
Returns the list of available input devices attached to display. The list is statically
allocated and should not be freed.
-
public Event peek_event ()
Gets a copy of the first Event in the display's
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.)
-
public bool pointer_is_grabbed ()
Test if the pointer is grabbed.
-
public void pointer_ungrab (uint32 time_)
Release any pointer grab.
-
public void put_event (Event event)
Appends a copy of the given event onto the front of the event queue for display.
-
public bool request_selection_notification (Atom selection)
Request EventOwnerChange events for ownership
changes of the selection named by the given atom.
-
public void set_double_click_distance (uint distance)
Sets the double click distance (two clicks within this distance count as a double click and result in a
2BUTTON_PRESS event). See also
set_double_click_time. Applications should not set
this, it is a global user-configured setting.
-
public void set_double_click_time (uint msec)
Sets the double click time (two clicks within this time interval count as a double click and result in a
2BUTTON_PRESS event). Applications should not set this,
it is a global user-configured setting.
-
public unowned DisplayPointerHooks set_pointer_hooks (DisplayPointerHooks new_hooks)
This function allows for hooking into the operation of getting the current location of the pointer on a
particular display. This is only useful for such low-level tools as an event recorder. Applications should never have any reason to
use this facility.
-
public void store_clipboard (Window clipboard_window, uint32 time_, Atom[] targets)
-
public bool supports_clipboard_persistence ()
Returns whether the speicifed display supports clipboard persistance; 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.
-
public bool supports_composite ()
Returns true if set_composited
can be used to redirect drawing on the window using compositing.
-
public bool supports_cursor_alpha ()
Returns true if cursors can use an 8bit alpha channel on display. Otherwise,
cursors are restricted to bilevel alpha (i.e. a mask).
-
public bool supports_cursor_color ()
Returns true if multicolored cursors are supported on display. Otherwise,
cursors have only a forground and a background color.
-
public bool supports_input_shapes ()
-
public bool supports_selection_notification ()
Returns whether EventOwnerChange events will be
sent when the owner of a selection changes.
-
public bool supports_shapes ()
-
public void 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 error_trap_pop
makes sure that any errors generated from earlier requests are handled before the error trap is removed.
-
public void warp_pointer (Screen screen, int x, int y)
Warps the pointer of display to the point x,@y on the screen 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.