InkDrawingAttributes
struct · ferroui-controls-inking · v0.5.0
struct InkDrawingAttributes
A value snapshot. Changing presenter defaults never mutates completed ink.
size describes the nib at full pressure, in device-independent pixels.
Members
colorsizepen_tippen_tip_transformdraw_as_highlighterignore_pressurefit_to_curveignore_tiltkindpencil_opacitynewcreate_for_pencilvalidate
color
color: ferroui_base::media::Color
size
size: ferroui_base::Size
pen_tip
pen_tip: PenTipShape
pen_tip_transform
pen_tip_transform: ferroui_base::Matrix
draw_as_highlighter
draw_as_highlighter: bool
ignore_pressure
ignore_pressure: bool
fit_to_curve
fit_to_curve: bool
ignore_tilt
ignore_tilt: bool
kind
kind: InkDrawingAttributesKind
pencil_opacity
pencil_opacity: f64
new
fn new() -> Self
create_for_pencil
fn create_for_pencil() -> Self
validate
fn validate(self: &Self) -> Result<(), InkError>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherIUnknownImplMarkupTypedCloneCopyDebugStructuralPartialEqPartialEqDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.