[][src]Struct cairo::Region

pub struct Region(_, _);

Methods

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) -> 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 status(&self) -> Status[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) -> Status[src]

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

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

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

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

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

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

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

Trait Implementations

impl PartialEq<Region> for Region[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl AsRef<Region> for Region[src]

impl Clone for Region[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Drop for Region[src]

impl Eq for Region[src]

impl Display for Region[src]

impl Debug for Region[src]

impl StaticType for Region[src]

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

impl SetValue for Region[src]

impl SetValueOptional for Region[src]

Auto Trait Implementations

impl !Send for Region

impl !Sync for Region

Blanket Implementations

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

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]