#[repr(i32)]pub enum WrapPanelItemsAlignment {
Start = 0,
Center = 1,
End = 2,
Justify = 3,
Stretch = 4,
StretchAll = 5,
}Expand description
Defines how items are aligned and spaced in a WrapPanel.
Variants§
Start = 0
Items are laid out so the first one in each column/row touches the top/left of the panel.
Center = 1
Items are laid out so that each column/row is centred vertically/ horizontally within the panel.
End = 2
Items are laid out so the last one in each column/row touches the bottom/right of the panel.
Justify = 3
Items are laid out with equal spacing between them within each column/row.
Stretch = 4
Items are stretched evenly to fill the entire height/width of each column/row (the last line excluded).
StretchAll = 5
Items are stretched evenly to fill the entire height/width of each column/row (the last line included).
Trait Implementations§
Source§impl Clone for WrapPanelItemsAlignment
impl Clone for WrapPanelItemsAlignment
impl Copy for WrapPanelItemsAlignment
Source§impl Debug for WrapPanelItemsAlignment
impl Debug for WrapPanelItemsAlignment
Source§impl Default for WrapPanelItemsAlignment
impl Default for WrapPanelItemsAlignment
impl Eq for WrapPanelItemsAlignment
Source§impl Hash for WrapPanelItemsAlignment
impl Hash for WrapPanelItemsAlignment
Source§impl MarkupTyped for WrapPanelItemsAlignment
impl MarkupTyped for WrapPanelItemsAlignment
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for WrapPanelItemsAlignment
impl PartialEq for WrapPanelItemsAlignment
impl StructuralPartialEq for WrapPanelItemsAlignment
Auto Trait Implementations§
impl Freeze for WrapPanelItemsAlignment
impl RefUnwindSafe for WrapPanelItemsAlignment
impl Send for WrapPanelItemsAlignment
impl Sync for WrapPanelItemsAlignment
impl Unpin for WrapPanelItemsAlignment
impl UnsafeUnpin for WrapPanelItemsAlignment
impl UnwindSafe for WrapPanelItemsAlignment
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