Hypr/src/utilities/Keybind.hpp

17 lines
371 B
C++
Raw Normal View History

2021-11-19 20:20:05 +01:00
#pragma once
#include "../defines.hpp"
2021-11-19 20:20:05 +01:00
typedef void (*Dispatcher)(std::string);
class Keybind {
2021-11-19 20:20:05 +01:00
public:
2021-12-06 15:04:47 +01:00
Keybind(unsigned int, xcb_keysym_t, std::string, Dispatcher);
2021-11-19 20:20:05 +01:00
~Keybind();
2021-12-06 15:04:47 +01:00
EXPOSED_MEMBER(Mod, unsigned int, i);
EXPOSED_MEMBER(Keysym, xcb_keysym_t,);
EXPOSED_MEMBER(Command, std::string, sz);
2021-11-19 20:20:05 +01:00
EXPOSED_MEMBER(Dispatcher, Dispatcher, p);
};