gtkutil::IconTextMenuItem Class Reference

#include <IconTextMenuItem.h>

Public Member Functions

 IconTextMenuItem (const std::string &icon, const std::string &text)
 operator GtkWidget * ()

Private Attributes

GtkWidget_icon
GtkWidget_label

Detailed Description

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.


Constructor & Destructor Documentation

gtkutil::IconTextMenuItem::IconTextMenuItem ( const std::string icon,
const std::string text 
) [inline]

Definition at line 34 of file IconTextMenuItem.h.


Member Function Documentation

gtkutil::IconTextMenuItem::operator GtkWidget * (  )  [inline]

Definition at line 41 of file IconTextMenuItem.h.

References _icon, and _label.


Field Documentation

Definition at line 28 of file IconTextMenuItem.h.

Referenced by operator GtkWidget *().

Definition at line 29 of file IconTextMenuItem.h.

Referenced by operator GtkWidget *().


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

Generated by  doxygen 1.6.2