37 static std::shared_ptr<UIAlert>
Create(std::weak_ptr<Window> parent_window, std::string text);
47 : name(t), id(id_), color(c)
50 void SetButtons(std::initializer_list<ButtonData>);
52 UIAlert(std::weak_ptr<Window> parent_window);
53 void Init(std::string);
54 std::shared_ptr<UIVBox> main_box;
55 std::shared_ptr<UIHBox> child_buttons_box;
56 std::shared_ptr<UILabel> child_label;
57 std::vector<std::shared_ptr<UIButton>> buttons;
Signal< ButtonID > on_button_pressed
Definition: UIAlert.hpp:41
void SetButtons(std::initializer_list< ButtonData >)
static std::shared_ptr< UIAlert > Create(std::weak_ptr< Window > parent_window, std::string text)
Definition: Alertable.hpp:26
void SetText(std::string)
Definition: UIAlert.hpp:35
Definition: UIMarginBox.hpp:25
ButtonID
Definition: Alertable.hpp:30
AlertType
Definition: Alertable.hpp:42
static const Color & Get(const std::string &)