pub struct Draw {
pub display_id: DisplayId,
pub path: Vec<[f64; 2]>,
pub style: Option<StrokeStyle>,
pub ttl_ms: Option<u64>,
}Expand description
Draw a freehand path.
Fields§
§display_id: DisplayIdThe display the path is drawn on.
path: Vec<[f64; 2]>Ordered vertices in logical points, each as [x, y].
style: Option<StrokeStyle>Stroke appearance. Daemon defaults apply when absent.
ttl_ms: Option<u64>How long the path should live, in milliseconds.
Omit to draw until cleared, invalidated, or the session ends.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Draw
impl<'de> Deserialize<'de> for Draw
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 Draw
Auto Trait Implementations§
impl Freeze for Draw
impl RefUnwindSafe for Draw
impl Send for Draw
impl Sync for Draw
impl Unpin for Draw
impl UnsafeUnpin for Draw
impl UnwindSafe for Draw
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