MarginMultiplierConverter
struct · ferroui-controls · v0.5.0
struct MarginMultiplierConverter
Converts a depth (a number of levels, or a thickness) to a margin by multiplying it with an indent on the chosen sides.
Members
new
fn new() -> Self
indent
fn indent(self: &Self) -> f64
The indent per level.
set_indent
fn set_indent(self: &Self, value: f64)
left
fn left(self: &Self) -> bool
Whether the left side of the margin is indented.
set_left
fn set_left(self: &Self, value: bool)
top
fn top(self: &Self) -> bool
Whether the top side of the margin is indented.
set_top
fn set_top(self: &Self, value: bool)
right
fn right(self: &Self) -> bool
Whether the right side of the margin is indented.
set_right
fn set_right(self: &Self, value: bool)
bottom
fn bottom(self: &Self) -> bool
Whether the bottom side of the margin is indented.
set_bottom
fn set_bottom(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherDefaultIValueConverterPartialEqMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.