#include <IconTextMenuItem.h>
Public Member Functions | |
IconTextMenuItem (const std::string &icon, const std::string &text) | |
operator GtkWidget * () | |
Private Attributes | |
GtkWidget * | _icon |
GtkWidget * | _label |
Utility class representing a menu item with an icon and text. The local icon image name and the label text are passed to the constructor, which creates the required GtkWidgets and returns them as part of a static cast to GtkWidget*. This class does NOT manage the resource allocations, the widgets will be created with the assumption that they will be packed into a GtkMenu which will be responsible for destroying the widgets if required.
Definition at line 24 of file IconTextMenuItem.h.
gtkutil::IconTextMenuItem::IconTextMenuItem | ( | const std::string & | icon, | |
const std::string & | text | |||
) | [inline] |
Definition at line 34 of file IconTextMenuItem.h.
gtkutil::IconTextMenuItem::operator GtkWidget * | ( | ) | [inline] |
Definition at line 41 of file IconTextMenuItem.h.
GtkWidget* gtkutil::IconTextMenuItem::_icon [private] |
Definition at line 28 of file IconTextMenuItem.h.
Referenced by operator GtkWidget *().
GtkWidget* gtkutil::IconTextMenuItem::_label [private] |
Definition at line 29 of file IconTextMenuItem.h.
Referenced by operator GtkWidget *().