Item Class Reference

#include <menu.h>

Collaboration diagram for Item:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Type {
  ACTION, CLIENT, DCLIENT, WORKSPACE,
  ROOT, ROOTITEM, SEPARATOR
}

Public Member Functions

 Item (string name, void *data, Type type)
 Item class implementation.
 ~Item ()
LItemitems ()
void addItem (Item *item)
void removeItem (Item *item)
Type type () const
string name () const
Itemparent () const
void setParent (Item *parent)
void * data () const
unsigned int size ()

Private Attributes

string name_
void * data_
LItem items_
Type type_
Itemparent_

Detailed Description

Items for menu.

Definition at line 33 of file menu.h.


Member Enumeration Documentation

enum Item::Type

Enumerator:
ACTION 
CLIENT 
DCLIENT 
WORKSPACE 
ROOT 
ROOTITEM 
SEPARATOR 

Definition at line 46 of file menu.h.


Constructor & Destructor Documentation

Item::Item ( string  name,
void *  data,
Type  type 
)

Item class implementation.

Definition at line 27 of file menu.cpp.

References addItem(), Workspace::attached(), Workspace::clients(), data_, DCLIENT, Monitor::detachedClients(), Container< P, LT, LTI, T >::focused(), name_, ROOTITEM, SEPARATOR, Container< P, LT, LTI, T >::size(), Monitor::stickyClients(), type_, and WORKSPACE.

Here is the call graph for this function:

Item::~Item (  ) 

Definition at line 70 of file menu.cpp.

References items_.


Member Function Documentation

LItem * Item::items (  ) 

Definition at line 79 of file menu.cpp.

References items_.

Referenced by Menu::handleButtonPress(), Menu::handleMotionNotify(), Menu::illuminate(), Menu::manage(), and Menu::updateItemTree().

void Item::addItem ( Item item  ) 

Definition at line 83 of file menu.cpp.

References items_, and setParent().

Referenced by Item(), and Menu::updateItemTree().

Here is the call graph for this function:

void Item::removeItem ( Item item  ) 

Definition at line 88 of file menu.cpp.

References items_, and setParent().

Here is the call graph for this function:

Item::Type Item::type (  )  const

Definition at line 93 of file menu.cpp.

References type_.

Referenced by Menu::handleButtonPress().

string Item::name (  )  const

Definition at line 97 of file menu.cpp.

References name_.

Item * Item::parent (  )  const

Definition at line 105 of file menu.cpp.

References parent_.

Referenced by Menu::handleButtonPress(), and setParent().

void Item::setParent ( Item parent  ) 

Definition at line 109 of file menu.cpp.

References parent(), and parent_.

Referenced by addItem(), and removeItem().

Here is the call graph for this function:

void * Item::data (  )  const

Definition at line 113 of file menu.cpp.

References data_.

Referenced by Menu::handleButtonPress().

unsigned int Item::size (  ) 

Definition at line 101 of file menu.cpp.

References items_.


Member Data Documentation

string Item::name_ [private]

Definition at line 67 of file menu.h.

Referenced by Item(), and name().

void* Item::data_ [private]

Definition at line 68 of file menu.h.

Referenced by data(), and Item().

LItem Item::items_ [private]

Definition at line 69 of file menu.h.

Referenced by addItem(), items(), removeItem(), size(), and ~Item().

Type Item::type_ [private]

Definition at line 70 of file menu.h.

Referenced by Item(), and type().

Item* Item::parent_ [private]

Definition at line 71 of file menu.h.

Referenced by parent(), and setParent().


The documentation for this class was generated from the following files:
Generated on Thu May 24 15:20:07 2007 for ncwm by  doxygen 1.5.1