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.
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_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_find_globals
Returns a list of globals, optionally filtered by interface name. If null is passed, all globals are returned.
Signals
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.
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.