pub struct InkConfig {
pub colors: Vec<String>,
pub width: f32,
pub highlighter_colors: Vec<String>,
pub highlighter_width: f32,
}Expand description
Ink drawing configuration.
Fields§
§colors: Vec<String>Pen color presets as hex strings (RGB or RGBA). CycleInkColor steps through these.
Accepts a single string (color = "#FF0000") or an array (colors = ["#FF0000", "#0000FF"]).
width: f32Default pen stroke width in logical pixels.
highlighter_colors: Vec<String>Highlighter color presets as RGBA hex strings (alpha controls opacity). Defaults to semi-transparent yellow, green, cyan, and pink.
highlighter_width: f32Default highlighter stroke 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