pub trait TabStyle: 'static {
// Required methods
fn make_body(
&self,
cfg: &TabStyleConfig,
ctx: &mut BuildContext<'_>,
) -> WidgetId;
fn make_bar(
&self,
cfg: &TabBarChromeConfig,
ctx: &mut BuildContext<'_>,
) -> WidgetId;
}Required Methods§
Sourcefn make_body(
&self,
cfg: &TabStyleConfig,
ctx: &mut BuildContext<'_>,
) -> WidgetId
fn make_body( &self, cfg: &TabStyleConfig, ctx: &mut BuildContext<'_>, ) -> WidgetId
Chrome for a single tab header.
Sourcefn make_bar(
&self,
cfg: &TabBarChromeConfig,
ctx: &mut BuildContext<'_>,
) -> WidgetId
fn make_bar( &self, cfg: &TabBarChromeConfig, ctx: &mut BuildContext<'_>, ) -> WidgetId
Chrome for the whole bar strip — wraps TabBarChromeConfig::content.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".