pub trait ImeHandlerRef {
// Required methods
fn is_alive(&self) -> bool;
fn acquire(
&self,
mutable: bool
) -> Option<Box<dyn InputHandler + 'static, Global>>;
fn release(&self) -> bool;
}Expand description
A trait for input handlers registered by widgets.
A widget registers itself as accepting text input by calling
LifeCycleCtx::register_text_input while handling the
LifeCycle::WidgetAdded event.
The widget does not explicitly deregister afterwards; rather anytime
the widget tree changes, druid will call is_alive on each registered
ImeHandlerRef, and deregister those that return false.