Struct cairo::Region
[−]
[src]
pub struct Region(_);
Methods
impl Region
[src]
fn create() -> Region
fn create_rectangle(rectangle: &RectangleInt) -> Region
fn copy(&self) -> Region
fn status(&self) -> Status
fn get_extents(&self, rectangle: &mut RectangleInt)
fn num_rectangles(&self) -> i32
fn get_rectangle(&self, nth: i32) -> RectangleInt
fn is_empty(&self) -> bool
fn contains_point(&self, x: i32, y: i32) -> bool
fn contains_rectangle(&self, rectangle: &RectangleInt) -> RegionOverlap
fn translate(&self, dx: i32, dy: i32)
fn intersect(&self, other: &Region) -> Status
fn intersect_rectangle(&self, rectangle: &RectangleInt) -> Status
fn subtract(&self, other: &Region) -> Status
fn subtract_rectangle(&self, rectangle: &RectangleInt) -> Status
fn union(&self, other: &Region) -> Status
fn union_rectangle(&self, rectangle: &RectangleInt) -> Status
fn xor(&self, other: &Region) -> Status
fn xor_rectangle(&self, rectangle: &RectangleInt) -> Status
Trait Implementations
impl AsRef<Region> for Region
[src]
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