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
[src]
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
[src]
impl Send for WlRegion
[src]
impl Proxy for WlRegion
[src]
fn ptr(&self) -> *mut wl_proxy
fn interface() -> *mut wl_interface
fn interface_name() -> &'static str
The internal name of this interface, as advertized by the registry if it is a global.
fn version() -> u32
The maximum version of this interface handled by the library.
fn id(&self) -> ProxyId
Get the id of this proxy
unsafe fn from_ptr(ptr: *mut wl_proxy) -> WlRegion
Creates a proxy from a fresh ptr
unsafe fn from_ptr_no_own(ptr: *mut wl_proxy) -> WlRegion
Creates a proxy from a ptr that is managed elsewhere Read more
fn set_evt_iterator(&mut self, evt: &EventIterator)
Set the event iterator associated to this proxy
impl Debug for WlRegion
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.