FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ControlLayoutViewModel

    struct · ferroui-diagnostics · v0.5.0

    struct ControlLayoutViewModel
    

    The layout of a control as the layout explorer shows it: the margin, the border and the padding (which edit the control), the size and its constraints, and the alignments.

    View source

    Members

    new

    fn new(control: &Visual) -> Rc<Self>
    

    Source

    margin_thickness

    fn margin_thickness(self: &Self) -> Thickness
    

    Source

    set_margin_thickness

    fn set_margin_thickness(self: &Self, value: Thickness)
    

    Source

    border_thickness

    fn border_thickness(self: &Self) -> Thickness
    

    Source

    set_border_thickness

    fn set_border_thickness(self: &Self, value: Thickness)
    

    Source

    padding_thickness

    fn padding_thickness(self: &Self) -> Thickness
    

    Source

    set_padding_thickness

    fn set_padding_thickness(self: &Self, value: Thickness)
    

    Source

    width

    fn width(self: &Self) -> f64
    

    Source

    height

    fn height(self: &Self) -> f64
    

    Source

    width_constraint

    fn width_constraint(self: &Self) -> Option<String>
    

    Source

    height_constraint

    fn height_constraint(self: &Self) -> Option<String>
    

    Source

    horizontal_alignment

    fn horizontal_alignment(self: &Self) -> HorizontalAlignment
    

    Source

    set_horizontal_alignment

    fn set_horizontal_alignment(self: &Self, value: HorizontalAlignment)
    

    Source

    vertical_alignment

    fn vertical_alignment(self: &Self) -> VerticalAlignment
    

    Source

    set_vertical_alignment

    fn set_vertical_alignment(self: &Self, value: VerticalAlignment)
    

    Source

    has_padding

    fn has_padding(self: &Self) -> bool
    

    Source

    has_border

    fn has_border(self: &Self) -> bool
    

    Source

    control_property_changed

    fn control_property_changed(self: &Self, e: &FerroPropertyChangedEventArgs<'_>)
    

    Follows a change of a property of the control.

    Source

    Trait implementations

    Availability

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