Struct wayland_client::core::Registry [] [src]

pub struct Registry {
    // some fields omitted
}

A Registry, giving access to the global wayland objects.

This wraps a wl_registry, used by the wayland to propagate to the clients the global objects, such as the output or input devices, or the compositor.

This object is cloneable, allowing to create several handles to the global registry. The registry will only be destroyed once all copies are destroyed.

All global objects created by the registry keep a hangle to it, and maintain it alive.

Methods

impl Registry

fn get_display(&self) -> Display

Returns a handle to the Display associated with this registry.

fn get_global_objects(&self) -> Vec<(u32, String, u32)>

Returns a Vec of all global objects and their interface.

Each entry is a tuple (id, interface, version).

fn get_objects_with_interface(&self, interface: &str) -> Vec<(u32, u32)>

Returns a Vec of all global objects implementing given interface.

Each entry is a tuple (id, version).

fn get_compositor(&self) -> Option<Compositor>

Retrieves a handle to the global compositor

fn get_outputs(&self) -> Vec<Output>

Retrieve handles to all available outputs

fn get_seats(&self) -> Vec<Seat>

Retrieve handles to all available seats

A classic configuration is likely to have a single seat, but it is not garanteed.

fn get_shell(&self) -> Option<Shell>

Retrieves a handle to the global shell

fn get_shm(&self) -> Option<Shm>

Retrieves a handle to the global shm

fn get_subcompositor(&self) -> Option<SubCompositor>

Retrieves a handle to the global subcompositor

unsafe fn bind<T>(&self, id: u32, version: u32) -> T where T: Bind<Registry>

Trait Implementations

impl FFI for Registry

type Ptr = wl_registry

fn ptr(&self) -> *const wl_registry

unsafe fn ptr_mut(&self) -> *mut wl_registry

Derived Implementations

impl Clone for Registry

fn clone(&self) -> Registry

fn clone_from(&mut self, source: &Self)