[][src]Trait wayland_client::protocol::wl_surface::EventHandler

pub trait EventHandler {
    fn enter(&mut self, object: WlSurface, output: WlOutput) { ... }
fn leave(&mut self, object: WlSurface, output: WlOutput) { ... } }

An interface for handling events.

Provided methods

fn enter(&mut self, object: WlSurface, output: WlOutput)

surface enters an output

This is emitted whenever a surface's creation, movement, or resizing results in some part of it being within the scanout region of an output.

Note that a surface may be overlapping with zero or more outputs.

fn leave(&mut self, object: WlSurface, output: WlOutput)

surface leaves an output

This is emitted whenever a surface's creation, movement, or resizing results in it no longer having any part of it within the scanout region of an output.

Loading content...

Implementors

Loading content...