2019-03-20 04:47:29 +01:00
|
|
|
#ifndef _SWAY_INPUT_SWITCH_H
|
|
|
|
#define _SWAY_INPUT_SWITCH_H
|
|
|
|
|
|
|
|
#include "sway/input/seat.h"
|
|
|
|
|
|
|
|
struct sway_switch {
|
2019-07-09 08:57:59 +02:00
|
|
|
struct sway_seat_device *seat_device;
|
2022-06-21 23:10:38 +02:00
|
|
|
struct wlr_switch *wlr;
|
2019-07-09 08:57:59 +02:00
|
|
|
enum wlr_switch_state state;
|
|
|
|
enum wlr_switch_type type;
|
2019-03-20 04:47:29 +01:00
|
|
|
|
2019-07-09 08:57:59 +02:00
|
|
|
struct wl_listener switch_toggle;
|
2019-03-20 04:47:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct sway_switch *sway_switch_create(struct sway_seat *seat,
|
2019-07-09 08:57:59 +02:00
|
|
|
struct sway_seat_device *device);
|
2019-03-20 04:47:29 +01:00
|
|
|
|
|
|
|
void sway_switch_configure(struct sway_switch *sway_switch);
|
|
|
|
|
|
|
|
void sway_switch_destroy(struct sway_switch *sway_switch);
|
|
|
|
|
2019-07-09 08:57:59 +02:00
|
|
|
void sway_switch_retrigger_bindings_for_all(void);
|
|
|
|
|
2019-03-20 04:47:29 +01:00
|
|
|
#endif
|