DockPanel
struct · ferroui-controls · v0.5.0
struct DockPanel
A panel which arranges its children at the top, bottom, left, right or center.
Members
TYPEto_refdock_propertylast_child_fill_propertyhorizontal_spacing_propertyvertical_spacing_propertyconstructnewget_dockset_docklast_child_fillset_last_child_fillhorizontal_spacingset_horizontal_spacingvertical_spacingset_vertical_spacing
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DockPanel>
Returns a strong reference to this object.
dock_property
fn dock_property() -> &'static AttachedProperty<Dock>
Defines the Dock attached property.
last_child_fill_property
fn last_child_fill_property() -> &'static StyledProperty<bool>
Defines the LastChildFill property.
horizontal_spacing_property
fn horizontal_spacing_property() -> &'static StyledProperty<f64>
Defines the HorizontalSpacing property.
vertical_spacing_property
fn vertical_spacing_property() -> &'static StyledProperty<f64>
Defines the VerticalSpacing property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
get_dock
fn get_dock(control: &Control) -> Dock
Gets the value of the Dock attached property on the specified
control.
set_dock
fn set_dock(control: &Control, value: Dock)
Sets the value of the Dock attached property on the specified
control.
last_child_fill
fn last_child_fill(self: &Self) -> bool
Whether the last child of the panel fills the remaining space in the panel.
set_last_child_fill
fn set_last_child_fill(self: &Self, value: bool)
horizontal_spacing
fn horizontal_spacing(self: &Self) -> f64
The horizontal distance between the child objects.
set_horizontal_spacing
fn set_horizontal_spacing(self: &Self, value: f64)
vertical_spacing
fn vertical_spacing(self: &Self) -> f64
The vertical distance between the child objects.
set_vertical_spacing
fn set_vertical_spacing(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtPanelImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<DockPanel>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplInteractiveImplInputElementImplControlImplPanelImplFerroObjectImplLayoutableImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.