43 MRVIEWER_API
void endPopup(
float menuScaling );
49 void setStyle_(
float menuScaling );
Helper class to display modal dialogs. ModalDialogSettings.
Definition MRModalDialog.h:35
MRVIEWER_API void endPopup(float menuScaling)
Render the dialog's footer ("Don't show again" checkbox) and finish the dialog.
MRVIEWER_API ModalDialog(std::string label, ModalDialogSettings settings)
static MRVIEWER_API float windowWidth()
Returns the current window width in pixels.
MRVIEWER_API bool beginPopup(float menuScaling)
Definition MRCameraOrientationPlugin.h:8
Settings for ModalDialog.
Definition MRModalDialog.h:13
std::function< void()> onWindowClose
Callback for the window close event.
Definition MRModalDialog.h:29
bool closeOnClickOutside
If set, close the dialog on mouse click outside of it.
Definition MRModalDialog.h:27
bool * dontShowAgain
Definition MRModalDialog.h:25
std::string text
Render a centered text under the headline.
Definition MRModalDialog.h:22
bool closeButton
Add a close button next in the top right corner of the dialog.
Definition MRModalDialog.h:20
std::string headline
Definition MRModalDialog.h:18
float windowWidth
Dialog window width. If the value is zero or negative, defaults to cModalWindowWidth * menuScaling.
Definition MRModalDialog.h:15