[−][src]Struct azul_widgets::text_input::TextInputState
Fields
text: String
selection: Option<Selection>
cursor_pos: usize
Implementations
impl TextInputState
[src]
pub fn new<S: Into<String>>(input: S) -> Self
[src]
pub fn with_cursor_pos(self, cursor_pos: usize) -> Self
[src]
pub fn with_selection(self, selection: Option<Selection>) -> Self
[src]
pub fn handle_on_text_input(
&mut self,
keyboard_state: &KeyboardState
) -> CallbackReturn
[src]
&mut self,
keyboard_state: &KeyboardState
) -> CallbackReturn
pub fn handle_on_virtual_key_down(
&mut self,
keyboard_state: &KeyboardState
) -> CallbackReturn
[src]
&mut self,
keyboard_state: &KeyboardState
) -> CallbackReturn
pub fn delete_selection(
&mut self,
selection: Range<usize>,
new_text: Option<char>
)
[src]
&mut self,
selection: Range<usize>,
new_text: Option<char>
)
Trait Implementations
impl Clone for TextInputState
[src]
fn clone(&self) -> TextInputState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TextInputState
[src]
impl Default for TextInputState
[src]
impl Eq for TextInputState
[src]
impl Hash for TextInputState
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TextInputState> for TextInputState
[src]
fn eq(&self, other: &TextInputState) -> bool
[src]
fn ne(&self, other: &TextInputState) -> bool
[src]
impl StructuralEq for TextInputState
[src]
impl StructuralPartialEq for TextInputState
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextInputState
impl Send for TextInputState
impl Sync for TextInputState
impl Unpin for TextInputState
impl UnwindSafe for TextInputState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,