49 #include "al/graphics/al_Graphics.hpp"
50 #include "al/io/al_Imgui.hpp"
61 AL_DIALOG_BUTTON_OK = 0x01,
62 AL_DIALOG_BUTTON_CANCEL = 0x02,
63 AL_DIALOG_BUTTON_YES = 0x04,
64 AL_DIALOG_BUTTON_NO = 0x08
67 enum class DialogResult : int {
74 Dialog(std::string title, std::string text,
75 int buttons = Buttons::AL_DIALOG_BUTTON_OK);
78 void start(std::function<
void(DialogResult)> doneCallback);
81 DialogResult getReturnValue();
89 std::function<void(DialogResult)> mDoneCallback;
94 DialogResult mReturnValue;
Interface for loading fonts and rendering text.