SDL  2.0
wl_keyboard_listener Struct Reference

#include <wayland-client-protocol.h>

Data Fields

void(* keymap )(void *data, struct wl_keyboard *wl_keyboard, uint32_t format, int32_t fd, uint32_t size)
 
void(* enter )(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, struct wl_surface *surface, struct wl_array *keys)
 
void(* leave )(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, struct wl_surface *surface)
 
void(* key )(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, uint32_t time, uint32_t key, uint32_t state)
 
void(* modifiers )(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group)
 
void(* repeat_info )(void *data, struct wl_keyboard *wl_keyboard, int32_t rate, int32_t delay)
 

Detailed Description

Definition at line 4522 of file wayland-client-protocol.h.

Field Documentation

◆ enter

void(* wl_keyboard_listener::enter) (void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, struct wl_surface *surface, struct wl_array *keys)

enter event

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

Parameters
serialserial number of the enter event
surfacesurface gaining keyboard focus
keysthe currently pressed keys

Definition at line 4546 of file wayland-client-protocol.h.

◆ key

void(* wl_keyboard_listener::key) (void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, uint32_t time, uint32_t key, uint32_t state)

key event

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

Parameters
serialserial number of the key event
timetimestamp with millisecond granularity
keykey that produced the event
statephysical state of the key

Definition at line 4576 of file wayland-client-protocol.h.

◆ keymap

void(* wl_keyboard_listener::keymap) (void *data, struct wl_keyboard *wl_keyboard, uint32_t format, int32_t fd, uint32_t size)

keyboard mapping

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

Parameters
formatkeymap format
fdkeymap file descriptor
sizekeymap size, in bytes

Definition at line 4532 of file wayland-client-protocol.h.

◆ leave

void(* wl_keyboard_listener::leave) (void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, struct wl_surface *surface)

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.

Parameters
serialserial number of the leave event
surfacesurface that lost keyboard focus

Definition at line 4562 of file wayland-client-protocol.h.

◆ modifiers

void(* wl_keyboard_listener::modifiers) (void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group)

modifier and group state

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

Parameters
serialserial number of the modifiers event
mods_depresseddepressed modifiers
mods_latchedlatched modifiers
mods_lockedlocked modifiers
groupkeyboard layout

Definition at line 4593 of file wayland-client-protocol.h.

◆ repeat_info

void(* wl_keyboard_listener::repeat_info) (void *data, struct wl_keyboard *wl_keyboard, int32_t rate, int32_t delay)

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.

Parameters
ratethe rate of repeating keys in characters per second
delaydelay in milliseconds since key down until repeating starts
Since
4

Definition at line 4620 of file wayland-client-protocol.h.


The documentation for this struct was generated from the following file: