Trait GenericInputContext

Source
pub trait GenericInputContext: Debug {
    // Required methods
    fn raw(&self) -> Result<NonNull<_XIC>, FlutterbugError>;
    fn reference(&self) -> InputContextReference;

    // Provided method
    fn set_focus(&self) -> Result<(), FlutterbugError> { ... }
}
Expand description

Trait that applies to InputContext and InputContextReference.

Required Methods§

Source

fn raw(&self) -> Result<NonNull<_XIC>, FlutterbugError>

Get a pointer to the raw input context.

Source

fn reference(&self) -> InputContextReference

Get a clonable reference to this context.

Provided Methods§

Source

fn set_focus(&self) -> Result<(), FlutterbugError>

Set the input focus for this input context.

Implementors§