mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-14 06:59:43 -05:00
Merge pull request #999 from dcz-purism/virtual-keyboard
Support virtual keyboard protocol
This commit is contained in:
commit
e1f56538a8
10 changed files with 427 additions and 0 deletions
37
include/wlr/types/wlr_virtual_keyboard_v1.h
Normal file
37
include/wlr/types/wlr_virtual_keyboard_v1.h
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#ifndef WLR_TYPES_WLR_VIRTUAL_KEYBOARD_V1_H
|
||||
#define WLR_TYPES_WLR_VIRTUAL_KEYBOARD_V1_H
|
||||
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/interfaces/wlr_input_device.h>
|
||||
#include <wlr/interfaces/wlr_keyboard.h>
|
||||
|
||||
struct wlr_virtual_keyboard_manager_v1 {
|
||||
struct wl_global *global;
|
||||
struct wl_list resources; // struct wl_resource*
|
||||
struct wl_list virtual_keyboards; // struct wlr_virtual_keyboard_v1*
|
||||
|
||||
struct wl_listener display_destroy;
|
||||
|
||||
struct {
|
||||
struct wl_signal new_virtual_keyboard; // struct wlr_virtual_keyboard_v1*
|
||||
} events;
|
||||
};
|
||||
|
||||
struct wlr_virtual_keyboard_v1 {
|
||||
struct wl_resource *resource;
|
||||
struct wlr_input_device input_device;
|
||||
struct wlr_seat *seat;
|
||||
|
||||
struct wl_list link;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy; // struct wlr_virtual_keyboard_v1*
|
||||
} events;
|
||||
};
|
||||
|
||||
struct wlr_virtual_keyboard_manager_v1* wlr_virtual_keyboard_manager_v1_create(
|
||||
struct wl_display *display);
|
||||
void wlr_virtual_keyboard_manager_v1_destroy(
|
||||
struct wlr_virtual_keyboard_manager_v1 *manager);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue