#[repr(transparent)]pub struct Region(_);
Implementations
sourceimpl 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: &mut 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
sourceimpl<'a> FromValue<'a> for Region
impl<'a> FromValue<'a> for Region
type Checker = GenericValueTypeOrNoneChecker<Region>
type Checker = GenericValueTypeOrNoneChecker<Region>
Value type checker.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl<'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.
sourceunsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a Value
. Read more
sourceimpl StaticType for Region
impl StaticType for Region
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
sourceimpl ToValueOptional for Region
impl ToValueOptional for Region
sourcefn 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 RefUnwindSafe for Region
impl !Send for Region
impl !Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.