Settings for ModalDialog. More...
#include <MRModalDialog.h>
Public Attributes | |
float | windowWidth = 0.f |
Dialog window width. If the value is zero or negative, defaults to cModalWindowWidth * menuScaling. | |
std::string | headline |
bool | closeButton = false |
Add a close button next in the top right corner of the dialog. | |
std::string | text |
Render a centered text under the headline. | |
bool * | dontShowAgain = nullptr |
bool | closeOnClickOutside = false |
If set, close the dialog on mouse click outside of it. | |
std::function< void()> | onWindowClose |
Callback for the window close event. | |
Settings for ModalDialog.
bool MR::ModalDialogSettings::closeButton = false |
Add a close button next in the top right corner of the dialog.
bool MR::ModalDialogSettings::closeOnClickOutside = false |
If set, close the dialog on mouse click outside of it.
bool* MR::ModalDialogSettings::dontShowAgain = nullptr |
If set, add a "Don't show the dialog again" checkbox at the end of the dialog. The checkbox value is bound to the field value.
std::string MR::ModalDialogSettings::headline |
Render a centered headline text at the beginning of the dialog. The RibbonFontManager::FontType::Headline font is used if exists.
std::function<void ()> MR::ModalDialogSettings::onWindowClose |
Callback for the window close event.
std::string MR::ModalDialogSettings::text |
Render a centered text under the headline.
float MR::ModalDialogSettings::windowWidth = 0.f |
Dialog window width. If the value is zero or negative, defaults to cModalWindowWidth * menuScaling.