Skip to main content

TextInputWidgetExt

Trait TextInputWidgetExt 

Source
pub trait TextInputWidgetExt {
    // Required method
    fn render_text_input_widget(
        &mut self,
        widget: TextInputWidget<'_>,
        area: Rect,
    );
}
Expand description

Extension trait for Frame to render TextInputWidget with cursor support.

Since the Widget trait doesn’t have access to Frame, we need this extension to properly set the cursor position.

Required Methods§

Source

fn render_text_input_widget(&mut self, widget: TextInputWidget<'_>, area: Rect)

Render a TextInputWidget and set cursor position if focused.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl TextInputWidgetExt for Frame<'_>

Source§

fn render_text_input_widget(&mut self, widget: TextInputWidget<'_>, area: Rect)

Implementors§