|
NXWidgets
1.19
|
#include <islider.hxx>

Public Member Functions | |
| virtual | ~ISlider (void) |
| virtual const int | getMinimumValue (void) const =0 |
| virtual const int | getMaximumValue (void) const =0 |
| virtual const int | getValue (void) const =0 |
| virtual const nxgl_coord_t | getPageSize (void) const =0 |
| virtual void | setMinimumValue (const int value)=0 |
| virtual void | setMaximumValue (const int value)=0 |
| virtual void | setValue (const int value)=0 |
| virtual void | setValueWithBitshift (const int32_t value)=0 |
| virtual void | setPageSize (const nxgl_coord_t pageSize)=0 |
Defines the interface for slider widgets.
Definition at line 99 of file islider.hxx.
|
inlinevirtual |
A virtual destructor is required in order to override the ISlider destructor. We do this because if we delete ISlider, we want the destructor of the class that inherits from ISlider to run, not this one.
Definition at line 109 of file islider.hxx.
|
pure virtual |
Get the largest value that the slider can represent.
Implemented in NXWidgets::CSliderVertical, NXWidgets::CSliderHorizontal, NXWidgets::CGlyphSliderHorizontal, NXWidgets::CScrollbarHorizontal, and NXWidgets::CScrollbarVertical.
|
pure virtual |
Get the smallest value that the slider can represent.
Implemented in NXWidgets::CSliderVertical, NXWidgets::CSliderHorizontal, NXWidgets::CGlyphSliderHorizontal, NXWidgets::CScrollbarHorizontal, and NXWidgets::CScrollbarVertical.
|
pure virtual |
Get the value represented by the height of the grip. For sliders, this would typically be 1 (so each new grip position is worth 1). For scrollbars, this would be the height of the scrolling widget.
Implemented in NXWidgets::CSliderHorizontal, NXWidgets::CSliderVertical, NXWidgets::CGlyphSliderHorizontal, NXWidgets::CScrollbarHorizontal, and NXWidgets::CScrollbarVertical.
|
pure virtual |
Get the current value of the slider.
return The current slider value.
Implemented in NXWidgets::CSliderHorizontal, NXWidgets::CSliderVertical, NXWidgets::CGlyphSliderHorizontal, NXWidgets::CScrollbarHorizontal, and NXWidgets::CScrollbarVertical.
|
pure virtual |
Set the largest value that the slider can represent.
| value | The largest value. |
Implemented in NXWidgets::CSliderHorizontal, NXWidgets::CSliderVertical, NXWidgets::CGlyphSliderHorizontal, NXWidgets::CScrollbarHorizontal, and NXWidgets::CScrollbarVertical.
|
pure virtual |
Set the smallest value that the slider can represent.
| value | The smallest value. |
Implemented in NXWidgets::CSliderHorizontal, NXWidgets::CSliderVertical, NXWidgets::CGlyphSliderHorizontal, NXWidgets::CScrollbarHorizontal, and NXWidgets::CScrollbarVertical.
|
pure virtual |
Set the page size represented by the grip.
| pageSize | The page size. |
Implemented in NXWidgets::CSliderHorizontal, NXWidgets::CSliderVertical, NXWidgets::CGlyphSliderHorizontal, NXWidgets::CScrollbarHorizontal, and NXWidgets::CScrollbarVertical.
|
pure virtual |
Set the value that of the slider. This will reposition and redraw the grip.
| value | The new value. |
Implemented in NXWidgets::CSliderHorizontal, NXWidgets::CSliderVertical, NXWidgets::CGlyphSliderHorizontal, NXWidgets::CScrollbarHorizontal, and NXWidgets::CScrollbarVertical.
|
pure virtual |
Set the value that of the slider. This will reposition and redraw the grip. The supplied value should be bitshifted left 16 places. This ensures greater accuracy than the standard setValue() method if the slider is being used as a scrollbar.
| value | The new value. |
Implemented in NXWidgets::CSliderHorizontal, NXWidgets::CSliderVertical, NXWidgets::CGlyphSliderHorizontal, NXWidgets::CScrollbarHorizontal, and NXWidgets::CScrollbarVertical.
1.8.13