KiCad PCB EDA Suite
|
Customized wxSlider with forced stepping. More...
#include <stepped_slider.h>
Public Member Functions | |
STEPPED_SLIDER (wxWindow *aParent, wxWindowID aId, int aValue, int aMinValue, int aMaxValue, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=wxSL_HORIZONTAL, const wxValidator &aValidator=wxDefaultValidator, const wxString &aName=wxSliderNameStr) | |
virtual | ~STEPPED_SLIDER () |
void | SetStep (int aSize) |
Set the step size. | |
int | GetStep () const |
Get the step size. | |
Private Member Functions | |
void | OnScroll (wxScrollEvent &aEvent) |
Private Attributes | |
int | m_step |
Customized wxSlider with forced stepping.
Definition at line 28 of file stepped_slider.h.
STEPPED_SLIDER::STEPPED_SLIDER | ( | wxWindow * | aParent, |
wxWindowID | aId, | ||
int | aValue, | ||
int | aMinValue, | ||
int | aMaxValue, | ||
const wxPoint & | aPos = wxDefaultPosition, | ||
const wxSize & | aSize = wxDefaultSize, | ||
long | aStyle = wxSL_HORIZONTAL, | ||
const wxValidator & | aValidator = wxDefaultValidator, | ||
const wxString & | aName = wxSliderNameStr ) |
Definition at line 29 of file stepped_slider.cpp.
References m_step, and STEPPED_SLIDER().
Referenced by STEPPED_SLIDER().
|
virtual |
Definition at line 41 of file stepped_slider.cpp.
int STEPPED_SLIDER::GetStep | ( | ) | const |
|
private |
Definition at line 71 of file stepped_slider.cpp.
References m_step.
void STEPPED_SLIDER::SetStep | ( | int | aSize | ) |
|
private |
Definition at line 59 of file stepped_slider.h.
Referenced by GetStep(), OnScroll(), SetStep(), and STEPPED_SLIDER().