Display
Object Hierarchy:
Description:
public class Display :
Object
A representation of a workstation.
Their purpose are two-fold:
- To manage and provide information about input devices (pointers, keyboards, etc)
- To manage and provide information about output devices (monitors, projectors, etc)
Most of the input device handling has been factored out into separate [class@Gdk.Seat] objects. Every display has a one or more seats,
which can be accessed with [method@Gdk.Display.get_default_seat] and [method@Gdk.Display.list_seats].
Output devices are represented by [class@Gdk.Monitor] objects, which can be accessed with [method@Gdk.Display.get_monitor_at_surface] and
similar APIs.
Content:
Static methods:
- public static unowned Display get_default ()
Gets the default `GdkDisplay`.
- public static unowned Display open (string display_name)
Opens a display.
- public static unowned Display open_default_libgtk_only ()
Opens the default display specified by command line arguments or
environment variables, sets it as the default display, and returns it.
Creation methods:
Methods:
- public void add_client_message_filter (Atom message_type, FilterFunc func)
- public void beep ()
Emits a short beep on this
- public void close ()
Closes the connection to the windowing system for the given display.
- public void flush ()
Flushes any requests queued for the windowing system.
- public unowned Device get_core_pointer ()
- public uint get_default_cursor_size ()
Returns the default size to use for cursors on
this.
- public unowned Window get_default_group ()
Returns the default group leader window for all toplevel windows on
this.
- public virtual unowned Screen get_default_screen ()
Get the default Screen for
this.
- public virtual unowned string get_display_name ()
- public Event get_event ()
Gets the next Event to be
processed for this, 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
this.
- public virtual int get_n_screens ()
Gets the number of screen managed by the
this.
- public unowned string get_name ()
Gets the name of the display.
- public void get_pointer (out unowned 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 unowned Screen get_screen (int screen_num)
Returns a screen object for one of the screens of the display.
- public unowned 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.
- 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
this.
- public Event peek_event ()
Gets a copy of the first Event
in the this’s event queue, without removing the event from the 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)
Adds the given event to the event queue for
this.
- 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).
- 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).
- public unowned DisplayPointerHooks set_pointer_hooks (DisplayPointerHooks new_hooks)
- public void store_clipboard (Window clipboard_window, uint32 time_, Atom[] targets)
Issues a request to the clipboard manager to store the clipboard data.
- public bool supports_clipboard_persistence ()
Returns whether the speicifed display supports clipboard persistance;
i.
- 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 this.
- public bool supports_cursor_color ()
Returns true if multicolored cursors
are supported on this.
- public bool supports_input_shapes ()
Returns true if the display 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.
- public void warp_pointer (Screen screen, int x, int y)
Warps the pointer of this 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.
Signals:
Fields:
Inherited Members:
All known members inherited from class GLib.Object