OpenCPN Partial API docs
Loading...
Searching...
No Matches
SwitchButton Class Reference

On/Off switch button. More...

#include <button_switch.h>

Inheritance diagram for SwitchButton:

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.

Detailed Description

On/Off switch button.

Similar semantics as a wxCheckBox with a different UI.

Definition at line 32 of file button_switch.h.

Constructor & Destructor Documentation

◆ SwitchButton()

SwitchButton::SwitchButton ( wxWindow * parent,
int id,
bool value = true )

Construct a SwitchButton.

Parameters
parentParent window.
idWindow identifier, often wxID_ANY
valueInitial state.

The documentation for this class was generated from the following file:
  • /home/runner/work/main/main/opencpn/libs/gui/include/libgui/button_switch.h