pub struct TextArea { /* private fields */ }Trait Implementations§
Source§impl InputExt for TextArea
impl InputExt for TextArea
fn value(&self) -> String
fn set_value(&self, s: &str)
fn placeholder(&self) -> String
fn set_placeholder(&self, s: &str)
fn readonly(&self) -> bool
fn set_readonly(&self, val: bool)
Source§fn set_text_color(&self, color: Color)
fn set_text_color(&self, color: Color)
Sets the widget’s color
Source§fn text_color(&self) -> Color
fn text_color(&self) -> Color
Returns the widget’s label color
fn set_text_size(&self, size: u8)
fn text_size(&self) -> u8
fn set_text_font(&self, font: &str)
fn text_font(&self) -> String
fn set_text_align(&self, align: TextAlign)
fn set_direction(&self, dir: Direction)
Source§impl WidgetBase for TextArea
impl WidgetBase for TextArea
Source§impl WidgetExt for TextArea
impl WidgetExt for TextArea
Source§fn add_callback<F: 'static + FnMut(&Self)>(&self, event: Event, cb: F)where
Self: Sized,
fn add_callback<F: 'static + FnMut(&Self)>(&self, event: Event, cb: F)where
Self: Sized,
Set the callback for the widget
fn set_id(&self, id: &str)
fn with_id(self, id: &str) -> Selfwhere
Self: Sized,
fn set_class(&self, class: &str)
fn with_class(self, class: &str) -> Selfwhere
Self: Sized,
fn class(&self) -> String
fn with_label(self, title: &str) -> Selfwhere
Self: Sized,
Source§fn set_label_color(&self, color: Color)
fn set_label_color(&self, color: Color)
Sets the widget’s color
Source§fn label_color(&self) -> Color
fn label_color(&self) -> Color
Returns the widget’s label color
fn set_label_size(&self, size: u8)
fn label_size(&self) -> u8
fn set_label_font(&self, font: &str)
fn label_font(&self) -> String
Source§fn do_callback(&self, event: Event)
fn do_callback(&self, event: Event)
do callback
fn set_margin(&self, size: i32)
fn margin(&self) -> i32
fn set_padding(&self, size: i32)
fn padding(&self) -> i32
fn set_frame(&self, frame: FrameType)
fn parent(&self) -> Option<Box<dyn GroupExt>>
Auto Trait Implementations§
impl Freeze for TextArea
impl RefUnwindSafe for TextArea
impl !Send for TextArea
impl !Sync for TextArea
impl Unpin for TextArea
impl UnwindSafe for TextArea
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more