Class MessageDialog

Inheritance Relationships

Base Type

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)
Label *messageLabel()
const Label *messageLabel() const
std::function<void(int)> callback() const
void setCallback(const std::function<void(int)> &callback)

Protected Attributes

std::function<void(int)> mCallback
Label *mMessageLabel