Skip to main content

TextEditWidgetExt

Trait TextEditWidgetExt 

Source
pub trait TextEditWidgetExt<'a>: Sized {
    // Required methods
    fn fill_width(self) -> Self;
    fn fixed_width(self, width: f32) -> Self;
    fn char_limit(self, limit: usize) -> Self;
}
Expand description

Extension trait for egui::TextEdit

Required Methods§

Source

fn fill_width(self) -> Self

Make the text edit fill available width

Source

fn fixed_width(self, width: f32) -> Self

Set a fixed width

Source

fn char_limit(self, limit: usize) -> Self

Add a character limit

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a> TextEditWidgetExt<'a> for TextEdit<'a>

Source§

fn fill_width(self) -> Self

Source§

fn fixed_width(self, width: f32) -> Self

Source§

fn char_limit(self, limit: usize) -> Self

Implementors§