|
KiCad PCB EDA Suite
|
A header control for WX_COLLAPSIBLE_PANE. More...
#include <wx_collapsible_pane.h>
Public Member Functions | |
| WX_COLLAPSIBLE_PANE_HEADER (WX_COLLAPSIBLE_PANE *aParent, wxWindowID aId, const wxString &aLabel) | |
| bool | Create (wxWindow *aParent, wxWindowID aId, const wxString &aLabel) |
| void | SetCollapsed (bool aCollapsed=true) |
| bool | IsCollapsed () const |
Protected Member Functions | |
| wxSize | DoGetBestClientSize () const override |
Private Member Functions | |
| void | init () |
| void | onPaint (wxPaintEvent &aEvent) |
| void | onFocus (wxFocusEvent &aEvent) |
| void | onEnterWindow (wxMouseEvent &aEvent) |
| void | onLeaveWindow (wxMouseEvent &aEvent) |
| void | onLeftUp (wxMouseEvent &aEvent) |
| void | onChar (wxKeyEvent &aEvent) |
| void | doSetCollapsed (bool aCollapsed) |
| void | drawArrow (wxDC &aDC, wxRect aRect, bool aIsActive) |
Private Attributes | |
| WX_COLLAPSIBLE_PANE * | m_parent |
| wxString | m_label |
| bool | m_collapsed |
| bool | m_inWindow |
A header control for WX_COLLAPSIBLE_PANE.
Looks like a static text with a unicode arrow prepended to show the state. Takes the same space as a static text. This is similar to the wxCollapsiblePane on GTK.
Definition at line 42 of file wx_collapsible_pane.h.
| WX_COLLAPSIBLE_PANE_HEADER::WX_COLLAPSIBLE_PANE_HEADER | ( | WX_COLLAPSIBLE_PANE * | aParent, |
| wxWindowID | aId, | ||
| const wxString & | aLabel ) |
Definition at line 214 of file wx_collapsible_pane.cpp.
References Create(), init(), and m_parent.
Referenced by DoGetBestClientSize().
| bool WX_COLLAPSIBLE_PANE_HEADER::Create | ( | wxWindow * | aParent, |
| wxWindowID | aId, | ||
| const wxString & | aLabel ) |
Definition at line 231 of file wx_collapsible_pane.cpp.
References onChar(), onEnterWindow(), onFocus(), onLeaveWindow(), onLeftUp(), and onPaint().
Referenced by WX_COLLAPSIBLE_PANE_HEADER().
|
overrideprotected |
Definition at line 270 of file wx_collapsible_pane.cpp.
References m_parent, text, and WX_COLLAPSIBLE_PANE_HEADER().
|
private |
Definition at line 260 of file wx_collapsible_pane.cpp.
References SetCollapsed(), and WX_COLLAPSIBLE_PANE_HEADER_CHANGED.
Referenced by onChar(), and onLeftUp().
|
private |
Definition at line 407 of file wx_collapsible_pane.cpp.
References m_collapsed.
Referenced by onPaint().
|
private |
Definition at line 224 of file wx_collapsible_pane.cpp.
References m_collapsed, and m_inWindow.
Referenced by WX_COLLAPSIBLE_PANE_HEADER().
|
inline |
Definition at line 51 of file wx_collapsible_pane.h.
References m_collapsed.
|
private |
Definition at line 390 of file wx_collapsible_pane.cpp.
References doSetCollapsed(), and m_collapsed.
Referenced by Create().
|
private |
Definition at line 367 of file wx_collapsible_pane.cpp.
References m_inWindow.
Referenced by Create().
|
private |
Definition at line 360 of file wx_collapsible_pane.cpp.
Referenced by Create().
|
private |
Definition at line 375 of file wx_collapsible_pane.cpp.
References m_inWindow.
Referenced by Create().
|
private |
Definition at line 383 of file wx_collapsible_pane.cpp.
References doSetCollapsed(), and m_collapsed.
Referenced by Create().
|
private |
Definition at line 294 of file wx_collapsible_pane.cpp.
References drawArrow(), KIPLATFORM::UI::IsDarkTheme(), m_inWindow, m_parent, and text.
Referenced by Create().
| void WX_COLLAPSIBLE_PANE_HEADER::SetCollapsed | ( | bool | aCollapsed = true | ) |
Definition at line 253 of file wx_collapsible_pane.cpp.
References m_collapsed.
Referenced by doSetCollapsed().
|
private |
Definition at line 78 of file wx_collapsible_pane.h.
Referenced by drawArrow(), init(), IsCollapsed(), onChar(), onLeftUp(), and SetCollapsed().
|
private |
Definition at line 79 of file wx_collapsible_pane.h.
Referenced by init(), onEnterWindow(), onLeaveWindow(), and onPaint().
|
private |
Definition at line 77 of file wx_collapsible_pane.h.
|
private |
Definition at line 76 of file wx_collapsible_pane.h.
Referenced by DoGetBestClientSize(), onPaint(), and WX_COLLAPSIBLE_PANE_HEADER().