Enum wayland_client::protocol::wl_keyboard::Event[][src]

pub enum Event {
    Keymap {
        format: KeymapFormat,
        fd: RawFd,
        size: u32,
    },
    Enter {
        serial: u32,
        surface: Proxy<WlSurface>,
        keys: Vec<u8>,
    },
    Leave {
        serial: u32,
        surface: Proxy<WlSurface>,
    },
    Key {
        serial: u32,
        time: u32,
        key: u32,
        state: KeyState,
    },
    Modifiers {
        serial: u32,
        mods_depressed: u32,
        mods_latched: u32,
        mods_locked: u32,
        group: u32,
    },
    RepeatInfo {
        rate: i32,
        delay: i32,
    },
}

Variants

keyboard mapping

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

Fields of Keymap

enter event

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

Fields of Enter

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.

Fields of Leave

key event

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

Fields of Key

modifier and group state

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

Fields of Modifiers

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.

Only available since version 4 of the interface

Fields of RepeatInfo

Trait Implementations

impl MessageGroup for Event
[src]

MESSAGES: &'static [MessageDesc] = &[super::MessageDesc{name: "keymap",
                     since: 1,
                     signature:
                         &[super::ArgumentType::Uint, super::ArgumentType::Fd,
                           super::ArgumentType::Uint],},
  super::MessageDesc{name: "enter",
                     since: 1,
                     signature:
                         &[super::ArgumentType::Uint,
                           super::ArgumentType::Object,
                           super::ArgumentType::Array],},
  super::MessageDesc{name: "leave",
                     since: 1,
                     signature:
                         &[super::ArgumentType::Uint,
                           super::ArgumentType::Object],},
  super::MessageDesc{name: "key",
                     since: 1,
                     signature:
                         &[super::ArgumentType::Uint,
                           super::ArgumentType::Uint,
                           super::ArgumentType::Uint,
                           super::ArgumentType::Uint],},
  super::MessageDesc{name: "modifiers",
                     since: 1,
                     signature:
                         &[super::ArgumentType::Uint,
                           super::ArgumentType::Uint,
                           super::ArgumentType::Uint,
                           super::ArgumentType::Uint,
                           super::ArgumentType::Uint],},
  super::MessageDesc{name: "repeat_info",
                     since: 4,
                     signature:
                         &[super::ArgumentType::Int,
                           super::ArgumentType::Int],}]

Wire representation of this MessageGroup

Whether this message is a destructor Read more

Retrieve the child Object associated with this message if any

Construct a message from its raw representation

Turn this message into its raw representation

Auto Trait Implementations

impl Send for Event

impl Sync for Event