pub struct InkStroke {
pub points: Vec<(f32, f32)>,
pub color: [u8; 4],
pub width: f32,
pub finished: bool,
}Expand description
A single ink stroke drawn on a slide.
Fields§
§points: Vec<(f32, f32)>Points along the stroke (normalized 0..1 coordinates).
color: [u8; 4]Stroke color as RGBA — snapshotted from ActivePen at stroke creation.
width: f32Stroke width in logical pixels — snapshotted from ActivePen at stroke creation.
finished: boolWhether this stroke is complete (pen lifted).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InkStroke
impl RefUnwindSafe for InkStroke
impl Send for InkStroke
impl Sync for InkStroke
impl Unpin for InkStroke
impl UnsafeUnpin for InkStroke
impl UnwindSafe for InkStroke
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