[][src]Struct egui::widgets::TextEdit

pub struct TextEdit<'t> { /* fields omitted */ }

A text region that the user can edit the contents of.

Implementations

impl<'t> TextEdit<'t>[src]

pub fn new(text: &'t mut String) -> Self[src]

pub fn id(self, id: Id) -> Self[src]

pub fn id_source(self, id_source: impl Hash) -> Self[src]

pub fn text_style(self, text_style: TextStyle) -> Self[src]

pub fn text_color(self, text_color: Srgba) -> Self[src]

pub fn text_color_opt(self, text_color: Option<Srgba>) -> Self[src]

pub fn multiline(self, multiline: bool) -> Self[src]

pub fn enabled(self, enabled: bool) -> Self[src]

Default is true. If set to false then you cannot edit the text.

pub fn desired_width(self, desired_width: f32) -> Self[src]

Set to 0.0 to keep as small as possible

Trait Implementations

impl<'t> Debug for TextEdit<'t>[src]

impl<'t> Widget for TextEdit<'t>[src]

Auto Trait Implementations

impl<'t> RefUnwindSafe for TextEdit<'t>

impl<'t> Send for TextEdit<'t>

impl<'t> Sync for TextEdit<'t>

impl<'t> Unpin for TextEdit<'t>

impl<'t> !UnwindSafe for TextEdit<'t>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.