OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | List of all members
vrui::coMenuChangeListener Class Reference

Listener triggered whenever a Menu is changed. More...

#include <coMenuChangeListener.h>

Public Types

enum  { RENAME, STATE }
 

Public Member Functions

virtual ~coMenuChangeListener ()
 
virtual void itemAdded (coMenu *, coMenuItem *, int)
 
virtual void itemRemoved (coMenu *, coMenuItem *)
 
virtual void itemRenamed (coMenu *, coMenuItem *)
 
virtual void subMenuAdded (coMenu *, coGenericSubMenuItem *)
 
virtual void subMenuDeleted (coMenu *)
 

Detailed Description

Listener triggered whenever a Menu is changed.

Member Enumeration Documentation

anonymous enum
Enumerator
RENAME 
STATE 

Constructor & Destructor Documentation

virtual vrui::coMenuChangeListener::~coMenuChangeListener ( )
inlinevirtual

Member Function Documentation

virtual void vrui::coMenuChangeListener::itemAdded ( coMenu ,
coMenuItem ,
int   
)
inlinevirtual

Action listener for events triggered by coMenuItem. This method is called after a coMenuItem was added to the menu.

Parameters
menupointer to menu
menuItempointer to menu item which triggered this event
posposition in menu, -1 = at end
virtual void vrui::coMenuChangeListener::itemRemoved ( coMenu ,
coMenuItem  
)
inlinevirtual

Action listener for events triggered by coMenuItem. This method is called before a coMenuItem is removed from the menu.

Parameters
menupointer to menu
menuItempointer to menu item which triggered this event
virtual void vrui::coMenuChangeListener::itemRenamed ( coMenu ,
coMenuItem  
)
inlinevirtual

Action listener for events triggered by coMenuItem. This method is called when an item changed internal state

Parameters
menupointer to menu
menuItempointer to menu item which triggered this event
virtual void vrui::coMenuChangeListener::subMenuAdded ( coMenu ,
coGenericSubMenuItem  
)
inlinevirtual

the subMenuItem controlling this menu was set

Parameters
subMenupointer to the added submenu
buttonmenuItem responsible for doing this
virtual void vrui::coMenuChangeListener::subMenuDeleted ( coMenu )
inlinevirtual

a new submenu was deleted with this menu as parent

Parameters
subMenupointer to the deleted submenu

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