Struct wayland_client::EventQueueHandle
[−]
[src]
pub struct EventQueueHandle { /* fields omitted */ }
Handle to an event queue
This handle gives you access to methods on an event queue that are safe to do from within a callback.
They are also available on an EventQueue
object via Deref
.
Methods
impl EventQueueHandle
[src]
fn register<P: Proxy, H: Handler<P> + Any + 'static>(&mut self, proxy: &P, handler_id: usize)
[−]
Register a proxy to a handler of this event queue.
The H type must be provided and match the type of the targetted Handler, or it will panic.
This overwrites any precedently set Handler for this proxy.
fn add_handler<H: Any + 'static>(&mut self, handler: H) -> usize
[−]
Insert a new handler to this event queue
Returns the index of this handler in the internal array, which is needed to register proxies to it.