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
§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
§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 PartialEq for Region
impl PartialEq for Region
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
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.