InkPresenterRuler
struct · ferroui-controls-inking · v0.5.0
struct InkPresenterRuler
A movable straightedge. Its transform uses the local top-left corner.
Members
kindis_visibleset_is_visibletransformset_transformlengthset_lengthwidthset_widthare_tick_marks_visibleset_are_tick_marks_visibleis_compass_visibleset_is_compass_visiblebackground_colorset_background_colorforeground_colorset_foreground_colorangle
kind
fn kind(self: &Self) -> InkPresenterStencilKind
is_visible
fn is_visible(self: &Self) -> bool
set_is_visible
fn set_is_visible(self: &Self, value: bool)
transform
fn transform(self: &Self) -> Matrix
set_transform
fn set_transform(self: &Self, value: Matrix) -> Result<(), InkError>
length
fn length(self: &Self) -> f64
set_length
fn set_length(self: &Self, value: f64) -> Result<(), InkError>
width
fn width(self: &Self) -> f64
set_width
fn set_width(self: &Self, value: f64) -> Result<(), InkError>
are_tick_marks_visible
fn are_tick_marks_visible(self: &Self) -> bool
set_are_tick_marks_visible
fn set_are_tick_marks_visible(self: &Self, value: bool)
is_compass_visible
fn is_compass_visible(self: &Self) -> bool
set_is_compass_visible
fn set_is_compass_visible(self: &Self, value: bool)
background_color
fn background_color(self: &Self) -> Color
set_background_color
fn set_background_color(self: &Self, value: Color)
foreground_color
fn foreground_color(self: &Self) -> Color
set_foreground_color
fn set_foreground_color(self: &Self, value: Color)
angle
fn angle(self: &Self) -> f64
Clockwise orientation of the ruler's horizontal edge, in degrees.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherIUnknownImplMarkupTypedIInkPresenterStencilPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.