pub struct InkConfig {
pub colors: Vec<String>,
pub width: f32,
}Expand description
Ink drawing configuration.
Fields§
§colors: Vec<String>Pen color presets as hex strings (RGBA or RGB). CycleInkColor steps through these.
Accepts a single string (color = "#FF0000") or an array (colors = ["#FF0000", "#0000FF"]).
width: f32Stroke width in logical pixels.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InkConfig
impl<'de> Deserialize<'de> for InkConfig
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
Auto Trait Implementations§
impl Freeze for InkConfig
impl RefUnwindSafe for InkConfig
impl Send for InkConfig
impl Sync for InkConfig
impl Unpin for InkConfig
impl UnsafeUnpin for InkConfig
impl UnwindSafe for InkConfig
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