GdkWayland.WaylandDisplay

g GObject.Object GObject.Object Gdk.Display Gdk.Display GObject.Object->Gdk.Display GdkWayland.WaylandDisplay GdkWayland.WaylandDisplay Gdk.Display->GdkWayland.WaylandDisplay

Subclasses:

None

Methods

Inherited:

Gdk.Display (28), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_egl_display ()

get_startup_notification_id ()

query_registry (global_)

set_cursor_theme (name, size)

set_startup_notification_id (startup_id)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Gdk.Display (3)

Signals

Inherited:

Gdk.Display (5), GObject.Object (1)

Fields

Inherited:

Gdk.Display (5), GObject.Object (1)

Class Details

class GdkWayland.WaylandDisplay(**kwargs)
Bases:

Gdk.Display

Abstract:

No

Structure:

GdkWayland.WaylandDisplayClass

The Wayland implementation of GdkDisplay.

Beyond the regular [class`Gdk`.Display] API, the Wayland implementation provides access to Wayland objects such as the wl_display with [method`GdkWayland`.WaylandDisplay.get_wl_display], the wl_compositor with [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()
Returns:

the EGL display

Return type:

object or None

Retrieves the EGL display connection object for the given GDK display.

New in version 4.4.

get_startup_notification_id()
Returns:

the startup notification ID for self

Return type:

str or None

Gets the startup notification ID for a Wayland display, or None if no ID has been defined.

Deprecated since version 4.10..

query_registry(global_)
Parameters:

global (str) – global interface to query in the registry

Returns:

True if the global is offered by the compositor

Return type:

bool

Returns True if the interface was found in the display wl_registry.global handler.

set_cursor_theme(name, size)
Parameters:
  • name (str) – the new cursor theme

  • size (int) – the size to use for cursors

Sets the cursor theme for the given self.

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_ID environment 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]