Struct wayland_client::protocol::wl_region::WlRegion[][src]

pub struct WlRegion(_);

Implementations

impl WlRegion[src]

pub fn destroy(&self)[src]

destroy region

Destroy the region. This will invalidate the object ID.

This is a destructor, you cannot send requests to this object any longer once this method is called.

pub fn add(&self, x: i32, y: i32, width: i32, height: i32)[src]

add rectangle to region

Add the specified rectangle to the region.

pub fn subtract(&self, x: i32, y: i32, width: i32, height: i32)[src]

subtract rectangle from region

Subtract the specified rectangle from the region.

Trait Implementations

impl AsRef<Proxy<WlRegion>> for WlRegion[src]

impl Clone for WlRegion[src]

impl Debug for WlRegion[src]

impl Eq for WlRegion[src]

impl From<Proxy<WlRegion>> for WlRegion[src]

impl From<WlRegion> for Proxy<WlRegion>[src]

impl Interface for WlRegion[src]

type Request = Request

Set of requests associated to this interface Read more

type Event = Event

Set of events associated to this interface Read more

impl PartialEq<WlRegion> for WlRegion[src]

impl StructuralEq for WlRegion[src]

impl StructuralPartialEq for WlRegion[src]

Auto Trait Implementations

impl !RefUnwindSafe for WlRegion

impl Send for WlRegion

impl Sync for WlRegion

impl Unpin for WlRegion

impl !UnwindSafe for WlRegion

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.