Skip to main content

TabStyle

Trait TabStyle 

Source
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§

Source

fn make_body( &self, cfg: &TabStyleConfig, ctx: &mut BuildContext<'_>, ) -> WidgetId

Chrome for a single tab header.

Source

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".

Implementors§