pub struct InkStroke {
pub points: Vec<(f64, f64, f32)>,
pub color: Rgba,
pub width: f64,
pub highlighter: bool,
}Expand description
One ink stroke (Draw tab): points in slide coordinates with pressure.
Fields§
§points: Vec<(f64, f64, f32)>§color: Rgba§width: f64§highlighter: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for InkStroke
impl<'de> Deserialize<'de> for InkStroke
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
impl StructuralPartialEq for InkStroke
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