Struct style::properties::generated::style_structs::Position
source · pub struct Position {Show 24 fields
pub top: T,
pub right: T,
pub bottom: T,
pub left: T,
pub z_index: T,
pub flex_direction: T,
pub flex_wrap: T,
pub justify_content: T,
pub align_content: T,
pub align_items: T,
pub flex_grow: T,
pub flex_shrink: T,
pub align_self: T,
pub order: T,
pub flex_basis: T,
pub height: T,
pub min_height: T,
pub max_height: T,
pub width: T,
pub min_width: T,
pub max_width: T,
pub box_sizing: T,
pub column_gap: T,
pub aspect_ratio: T,
}
Expand description
The Position style struct.
Fields§
§top: T
The top computed value.
right: T
The right computed value.
bottom: T
The bottom computed value.
left: T
The left computed value.
z_index: T
The z-index computed value.
flex_direction: T
The flex-direction computed value.
flex_wrap: T
The flex-wrap computed value.
justify_content: T
The justify-content computed value.
align_content: T
The align-content computed value.
align_items: T
The align-items computed value.
flex_grow: T
The flex-grow computed value.
flex_shrink: T
The flex-shrink computed value.
align_self: T
The align-self computed value.
order: T
The order computed value.
flex_basis: T
The flex-basis computed value.
height: T
The height computed value.
min_height: T
The min-height computed value.
max_height: T
The max-height computed value.
width: T
The width computed value.
min_width: T
The min-width computed value.
max_width: T
The max-width computed value.
box_sizing: T
The box-sizing computed value.
column_gap: T
The column-gap computed value.
aspect_ratio: T
The aspect-ratio computed value.
Implementations§
source§impl Position
impl Position
sourcepub fn copy_top_from(&mut self, other: &Self)
pub fn copy_top_from(&mut self, other: &Self)
Set top from other struct.
sourcepub fn copy_right_from(&mut self, other: &Self)
pub fn copy_right_from(&mut self, other: &Self)
Set right from other struct.
sourcepub fn reset_right(&mut self, other: &Self)
pub fn reset_right(&mut self, other: &Self)
Reset right from the initial struct.
sourcepub fn clone_right(&self) -> T
pub fn clone_right(&self) -> T
Get the computed value for right.
sourcepub fn set_bottom(&mut self, v: T)
pub fn set_bottom(&mut self, v: T)
Set bottom.
sourcepub fn copy_bottom_from(&mut self, other: &Self)
pub fn copy_bottom_from(&mut self, other: &Self)
Set bottom from other struct.
sourcepub fn reset_bottom(&mut self, other: &Self)
pub fn reset_bottom(&mut self, other: &Self)
Reset bottom from the initial struct.
sourcepub fn clone_bottom(&self) -> T
pub fn clone_bottom(&self) -> T
Get the computed value for bottom.
sourcepub fn copy_left_from(&mut self, other: &Self)
pub fn copy_left_from(&mut self, other: &Self)
Set left from other struct.
sourcepub fn reset_left(&mut self, other: &Self)
pub fn reset_left(&mut self, other: &Self)
Reset left from the initial struct.
sourcepub fn clone_left(&self) -> T
pub fn clone_left(&self) -> T
Get the computed value for left.
sourcepub fn set_z_index(&mut self, v: T)
pub fn set_z_index(&mut self, v: T)
Set z-index.
sourcepub fn copy_z_index_from(&mut self, other: &Self)
pub fn copy_z_index_from(&mut self, other: &Self)
Set z-index from other struct.
sourcepub fn reset_z_index(&mut self, other: &Self)
pub fn reset_z_index(&mut self, other: &Self)
Reset z-index from the initial struct.
sourcepub fn clone_z_index(&self) -> T
pub fn clone_z_index(&self) -> T
Get the computed value for z-index.
sourcepub fn set_flex_direction(&mut self, v: T)
pub fn set_flex_direction(&mut self, v: T)
Set flex-direction.
sourcepub fn copy_flex_direction_from(&mut self, other: &Self)
pub fn copy_flex_direction_from(&mut self, other: &Self)
Set flex-direction from other struct.
sourcepub fn reset_flex_direction(&mut self, other: &Self)
pub fn reset_flex_direction(&mut self, other: &Self)
Reset flex-direction from the initial struct.
sourcepub fn clone_flex_direction(&self) -> T
pub fn clone_flex_direction(&self) -> T
Get the computed value for flex-direction.
sourcepub fn set_flex_wrap(&mut self, v: T)
pub fn set_flex_wrap(&mut self, v: T)
Set flex-wrap.
sourcepub fn copy_flex_wrap_from(&mut self, other: &Self)
pub fn copy_flex_wrap_from(&mut self, other: &Self)
Set flex-wrap from other struct.
sourcepub fn reset_flex_wrap(&mut self, other: &Self)
pub fn reset_flex_wrap(&mut self, other: &Self)
Reset flex-wrap from the initial struct.
sourcepub fn clone_flex_wrap(&self) -> T
pub fn clone_flex_wrap(&self) -> T
Get the computed value for flex-wrap.
sourcepub fn set_justify_content(&mut self, v: T)
pub fn set_justify_content(&mut self, v: T)
Set justify-content.
sourcepub fn copy_justify_content_from(&mut self, other: &Self)
pub fn copy_justify_content_from(&mut self, other: &Self)
Set justify-content from other struct.
sourcepub fn reset_justify_content(&mut self, other: &Self)
pub fn reset_justify_content(&mut self, other: &Self)
Reset justify-content from the initial struct.
sourcepub fn clone_justify_content(&self) -> T
pub fn clone_justify_content(&self) -> T
Get the computed value for justify-content.
sourcepub fn set_align_content(&mut self, v: T)
pub fn set_align_content(&mut self, v: T)
Set align-content.
sourcepub fn copy_align_content_from(&mut self, other: &Self)
pub fn copy_align_content_from(&mut self, other: &Self)
Set align-content from other struct.
sourcepub fn reset_align_content(&mut self, other: &Self)
pub fn reset_align_content(&mut self, other: &Self)
Reset align-content from the initial struct.
sourcepub fn clone_align_content(&self) -> T
pub fn clone_align_content(&self) -> T
Get the computed value for align-content.
sourcepub fn set_align_items(&mut self, v: T)
pub fn set_align_items(&mut self, v: T)
Set align-items.
sourcepub fn copy_align_items_from(&mut self, other: &Self)
pub fn copy_align_items_from(&mut self, other: &Self)
Set align-items from other struct.
sourcepub fn reset_align_items(&mut self, other: &Self)
pub fn reset_align_items(&mut self, other: &Self)
Reset align-items from the initial struct.
sourcepub fn clone_align_items(&self) -> T
pub fn clone_align_items(&self) -> T
Get the computed value for align-items.
sourcepub fn set_flex_grow(&mut self, v: T)
pub fn set_flex_grow(&mut self, v: T)
Set flex-grow.
sourcepub fn copy_flex_grow_from(&mut self, other: &Self)
pub fn copy_flex_grow_from(&mut self, other: &Self)
Set flex-grow from other struct.
sourcepub fn reset_flex_grow(&mut self, other: &Self)
pub fn reset_flex_grow(&mut self, other: &Self)
Reset flex-grow from the initial struct.
sourcepub fn clone_flex_grow(&self) -> T
pub fn clone_flex_grow(&self) -> T
Get the computed value for flex-grow.
sourcepub fn set_flex_shrink(&mut self, v: T)
pub fn set_flex_shrink(&mut self, v: T)
Set flex-shrink.
sourcepub fn copy_flex_shrink_from(&mut self, other: &Self)
pub fn copy_flex_shrink_from(&mut self, other: &Self)
Set flex-shrink from other struct.
sourcepub fn reset_flex_shrink(&mut self, other: &Self)
pub fn reset_flex_shrink(&mut self, other: &Self)
Reset flex-shrink from the initial struct.
sourcepub fn clone_flex_shrink(&self) -> T
pub fn clone_flex_shrink(&self) -> T
Get the computed value for flex-shrink.
sourcepub fn set_align_self(&mut self, v: T)
pub fn set_align_self(&mut self, v: T)
Set align-self.
sourcepub fn copy_align_self_from(&mut self, other: &Self)
pub fn copy_align_self_from(&mut self, other: &Self)
Set align-self from other struct.
sourcepub fn reset_align_self(&mut self, other: &Self)
pub fn reset_align_self(&mut self, other: &Self)
Reset align-self from the initial struct.
sourcepub fn clone_align_self(&self) -> T
pub fn clone_align_self(&self) -> T
Get the computed value for align-self.
sourcepub fn copy_order_from(&mut self, other: &Self)
pub fn copy_order_from(&mut self, other: &Self)
Set order from other struct.
sourcepub fn reset_order(&mut self, other: &Self)
pub fn reset_order(&mut self, other: &Self)
Reset order from the initial struct.
sourcepub fn clone_order(&self) -> T
pub fn clone_order(&self) -> T
Get the computed value for order.
sourcepub fn set_flex_basis(&mut self, v: T)
pub fn set_flex_basis(&mut self, v: T)
Set flex-basis.
sourcepub fn copy_flex_basis_from(&mut self, other: &Self)
pub fn copy_flex_basis_from(&mut self, other: &Self)
Set flex-basis from other struct.
sourcepub fn reset_flex_basis(&mut self, other: &Self)
pub fn reset_flex_basis(&mut self, other: &Self)
Reset flex-basis from the initial struct.
sourcepub fn clone_flex_basis(&self) -> T
pub fn clone_flex_basis(&self) -> T
Get the computed value for flex-basis.
sourcepub fn set_height(&mut self, v: T)
pub fn set_height(&mut self, v: T)
Set height.
sourcepub fn copy_height_from(&mut self, other: &Self)
pub fn copy_height_from(&mut self, other: &Self)
Set height from other struct.
sourcepub fn reset_height(&mut self, other: &Self)
pub fn reset_height(&mut self, other: &Self)
Reset height from the initial struct.
sourcepub fn clone_height(&self) -> T
pub fn clone_height(&self) -> T
Get the computed value for height.
sourcepub fn set_min_height(&mut self, v: T)
pub fn set_min_height(&mut self, v: T)
Set min-height.
sourcepub fn copy_min_height_from(&mut self, other: &Self)
pub fn copy_min_height_from(&mut self, other: &Self)
Set min-height from other struct.
sourcepub fn reset_min_height(&mut self, other: &Self)
pub fn reset_min_height(&mut self, other: &Self)
Reset min-height from the initial struct.
sourcepub fn clone_min_height(&self) -> T
pub fn clone_min_height(&self) -> T
Get the computed value for min-height.
sourcepub fn set_max_height(&mut self, v: T)
pub fn set_max_height(&mut self, v: T)
Set max-height.
sourcepub fn copy_max_height_from(&mut self, other: &Self)
pub fn copy_max_height_from(&mut self, other: &Self)
Set max-height from other struct.
sourcepub fn reset_max_height(&mut self, other: &Self)
pub fn reset_max_height(&mut self, other: &Self)
Reset max-height from the initial struct.
sourcepub fn clone_max_height(&self) -> T
pub fn clone_max_height(&self) -> T
Get the computed value for max-height.
sourcepub fn copy_width_from(&mut self, other: &Self)
pub fn copy_width_from(&mut self, other: &Self)
Set width from other struct.
sourcepub fn reset_width(&mut self, other: &Self)
pub fn reset_width(&mut self, other: &Self)
Reset width from the initial struct.
sourcepub fn clone_width(&self) -> T
pub fn clone_width(&self) -> T
Get the computed value for width.
sourcepub fn set_min_width(&mut self, v: T)
pub fn set_min_width(&mut self, v: T)
Set min-width.
sourcepub fn copy_min_width_from(&mut self, other: &Self)
pub fn copy_min_width_from(&mut self, other: &Self)
Set min-width from other struct.
sourcepub fn reset_min_width(&mut self, other: &Self)
pub fn reset_min_width(&mut self, other: &Self)
Reset min-width from the initial struct.
sourcepub fn clone_min_width(&self) -> T
pub fn clone_min_width(&self) -> T
Get the computed value for min-width.
sourcepub fn set_max_width(&mut self, v: T)
pub fn set_max_width(&mut self, v: T)
Set max-width.
sourcepub fn copy_max_width_from(&mut self, other: &Self)
pub fn copy_max_width_from(&mut self, other: &Self)
Set max-width from other struct.
sourcepub fn reset_max_width(&mut self, other: &Self)
pub fn reset_max_width(&mut self, other: &Self)
Reset max-width from the initial struct.
sourcepub fn clone_max_width(&self) -> T
pub fn clone_max_width(&self) -> T
Get the computed value for max-width.
sourcepub fn set_box_sizing(&mut self, v: T)
pub fn set_box_sizing(&mut self, v: T)
Set box-sizing.
sourcepub fn copy_box_sizing_from(&mut self, other: &Self)
pub fn copy_box_sizing_from(&mut self, other: &Self)
Set box-sizing from other struct.
sourcepub fn reset_box_sizing(&mut self, other: &Self)
pub fn reset_box_sizing(&mut self, other: &Self)
Reset box-sizing from the initial struct.
sourcepub fn clone_box_sizing(&self) -> T
pub fn clone_box_sizing(&self) -> T
Get the computed value for box-sizing.
sourcepub fn set_column_gap(&mut self, v: T)
pub fn set_column_gap(&mut self, v: T)
Set column-gap.
sourcepub fn copy_column_gap_from(&mut self, other: &Self)
pub fn copy_column_gap_from(&mut self, other: &Self)
Set column-gap from other struct.
sourcepub fn reset_column_gap(&mut self, other: &Self)
pub fn reset_column_gap(&mut self, other: &Self)
Reset column-gap from the initial struct.
sourcepub fn clone_column_gap(&self) -> T
pub fn clone_column_gap(&self) -> T
Get the computed value for column-gap.
sourcepub fn set_aspect_ratio(&mut self, v: T)
pub fn set_aspect_ratio(&mut self, v: T)
Set aspect-ratio.
sourcepub fn copy_aspect_ratio_from(&mut self, other: &Self)
pub fn copy_aspect_ratio_from(&mut self, other: &Self)
Set aspect-ratio from other struct.
sourcepub fn reset_aspect_ratio(&mut self, other: &Self)
pub fn reset_aspect_ratio(&mut self, other: &Self)
Reset aspect-ratio from the initial struct.
sourcepub fn clone_aspect_ratio(&self) -> T
pub fn clone_aspect_ratio(&self) -> T
Get the computed value for aspect-ratio.
Trait Implementations§
source§impl MallocSizeOf for Position
impl MallocSizeOf for Position
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl PartialEq<Position> for Position
impl PartialEq<Position> for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more