VRG3D::WidgetMgr Class Reference

#include <Widget.H>

List of all members.

Public Member Functions

 WidgetMgr (const std::string &pointerMoveEvent)
virtual ~WidgetMgr ()
void addWidget (WidgetRef widget, bool pointerActivated)
 Call this to add widgets to the manager.
void processEvent (EventRef event, Array< EventRef > &generatedEvents)
void doGraphics (RenderDevice *rd)
bool activateWidget (WidgetRef toActivate)


Detailed Description

This class manages all widgets in your program. See the description of Widgets for more info. You should create a new WidgetMgr in your app, and then pass it on to any widgets that you create. Then call widgetMgr->processEvent and doGraphics from within your subclass of VRApp. Widgets that implement the pointerOverWidget routine can be activated automatically when the pointer hovers over them. Other widgets can be activated in your code by calling widgetMgr->activateWidget(widget)


Constructor & Destructor Documentation

VRG3D::WidgetMgr::WidgetMgr const std::string &  pointerMoveEvent  )  [inline]
 

virtual VRG3D::WidgetMgr::~WidgetMgr  )  [inline, virtual]
 


Member Function Documentation

bool VRG3D::WidgetMgr::activateWidget WidgetRef  toActivate  )  [inline]
 

void VRG3D::WidgetMgr::addWidget WidgetRef  widget,
bool  pointerActivated
[inline]
 

Call this to add widgets to the manager.

void VRG3D::WidgetMgr::doGraphics RenderDevice *  rd  )  [inline]
 

Call this method from the doGraphics routine in your subclass of VRApp to draw the menu.

void VRG3D::WidgetMgr::processEvent EventRef  event,
Array< EventRef > &  generatedEvents
[inline]
 

Call this method from the doUserInput routine in your subclass of VRApp.


The documentation for this class was generated from the following file:
Generated on Mon Nov 20 23:11:03 2006 for VRG3D-UI by  doxygen 1.4.6