16 enum class Type : uint8_t {
26 BottomLeftResizeCorner,
27 BottomRightResizeCorner,
47 friend bool operator<(
hit_box const &lhs,
hit_box const &rhs)
noexcept {
48 if (lhs.widget.expired() == rhs.widget.expired()) {
49 if (lhs.elevation == rhs.elevation) {
50 return static_cast<int>(lhs.type) <
static_cast<int>(rhs.type);
54 return lhs.elevation < rhs.elevation;
57 return lhs.widget.expired();