pub struct InkDrawingAttributes {
pub color: Color,
pub size: Size,
pub pen_tip: PenTipShape,
pub pen_tip_transform: Matrix,
pub draw_as_highlighter: bool,
pub ignore_pressure: bool,
pub fit_to_curve: bool,
pub ignore_tilt: bool,
pub kind: InkDrawingAttributesKind,
pub pencil_opacity: f64,
}Expand description
A value snapshot. Changing presenter defaults never mutates completed ink.
size describes the nib at full pressure, in device-independent pixels.
Fields§
§color: Color§size: Size§pen_tip: PenTipShape§pen_tip_transform: Matrix§draw_as_highlighter: bool§ignore_pressure: bool§fit_to_curve: bool§ignore_tilt: bool§kind: InkDrawingAttributesKind§pencil_opacity: f64Implementations§
Trait Implementations§
Source§impl Clone for InkDrawingAttributes
impl Clone for InkDrawingAttributes
impl Copy for InkDrawingAttributes
Source§impl Debug for InkDrawingAttributes
impl Debug for InkDrawingAttributes
Source§impl Default for InkDrawingAttributes
impl Default for InkDrawingAttributes
Source§impl MarkupTyped for InkDrawingAttributes
impl MarkupTyped for InkDrawingAttributes
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for InkDrawingAttributes
impl PartialEq for InkDrawingAttributes
impl StructuralPartialEq for InkDrawingAttributes
Auto Trait Implementations§
impl Freeze for InkDrawingAttributes
impl RefUnwindSafe for InkDrawingAttributes
impl Send for InkDrawingAttributes
impl Sync for InkDrawingAttributes
impl Unpin for InkDrawingAttributes
impl UnsafeUnpin for InkDrawingAttributes
impl UnwindSafe for InkDrawingAttributes
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more