pub struct Region(/* private fields */);
Implementations§
Source§impl Region
impl Region
pub unsafe fn from_raw_none(ptr: *mut cairo_region_t) -> Region
pub unsafe fn from_raw_borrow(ptr: *mut cairo_region_t) -> Region
pub unsafe fn from_raw_full(ptr: *mut cairo_region_t) -> Region
pub fn to_raw_none(&self) -> *mut cairo_region_t
pub fn create() -> Region
pub fn create_rectangle(rectangle: &RectangleInt) -> Region
pub fn create_rectangles(rectangles: &[RectangleInt]) -> Region
pub fn copy(&self) -> Region
pub fn status(&self) -> Status
pub fn get_extents(&self, rectangle: &mut RectangleInt)
pub fn num_rectangles(&self) -> i32
pub fn get_rectangle(&self, nth: i32) -> RectangleInt
pub fn is_empty(&self) -> bool
pub fn contains_point(&self, x: i32, y: i32) -> bool
pub fn contains_rectangle(&self, rectangle: &RectangleInt) -> RegionOverlap
pub fn translate(&self, dx: i32, dy: i32)
pub fn intersect(&self, other: &Region) -> Status
pub fn intersect_rectangle(&self, rectangle: &RectangleInt) -> Status
pub fn subtract(&self, other: &Region) -> Status
pub fn subtract_rectangle(&self, rectangle: &RectangleInt) -> Status
pub fn union(&self, other: &Region) -> Status
pub fn union_rectangle(&self, rectangle: &RectangleInt) -> Status
pub fn xor(&self, other: &Region) -> Status
pub fn xor_rectangle(&self, rectangle: &RectangleInt) -> Status
Trait Implementations§
Source§impl<'a> FromValueOptional<'a> for Region
impl<'a> FromValueOptional<'a> for Region
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>
Source§impl SetValueOptional for Region
impl SetValueOptional for Region
unsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)
Source§impl StaticType for Region
impl StaticType for Region
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Region
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl !Send for Region
impl !Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more