[−][src]Struct cairo::Region
Implementations
impl Region[src]
pub unsafe fn from_raw_none(ptr: *mut cairo_region_t) -> Region[src]
pub unsafe fn from_raw_borrow(ptr: *mut cairo_region_t) -> Borrowed<Region>[src]
pub unsafe fn from_raw_full(ptr: *mut cairo_region_t) -> Region[src]
pub fn to_raw_none(&self) -> *mut cairo_region_t[src]
pub fn create() -> Region[src]
pub fn create_rectangle(rectangle: &RectangleInt) -> Region[src]
pub fn create_rectangles(rectangles: &[RectangleInt]) -> Region[src]
pub fn copy(&self) -> Region[src]
pub fn get_extents(&self, rectangle: &mut RectangleInt)[src]
pub fn num_rectangles(&self) -> i32[src]
pub fn get_rectangle(&self, nth: i32) -> RectangleInt[src]
pub fn is_empty(&self) -> bool[src]
pub fn contains_point(&self, x: i32, y: i32) -> bool[src]
pub fn contains_rectangle(&self, rectangle: &RectangleInt) -> RegionOverlap[src]
pub fn translate(&self, dx: i32, dy: i32)[src]
pub fn intersect(&self, other: &Region) -> Result<(), Error>[src]
pub fn intersect_rectangle(&self, rectangle: &RectangleInt) -> Result<(), Error>[src]
pub fn subtract(&self, other: &Region) -> Result<(), Error>[src]
pub fn subtract_rectangle(&self, rectangle: &RectangleInt) -> Result<(), Error>[src]
pub fn union(&self, other: &Region) -> Result<(), Error>[src]
pub fn union_rectangle(&self, rectangle: &RectangleInt) -> Result<(), Error>[src]
pub fn xor(&self, other: &Region) -> Result<(), Error>[src]
pub fn xor_rectangle(&self, rectangle: &RectangleInt) -> Result<(), Error>[src]
Trait Implementations
impl Clone for Region[src]
impl Debug for Region[src]
impl Display for Region[src]
impl Drop for Region[src]
impl Eq for Region[src]
impl<'a> FromValueOptional<'a> for Region[src]
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>[src]
impl PartialEq<Region> for Region[src]
impl SetValue for Region[src]
impl SetValueOptional for Region[src]
unsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)[src]
impl StaticType for Region[src]
fn static_type() -> Type[src]
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized, [src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized, [src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,