libyui
|
#include <YMenuItem.h>
Public Member Functions | |
YMenuItem (const string &label) | |
YMenuItem (const string &label, const string &iconName) | |
YMenuItem (YMenuItem *parent, const string &label) | |
YMenuItem (YMenuItem *parent, const string &label, const string &iconName) | |
virtual | ~YMenuItem () |
YMenuItem * | parent () const |
Item class for menu items.
YMenuItem::YMenuItem | ( | const string & | label | ) | [inline] |
Constructors for toplevel items.
YMenuItem::YMenuItem | ( | YMenuItem * | parent, |
const 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.
virtual YMenuItem::~YMenuItem | ( | ) | [inline, virtual] |
Destructor.
This will delete all children.
YMenuItem* YMenuItem::parent | ( | ) | const [inline, virtual] |
Returns this item's parent item or 0 if it is a toplevel item.
Reimplemented from YTreeItem.