![]() |

Gtk::MessageDialog presents a dialog with an image representing the type of message (Error, Question, etc.) alongside some message text. It's simply a convenience widget; you could construct the equivalent of Gtk::MessageDialog from Gtk::Dialog without too much effort, but Gtk::MessageDialog saves typing.
Public Member Functions | ||||
| const GtkMessageDialog* | gobj () const | |||
| Provides access to the underlying C GtkObject. | ||||
| GtkMessageDialog* | gobj () | |||
| Provides access to the underlying C GtkObject. | ||||
| MessageDialog (Gtk::Window& parent, const Glib::ustring& message, bool use_markup=false, MessageType type=MESSAGE_INFO, ButtonsType buttons=BUTTONS_OK, bool modal=false) | ||||
| MessageDialog (const Glib::ustring& message, bool use_markup=false, MessageType type=MESSAGE_INFO, ButtonsType buttons=BUTTONS_OK, bool modal=false) | ||||
| Glib::PropertyProxy_ReadOnly< ButtonsType > | property_buttons () const | |||
| The buttons shown in the message dialog. | ||||
| Glib::PropertyProxy_ReadOnly< Widget* > | property_image () const | |||
| The image. | ||||
| Glib::PropertyProxy<Widget*> | property_image () | |||
| The image. | ||||
| Glib::PropertyProxy_ReadOnly< MessageType > | property_message_type () const | |||
| The type of message. | ||||
| Glib::PropertyProxy<MessageType> | property_message_type () | |||
| The type of message. | ||||
| Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_secondary_text () const | |||
| The secondary text of the message dialog. | ||||
| Glib::PropertyProxy<Glib::ustring> | property_secondary_text () | |||
| The secondary text of the message dialog. | ||||
| Glib::PropertyProxy_ReadOnly< bool > | property_secondary_use_markup () const | |||
| The secondary text includes Pango markup. | ||||
| Glib::PropertyProxy<bool> | property_secondary_use_markup () | |||
| The secondary text includes Pango markup. | ||||
| Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_text () const | |||
| The primary text of the message dialog. | ||||
| Glib::PropertyProxy<Glib::ustring> | property_text () | |||
| The primary text of the message dialog. | ||||
| Glib::PropertyProxy_ReadOnly< bool > | property_use_markup () const | |||
| The primary text of the title includes Pango markup. | ||||
| Glib::PropertyProxy<bool> | property_use_markup () | |||
| The primary text of the title includes Pango markup. | ||||
| void | set_image (Widget& image) | |||
| void | set_markup (const Glib::ustring& str) | |||
| Sets the text of the message dialog to be str , which is marked up with the Pango text markup language. | ||||
| void | set_message (const Glib::ustring& message, bool use_markup=false) | |||
| Sets the primary text of the message dialog. | ||||
| void | set_secondary_text (const Glib::ustring& text, bool use_markup=false) | |||
| Sets the secondary text of the message dialog. | ||||
| virtual | ~MessageDialog () | |||
Related Functions | ||||
| (Note that these are not member functions.) | ||||
| Gtk::MessageDialog* | wrap (GtkMessageDialog* object, bool take_copy=false) | |||
| ||||
| virtual Gtk::MessageDialog::~MessageDialog | ( | ) | [virtual] |
| Gtk::MessageDialog::MessageDialog | ( | const Glib::ustring & | message, | |
| bool | use_markup = false, |
|||
| MessageType | type = MESSAGE_INFO, |
|||
| ButtonsType | buttons = BUTTONS_OK, |
|||
| bool | modal = false | |||
| ) | [explicit] |
| Gtk::MessageDialog::MessageDialog | ( | Gtk::Window& | parent, | |
| const Glib::ustring & | message, | |||
| bool | use_markup = false, |
|||
| MessageType | type = MESSAGE_INFO, |
|||
| ButtonsType | buttons = BUTTONS_OK, |
|||
| bool | modal = false | |||
| ) |
| const GtkMessageDialog* Gtk::MessageDialog::gobj | ( | ) | const [inline] |
| GtkMessageDialog* Gtk::MessageDialog::gobj | ( | ) | [inline] |
| Glib::PropertyProxy_ReadOnly<ButtonsType> Gtk::MessageDialog::property_buttons | ( | ) | const |
The buttons shown in the message dialog.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy_ReadOnly<Widget*> Gtk::MessageDialog::property_image | ( | ) | const |
The image.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy<Widget*> Gtk::MessageDialog::property_image | ( | ) |
The image.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy_ReadOnly<MessageType> Gtk::MessageDialog::property_message_type | ( | ) | const |
The type of message.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy<MessageType> Gtk::MessageDialog::property_message_type | ( | ) |
The type of message.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy_ReadOnly<Glib::ustring> Gtk::MessageDialog::property_secondary_text | ( | ) | const |
The secondary text of the message dialog.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy<Glib::ustring> Gtk::MessageDialog::property_secondary_text | ( | ) |
The secondary text of the message dialog.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy_ReadOnly<bool> Gtk::MessageDialog::property_secondary_use_markup | ( | ) | const |
The secondary text includes Pango markup.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy<bool> Gtk::MessageDialog::property_secondary_use_markup | ( | ) |
The secondary text includes Pango markup.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy_ReadOnly<Glib::ustring> Gtk::MessageDialog::property_text | ( | ) | const |
The primary text of the message dialog.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy<Glib::ustring> Gtk::MessageDialog::property_text | ( | ) |
The primary text of the message dialog.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy_ReadOnly<bool> Gtk::MessageDialog::property_use_markup | ( | ) | const |
The primary text of the title includes Pango markup.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| Glib::PropertyProxy<bool> Gtk::MessageDialog::property_use_markup | ( | ) |
The primary text of the title includes Pango markup.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
| void Gtk::MessageDialog::set_image | ( | Widget& | image | ) |
| void Gtk::MessageDialog::set_markup | ( | const Glib::ustring & | str | ) |
Sets the text of the message dialog to be str , which is marked up with the Pango text markup language.
| str | Markup string (see Pango markup format). |
| void Gtk::MessageDialog::set_message | ( | const Glib::ustring & | message, | |
| bool | use_markup = false | |||
| ) |
Sets the primary text of the message dialog.
| text | The message. | |
| use_markup | Whether message contains pango markup. |
| void Gtk::MessageDialog::set_secondary_text | ( | const Glib::ustring & | text, | |
| bool | use_markup = false | |||
| ) |
Sets the secondary text of the message dialog.
Note that setting a secondary text makes the primary text become bold, unless you have provided explicit markup.
| text | The message. | |
| use_markup | Whether message contains pango markup. |
| Gtk::MessageDialog* wrap | ( | GtkMessageDialog * | object, | |
| bool | take_copy = false | |||
| ) | [related] |
| object | The C instance |
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |