glv::ButtonBase< V > Class Template Reference

Generic base class for buttons. More...

#include <glv_buttons.h>

Inheritance diagram for glv::ButtonBase< V >:

glv::ValueWidget< V, bool > glv::View glv::TRect< T > glv::Notifier glv::SmartObject< BaseClass > glv::Button glv::Buttons

List of all members.

Public Member Functions

 ButtonBase (const Rect &r, int nx=1, int ny=1, bool toggles=true, bool mutExc=false, iconFunc on=draw::rect, iconFunc off=0)
virtual void onDraw ()
 Main drawing callback.
virtual bool onEvent (Event::t e, GLV &g)
 Main event callback to be called after those in callback list.


Detailed Description

template<class V>
class glv::ButtonBase< V >

Generic base class for buttons.

Constructor & Destructor Documentation

template<class V>
glv::ButtonBase< V >::ButtonBase ( const Rect r,
int  nx = 1,
int  ny = 1,
bool  toggles = true,
bool  mutExc = false,
iconFunc  on = draw::rect,
iconFunc  off = 0 
) [inline]

Parameters:
[in] r geometry
[in] nx number along x (ignored by fixed size value types)
[in] ny number along y (ignored by fixed size value types)
[in] toggles whether the button toggles
[in] mutExc whether multiple buttons can be on
[in] on the on state icon
[in] off the off state icon


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

Generated on Thu Aug 12 23:55:16 2010 for GLV by  doxygen 1.5.5