Struct wayland_client::wayland::compositor::WlRegion
[−]
[src]
pub struct WlRegion { // some fields omitted }
region interface
A region object describes an area.
Region objects are used to describe the opaque and input regions of a surface.
Methods
impl WlRegion
fn destroy(self)
destroy region
Destroy the region. This will invalidate the object ID.
fn add(&self, x: i32, y: i32, width: i32, height: i32)
add rectangle to region
Add the specified rectangle to the region.
fn subtract(&self, x: i32, y: i32, width: i32, height: i32)
subtract rectangle from region
Subtract the specified rectangle from the region.