Type Alias Region

pub type Region = Handle<SkRegion>;

Aliased Type§

struct Region(/* private fields */);

Implementations

§

impl Handle<SkRegion>

pub fn new() -> Handle<SkRegion>

pub fn from_rect(rect: impl AsRef<IRect>) -> Handle<SkRegion>

pub fn set(&mut self, src: &Handle<SkRegion>) -> bool

pub fn swap(&mut self, other: &mut Handle<SkRegion>)

pub fn is_empty(&self) -> bool

pub fn is_rect(&self) -> bool

pub fn is_complex(&self) -> bool

pub fn bounds(&self) -> &IRect

pub fn compute_region_complexity(&self) -> usize

pub fn get_boundary_path(&self, path: &mut Handle<SkPath>) -> bool

pub fn set_empty(&mut self) -> bool

pub fn set_rect(&mut self, rect: impl AsRef<IRect>) -> bool

pub fn set_rects(&mut self, rects: &[IRect]) -> bool

pub fn set_region(&mut self, region: &Handle<SkRegion>) -> bool

pub fn set_path( &mut self, path: &Handle<SkPath>, clip: &Handle<SkRegion>, ) -> bool

pub fn intersects_rect(&self, rect: impl AsRef<IRect>) -> bool

pub fn intersects_region(&self, other: &Handle<SkRegion>) -> bool

pub fn contains_point(&self, point: IPoint) -> bool

pub fn contains_rect(&self, rect: impl AsRef<IRect>) -> bool

pub fn contains_region(&self, other: &Handle<SkRegion>) -> bool

pub fn quick_contains(&self, r: impl AsRef<IRect>) -> bool

pub fn quick_reject_rect(&self, rect: impl AsRef<IRect>) -> bool

pub fn quick_reject_region(&self, rgn: &Handle<SkRegion>) -> bool

pub fn translate(&mut self, d: impl Into<IPoint>)

pub fn translated(&self, d: impl Into<IPoint>) -> Handle<SkRegion>

pub fn op_rect(&mut self, rect: impl AsRef<IRect>, op: SkRegion_Op) -> bool

pub fn op_region(&mut self, region: &Handle<SkRegion>, op: SkRegion_Op) -> bool

pub fn op_rect_region( &mut self, rect: impl AsRef<IRect>, region: &Handle<SkRegion>, op: SkRegion_Op, ) -> bool

pub fn op_region_rect( &mut self, region: &Handle<SkRegion>, rect: impl AsRef<IRect>, op: SkRegion_Op, ) -> bool

pub fn write_to_memory(&self, buf: &mut Vec<u8>)

pub fn read_from_memory(&mut self, buf: &[u8]) -> usize

Trait Implementations

§

impl<N> AsRef<Handle<N>> for Handle<N>
where N: NativeDrop,

§

fn as_ref(&self) -> &Handle<N>

Converts this type into a shared reference of the (usually inferred) input type.
§

impl<N> Clone for Handle<N>
where N: NativeDrop + NativeClone,

§

fn clone(&self) -> Handle<N>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Combine<Handle<SkRegion>, Handle<SkRegion>> for Handle<SkRegion>

§

fn combine( a: &Handle<SkRegion>, op: SkRegion_Op, b: &Handle<SkRegion>, ) -> Handle<SkRegion>

§

fn difference(a: &A, b: &B) -> Self

§

fn intersect(a: &A, b: &B) -> Self

§

fn xor(a: &A, b: &B) -> Self

§

fn union(a: &A, b: &B) -> Self

§

fn reverse_difference(a: &A, b: &B) -> Self

§

fn replace(a: &A, b: &B) -> Self

§

impl Combine<Handle<SkRegion>, IRect> for Handle<SkRegion>

§

fn combine( region: &Handle<SkRegion>, op: SkRegion_Op, rect: &IRect, ) -> Handle<SkRegion>

§

fn difference(a: &A, b: &B) -> Self

§

fn intersect(a: &A, b: &B) -> Self

§

fn xor(a: &A, b: &B) -> Self

§

fn union(a: &A, b: &B) -> Self

§

fn reverse_difference(a: &A, b: &B) -> Self

§

fn replace(a: &A, b: &B) -> Self

§

impl Combine<IRect, Handle<SkRegion>> for Handle<SkRegion>

§

fn combine( rect: &IRect, op: SkRegion_Op, region: &Handle<SkRegion>, ) -> Handle<SkRegion>

§

fn difference(a: &A, b: &B) -> Self

§

fn intersect(a: &A, b: &B) -> Self

§

fn xor(a: &A, b: &B) -> Self

§

fn union(a: &A, b: &B) -> Self

§

fn reverse_difference(a: &A, b: &B) -> Self

§

fn replace(a: &A, b: &B) -> Self

§

impl Contains<&Handle<SkRegion>> for Handle<SkRegion>

§

fn contains(&self, other: &Handle<SkRegion>) -> bool

§

impl Contains<&IRect> for Handle<SkRegion>

§

fn contains(&self, rect: &IRect) -> bool

§

impl Contains<IPoint> for Handle<SkRegion>

§

fn contains(&self, point: IPoint) -> bool

§

impl Debug for Handle<SkRegion>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<N> Drop for Handle<N>
where N: NativeDrop,

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

impl<N> Hash for Handle<N>
where N: NativeDrop + NativeHash,

§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Intersects<Handle<SkRegion>> for Handle<SkRegion>

§

fn intersects(&self, other: &Handle<SkRegion>) -> bool

§

impl Intersects<IRect> for Handle<SkRegion>

§

fn intersects(&self, rect: &IRect) -> bool

§

impl<N> PartialEq for Handle<N>
where N: NativeDrop + NativePartialEq,

§

fn eq(&self, rhs: &Handle<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl QuickReject<Handle<SkRegion>> for Handle<SkRegion>

§

fn quick_reject(&self, other: &Handle<SkRegion>) -> bool

§

impl QuickReject<IRect> for Handle<SkRegion>

§

fn quick_reject(&self, rect: &IRect) -> bool

§

impl<N> RefWrapper<N> for Handle<N>
where N: NativeDrop,

§

fn wrap_ref(native: &N) -> &Handle<N>

§

fn wrap_mut(native: &mut N) -> &mut Handle<N>

§

fn inner(&self) -> &N

§

fn inner_mut(&mut self) -> &mut N

§

impl<N> ValueWrapper<N> for Handle<N>
where N: NativeDrop,

§

fn wrap(native: N) -> Handle<N>
where N: NativeDrop,

§

fn unwrap(self) -> N

§

fn inner(&self) -> &N

§

fn inner_mut(&mut self) -> &mut N

§

impl Send for Handle<SkRegion>

§

impl Sync for Handle<SkRegion>