Struct cairo::Region [−][src]
pub struct Region(_, _);
Methods
impl Region[src]
impl Regionpub unsafe fn from_raw_none(ptr: *mut cairo_region_t) -> Region[src]
pub unsafe fn from_raw_none(ptr: *mut cairo_region_t) -> Regionpub unsafe fn from_raw_borrow(ptr: *mut cairo_region_t) -> Region[src]
pub unsafe fn from_raw_borrow(ptr: *mut cairo_region_t) -> Regionpub unsafe fn from_raw_full(ptr: *mut cairo_region_t) -> Region[src]
pub unsafe fn from_raw_full(ptr: *mut cairo_region_t) -> Regionpub fn to_raw_none(&self) -> *mut cairo_region_t[src]
pub fn to_raw_none(&self) -> *mut cairo_region_tpub fn create() -> Region[src]
pub fn create() -> Regionpub fn create_rectangle(rectangle: &RectangleInt) -> Region[src]
pub fn create_rectangle(rectangle: &RectangleInt) -> Regionpub fn create_rectangles(rectangles: &[RectangleInt]) -> Region[src]
pub fn create_rectangles(rectangles: &[RectangleInt]) -> Regionpub fn copy(&self) -> Region[src]
pub fn copy(&self) -> Regionpub fn status(&self) -> Status[src]
pub fn status(&self) -> Statuspub 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) -> i32pub fn get_rectangle(&self, nth: i32) -> RectangleInt[src]
pub fn get_rectangle(&self, nth: i32) -> RectangleIntpub fn is_empty(&self) -> bool[src]
pub fn is_empty(&self) -> boolpub fn contains_point(&self, x: i32, y: i32) -> bool[src]
pub fn contains_point(&self, x: i32, y: i32) -> boolpub fn contains_rectangle(&self, rectangle: &RectangleInt) -> RegionOverlap[src]
pub fn contains_rectangle(&self, rectangle: &RectangleInt) -> RegionOverlappub 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) -> Statuspub fn intersect_rectangle(&self, rectangle: &RectangleInt) -> Status[src]
pub fn intersect_rectangle(&self, rectangle: &RectangleInt) -> Statuspub fn subtract(&self, other: &Region) -> Status[src]
pub fn subtract(&self, other: &Region) -> Statuspub fn subtract_rectangle(&self, rectangle: &RectangleInt) -> Status[src]
pub fn subtract_rectangle(&self, rectangle: &RectangleInt) -> Statuspub fn union(&self, other: &Region) -> Status[src]
pub fn union(&self, other: &Region) -> Statuspub fn union_rectangle(&self, rectangle: &RectangleInt) -> Status[src]
pub fn union_rectangle(&self, rectangle: &RectangleInt) -> Statuspub fn xor(&self, other: &Region) -> Status[src]
pub fn xor(&self, other: &Region) -> Statuspub fn xor_rectangle(&self, rectangle: &RectangleInt) -> Status[src]
pub fn xor_rectangle(&self, rectangle: &RectangleInt) -> StatusTrait Implementations
impl Debug for Region[src]
impl Debug for Regionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl StaticType for Region[src]
impl StaticType for Regionfn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.
impl<'a> FromValueOptional<'a> for Region[src]
impl<'a> FromValueOptional<'a> for Regionunsafe 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 Regionimpl SetValueOptional for Region[src]
impl SetValueOptional for Regionunsafe 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 Regionimpl Clone for Region[src]
impl Clone for Regionfn clone(&self) -> Region[src]
fn clone(&self) -> RegionReturns 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 Regionimpl PartialEq for Region[src]
impl PartialEq for Regionfn eq(&self, other: &Region) -> bool[src]
fn eq(&self, other: &Region) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Region[src]
impl Eq for Region