pub struct Region(_);
Implementations§
§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§
§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.
§unsafe fn from_value(value: &'a Value) -> &'a Region
unsafe fn from_value(value: &'a Value) -> &'a Region
Get the contained value from a
Value
. Read more§impl<'a> FromValue<'a> for Region
impl<'a> FromValue<'a> for Region
§type Checker = GenericValueTypeOrNoneChecker<Region>
type Checker = GenericValueTypeOrNoneChecker<Region>
Value type checker.
§unsafe fn from_value(value: &'a Value) -> Region
unsafe fn from_value(value: &'a Value) -> Region
Get the contained value from a
Value
. Read more§impl StaticType for Region
impl StaticType for Region
§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.§impl ToValueOptional for Region
impl ToValueOptional for Region
§fn to_value_optional(s: Option<&Region>) -> Value
fn to_value_optional(s: Option<&Region>) -> 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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.
§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere T: StaticType,
§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.