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) -> Borrowed<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 extents(&self, rectangle: &RectangleInt)
pub fn num_rectangles(&self) -> i32
pub fn 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) -> Result<(), Error>
pub fn intersect_rectangle(&self, rectangle: &RectangleInt) -> Result<(), Error>
pub fn subtract(&self, other: &Region) -> Result<(), Error>
pub fn subtract_rectangle(&self, rectangle: &RectangleInt) -> Result<(), Error>
pub fn union(&self, other: &Region) -> Result<(), Error>
pub fn union_rectangle(&self, rectangle: &RectangleInt) -> Result<(), Error>
pub fn xor(&self, other: &Region) -> Result<(), Error>
pub fn xor_rectangle(&self, rectangle: &RectangleInt) -> Result<(), Error>
pub fn status(&self) -> Result<(), Error>
Trait Implementations§
Source§impl<'a> FromValue<'a> for &'a Region
impl<'a> FromValue<'a> for &'a Region
Source§type Checker = GenericValueTypeOrNoneChecker<&'a Region>
type Checker = GenericValueTypeOrNoneChecker<&'a Region>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl<'a> FromValue<'a> for Region
impl<'a> FromValue<'a> for Region
Source§type Checker = GenericValueTypeOrNoneChecker<Region>
type Checker = GenericValueTypeOrNoneChecker<Region>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl IntoGlibPtr<*mut cairo_region_t> for Region
impl IntoGlibPtr<*mut cairo_region_t> for Region
Source§unsafe fn into_glib_ptr(self) -> *mut cairo_region_t
unsafe fn into_glib_ptr(self) -> *mut cairo_region_t
Transfer: full.
Source§impl StaticType for Region
impl StaticType for Region
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValueOptional for Region
impl ToValueOptional for Region
Source§fn to_value_optional(s: Option<&Self>) -> Value
fn to_value_optional(s: Option<&Self>) -> Value
Convert an
Option
to a Value
.impl Eq for Region
impl ValueTypeOptional 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.