#[repr(C, packed(1))]pub struct SdfMaskData {
pub transform: [f32; 6],
pub shape_kind: u32,
pub flags: u32,
pub p0: [f32; 4],
pub p1: [f32; 4],
}Fields§
§transform: [f32; 6]A 2x3 column-major matrix, transform a view position to local position.
shape_kind: u321=Rect, 2=RoundRect, 3=Circle.
flags: u32Bit flags for fill/stroke/inverse/fill-rule.
p0: [f32; 4]Generic parameters for sdf shape data.
p1: [f32; 4]Generic parameters for sdf shape data.
Trait Implementations§
Source§impl AsBytes for SdfMaskData
impl AsBytes for SdfMaskData
Source§impl Clone for SdfMaskData
impl Clone for SdfMaskData
Source§fn clone(&self) -> SdfMaskData
fn clone(&self) -> SdfMaskData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SdfMaskData
impl Debug for SdfMaskData
Source§impl PartialEq for SdfMaskData
impl PartialEq for SdfMaskData
impl Copy for SdfMaskData
impl StructuralPartialEq for SdfMaskData
Auto Trait Implementations§
impl Freeze for SdfMaskData
impl RefUnwindSafe for SdfMaskData
impl Send for SdfMaskData
impl Sync for SdfMaskData
impl Unpin for SdfMaskData
impl UnsafeUnpin for SdfMaskData
impl UnwindSafe for SdfMaskData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more