Skip to main content

ButtonPresenter

Trait ButtonPresenter 

Source
pub trait ButtonPresenter {
    // Required methods
    fn content_root(&self) -> FlexBox;
    fn label_node(&self) -> TextNode;
    fn present(
        &self,
        theme: &Theme,
        state: &ButtonVisualState,
        colors: Option<&ButtonColors>,
    ) -> PresenterHostStyle;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§