pub struct FreeformInkStroke {
pub ink_type: String,
pub ink_identifier: String,
pub color: Option<FreeformColor>,
pub transform: FreeformTransform,
pub point_role: FreeformInkPointRole,
pub points: Vec<FreeformInkPoint>,
pub visible_ranges: Option<Vec<FreeformInkRange>>,
pub random_seed: Option<u32>,
pub raw_data: Vec<u8>,
}Expand description
One freehand stroke from PencilKit or native item storage.
Fields§
§ink_type: StringNormalized ink family.
ink_identifier: StringExact archived ink identifier.
color: Option<FreeformColor>Ink color when decoded.
transform: FreeformTransformStroke-local to canvas transform.
point_role: FreeformInkPointRoleMeaning of entries in points.
points: Vec<FreeformInkPoint>Ordered point/control records.
visible_ranges: Option<Vec<FreeformInkRange>>Visible path intervals after applying a PencilKit mask.
random_seed: Option<u32>Seed used by randomized ink textures.
raw_data: Vec<u8>Original stroke record for unsupported channels or future replay.
Trait Implementations§
Source§impl Clone for FreeformInkStroke
impl Clone for FreeformInkStroke
Source§fn clone(&self) -> FreeformInkStroke
fn clone(&self) -> FreeformInkStroke
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FreeformInkStroke
impl Debug for FreeformInkStroke
Source§impl<'de> Deserialize<'de> for FreeformInkStroke
impl<'de> Deserialize<'de> for FreeformInkStroke
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FreeformInkStroke
impl PartialEq for FreeformInkStroke
Source§impl Serialize for FreeformInkStroke
impl Serialize for FreeformInkStroke
impl StructuralPartialEq for FreeformInkStroke
Auto Trait Implementations§
impl Freeze for FreeformInkStroke
impl RefUnwindSafe for FreeformInkStroke
impl Send for FreeformInkStroke
impl Sync for FreeformInkStroke
impl Unpin for FreeformInkStroke
impl UnsafeUnpin for FreeformInkStroke
impl UnwindSafe for FreeformInkStroke
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