|
OpenCPN Partial API docs
|
On/Off switch button. More...
#include <button_switch.h>
Public Member Functions | |
| SwitchButton (wxWindow *parent, int id, bool value=true) | |
| Construct a SwitchButton. | |
| bool | GetValue () |
| Return on/off state as visible in UI. | |
| void | SetValue (bool value) |
| Set the internal value. | |
On/Off switch button.
Similar semantics as a wxCheckBox with a different UI.
Definition at line 32 of file button_switch.h.
| SwitchButton::SwitchButton | ( | wxWindow * | parent, |
| int | id, | ||
| bool | value = true |
||
| ) |
Construct a SwitchButton.
| parent | Parent window. |
| id | Window identifier, often wxID_ANY |
| value | Initial state. |