#include <glv_buttons.h>
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. |
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] |
[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 |