[][src]Trait wayland_protocols::unstable::input_method::v1::client::zwp_input_method_v1::EventHandler

pub trait EventHandler {
    fn activate(
        &mut self,
        object: ZwpInputMethodV1,
        id: NewProxy<ZwpInputMethodContextV1>
    ) { ... }
fn deactivate(
        &mut self,
        object: ZwpInputMethodV1,
        context: ZwpInputMethodContextV1
    ) { ... } }

An interface for handling events.

Provided methods

fn activate(
    &mut self,
    object: ZwpInputMethodV1,
    id: NewProxy<ZwpInputMethodContextV1>
)

activate event

A text input was activated. Creates an input method context object which allows communication with the text input.

fn deactivate(
    &mut self,
    object: ZwpInputMethodV1,
    context: ZwpInputMethodContextV1
)

deactivate event

The text input corresponding to the context argument was deactivated. The input method context should be destroyed after deactivation is handled.

Loading content...

Implementors

Loading content...