16 enum class Type : uint8_t {
26 BottomLeftResizeCorner,
27 BottomRightResizeCorner,
38 constexpr hitbox &operator=(
hitbox const &)
noexcept =
default;
39 constexpr hitbox &operator=(
hitbox &&)
noexcept =
default;
48 Type type = Type::Default) noexcept
54 friend bool operator<(
hitbox const &lhs,
hitbox const &rhs)
noexcept {
55 if ((lhs.widget ==
nullptr) == (rhs.widget ==
nullptr)) {
56 if (lhs._elevation == rhs._elevation) {
57 return static_cast<int>(lhs.type) <
static_cast<int>(rhs.type);
61 return lhs._elevation < rhs._elevation;
64 return lhs.widget ==
nullptr;