#[repr(transparent)]pub struct Region(_);
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: &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§
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 PartialEq<Region> for Region
impl PartialEq<Region> 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 RefUnwindSafe for Region
impl !Send for Region
impl !Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
Blanket Implementations§
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.