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§
Sourcefn render_text_input_widget(&mut self, widget: TextInputWidget<'_>, area: Rect)
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".