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_roundtrip

Block until all pending requests have been handled by the compositor. Returns the number of dispatched events.

astal_wl_registry_roundtrip_async

Makes an asynchronous roundtrip invoking the callback when done without blocking in the main thread.

astal_wl_registry_roundtrip_finish
No description available.

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.

astal_wl_registry_get_output_list_model
No description available.

astal_wl_registry_get_seat_list_model
No description available.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

AstalWl.Registry:output-list-model
No description available.

AstalWl.Registry:seat-list-model
No description available.

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, note that when this signal is emitted, the output might not have received all events yet, so its properties might no have been set to the correct values yet. If you are only interested ni outputs that have been fully initialized, use the ListModel api.

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.