20#ifndef SHOW_HIDE_WIDGET__H_
21#define SHOW_HIDE_WIDGET__H_
27#include "expand_icon.h"
42 std::function<
void()> on_resize = [] {});
54 void Create(wxWindow* child, std::function<
void()> on_resize = [] {} );
57 wxWindow*
GetIcon()
const {
return m_expand_icon; }
63 void OnClick(
bool collapse);
69 std::function<void()> m_on_resize;
Simple panel showing either an "expand" or "collapse" icon, state switches when clicked.
An ExpandIcon together with a child window.
ExpandablePanel(wxWindow *parent, wxWindow *child, std::function< void()> on_resize=[] {})
Single step constructor.
void Create(wxWindow *child, std::function< void()> on_resize=[] {})
Second part of two step creation.
ExpandablePanel(wxWindow *parent)
First part of two step create.
wxWindow * GetIcon() const
Return the ExpandableIcon reflecting expanded/collapsed state.
wxWindow * GetChild() const
Return the managed window which is shown or hidden.