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.

Trait Implementations

impl Sync for WlRegion

impl Send for WlRegion

impl Proxy for WlRegion

fn ptr(&self) -> *mut wl_proxy

fn interface() -> *mut wl_interface

fn interface_name() -> &'static str

fn version() -> u32

fn id(&self) -> ProxyId

unsafe fn from_ptr(ptr: *mut wl_proxy) -> WlRegion

unsafe fn from_ptr_no_own(ptr: *mut wl_proxy) -> WlRegion

fn set_evt_iterator(&mut self, evt: &EventIterator)

impl Debug for WlRegion

fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>

impl Drop for WlRegion

fn drop(&mut self)