3#include "TextElement.hpp"
4#include "Container.hpp"
10 AlertDialog(
const std::string& title,
const std::string& message);
17 std::function<void()> onConfirm;
18 std::function<void()> onCancel;
19 bool useAnimation =
true;
21 void setText(
const std::string& newText);
23 CST_Color blackColor = CST_Color{0, 0, 0, 0xff};
31 int dialogWidth = 450;
32 int dialogHeight = 200;
virtual void render(Element *parent) override
display the current state of the display
virtual bool process(InputEvents *event) override
process any input that is received for this element
AlertDialog(const std::string &title, const std::string &message)
Element * parent
the parent element (reference only, not owned)