pub struct ActiveInput {
pub input_index: usize,
pub input_id: Option<String>,
pub entity_id: Option<EntityId>,
pub state: TextInputState,
pub on_input: Option<Rc<dyn Fn(Event)>>,
pub on_change: Option<Rc<dyn Fn(Event)>>,
pub on_submit: Option<Rc<dyn Fn(Event)>>,
pub on_blur: Option<Rc<dyn Fn(Event)>>,
}Expand description
Active text input state tracked by the runtime while an input has keyboard focus.
Fields§
§input_index: usize§input_id: Option<String>§entity_id: Option<EntityId>§state: TextInputState§on_input: Option<Rc<dyn Fn(Event)>>§on_change: Option<Rc<dyn Fn(Event)>>§on_submit: Option<Rc<dyn Fn(Event)>>§on_blur: Option<Rc<dyn Fn(Event)>>Trait Implementations§
Source§impl Clone for ActiveInput
impl Clone for ActiveInput
Auto Trait Implementations§
impl !Freeze for ActiveInput
impl !RefUnwindSafe for ActiveInput
impl !Send for ActiveInput
impl !Sync for ActiveInput
impl !UnwindSafe for ActiveInput
impl Forget for ActiveInput
impl Move for ActiveInput
impl Unpin for ActiveInput
impl UnsafeUnpin for ActiveInput
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