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
Keymapkeyboard mapping
This event provides a file descriptor to the client which can be memory-mapped to provide a keyboard mapping description.
Fields of Keymap
format: KeymapFormat | |
fd: RawFd | |
size: u32 |
Enterenter event
Notification that this seat's keyboard focus is on a certain surface.
Fields of Enter
serial: u32 | |
surface: Proxy<WlSurface> | |
keys: Vec<u8> |
Leaveleave 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
serial: u32 | |
surface: Proxy<WlSurface> |
Keykey event
A key was pressed or released. The time argument is a timestamp with millisecond granularity, with an undefined base.
Fields of Key
serial: u32 | |
time: u32 | |
key: u32 | |
state: KeyState |
Modifiersmodifier and group state
Notifies clients that the modifier and/or group state has changed, and it should update its local state.
Fields of Modifiers
serial: u32 | |
mods_depressed: u32 | |
mods_latched: u32 | |
mods_locked: u32 | |
group: u32 |
RepeatInforepeat 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
rate: i32 | |
delay: i32 |
Trait Implementations
impl MessageGroup for Event[src]
fn is_destructor(&self) -> bool[src]
Whether this message is a destructor Read more
unsafe fn from_raw_c(
obj: *mut c_void,
opcode: u32,
args: *const wl_argument
) -> Result<Event, ()>[src]
obj: *mut c_void,
opcode: u32,
args: *const wl_argument
) -> Result<Event, ()>
Construct a message of this group from its C representation
fn as_raw_c_in<F, T>(self, f: F) -> T where
F: FnOnce(u32, &mut [wl_argument]) -> T, [src]
F: FnOnce(u32, &mut [wl_argument]) -> T,
Build a C representation of this message Read more