[][src]Struct blend2d::region::Region

#[repr(transparent)]
pub struct Region { /* fields omitted */ }

Methods

impl Region[src]

pub fn new() -> Self[src]

pub fn region_type(&mut self) -> RegionType[src]

pub fn is_empty(&self) -> bool[src]

pub fn is_rect(&self) -> bool[src]

pub fn is_complex(&self) -> bool[src]

pub fn data(&self) -> &[BoxI][src]

pub fn len(&self) -> usize[src]

pub fn capacity(&self) -> usize[src]

pub fn bounding_box(&self) -> &BoxI[src]

pub fn clear(&mut self) -> Result<()>[src]

pub fn reserve(&mut self, n: usize)[src]

pub fn try_reserve(&mut self, n: usize) -> Result<()>[src]

pub fn shrink_to_fit(&mut self)[src]

pub fn combine(&mut self, other: &Self, op: BooleanOp) -> Result<()>[src]

pub fn combine_rb(&mut self, b: &BoxI, op: BooleanOp) -> Result<()>[src]

pub fn combine_br(&mut self, b: &BoxI, op: BooleanOp) -> Result<()>[src]

pub fn combine_bb(&mut self, b: &BoxI, b2: &BoxI, op: BooleanOp) -> Result<()>[src]

pub fn translate(&mut self, p: &PointI) -> Result<()>[src]

pub fn translate_and_clip(&mut self, p: &PointI, clip: &BoxI) -> Result<()>[src]

pub fn intersect_and_clip(&mut self, region: &Region, clip: &BoxI) -> Result<()>[src]

pub fn hit_test(&mut self, p: &PointI) -> Result<()>[src]

pub fn hit_test_box(&mut self, b: &BoxI) -> Result<()>[src]

Trait Implementations

impl ArrayType for Region[src]

impl Geometry for Region[src]

impl Drop for Region[src]

impl PartialEq<Region> for Region[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl AsRef<[BoxI]> for Region[src]

impl Clone for Region[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Region[src]

impl Borrow<[BoxI]> for Region[src]

Auto Trait Implementations

impl !Send for Region

impl !Sync for Region

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.