pub enum TileLayout {
Row,
Grid {
min_tile_width: f32,
},
Column,
Vertical,
}Expand description
How a RadioTileGroup arranges its tiles.
Variants§
Row
A single horizontal row of equal-width, equal-height tiles (the tiles stretch to the tallest). The reference “two cards side-by-side” layout.
Grid
A wrapping grid whose column count adapts to the available width:
cols = floor((width + spacing) / (min_tile_width + spacing)), at least
one. All cells share the same width and the tallest tile’s height.
Column
A vertical column of full-width tiles, each its natural height. Tiles keep their full card content (icon + title + description).
Vertical
A vertical list of compact fixed-height full-width rows: [radio] [icon] [title] [Spacer] [trailing], no description — the settings-list
look. Every row is a fixed height taken from the active
RadioTileStyle (the theme’s RadioTileRecipe::vertical_row_height,
44 dp by default; override per-group with RadioTileGroup::row_height),
and the group switches each tile to the compact arrangement (leading
radio) automatically.
Trait Implementations§
Source§impl Clone for TileLayout
impl Clone for TileLayout
Source§fn clone(&self) -> TileLayout
fn clone(&self) -> TileLayout
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TileLayout
Source§impl Debug for TileLayout
impl Debug for TileLayout
Source§impl Default for TileLayout
impl Default for TileLayout
Source§fn default() -> TileLayout
fn default() -> TileLayout
Source§impl PartialEq for TileLayout
impl PartialEq for TileLayout
Source§fn eq(&self, other: &TileLayout) -> bool
fn eq(&self, other: &TileLayout) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TileLayout
Auto Trait Implementations§
impl Freeze for TileLayout
impl RefUnwindSafe for TileLayout
impl Send for TileLayout
impl Sync for TileLayout
impl Unpin for TileLayout
impl UnsafeUnpin for TileLayout
impl UnwindSafe for TileLayout
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
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>
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