Trait RadioTileStyle
pub trait RadioTileStyle: 'static {
// Required method
fn make_body(
&self,
cfg: &RadioTileStyleConfig,
ctx: &mut BuildContext<'_>,
) -> WidgetId;
// Provided method
fn vertical_row_height(&self) -> f32 { ... }
}Expand description
Tier-3 style protocol for RadioTile. Implement this to fully replace the
card chrome (per-call RadioTile::style(...) or theme-wide
theme.style_slots.radio_tile = Some(Rc::new(MyTile))).
Required Methods§
fn make_body( &self, cfg: &RadioTileStyleConfig, ctx: &mut BuildContext<'_>, ) -> WidgetId
Provided Methods§
fn vertical_row_height(&self) -> f32
fn vertical_row_height(&self) -> f32
Fixed row height, in logical pixels, for a
RadioTileGroup in TileLayout::Vertical (the compact settings-list
arrangement). A theme-driven value — override it in a custom style to
change how tall the compact rows are. The default recipe reads it from
its RadioTileRecipe.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".