OpenCPN Partial API docs
|
An ExpandIcon together with a child window. More...
#include <expand_panel.h>
Public Member Functions | |
ExpandablePanel (wxWindow *parent, wxWindow *child, std::function< void()> on_resize=[] {}) | |
Single step constructor. | |
ExpandablePanel (wxWindow *parent) | |
First part of two step create. | |
void | Create (wxWindow *child, std::function< void()> on_resize=[] {}) |
Second part of two step creation. | |
wxWindow * | GetIcon () const |
Return the ExpandableIcon reflecting expanded/collapsed state. | |
wxWindow * | GetChild () const |
Return the managed window which is shown or hidden. | |
Protected Member Functions | |
void | OnClick (bool collapse) |
An ExpandIcon together with a child window.
The child window is hidden or shown depending ong the ExpandIcon state.
Definition at line 33 of file expand_panel.h.
ExpandablePanel::ExpandablePanel | ( | wxWindow * | parent, |
wxWindow * | child, | ||
std::function< void()> | on_resize = [] {} |
||
) |
Single step constructor.
parent | Containing window |
child | Managed window, hidden/showń depending on ExpandIcon state |
on_resize | Callback invoked when child becomes hidden or shown. |
ExpandablePanel::ExpandablePanel | ( | wxWindow * | parent | ) |
First part of two step create.
parent | Containing window. |
void ExpandablePanel::Create | ( | wxWindow * | child, |
std::function< void()> | on_resize = [] {} |
||
) |
Second part of two step creation.
child | Window to be hidden/shown |
on_resize | Callback invoked when child becomes hidden or shown |
|
inline |
Return the managed window which is shown or hidden.
Definition at line 60 of file expand_panel.h.
|
inline |
Return the ExpandableIcon reflecting expanded/collapsed state.
Definition at line 57 of file expand_panel.h.