pub struct ControlLayoutViewModel { /* private fields */ }Expand description
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.
Implementations§
Source§impl ControlLayoutViewModel
impl ControlLayoutViewModel
pub fn new(control: &Visual) -> Rc<Self>
pub fn margin_thickness(&self) -> Thickness
pub fn set_margin_thickness(&self, value: Thickness)
pub fn border_thickness(&self) -> Thickness
pub fn set_border_thickness(&self, value: Thickness)
pub fn padding_thickness(&self) -> Thickness
pub fn set_padding_thickness(&self, value: Thickness)
pub fn width(&self) -> f64
pub fn height(&self) -> f64
pub fn width_constraint(&self) -> Option<String>
pub fn height_constraint(&self) -> Option<String>
pub fn horizontal_alignment(&self) -> HorizontalAlignment
pub fn set_horizontal_alignment(&self, value: HorizontalAlignment)
pub fn vertical_alignment(&self) -> VerticalAlignment
pub fn set_vertical_alignment(&self, value: VerticalAlignment)
pub fn has_padding(&self) -> bool
pub fn has_border(&self) -> bool
Sourcepub fn control_property_changed(&self, e: &FerroPropertyChangedEventArgs<'_>)
pub fn control_property_changed(&self, e: &FerroPropertyChangedEventArgs<'_>)
Follows a change of a property of the control.
Trait Implementations§
Source§impl INotifyPropertyChanged for ControlLayoutViewModel
impl INotifyPropertyChanged for ControlLayoutViewModel
Source§fn property_changed(&self) -> &Event<str>
fn property_changed(&self) -> &Event<str>
The event raised when a property value changes.
Source§fn as_notify_property_changing(&self) -> Option<&dyn INotifyPropertyChanging>
fn as_notify_property_changing(&self) -> Option<&dyn INotifyPropertyChanging>
The object as
INotifyPropertyChanging, when it also raises the event of a property
that is about to change; None by default. Read moreSource§impl MarkupTyped for ControlLayoutViewModel
impl MarkupTyped for ControlLayoutViewModel
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !Freeze for ControlLayoutViewModel
impl !RefUnwindSafe for ControlLayoutViewModel
impl !Send for ControlLayoutViewModel
impl !Sync for ControlLayoutViewModel
impl !UnwindSafe for ControlLayoutViewModel
impl Unpin for ControlLayoutViewModel
impl UnsafeUnpin for ControlLayoutViewModel
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more