MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ModalDialogSettings Struct Reference

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.
 

Detailed Description

Settings for ModalDialog.

Member Data Documentation

◆ closeButton

bool MR::ModalDialogSettings::closeButton = false

Add a close button next in the top right corner of the dialog.

◆ closeOnClickOutside

bool MR::ModalDialogSettings::closeOnClickOutside = false

If set, close the dialog on mouse click outside of it.

◆ dontShowAgain

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.

◆ headline

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.

◆ onWindowClose

std::function<void ()> MR::ModalDialogSettings::onWindowClose

Callback for the window close event.

◆ text

std::string MR::ModalDialogSettings::text

Render a centered text under the headline.

◆ windowWidth

float MR::ModalDialogSettings::windowWidth = 0.f

Dialog window width. If the value is zero or negative, defaults to cModalWindowWidth * menuScaling.


The documentation for this struct was generated from the following file: