#include <glv_buttons.h>

Public Member Functions | |
| Buttons (const Rect &r=Rect(20), int nx=1, int ny=1, bool toggles=true, bool mutExc=false, iconFunc on=draw::rect, iconFunc off=0) | |
| bool | value (int i) const |
| Get value at 1D index. | |
| Buttons & | value (bool v, int i) |
| Set value at 1D index and notify observers. | |
| Buttons & | value (bool v, int ix, int iy) |
| Set value at 2D index and notify observers. | |
| glv::Buttons::Buttons | ( | const Rect & | r = Rect(20), |
|
| 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 |
1.5.5