pub struct FlexOptions {
pub direction: Axis,
pub main_size: MainAxisSize,
pub main_align: MainAxisAlignment,
pub cross_align: CrossAxisAlignment,
}
Expand description
Options for a flex arranger.
Fields§
§direction: Axis
The direction to use as the main axis.
main_size: MainAxisSize
How much space should be occupied in the main axis.
main_align: MainAxisAlignment
How the group members should be placed along the main axis.
cross_align: CrossAxisAlignment
How the group members should be placed along the cross axis.
Implementations§
Source§impl FlexOptions
impl FlexOptions
Sourcepub fn column(
main_size: MainAxisSize,
main_align: MainAxisAlignment,
cross_align: CrossAxisAlignment,
) -> Self
pub fn column( main_size: MainAxisSize, main_align: MainAxisAlignment, cross_align: CrossAxisAlignment, ) -> Self
Create FlexOptions for a column.
Sourcepub fn row(
main_size: MainAxisSize,
main_align: MainAxisAlignment,
cross_align: CrossAxisAlignment,
) -> Self
pub fn row( main_size: MainAxisSize, main_align: MainAxisAlignment, cross_align: CrossAxisAlignment, ) -> Self
Create FlexOptions for a row.
Trait Implementations§
Source§impl Debug for FlexOptions
impl Debug for FlexOptions
Source§impl Default for FlexOptions
impl Default for FlexOptions
Source§fn default() -> FlexOptions
fn default() -> FlexOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FlexOptions
impl RefUnwindSafe for FlexOptions
impl Send for FlexOptions
impl Sync for FlexOptions
impl Unpin for FlexOptions
impl UnwindSafe for FlexOptions
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