Class MessageDialog¶
Defined in File messagedialog.h
Page Contents
Inheritance Relationships¶
Base Type¶
public nanogui::Window
(Class Window)
Class Documentation¶
-
class
MessageDialog
: public nanogui::Window¶ Simple “OK” or “Yes/No”-style modal dialogs.
Public Types
-
enum
Type
¶ Classification of the type of message this MessageDialog represents.
Values:
-
Information
¶
-
Question
¶
-
Warning
¶
-
Public Functions
-
MessageDialog
(Widget *parent, Type type, const std::string &title = "Untitled", const std::string &message = "Message", const std::string &buttonText = "OK", const std::string &altButtonText = "Cancel", bool altButton = false)¶
-
std::function<void(int)>
callback
() const¶
-
void
setCallback
(const std::function<void(int)> &callback)¶
-
enum