2019-03-20 14:47:29 +11:00
|
|
|
#ifndef _SWAY_INPUT_SWITCH_H
|
|
|
|
#define _SWAY_INPUT_SWITCH_H
|
|
|
|
|
|
|
|
#include "sway/input/seat.h"
|
|
|
|
|
|
|
|
struct sway_switch {
|
2019-07-09 16:57:59 +10:00
|
|
|
struct sway_seat_device *seat_device;
|
|
|
|
enum wlr_switch_state state;
|
|
|
|
enum wlr_switch_type type;
|
2019-03-20 14:47:29 +11:00
|
|
|
|
2019-07-09 16:57:59 +10:00
|
|
|
struct wl_listener switch_toggle;
|
2019-03-20 14:47:29 +11:00
|
|
|
};
|
|
|
|
|
|
|
|
struct sway_switch *sway_switch_create(struct sway_seat *seat,
|
2019-07-09 16:57:59 +10:00
|
|
|
struct sway_seat_device *device);
|
2019-03-20 14:47:29 +11:00
|
|
|
|
|
|
|
void sway_switch_configure(struct sway_switch *sway_switch);
|
|
|
|
|
|
|
|
void sway_switch_destroy(struct sway_switch *sway_switch);
|
|
|
|
|
2019-07-09 16:57:59 +10:00
|
|
|
void sway_switch_retrigger_bindings_for_all(void);
|
|
|
|
|
2019-03-20 14:47:29 +11:00
|
|
|
#endif
|