mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
switch: add docs
This commit is contained in:
parent
967e788bc8
commit
a8aeadeab2
1 changed files with 7 additions and 1 deletions
|
|
@ -15,13 +15,19 @@
|
||||||
|
|
||||||
struct wlr_switch_impl;
|
struct wlr_switch_impl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A switch input device. Typically a switch input device can indicate whether
|
||||||
|
* a laptop lid is opened or closed, or whether tablet mode is enabled.
|
||||||
|
*
|
||||||
|
* See https://wayland.freedesktop.org/libinput/doc/latest/switches.html
|
||||||
|
*/
|
||||||
struct wlr_switch {
|
struct wlr_switch {
|
||||||
struct wlr_input_device base;
|
struct wlr_input_device base;
|
||||||
|
|
||||||
const struct wlr_switch_impl *impl;
|
const struct wlr_switch_impl *impl;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
struct wl_signal toggle;
|
struct wl_signal toggle; // struct wlr_switch_toggle_event
|
||||||
} events;
|
} events;
|
||||||
|
|
||||||
void *data;
|
void *data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue