FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    indent

    fn indent(self: &Self) -> f64
    

    The indent per level.

    Source

    set_indent

    fn set_indent(self: &Self, value: f64)
    

    Source

    left

    fn left(self: &Self) -> bool
    

    Whether the left side of the margin is indented.

    Source

    set_left

    fn set_left(self: &Self, value: bool)
    

    Source

    top

    fn top(self: &Self) -> bool
    

    Whether the top side of the margin is indented.

    Source

    set_top

    fn set_top(self: &Self, value: bool)
    

    Source

    right

    fn right(self: &Self) -> bool
    

    Whether the right side of the margin is indented.

    Source

    set_right

    fn set_right(self: &Self, value: bool)
    

    Source

    bottom

    fn bottom(self: &Self) -> bool
    

    Whether the bottom side of the margin is indented.

    Source

    set_bottom

    fn set_bottom(self: &Self, value: bool)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.