libyui
Public Member Functions

YMenuItem Class Reference

#include <YMenuItem.h>

Inheritance diagram for YMenuItem:
YTreeItem YItem

List of all members.

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 ()
YMenuItemparent () const

Detailed Description

Item class for menu items.


Constructor & Destructor Documentation

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.


Member Function Documentation

YMenuItem* YMenuItem::parent ( ) const [inline, virtual]

Returns this item's parent item or 0 if it is a toplevel item.

Reimplemented from YTreeItem.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Friends