20#ifndef SHOW_HIDE_WIDGET__H_
21#define SHOW_HIDE_WIDGET__H_
27#include "expand_icon.h"
44 std::function<
void()> on_resize = [] {});
56 void Create(wxWindow* child, std::function<
void()> on_resize = [] {} );
59 wxWindow*
GetIcon()
const {
return m_expand_icon; }
65 void OnClick(
bool collapse);
71 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.