3#include "TextElement.hpp"
4#include "Container.hpp"
8 AlertDialog(
const std::string& title,
const std::string& message);
15 std::function<void()> onConfirm;
16 std::function<void()> onCancel;
17 bool useAnimation =
true;
19 void setText(
const std::string& newText);
21 CST_Color blackColor = CST_Color{0, 0, 0, 0xff};
27 int dialogWidth = 450;
28 int dialogHeight = 200;
virtual bool process(InputEvents *event) override
process any input that is received for this element
virtual void render(Element *parent) override
display the current state of the display
AlertDialog(const std::string &title, const std::string &message)
Element * parent
the parent element (can sometimes be null if it isn't set)