|
OpenCPN Partial API docs
|
Simple panel showing either an "expand" or "collapse" icon, state switches when clicked. More...
#include <expand_icon.h>
Public Member Functions | |
| ExpandableIcon (wxWindow *parent, std::function< void(bool)> on_toggle) | |
| Create a new expandable icon. | |
| bool | IsCollapsed () const |
Protected Member Functions | |
| void | Toggle () |
Protected Attributes | |
| bool | m_is_collapsed |
| wxBitmap | m_collapse_bitmap |
| wxBitmap | m_expand_bitmap |
| wxStaticBitmap * | m_static_bitmap |
| std::function< void(bool)> | m_on_toggle |
Simple panel showing either an "expand" or "collapse" icon, state switches when clicked.
The panel is small, roughly the size of one or two characters.
Definition at line 38 of file expand_icon.h.
| ExpandableIcon::ExpandableIcon | ( | wxWindow * | parent, |
| std::function< void(bool)> | on_toggle | ||
| ) |
Create a new expandable icon.
| parent | Containing window |
| on_toggle | Callback invoked when user clicks the panel. The bool argument reflects the new state, true if it is collapsed. |
|
inline |
Definition at line 48 of file expand_icon.h.
|
protected |
Definition at line 52 of file expand_icon.h.
|
protected |
Definition at line 53 of file expand_icon.h.
|
protected |
Definition at line 51 of file expand_icon.h.
|
protected |
Definition at line 55 of file expand_icon.h.
|
protected |
Definition at line 54 of file expand_icon.h.