Struct cairo::Region [−][src]
pub struct Region(_, _);
Methods
impl Region
[src]
impl Region
pub unsafe fn from_raw_none(ptr: *mut cairo_region_t) -> Region
[src]
pub unsafe fn from_raw_none(ptr: *mut cairo_region_t) -> Region
pub unsafe fn from_raw_borrow(ptr: *mut cairo_region_t) -> Region
[src]
pub unsafe fn from_raw_borrow(ptr: *mut cairo_region_t) -> Region
pub unsafe fn from_raw_full(ptr: *mut cairo_region_t) -> Region
[src]
pub unsafe fn from_raw_full(ptr: *mut cairo_region_t) -> Region
pub fn to_raw_none(&self) -> *mut cairo_region_t
[src]
pub fn to_raw_none(&self) -> *mut cairo_region_t
pub fn create() -> Region
[src]
pub fn create() -> Region
pub fn create_rectangle(rectangle: &RectangleInt) -> Region
[src]
pub fn create_rectangle(rectangle: &RectangleInt) -> Region
pub fn create_rectangles(rectangles: &[RectangleInt]) -> Region
[src]
pub fn create_rectangles(rectangles: &[RectangleInt]) -> Region
pub fn copy(&self) -> Region
[src]
pub fn copy(&self) -> Region
pub fn status(&self) -> Status
[src]
pub fn status(&self) -> Status
pub fn get_extents(&self, rectangle: &mut RectangleInt)
[src]
pub fn get_extents(&self, rectangle: &mut RectangleInt)
pub fn num_rectangles(&self) -> i32
[src]
pub fn num_rectangles(&self) -> i32
pub fn get_rectangle(&self, nth: i32) -> RectangleInt
[src]
pub fn get_rectangle(&self, nth: i32) -> RectangleInt
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
pub fn contains_point(&self, x: i32, y: i32) -> bool
[src]
pub fn contains_point(&self, x: i32, y: i32) -> bool
pub fn contains_rectangle(&self, rectangle: &RectangleInt) -> RegionOverlap
[src]
pub fn contains_rectangle(&self, rectangle: &RectangleInt) -> RegionOverlap
pub fn translate(&self, dx: i32, dy: i32)
[src]
pub fn translate(&self, dx: i32, dy: i32)
pub fn intersect(&self, other: &Region) -> Status
[src]
pub fn intersect(&self, other: &Region) -> Status
pub fn intersect_rectangle(&self, rectangle: &RectangleInt) -> Status
[src]
pub fn intersect_rectangle(&self, rectangle: &RectangleInt) -> Status
pub fn subtract(&self, other: &Region) -> Status
[src]
pub fn subtract(&self, other: &Region) -> Status
pub fn subtract_rectangle(&self, rectangle: &RectangleInt) -> Status
[src]
pub fn subtract_rectangle(&self, rectangle: &RectangleInt) -> Status
pub fn union(&self, other: &Region) -> Status
[src]
pub fn union(&self, other: &Region) -> Status
pub fn union_rectangle(&self, rectangle: &RectangleInt) -> Status
[src]
pub fn union_rectangle(&self, rectangle: &RectangleInt) -> Status
pub fn xor(&self, other: &Region) -> Status
[src]
pub fn xor(&self, other: &Region) -> Status
pub fn xor_rectangle(&self, rectangle: &RectangleInt) -> Status
[src]
pub fn xor_rectangle(&self, rectangle: &RectangleInt) -> Status
Trait Implementations
impl Debug for Region
[src]
impl Debug for Region
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StaticType for Region
[src]
impl StaticType for Region
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
impl<'a> FromValueOptional<'a> for Region
[src]
impl<'a> FromValueOptional<'a> for Region
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>
impl SetValue for Region
[src]
impl SetValue for Region
impl SetValueOptional for Region
[src]
impl SetValueOptional for Region
unsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)
[src]
unsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)
impl AsRef<Region> for Region
[src]
impl AsRef<Region> for Region
impl Clone for Region
[src]
impl Clone for Region
fn clone(&self) -> Region
[src]
fn clone(&self) -> Region
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[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 Drop for Region
impl PartialEq for Region
[src]
impl PartialEq for Region
fn eq(&self, other: &Region) -> bool
[src]
fn eq(&self, other: &Region) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Region
[src]
impl Eq for Region