pub struct ActivePen {
pub color: [u8; 4],
pub width: f32,
}Expand description
The currently selected pen settings used to initialise the next stroke.
These are runtime-only; they are not persisted. Changing them never mutates
already-existing strokes — each stroke snapshots ActivePen at creation time.
Fields§
§color: [u8; 4]Pen color as RGBA (alpha included for highlighter / semitransparent pens).
width: f32Stroke width in logical pixels.
Implementations§
Source§impl ActivePen
impl ActivePen
Sourcepub fn highlighter_default() -> Self
pub fn highlighter_default() -> Self
Default highlighter settings: semi-transparent yellow at a wider width.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ActivePen
impl RefUnwindSafe for ActivePen
impl Send for ActivePen
impl Sync for ActivePen
impl Unpin for ActivePen
impl UnsafeUnpin for ActivePen
impl UnwindSafe for ActivePen
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