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.
Members
newmargin_thicknessset_margin_thicknessborder_thicknessset_border_thicknesspadding_thicknessset_padding_thicknesswidthheightwidth_constraintheight_constrainthorizontal_alignmentset_horizontal_alignmentvertical_alignmentset_vertical_alignmenthas_paddinghas_bordercontrol_property_changed
new
fn new(control: &Visual) -> Rc<Self>
margin_thickness
fn margin_thickness(self: &Self) -> Thickness
set_margin_thickness
fn set_margin_thickness(self: &Self, value: Thickness)
border_thickness
fn border_thickness(self: &Self) -> Thickness
set_border_thickness
fn set_border_thickness(self: &Self, value: Thickness)
padding_thickness
fn padding_thickness(self: &Self) -> Thickness
set_padding_thickness
fn set_padding_thickness(self: &Self, value: Thickness)
width
fn width(self: &Self) -> f64
height
fn height(self: &Self) -> f64
width_constraint
fn width_constraint(self: &Self) -> Option<String>
height_constraint
fn height_constraint(self: &Self) -> Option<String>
horizontal_alignment
fn horizontal_alignment(self: &Self) -> HorizontalAlignment
set_horizontal_alignment
fn set_horizontal_alignment(self: &Self, value: HorizontalAlignment)
vertical_alignment
fn vertical_alignment(self: &Self) -> VerticalAlignment
set_vertical_alignment
fn set_vertical_alignment(self: &Self, value: VerticalAlignment)
has_padding
fn has_padding(self: &Self) -> bool
has_border
fn has_border(self: &Self) -> bool
control_property_changed
fn control_property_changed(self: &Self, e: &FerroPropertyChangedEventArgs<'_>)
Follows a change of a property of the control.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelPartialEqINotifyPropertyChangedMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.