Skip to main content

TextInputPresenter

Trait TextInputPresenter 

Source
pub trait TextInputPresenter {
    // Required methods
    fn bind(&self, editor_host: TextNode, placeholder_host: FlexBox);
    fn present(
        &self,
        theme: Theme,
        state: &TextInputVisualState,
        colors: Option<TextInputColors>,
    ) -> PresenterHostStyle;
}

Required Methods§

Source

fn bind(&self, editor_host: TextNode, placeholder_host: FlexBox)

Source

fn present( &self, theme: Theme, state: &TextInputVisualState, colors: Option<TextInputColors>, ) -> PresenterHostStyle

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§