pub struct LayoutStyle { /* private fields */ }Expand description
Compact layout-affecting properties packed into 112 bytes using bit-packed enums, tagged lengths, and f32::NAN sentinels.
Implementations§
Source§impl LayoutStyle
Packed enum, tagged length, and sentinel offset accessors for LayoutStyle.
impl LayoutStyle
Packed enum, tagged length, and sentinel offset accessors for LayoutStyle.
Sourcepub fn get_display(&self) -> Display
pub fn get_display(&self) -> Display
Sourcepub fn set_display(&mut self, value: Display) -> &mut Self
pub fn set_display(&mut self, value: Display) -> &mut Self
Sourcepub fn get_position(&self) -> Position
pub fn get_position(&self) -> Position
Sourcepub fn set_position(&mut self, value: Position) -> &mut Self
pub fn set_position(&mut self, value: Position) -> &mut Self
Sourcepub fn get_flex_direction(&self) -> FlexDirection
pub fn get_flex_direction(&self) -> FlexDirection
Sourcepub fn set_flex_direction(&mut self, value: FlexDirection) -> &mut Self
pub fn set_flex_direction(&mut self, value: FlexDirection) -> &mut Self
Sourcepub fn get_flex_wrap(&self) -> FlexWrap
pub fn get_flex_wrap(&self) -> FlexWrap
Sourcepub fn set_flex_wrap(&mut self, value: FlexWrap) -> &mut Self
pub fn set_flex_wrap(&mut self, value: FlexWrap) -> &mut Self
Sourcepub fn get_justify_content(&self) -> JustifyContent
pub fn get_justify_content(&self) -> JustifyContent
Sourcepub fn set_justify_content(&mut self, value: JustifyContent) -> &mut Self
pub fn set_justify_content(&mut self, value: JustifyContent) -> &mut Self
Sourcepub fn get_align_items(&self) -> AlignItems
pub fn get_align_items(&self) -> AlignItems
Sourcepub fn set_align_items(&mut self, value: AlignItems) -> &mut Self
pub fn set_align_items(&mut self, value: AlignItems) -> &mut Self
Sourcepub fn get_align_self(&self) -> AlignSelf
pub fn get_align_self(&self) -> AlignSelf
Sourcepub fn set_align_self(&mut self, value: AlignSelf) -> &mut Self
pub fn set_align_self(&mut self, value: AlignSelf) -> &mut Self
Sourcepub fn get_overflow(&self) -> Overflow
pub fn get_overflow(&self) -> Overflow
Sourcepub fn set_overflow(&mut self, value: Overflow) -> &mut Self
pub fn set_overflow(&mut self, value: Overflow) -> &mut Self
Sourcepub fn get_flex_basis(&self) -> Length
pub fn get_flex_basis(&self) -> Length
Sourcepub fn set_flex_basis(&mut self, value: Length) -> &mut Self
pub fn set_flex_basis(&mut self, value: Length) -> &mut Self
Sourcepub fn get_height(&self) -> Length
pub fn get_height(&self) -> Length
Sourcepub fn set_height(&mut self, value: Length) -> &mut Self
pub fn set_height(&mut self, value: Length) -> &mut Self
Sourcepub fn get_min_width(&self) -> Length
pub fn get_min_width(&self) -> Length
Sourcepub fn set_min_width(&mut self, value: Length) -> &mut Self
pub fn set_min_width(&mut self, value: Length) -> &mut Self
Sourcepub fn get_min_height(&self) -> Length
pub fn get_min_height(&self) -> Length
Sourcepub fn set_min_height(&mut self, value: Length) -> &mut Self
pub fn set_min_height(&mut self, value: Length) -> &mut Self
Sourcepub fn get_max_width(&self) -> Length
pub fn get_max_width(&self) -> Length
Sourcepub fn set_max_width(&mut self, value: Length) -> &mut Self
pub fn set_max_width(&mut self, value: Length) -> &mut Self
Sourcepub fn get_max_height(&self) -> Length
pub fn get_max_height(&self) -> Length
Sourcepub fn set_max_height(&mut self, value: Length) -> &mut Self
pub fn set_max_height(&mut self, value: Length) -> &mut Self
Sourcepub fn top_offset(&self) -> Option<f32>
pub fn top_offset(&self) -> Option<f32>
Sourcepub fn right_offset(&self) -> Option<f32>
pub fn right_offset(&self) -> Option<f32>
Sourcepub fn bottom_offset(&self) -> Option<f32>
pub fn bottom_offset(&self) -> Option<f32>
Sourcepub fn set_bottom(&mut self, value: Option<f32>) -> &mut Self
pub fn set_bottom(&mut self, value: Option<f32>) -> &mut Self
Sourcepub fn left_offset(&self) -> Option<f32>
pub fn left_offset(&self) -> Option<f32>
Sourcepub fn aspect_ratio_value(&self) -> Option<f32>
pub fn aspect_ratio_value(&self) -> Option<f32>
Source§impl LayoutStyle
impl LayoutStyle
pub fn get_flex_grow(&self) -> f32
pub fn get_mut_flex_grow(&mut self) -> &mut f32
pub fn set_flex_grow(&mut self, val: f32) -> &mut Self
pub fn get_flex_shrink(&self) -> f32
pub fn get_mut_flex_shrink(&mut self) -> &mut f32
pub fn set_flex_shrink(&mut self, val: f32) -> &mut Self
pub fn get_margin(&self) -> Edges
pub fn get_mut_margin(&mut self) -> &mut Edges
pub fn set_margin(&mut self, val: Edges) -> &mut Self
pub fn get_padding(&self) -> Edges
pub fn get_mut_padding(&mut self) -> &mut Edges
pub fn set_padding(&mut self, val: Edges) -> &mut Self
pub fn get_row_gap(&self) -> f32
pub fn get_mut_row_gap(&mut self) -> &mut f32
pub fn set_row_gap(&mut self, val: f32) -> &mut Self
pub fn get_column_gap(&self) -> f32
pub fn get_mut_column_gap(&mut self) -> &mut f32
pub fn set_column_gap(&mut self, val: f32) -> &mut Self
pub fn get_z_index(&self) -> i32
pub fn get_mut_z_index(&mut self) -> &mut i32
pub fn set_z_index(&mut self, val: i32) -> &mut Self
pub fn get_grid_columns(&self) -> u16
pub fn get_mut_grid_columns(&mut self) -> &mut u16
pub fn set_grid_columns(&mut self, val: u16) -> &mut Self
Trait Implementations§
Source§impl Clone for LayoutStyle
impl Clone for LayoutStyle
impl Copy for LayoutStyle
Source§impl Debug for LayoutStyle
impl Debug for LayoutStyle
Source§impl Default for LayoutStyle
Default layout style matching standard Flexbox defaults.
impl Default for LayoutStyle
Default layout style matching standard Flexbox defaults.
Auto Trait Implementations§
impl Forget for LayoutStyle
impl Freeze for LayoutStyle
impl Move for LayoutStyle
impl RefUnwindSafe for LayoutStyle
impl Send for LayoutStyle
impl Sync for LayoutStyle
impl Unpin for LayoutStyle
impl UnsafeUnpin for LayoutStyle
impl UnwindSafe for LayoutStyle
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