Documentation for <wlr/types/wlr_switch.h>
Table of contents
struct wlr_switch ¶
struct wlr_switch { struct wlr_input_device base; const struct wlr_switch_impl *impl; struct { struct wl_signal toggle; } events; void *data; };
enum wlr_switch_state ¶
enum wlr_switch_state { WLR_SWITCH_STATE_OFF, WLR_SWITCH_STATE_ON, };
struct wlr_switch_toggle_event ¶
struct wlr_switch_toggle_event { uint32_t time_msec; enum wlr_switch_type switch_type; enum wlr_switch_state switch_state; };
enum wlr_switch_type ¶
enum wlr_switch_type { WLR_SWITCH_TYPE_LID, WLR_SWITCH_TYPE_TABLET_MODE, };