KiCad PCB EDA Suite
|
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. More...
#include <wx_collapsible_pane.h>
Public Member Functions | |
WX_COLLAPSIBLE_PANE_HEADER () | |
WX_COLLAPSIBLE_PANE_HEADER (wxWindow *aParent, wxWindowID aId, const wxString &aLabel, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=wxBORDER_NONE, const wxValidator &aValidator=wxDefaultValidator, const wxString &aName=wxT("COLLAPSIBLE_PANE_HEADER")) | |
bool | Create (wxWindow *aParent, wxWindowID aId, const wxString &aLabel, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=wxBORDER_NONE, const wxValidator &aValidator=wxDefaultValidator, const wxString &aName=wxT("COLLAPSIBLE_PANE_HEADER")) |
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 | |
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 36 of file wx_collapsible_pane.h.
|
inline |
Definition at line 39 of file wx_collapsible_pane.h.
References init().
|
inline |
Definition at line 44 of file wx_collapsible_pane.h.
bool WX_COLLAPSIBLE_PANE_HEADER::Create | ( | wxWindow * | aParent, |
wxWindowID | aId, | ||
const wxString & | aLabel, | ||
const wxPoint & | aPos = wxDefaultPosition , |
||
const wxSize & | aSize = wxDefaultSize , |
||
long | aStyle = wxBORDER_NONE , |
||
const wxValidator & | aValidator = wxDefaultValidator , |
||
const wxString & | aName = wxT( "COLLAPSIBLE_PANE_HEADER" ) |
||
) |
Definition at line 221 of file wx_collapsible_pane.cpp.
References onChar(), onEnterWindow(), onFocus(), onLeaveWindow(), onLeftUp(), and onPaint().
Referenced by WX_COLLAPSIBLE_PANE_HEADER().
|
overrideprotected |
Definition at line 259 of file wx_collapsible_pane.cpp.
References text.
|
private |
Definition at line 249 of file wx_collapsible_pane.cpp.
References SetCollapsed().
Referenced by onChar(), and onLeftUp().
|
private |
Definition at line 396 of file wx_collapsible_pane.cpp.
References m_collapsed, and m_inWindow.
Referenced by onPaint().
|
private |
Definition at line 214 of file wx_collapsible_pane.cpp.
References m_collapsed, and m_inWindow.
Referenced by WX_COLLAPSIBLE_PANE_HEADER().
|
inline |
Definition at line 63 of file wx_collapsible_pane.h.
References m_collapsed.
|
private |
Definition at line 379 of file wx_collapsible_pane.cpp.
References doSetCollapsed(), and m_collapsed.
Referenced by Create().
|
private |
Definition at line 356 of file wx_collapsible_pane.cpp.
References m_inWindow, and Refresh().
Referenced by Create().
|
private |
Definition at line 349 of file wx_collapsible_pane.cpp.
References Refresh().
Referenced by Create().
|
private |
Definition at line 364 of file wx_collapsible_pane.cpp.
References m_inWindow, and Refresh().
Referenced by Create().
|
private |
Definition at line 372 of file wx_collapsible_pane.cpp.
References doSetCollapsed(), and m_collapsed.
Referenced by Create().
|
private |
Definition at line 283 of file wx_collapsible_pane.cpp.
References drawArrow(), m_inWindow, and text.
Referenced by Create().
void WX_COLLAPSIBLE_PANE_HEADER::SetCollapsed | ( | bool | aCollapsed = true | ) |
Definition at line 242 of file wx_collapsible_pane.cpp.
References m_collapsed, and Refresh().
Referenced by WX_COLLAPSIBLE_PANE::Collapse(), and doSetCollapsed().
|
private |
Definition at line 74 of file wx_collapsible_pane.h.
Referenced by drawArrow(), init(), IsCollapsed(), onChar(), onLeftUp(), and SetCollapsed().
|
private |
Definition at line 75 of file wx_collapsible_pane.h.
Referenced by drawArrow(), init(), onEnterWindow(), onLeaveWindow(), and onPaint().
|
private |
Definition at line 73 of file wx_collapsible_pane.h.