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

On/Off switch button. More...

#include <button_switch.h>

Inheritance diagram for SwitchButton:
SwitchField

Public Member Functions

 SwitchButton (wxWindow *parent, int key, bool value=true)
 Toggle key on/off.
 
int GetKey ()
 
bool IsActive ()
 

Detailed Description

On/Off switch button.

Definition at line 30 of file button_switch.h.

Constructor & Destructor Documentation

◆ SwitchButton()

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

Toggle key on/off.

Parameters
parentParent window.
keyKey identifier.
valueInitial state.

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