pub struct LayoutStyle { /* private fields */ }Expand description
Layout-affecting properties separated from paint properties for surgical dirty-flag tracking.
Implementations§
Source§impl LayoutStyle
Non-panicking optional offset readers for LayoutStyle.
impl LayoutStyle
Non-panicking optional offset readers for LayoutStyle.
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 left_offset(&self) -> Option<f32>
pub fn left_offset(&self) -> Option<f32>
Source§impl LayoutStyle
impl LayoutStyle
pub fn get_display(&self) -> Display
pub fn get_mut_display(&mut self) -> &mut Display
pub fn set_display(&mut self, val: Display) -> &mut Self
pub fn get_position(&self) -> Position
pub fn get_mut_position(&mut self) -> &mut Position
pub fn set_position(&mut self, val: Position) -> &mut Self
pub fn get_flex_direction(&self) -> FlexDirection
pub fn get_mut_flex_direction(&mut self) -> &mut FlexDirection
pub fn set_flex_direction(&mut self, val: FlexDirection) -> &mut Self
pub fn get_flex_wrap(&self) -> FlexWrap
pub fn get_mut_flex_wrap(&mut self) -> &mut FlexWrap
pub fn set_flex_wrap(&mut self, val: FlexWrap) -> &mut Self
pub fn get_justify_content(&self) -> JustifyContent
pub fn get_mut_justify_content(&mut self) -> &mut JustifyContent
pub fn set_justify_content(&mut self, val: JustifyContent) -> &mut Self
pub fn get_align_items(&self) -> AlignItems
pub fn get_mut_align_items(&mut self) -> &mut AlignItems
pub fn set_align_items(&mut self, val: AlignItems) -> &mut Self
pub fn get_align_self(&self) -> AlignSelf
pub fn get_mut_align_self(&mut self) -> &mut AlignSelf
pub fn set_align_self(&mut self, val: AlignSelf) -> &mut Self
pub fn get_overflow(&self) -> Overflow
pub fn get_mut_overflow(&mut self) -> &mut Overflow
pub fn set_overflow(&mut self, val: Overflow) -> &mut Self
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_flex_basis(&self) -> Length
pub fn get_mut_flex_basis(&mut self) -> &mut Length
pub fn set_flex_basis(&mut self, val: Length) -> &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
pub fn get_width(&self) -> Length
pub fn get_mut_width(&mut self) -> &mut Length
pub fn set_width(&mut self, val: Length) -> &mut Self
pub fn get_height(&self) -> Length
pub fn get_mut_height(&mut self) -> &mut Length
pub fn set_height(&mut self, val: Length) -> &mut Self
pub fn get_min_width(&self) -> Length
pub fn get_mut_min_width(&mut self) -> &mut Length
pub fn set_min_width(&mut self, val: Length) -> &mut Self
pub fn get_min_height(&self) -> Length
pub fn get_mut_min_height(&mut self) -> &mut Length
pub fn set_min_height(&mut self, val: Length) -> &mut Self
pub fn get_max_width(&self) -> Length
pub fn get_mut_max_width(&mut self) -> &mut Length
pub fn set_max_width(&mut self, val: Length) -> &mut Self
pub fn get_max_height(&self) -> Length
pub fn get_mut_max_height(&mut self) -> &mut Length
pub fn set_max_height(&mut self, val: Length) -> &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_mut_top(&mut self) -> &mut Option<f32>
pub fn set_top(&mut self, val: Option<f32>) -> &mut Self
pub fn get_mut_right(&mut self) -> &mut Option<f32>
pub fn set_right(&mut self, val: Option<f32>) -> &mut Self
pub fn get_mut_bottom(&mut self) -> &mut Option<f32>
pub fn set_bottom(&mut self, val: Option<f32>) -> &mut Self
pub fn get_mut_left(&mut self) -> &mut Option<f32>
pub fn set_left(&mut self, val: Option<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_mut_aspect_ratio(&mut self) -> &mut Option<f32>
pub fn set_aspect_ratio(&mut self, val: Option<f32>) -> &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.
Source§impl PartialEq for LayoutStyle
impl PartialEq for LayoutStyle
impl StructuralPartialEq for LayoutStyle
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