Struct cairo::region::Region [] [src]

pub struct Region {
    pub opaque: *mut c_void,
}

Fields

opaque: *mut c_void

Methods

impl Region
[src]

fn create() -> Region

fn create_rectangle(rectangle: &mut Rectangle) -> Region

fn create_rectangles(rectangles: &[Rectangle]) -> Region

fn status(&mut self) -> Status

fn get_extents(&mut self) -> Rectangle

fn num_rectangles(&mut self) -> c_int

fn get_rectangle(&mut self, nth: c_int) -> Rectangle

fn is_empty(&mut self) -> bool

fn contains_point(&mut self, x: c_int, y: c_int) -> bool

fn contains_rectangle(&mut self, rectangle: &mut Rectangle) -> Overlap

fn equal(&mut self, other: &Region) -> bool

fn translate(&mut self, dx: c_int, dy: c_int)

fn intersect_rectangle(&mut self, rectangle: &mut Rectangle) -> Status

fn subtract(&mut self, region: &Region) -> Status

fn subtract_rectangle(&mut self, rectangle: &mut Rectangle) -> Status

fn union(&mut self, region: &Region) -> Status

fn union_rectangle(&mut self, rectangle: &mut Rectangle) -> Status

fn xor(&mut self, region: &Region) -> Status

fn xor_rectangle(&mut self, rectangle: &mut Rectangle) -> Status

Trait Implementations

impl Clone for Region
[src]

fn clone(&self) -> Region

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Drop for Region
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more