Trait wayland_server::protocol::wl_region::Handler
[−]
[src]
pub trait Handler { fn destroy(&mut self, evqh: &mut EventLoopHandle, client: &Client, resource: &WlRegion) { ... } fn add(&mut self, evqh: &mut EventLoopHandle, client: &Client, resource: &WlRegion, x: i32, y: i32, width: i32, height: i32) { ... } fn subtract(&mut self, evqh: &mut EventLoopHandle, client: &Client, resource: &WlRegion, x: i32, y: i32, width: i32, height: i32) { ... } }
Provided Methods
fn destroy(&mut self, evqh: &mut EventLoopHandle, client: &Client, resource: &WlRegion)
destroy region
Destroy the region. This will invalidate the object ID.
This is a destructor, you cannot send events to this object once this method is called.
fn add(&mut self, evqh: &mut EventLoopHandle, client: &Client, resource: &WlRegion, x: i32, y: i32, width: i32, height: i32)
add rectangle to region
Add the specified rectangle to the region.
fn subtract(&mut self, evqh: &mut EventLoopHandle, client: &Client, resource: &WlRegion, x: i32, y: i32, width: i32, height: i32)
subtract rectangle from region
Subtract the specified rectangle from the region.