Struct wayland_client::protocol::wl_keyboard::Implementation [] [src]

pub struct Implementation<ID> {
    pub keymap: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlKeyboard, _: KeymapFormat, _: RawFd, _: u32),
    pub enter: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlKeyboard, _: u32, _: &WlSurface, _: Vec<u8>),
    pub leave: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlKeyboard, _: u32, _: &WlSurface),
    pub key: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlKeyboard, _: u32, _: u32, _: u32, _: KeyState),
    pub modifiers: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlKeyboard, _: u32, _: u32, _: u32, _: u32, _: u32),
    pub repeat_info: fn(_: &mut EventQueueHandle, _: &mut ID, _: &WlKeyboard, _: i32, _: i32),
}

Fields

keyboard mapping

This event provides a file descriptor to the client which can be memory-mapped to provide a keyboard mapping description.

Arguments: event_queue_handle, interface_data, wl_keyboard, format, fd, size

enter event

Notification that this seat's keyboard focus is on a certain surface.

Arguments: event_queue_handle, interface_data, wl_keyboard, serial, surface, keys

leave event

Notification that this seat's keyboard focus is no longer on a certain surface.

The leave notification is sent before the enter notification for the new focus.

Arguments: event_queue_handle, interface_data, wl_keyboard, serial, surface

key event

A key was pressed or released. The time argument is a timestamp with millisecond granularity, with an undefined base.

Arguments: event_queue_handle, interface_data, wl_keyboard, serial, time, key, state

modifier and group state

Notifies clients that the modifier and/or group state has changed, and it should update its local state.

Arguments: event_queue_handle, interface_data, wl_keyboard, serial, mods_depressed, mods_latched, mods_locked, group

repeat rate and delay

Informs the client about the keyboard's repeat rate and delay.

This event is sent as soon as the wl_keyboard object has been created, and is guaranteed to be received by the client before any key press event.

Negative values for either rate or delay are illegal. A rate of zero will disable any repeating (regardless of the value of delay).

This event can be sent later on as well with a new value if necessary, so clients should continue listening for the event past the creation of wl_keyboard.

Arguments: event_queue_handle, interface_data, wl_keyboard, rate, delay

This request only exists since version 4 of the interface

Trait Implementations

impl<ID> Copy for Implementation<ID>
[src]

impl<ID> Clone for Implementation<ID>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<ID> PartialEq for Implementation<ID>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.