| 
    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_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 38 of file wx_collapsible_pane.h.
      
  | 
  inline | 
Definition at line 41 of file wx_collapsible_pane.h.
References init().
Referenced by DoGetBestClientSize().
      
  | 
  inline | 
Definition at line 46 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, and WX_COLLAPSIBLE_PANE_HEADER().
      
  | 
  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(), and WX_COLLAPSIBLE_PANE_HEADER().
      
  | 
  inline | 
Definition at line 65 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 doSetCollapsed().
      
  | 
  private | 
Definition at line 76 of file wx_collapsible_pane.h.
Referenced by drawArrow(), init(), IsCollapsed(), onChar(), onLeftUp(), and SetCollapsed().
      
  | 
  private | 
Definition at line 77 of file wx_collapsible_pane.h.
Referenced by drawArrow(), init(), onEnterWindow(), onLeaveWindow(), and onPaint().
      
  | 
  private | 
Definition at line 75 of file wx_collapsible_pane.h.