pub trait SplitButtonStyle: 'static {
// Required method
fn make_body(
&self,
cfg: &SplitButtonStyleConfig,
ctx: &mut BuildContext<'_>,
) -> WidgetId;
}Expand description
Style protocol for SplitButton. The active style owns the shared frame
chrome (fill, border, corner radius, overall min size) and arranges it
around the pre-built interactive content row.
'static (no Send + Sync) for the same reason as ButtonStyle:
the rest of teksilo-core is single-threaded (Signal uses Rc).
Required Methods§
fn make_body( &self, cfg: &SplitButtonStyleConfig, ctx: &mut BuildContext<'_>, ) -> WidgetId
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".