KiCad PCB EDA Suite
Loading...
Searching...
No Matches
STEPPED_SLIDER Class Reference

Customized wxSlider with forced stepping. More...

#include <stepped_slider.h>

Inheritance diagram for STEPPED_SLIDER:

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
 

Detailed Description

Customized wxSlider with forced stepping.

Definition at line 28 of file stepped_slider.h.

Constructor & Destructor Documentation

◆ STEPPED_SLIDER()

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.

◆ ~STEPPED_SLIDER()

STEPPED_SLIDER::~STEPPED_SLIDER ( )
virtual

Definition at line 41 of file stepped_slider.cpp.

Member Function Documentation

◆ GetStep()

int STEPPED_SLIDER::GetStep ( ) const

Get the step size.

Definition at line 65 of file stepped_slider.cpp.

References m_step.

◆ OnScroll()

void STEPPED_SLIDER::OnScroll ( wxScrollEvent &  aEvent)
private

Definition at line 71 of file stepped_slider.cpp.

References m_step.

◆ SetStep()

void STEPPED_SLIDER::SetStep ( int  aSize)

Set the step size.

Definition at line 45 of file stepped_slider.cpp.

References m_step.

Member Data Documentation

◆ m_step

int STEPPED_SLIDER::m_step
private

Definition at line 59 of file stepped_slider.h.

Referenced by GetStep(), OnScroll(), and SetStep().


The documentation for this class was generated from the following files: