pub struct LinearLayoutSettings {
pub orientation: Orientation,
pub spacing: Spacing,
pub item_align: ItemAlignment,
pub fill_equal: bool,
pub padding: f32,
}Fields§
§orientation: OrientationHorizontal or vertical orientation of the current layout
spacing: SpacingSpecifies the extra space between elements along the primary axis
item_align: ItemAlignmentSpecifies alignment of items perpendicular to the primary axis
fill_equal: boolConstrain items to have equal size along primary axis, and fill container
padding: f32Minimum spacing between items
Implementations§
Source§impl LinearLayoutSettings
impl LinearLayoutSettings
Sourcepub fn new(orientation: Orientation) -> Self
pub fn new(orientation: Orientation) -> Self
Creates a default LinearLayoutSettings, aligned to the
end of the parent container
Trait Implementations§
Source§impl Clone for LinearLayoutSettings
impl Clone for LinearLayoutSettings
Source§fn clone(&self) -> LinearLayoutSettings
fn clone(&self) -> LinearLayoutSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinearLayoutSettings
impl Debug for LinearLayoutSettings
impl Copy for LinearLayoutSettings
Auto Trait Implementations§
impl Freeze for LinearLayoutSettings
impl RefUnwindSafe for LinearLayoutSettings
impl Send for LinearLayoutSettings
impl Sync for LinearLayoutSettings
impl Unpin for LinearLayoutSettings
impl UnwindSafe for LinearLayoutSettings
Blanket Implementations§
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