[][src]Struct cairo::Region

pub struct Region(_);

Implementations

impl Region[src]

pub unsafe fn from_raw_none(ptr: *mut cairo_region_t) -> Region[src]

pub unsafe fn from_raw_borrow(ptr: *mut cairo_region_t) -> Borrowed<Region>[src]

pub unsafe fn from_raw_full(ptr: *mut cairo_region_t) -> Region[src]

pub fn to_raw_none(&self) -> *mut cairo_region_t[src]

pub fn create() -> Region[src]

pub fn create_rectangle(rectangle: &RectangleInt) -> Region[src]

pub fn create_rectangles(rectangles: &[RectangleInt]) -> Region[src]

pub fn copy(&self) -> Region[src]

pub fn get_extents(&self, rectangle: &mut RectangleInt)[src]

pub fn num_rectangles(&self) -> i32[src]

pub fn get_rectangle(&self, nth: i32) -> RectangleInt[src]

pub fn is_empty(&self) -> bool[src]

pub fn contains_point(&self, x: i32, y: i32) -> bool[src]

pub fn contains_rectangle(&self, rectangle: &RectangleInt) -> RegionOverlap[src]

pub fn translate(&self, dx: i32, dy: i32)[src]

pub fn intersect(&self, other: &Region) -> Result<(), Error>[src]

pub fn intersect_rectangle(&self, rectangle: &RectangleInt) -> Result<(), Error>[src]

pub fn subtract(&self, other: &Region) -> Result<(), Error>[src]

pub fn subtract_rectangle(&self, rectangle: &RectangleInt) -> Result<(), Error>[src]

pub fn union(&self, other: &Region) -> Result<(), Error>[src]

pub fn union_rectangle(&self, rectangle: &RectangleInt) -> Result<(), Error>[src]

pub fn xor(&self, other: &Region) -> Result<(), Error>[src]

pub fn xor_rectangle(&self, rectangle: &RectangleInt) -> Result<(), Error>[src]

Trait Implementations

impl Clone for Region[src]

impl Debug for Region[src]

impl Display for Region[src]

impl Drop for Region[src]

impl Eq for Region[src]

impl<'a> FromValueOptional<'a> for Region[src]

impl PartialEq<Region> for Region[src]

impl SetValue for Region[src]

impl SetValueOptional for Region[src]

impl StaticType for Region[src]

Auto Trait Implementations

impl RefUnwindSafe for Region

impl !Send for Region

impl !Sync for Region

impl Unpin for Region

impl UnwindSafe for Region

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> 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> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

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.