GdkWayland.WaylandDisplay¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GdkWayland.WaylandDisplay(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The Wayland implementation of
GdkDisplay.Beyond the regular [class`Gdk`.Display] API, the Wayland implementation provides access to Wayland objects such as the
wl_displaywith [method`GdkWayland`.WaylandDisplay.get_wl_display], thewl_compositorwith [method`GdkWayland`.WaylandDisplay.get_wl_compositor].You can find out what Wayland globals are supported by a display with [method`GdkWayland`.WaylandDisplay.query_registry].
- get_egl_display()¶
-
Retrieves the EGL display connection object for the given GDK display.
New in version 4.4.
- get_startup_notification_id()¶
-
Gets the startup notification ID for a Wayland display, or
Noneif no ID has been defined.Deprecated since version 4.10..
- query_registry(global_)¶
- Parameters:
global (
str) – global interface to query in the registry- Returns:
Trueif the global is offered by the compositor- Return type:
Returns
Trueif the interface was found in the displaywl_registry.globalhandler.
- set_cursor_theme(name, size)¶
-
Sets the cursor theme for the given self.
Deprecated since version 4.16: Use the cursor-related properties of GtkSettings to set the cursor theme
- set_startup_notification_id(startup_id)¶
- Parameters:
startup_id (
str) – the startup notification ID (must be valid utf8)
Sets the startup notification ID for a display.
This is usually taken from the value of the
DESKTOP_STARTUP_IDenvironment variable, but in some cases (such as the application not being launched using exec()) it can come from other sources.The startup ID is also what is used to signal that the startup is complete (for example, when opening a window or when calling [method`Gdk`.Display.notify_startup_complete]).
Deprecated since version 4.10.: Use [method`Gdk`.Toplevel.set_startup_id]