Enum i_slint_core::items::LayoutAlignment
source · #[repr(C)]
pub enum LayoutAlignment {
Stretch,
Center,
Start,
End,
SpaceBetween,
SpaceAround,
}Expand description
Enum representing the alignment property of a
HorizontalBox, a VerticalBox,
a HorizontalLayout, or VerticalLayout.
Variants§
Stretch
Use the minimum size of all elements in a layout, distribute remaining space
based on *-stretch among all elements.
Center
Use the preferred size for all elements, distribute remaining space evenly before the first and after the last element.
Start
Use the preferred size for all elements, put remaining space after the last element.
End
Use the preferred size for all elements, put remaining space before the first element.
SpaceBetween
Use the preferred size for all elements, distribute remaining space evenly between elements.
SpaceAround
Use the preferred size for all elements, distribute remaining space evenly before the first element, after the last element and between elements.
Trait Implementations§
source§impl Clone for LayoutAlignment
impl Clone for LayoutAlignment
source§fn clone(&self) -> LayoutAlignment
fn clone(&self) -> LayoutAlignment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for LayoutAlignment
impl Debug for LayoutAlignment
source§impl Default for LayoutAlignment
impl Default for LayoutAlignment
source§impl Display for LayoutAlignment
impl Display for LayoutAlignment
source§impl FromStr for LayoutAlignment
impl FromStr for LayoutAlignment
source§impl Hash for LayoutAlignment
impl Hash for LayoutAlignment
source§impl PartialEq<LayoutAlignment> for LayoutAlignment
impl PartialEq<LayoutAlignment> for LayoutAlignment
source§fn eq(&self, other: &LayoutAlignment) -> bool
fn eq(&self, other: &LayoutAlignment) -> bool
self and other values to be equal, and is used
by ==.