MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ModalDialog Class Reference

Helper class to display modal dialogs. ModalDialogSettings. More...

#include <MRModalDialog.h>

Public Member Functions

MRVIEWER_API ModalDialog (std::string label, ModalDialogSettings settings)
 
MRVIEWER_API bool beginPopup (float menuScaling)
 
MRVIEWER_API void endPopup (float menuScaling)
 Render the dialog's footer ("Don't show again" checkbox) and finish the dialog.
 

Static Public Member Functions

static MRVIEWER_API float windowWidth ()
 Returns the current window width in pixels.
 

Detailed Description

Helper class to display modal dialogs. ModalDialogSettings.

Constructor & Destructor Documentation

◆ ModalDialog()

MRVIEWER_API MR::ModalDialog::ModalDialog ( std::string label,
ModalDialogSettings settings )

Member Function Documentation

◆ beginPopup()

MRVIEWER_API bool MR::ModalDialog::beginPopup ( float menuScaling)

Open the dialog and render its header (headline, close button, text). Returns true if the dialog window is open.

◆ endPopup()

MRVIEWER_API void MR::ModalDialog::endPopup ( float menuScaling)

Render the dialog's footer ("Don't show again" checkbox) and finish the dialog.

◆ windowWidth()

static MRVIEWER_API float MR::ModalDialog::windowWidth ( )
staticnodiscard

Returns the current window width in pixels.


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