pub struct Input<R: Renderer> { /* private fields */ }Implementations§
Source§impl<R: Renderer> Input<R>
impl<R: Renderer> Input<R>
pub fn new() -> Self
pub fn is_empty(&self) -> bool
pub fn value(&self) -> String
pub fn placeholder(&self) -> &str
pub fn overwrite(&mut self, value: &str)
pub fn layout( &mut self, renderer: &R, limits: &Limits, layout: Layout<'_, R::Font>, ) -> Node
pub fn update<Message>( &mut self, event: &Event, bounds: Rectangle, cursor: Cursor, shell: &mut Shell<'_, Message>, key_binding: impl Fn(KeyPress) -> Option<Binding<Message>>, ) -> Option<Edit>
pub fn draw( &self, renderer: &mut R, bounds: Rectangle, viewport: Rectangle, style: Style, )
pub fn input_method(&self, position: Point) -> InputMethod<&str>
Trait Implementations§
Source§impl<R: Renderer> TextInput for Input<R>
impl<R: Renderer> TextInput for Input<R>
Source§fn move_cursor_to(&mut self, position: Position)
fn move_cursor_to(&mut self, position: Position)
Moves the cursor of the text input to an arbitrary location.
Source§fn move_cursor_to_front(&mut self)
fn move_cursor_to_front(&mut self)
Moves the cursor of the text input to the front of the input text.
Source§fn move_cursor_to_end(&mut self)
fn move_cursor_to_end(&mut self)
Moves the cursor of the text input to the end of the input text.
Source§fn select_all(&mut self)
fn select_all(&mut self)
Selects all the content of the text input.
Source§fn select_range(&mut self, start: Position, end: Position)
fn select_range(&mut self, start: Position, end: Position)
Selects the given content range of the text input.
Auto Trait Implementations§
impl<R> Freeze for Input<R>
impl<R> RefUnwindSafe for Input<R>
impl<R> Send for Input<R>
impl<R> Sync for Input<R>
impl<R> Unpin for Input<R>
impl<R> UnsafeUnpin for Input<R>
impl<R> UnwindSafe for Input<R>
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