| 
    KiCad PCB EDA Suite
    
   | 
 
#include <split_button.h>
 Public Member Functions | |
| SPLIT_BUTTON (wxWindow *aParent, wxWindowID aId, const wxString &aLabel, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize) | |
| ~SPLIT_BUTTON () | |
| wxMenu * | GetSplitButtonMenu () | 
| void | SetBitmap (const wxBitmapBundle &aBmp) | 
| void | SetMinSize (const wxSize &aSize) override | 
| void | SetWidthPadding (int aPadding) | 
| void | SetLabel (const wxString &aLabel) override | 
| bool | Enable (bool aEnable=true) override | 
Protected Member Functions | |
| void | OnKillFocus (wxFocusEvent &aEvent) | 
| void | OnMouseLeave (wxMouseEvent &aEvent) | 
| void | OnMouseEnter (wxMouseEvent &aEvent) | 
| void | OnLeftButtonUp (wxMouseEvent &aEvent) | 
| void | OnLeftButtonDown (wxMouseEvent &aEvent) | 
| void | OnPaint (wxPaintEvent &WXUNUSED(aEvent)) | 
| void | onThemeChanged (wxSysColourChangedEvent &aEvent) | 
Private Attributes | |
| int | m_stateButton = 0 | 
| int | m_stateMenu = 0 | 
| bool | m_bIsEnable = true | 
| int | m_arrowButtonWidth | 
| int | m_widthPadding | 
| bool | m_bLButtonDown = false | 
| wxString | m_label | 
| wxMenu * | m_pMenu = nullptr | 
| wxBitmapBundle | m_bitmap | 
| wxSize | m_unadjustedMinSize | 
Definition at line 34 of file split_button.h.
| SPLIT_BUTTON::SPLIT_BUTTON | ( | wxWindow * | aParent, | 
| wxWindowID | aId, | ||
| const wxString & | aLabel, | ||
| const wxPoint & | aPos = wxDefaultPosition, | ||
| const wxSize & | aSize = wxDefaultSize ) | 
Definition at line 36 of file split_button.cpp.
References defaultSize(), m_arrowButtonWidth, m_label, m_pMenu, m_widthPadding, OnKillFocus(), OnLeftButtonDown(), OnLeftButtonUp(), OnMouseEnter(), OnMouseLeave(), OnPaint(), onThemeChanged(), and SetMinSize().
| SPLIT_BUTTON::~SPLIT_BUTTON | ( | ) | 
Definition at line 67 of file split_button.cpp.
References m_pMenu.
      
  | 
  override | 
Definition at line 330 of file split_button.cpp.
References m_bIsEnable, m_stateButton, m_stateMenu, and Refresh().
| wxMenu * SPLIT_BUTTON::GetSplitButtonMenu | ( | ) | 
Definition at line 117 of file split_button.cpp.
References m_pMenu.
      
  | 
  protected | 
Definition at line 123 of file split_button.cpp.
References m_stateButton, m_stateMenu, and Refresh().
Referenced by SPLIT_BUTTON().
      
  | 
  protected | 
Definition at line 193 of file split_button.cpp.
References m_arrowButtonWidth, m_bLButtonDown, m_pMenu, m_stateButton, m_stateMenu, and Refresh().
Referenced by SPLIT_BUTTON().
      
  | 
  protected | 
Definition at line 162 of file split_button.cpp.
References m_arrowButtonWidth, m_bLButtonDown, m_stateButton, m_stateMenu, and Refresh().
Referenced by SPLIT_BUTTON().
      
  | 
  protected | 
Definition at line 149 of file split_button.cpp.
References m_stateButton, m_stateMenu, and Refresh().
Referenced by SPLIT_BUTTON().
      
  | 
  protected | 
Definition at line 136 of file split_button.cpp.
References m_stateButton, m_stateMenu, and Refresh().
Referenced by SPLIT_BUTTON().
      
  | 
  protected | 
Definition at line 227 of file split_button.cpp.
References KIPLATFORM::UI::IsDarkTheme(), m_arrowButtonWidth, m_bIsEnable, m_bitmap, m_label, m_stateButton, and m_stateMenu.
Referenced by SPLIT_BUTTON().
      
  | 
  protected | 
| void SPLIT_BUTTON::SetBitmap | ( | const wxBitmapBundle & | aBmp | ) | 
Definition at line 95 of file split_button.cpp.
References m_bitmap, and SetMinSize().
      
  | 
  override | 
Definition at line 107 of file split_button.cpp.
      
  | 
  override | 
Definition at line 80 of file split_button.cpp.
References m_arrowButtonWidth, m_unadjustedMinSize, and m_widthPadding.
Referenced by SetBitmap(), SetWidthPadding(), and SPLIT_BUTTON().
| void SPLIT_BUTTON::SetWidthPadding | ( | int | aPadding | ) | 
Definition at line 88 of file split_button.cpp.
References m_unadjustedMinSize, m_widthPadding, and SetMinSize().
      
  | 
  private | 
Definition at line 62 of file split_button.h.
Referenced by OnLeftButtonDown(), OnLeftButtonUp(), OnPaint(), SetMinSize(), and SPLIT_BUTTON().
      
  | 
  private | 
Definition at line 61 of file split_button.h.
      
  | 
  private | 
Definition at line 67 of file split_button.h.
Referenced by OnPaint(), and SetBitmap().
      
  | 
  private | 
Definition at line 64 of file split_button.h.
Referenced by OnLeftButtonDown(), and OnLeftButtonUp().
      
  | 
  private | 
Definition at line 65 of file split_button.h.
Referenced by OnPaint(), SetLabel(), and SPLIT_BUTTON().
      
  | 
  private | 
Definition at line 66 of file split_button.h.
Referenced by GetSplitButtonMenu(), OnLeftButtonDown(), SPLIT_BUTTON(), and ~SPLIT_BUTTON().
      
  | 
  private | 
Definition at line 59 of file split_button.h.
Referenced by Enable(), OnKillFocus(), OnLeftButtonDown(), OnLeftButtonUp(), OnMouseEnter(), OnMouseLeave(), and OnPaint().
      
  | 
  private | 
Definition at line 60 of file split_button.h.
Referenced by Enable(), OnKillFocus(), OnLeftButtonDown(), OnLeftButtonUp(), OnMouseEnter(), OnMouseLeave(), and OnPaint().
      
  | 
  private | 
Definition at line 68 of file split_button.h.
Referenced by SetMinSize(), and SetWidthPadding().
      
  | 
  private | 
Definition at line 63 of file split_button.h.
Referenced by SetMinSize(), SetWidthPadding(), and SPLIT_BUTTON().