Class

AstalWlRegistry

Description

class AstalWl.Registry : GObject.Object
{
  GHashTable* globals,
  GHashTable* outputs,
  GHashTable* seats
}

Wraps the Wayland wl_registry interface and keeps track of all announced globals, outputs and seats. It exposes high-level collections and lookup helpers and emits signals when globals, outputs or seats are added or removed.

Ancestors

Constructors

astal_wl_registry_new
No description available.

Functions

astal_wl_registry_get_default

Returns the singleton Registry instance. The first call connects to the Wayland display and sets up the underlying wl_registry listener.

Instance methods

astal_wl_registry_get_globals

Returns a list of all known globals.

astal_wl_registry_get_outputs

Returns a list of all known outputs.

astal_wl_registry_get_seats

Returns a list of all known seats.

astal_wl_registry_get_registry

Returns the underlying wl_registry object.

astal_wl_registry_get_display

Returns the underlying wl_display used by this registry.

astal_wl_registry_find_globals

Returns a list of globals, optionally filtered by interface name. If null is passed, all globals are returned.

astal_wl_registry_get_global_by_id

Looks up a global by its numeric Iid.

astal_wl_registry_get_output_by_id

Looks up an output by its global id.

astal_wl_registry_get_output_by_name

Looks up an output by its compositor-assigned name.

astal_wl_registry_get_output_by_wl_output

Looks up an Output by its underlying wl_output.

astal_wl_registry_get_seat_by_id

Looks up a seat by its global id.

astal_wl_registry_get_seat_by_name

Looks up a seat by its compositor-assigned name.

astal_wl_registry_get_seat_by_wl_seat

Looks up a Seat by its underlying wl_seat.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

AstalWl.Registry::global-added

Emitted whenever a new global is announced by the compositor.

AstalWl.Registry::global-removed

Emitted whenever a new global is removed by the compositor.

AstalWl.Registry::output-added

Emitted after a new AstalWlOutput has been created and bound.

AstalWl.Registry::output-removed

Emitted just before an AstalWlOutput is removed from the List.

AstalWl.Registry::seat-added

Emitted after a new AstalWlSeat has been created and bound.

AstalWl.Registry::seat-removed

Emitted just before a AstalWlSeat is removed.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct AstalWlRegistryClass {
  /* no available fields */
}

No description available.