libyui
3.0.10
|
#include <YMenuItem.h>
Public Member Functions | |
YMenuItem (const std::string &label) | |
YMenuItem (const std::string &label, const std::string &iconName) | |
YMenuItem (YMenuItem *parent, const std::string &label) | |
YMenuItem (YMenuItem *parent, const std::string &label, const std::string &iconName) | |
virtual | ~YMenuItem () |
YMenuItem * | parent () const |
Item class for menu items.
Definition at line 35 of file YMenuItem.h.
YMenuItem::YMenuItem | ( | const std::string & | label | ) | [inline] |
Constructors for toplevel items.
Definition at line 41 of file YMenuItem.h.
YMenuItem::YMenuItem | ( | YMenuItem * | parent, |
const std::string & | label | ||
) | [inline] |
Constructors for items that have a parent item.
They will automatically register this item with the parent item. The parent assumes ownership of this item and will delete it in its (the parent's) destructor.
Definition at line 57 of file YMenuItem.h.
virtual YMenuItem::~YMenuItem | ( | ) | [inline, virtual] |
YMenuItem* YMenuItem::parent | ( | ) | const [inline, virtual] |
Returns this item's parent item or 0 if it is a toplevel item.
Reimplemented from YTreeItem.
Definition at line 79 of file YMenuItem.h.