pub struct TextInput {
pub text_editor: TextEditor,
pub text_buffer: TextBuffer,
pub empty_message: String,
}
Fields§
§text_editor: TextEditor
§text_buffer: TextBuffer
§empty_message: String
Implementations§
Source§impl TextInput
impl TextInput
pub fn proto(cx: &mut Cx, opt: TextInputOptions) -> Self
pub fn style_text_input() -> StyleId
pub fn style(cx: &mut Cx, _opt: &StyleOptions)
pub fn handle_text_input( &mut self, cx: &mut Cx, event: &mut Event, ) -> TextEditorEvent
pub fn set_value(&mut self, cx: &mut Cx, text: &str)
pub fn get_value(&self) -> String
pub fn draw_text_input_static(&mut self, cx: &mut Cx, text: &str)
pub fn draw_text_input(&mut self, cx: &mut Cx)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextInput
impl RefUnwindSafe for TextInput
impl Send for TextInput
impl Sync for TextInput
impl Unpin for TextInput
impl UnwindSafe for TextInput
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