Project Alice
Loading...
Searching...
No Matches
gui_generic_elements.hpp
Go to the documentation of this file.
1namespace ui {
3 public:
4 std::function<void(generic_callback_button&, sys::state&)> on_button_action = nullptr;
5 std::function<void(generic_callback_button&, sys::state&)> on_button_update = nullptr;
7
8 void on_update(sys::state& state) noexcept override {
10 }
11
12 void button_action(sys::state& state) noexcept override {
13 on_button_action(*this, state);
14 }
15
18 }
19
20 void update_tooltip(sys::state& state, int32_t x, int32_t y, text::columnar_layout& contents) noexcept override {
21 on_tooltip(*this, state, contents);
22 }
23 };
24}
std::function< void(generic_callback_button &, sys::state &)> on_button_action
void update_tooltip(sys::state &state, int32_t x, int32_t y, text::columnar_layout &contents) noexcept override
tooltip_behavior has_tooltip(sys::state &state) noexcept override
std::function< void(generic_callback_button &, sys::state &)> on_button_update
std::function< void(generic_callback_button &, sys::state &, text::columnar_layout &)> on_tooltip
void on_update(sys::state &state) noexcept override
void button_action(sys::state &state) noexcept override
tooltip_behavior
Holds important data about the game world, state, and other data regarding windowing,...