Struct UiLayoutStyle
pub struct UiLayoutStyle {Show 14 fields
pub direction: FlexDirection,
pub justify_content: JustifyContent,
pub align_items: AlignItems,
pub width: SizeRule,
pub height: SizeRule,
pub min_width: f32,
pub min_height: f32,
pub padding: Edges,
pub margin: Edges,
pub gap: f32,
pub grid_columns: u8,
pub column_gap: f32,
pub row_gap: f32,
pub clip_children: bool,
}Expand description
Layout style properties for a UiLayoutNode (supports Flexbox + 2D CSS-Grid-lite + scissor clipping).
Fields§
§direction: FlexDirection§justify_content: JustifyContent§align_items: AlignItems§width: SizeRule§height: SizeRule§min_width: f32§min_height: f32§padding: Edges§margin: Edges§gap: f32Gap between items in a flex row/column.
grid_columns: u8When grid_columns > 0, arranges children in a 2D grid with grid_columns columns.
column_gap: f32§row_gap: f32§clip_children: boolWhether this container clips its descendants to its inner content rect.
Trait Implementations§
§impl Clone for UiLayoutStyle
impl Clone for UiLayoutStyle
§fn clone(&self) -> UiLayoutStyle
fn clone(&self) -> UiLayoutStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UiLayoutStyle
§impl Debug for UiLayoutStyle
impl Debug for UiLayoutStyle
§impl Default for UiLayoutStyle
impl Default for UiLayoutStyle
§fn default() -> UiLayoutStyle
fn default() -> UiLayoutStyle
Returns the “default value” for a type. Read more
§impl PartialEq for UiLayoutStyle
impl PartialEq for UiLayoutStyle
impl StructuralPartialEq for UiLayoutStyle
Auto Trait Implementations§
impl Freeze for UiLayoutStyle
impl RefUnwindSafe for UiLayoutStyle
impl Send for UiLayoutStyle
impl Sync for UiLayoutStyle
impl Unpin for UiLayoutStyle
impl UnsafeUnpin for UiLayoutStyle
impl UnwindSafe for UiLayoutStyle
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.