Skip to main content

SplitterStyle

Trait SplitterStyle 

Source
pub trait SplitterStyle: 'static {
    // Required method
    fn make_handle(
        &self,
        cfg: &SplitterStyleConfig,
        ctx: &mut BuildContext<'_>,
    ) -> WidgetId;
}
Expand description

The visual contract for a Splitter divider handle.

make_handle returns the WidgetId of a leaf (or subtree) that paints the divider chrome. The host Splitter sizes it to the model’s gutter thickness × the cross axis and routes all input itself — the body is purely presentational and should mark itself hidden from the accessibility tree (the splitter handle owns the Role::Splitter node).

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§