Helper class to display modal dialogs. ModalDialogSettings.
Definition MRModalDialog.h:38
std::function< void()> onWindowClose
Callback for the window close event.
Definition MRModalDialog.h:32
MRVIEWER_API void endPopup()
Render the dialog's footer ("Don't show again" checkbox) and finish the dialog.
bool closeOnClickOutside
If set, close the dialog on mouse click outside of it.
Definition MRModalDialog.h:30
MRVIEWER_API ModalDialog(std::string label, ModalDialogSettings settings)
bool * dontShowAgain
Definition MRModalDialog.h:28
MRVIEWER_API bool beginPopup()
std::string text
Render a centered text under the headline.
Definition MRModalDialog.h:25
bool closeButton
Add a close button next in the top right corner of the dialog.
Definition MRModalDialog.h:23
static MRVIEWER_API float windowWidth()
Returns the current window width in pixels.
std::string headline
Definition MRModalDialog.h:21
float windowWidth
Dialog window width. If the value is zero or negative, defaults to cModalWindowWidth * UI::scale().
Definition MRModalDialog.h:18
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Settings for ModalDialog.
Definition MRModalDialog.h:16