39 void addItem(
const std::string& label, std::function<
void()> action);
44 [[nodiscard]]
bool isOpen()
const {
return _open; }
56 struct Item { std::string label; std::function<void()> action; };
61 std::vector<Item> _items;
63 bool _prevMouseDown =
false;
68 unsigned int _charSize = 14;
69 mutable int _hover = -1;
70 std::function<void()> _onClose;