Display
Object Hierarchy:
Description:
[ CCode ( type_id = "gdk_x11_display_get_type ()" ) ]
[ GIR ( name = "X11Display" ) ]
public class Display : Display
Content:
Static methods:
- public static unowned Display lookup_for_xdisplay (Display xdisplay)
Find the `GdkDisplay` corresponding to xdisplay
, if any
exists.
- public static Display? open (string? display_name)
Tries to open a new display to the X server given by
display_name
.
- public static void set_program_class (Display display, string program_class)
Sets the program class.
Creation methods:
Methods:
- public void broadcast_startup_message (string message_type, ...)
Sends a startup notification message of type message_type
to this.
- public int error_trap_pop ()
- public void error_trap_pop_ignored ()
- public void error_trap_push ()
Begins a range of X requests on this
for which X error events will be ignored.
- public unowned Surface get_default_group ()
Returns the default group leader surface for all toplevel surfaces on
this.
- public void* get_egl_display ()
Retrieves the EGL display connection object for the given GDK display.
- public bool get_egl_version (out int major, out int minor)
Retrieves the version of the EGL implementation.
- public bool get_glx_version (out int major, out int minor)
Retrieves the version of the GLX implementation.
- public unowned Monitor get_primary_monitor ()
Gets the primary monitor for the display.
- public unowned Screen get_screen ()
Retrieves the `GdkX11Screen` of the this
.
- public unowned string get_startup_notification_id ()
Gets the startup notification ID for a display.
- public uint32 get_user_time ()
Returns the timestamp of the last user interaction on
this.
- public Atom get_xatom_by_name (string atom_name)
Returns the X atom for a `GdkDisplay` corresponding to atom_name
.
- public unowned string get_xatom_name (Atom xatom)
Returns the name of an X atom for its display.
- public Cursor get_xcursor (Cursor cursor)
Returns the X cursor belonging to a `GdkCursor`, potentially creating
the cursor.
- public unowned Display get_xdisplay ()
Returns the X display of a `GdkDisplay`.
- public Window get_xrootwindow ()
Returns the root X window used by `GdkDisplay`.
- public unowned Screen get_xscreen ()
Returns the X Screen used by `GdkDisplay`.
- public void grab ()
Call grab_server on
this.
- public void set_cursor_theme (string? theme, int size)
Sets the cursor theme from which the images for cursor should be
taken.
- public void set_startup_notification_id (string startup_id)
Sets the startup notification ID for a display.
- public void set_surface_scale (int scale)
Forces a specific window scale for all windows on this display,
instead of using the default or user configured scale.
- public int string_to_compound_text (string str, out unowned string encoding, out int format, out uint8[] ctext)
Convert a string from the encoding of the current locale into a form
suitable for storing in a window property.
- public int text_property_to_text_list (string encoding, int format, string text, int length, out string[] list)
Convert a text string from the encoding as it is stored in a property
into an array of strings in the encoding of the current locale.
- public void ungrab ()
Ungrab this after it has been
grabbed with grab.
- public bool utf8_to_compound_text (string str, out unowned string encoding, out int format, out uint8[] ctext)
Converts from UTF-8 to compound text.
Signals:
Inherited Members:
All known members inherited from class Gdk.Display
- beep
- close
- closed
- composited
- create_gl_context
- device_is_grabbed
- flush
- get_app_launch_context
- get_clipboard
- get_default
- get_default_seat
- get_monitor_at_surface
- get_monitors
- get_name
- get_primary_clipboard
- get_setting
- get_startup_notification_id
- input_shapes
- is_closed
- is_composited
- is_rgba
- list_seats
- map_keycode
- map_keyval
- notify_startup_complete
- open
- opened
- prepare_gl
- put_event
- rgba
- seat_added
- seat_removed
- setting_changed
- supports_input_shapes
- sync
- translate_key
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref