|
|
|
@ -25,16 +25,18 @@ namespace guecs { |
|
|
|
|
std::queue<size_t> free_indices; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
enum class ModBit { |
|
|
|
|
NONE=0, |
|
|
|
|
hover=1, |
|
|
|
|
left=2, |
|
|
|
|
right=3 |
|
|
|
|
}; |
|
|
|
|
namespace ModBit { |
|
|
|
|
enum { |
|
|
|
|
NONE=0, |
|
|
|
|
hover=1, |
|
|
|
|
left=2, |
|
|
|
|
right=3 |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
using Modifiers = std::bitset<16>; |
|
|
|
|
|
|
|
|
|
constexpr const Modifiers NO_MODS{size_t(ModBit::NONE)}; |
|
|
|
|
constexpr const Modifiers NO_MODS{0}; |
|
|
|
|
|
|
|
|
|
struct Clickable { |
|
|
|
|
/* This is actually called by UI::mouse and passed the entity ID of the
|
|
|
|
|