|
OpenCPN Partial API docs
|
Two state button showing either an edit. More...
#include <edit_button.h>
Public Member Functions | |
| EditButton (wxWindow *parent, int id, std::function< void()> on_click) | |
| Create a new instance. | |
| void | SetIcon (bool is_editing) |
| Set icon to either pen or checkmark. | |
Two state button showing either an edit.
or done icon 
Example: filter_dlg.cpp
Definition at line 16 of file edit_button.h.
| EditButton::EditButton | ( | wxWindow * | parent, |
| int | id, | ||
| std::function< void()> | on_click ) |
Create a new instance.
| parent | Containing window. |
| id | Window id, possibly wxID_ANY |
| on_click | Callback invoked when user clicks on button. |
| void EditButton::SetIcon | ( | bool | is_editing | ) |
Set icon to either pen or checkmark.
| is_editing | If true set icon to checkmark, else set it ri pen. |