#include <sliderbase.h>
Public Member Functions | |
virtual const s16 | getMinimumValue () const =0 |
virtual const s16 | getMaximumValue () const =0 |
virtual const s16 | getValue () const =0 |
virtual const s16 | getPageSize () const =0 |
virtual void | setMinimumValue (const s16 value)=0 |
virtual void | setMaximumValue (const s16 value)=0 |
virtual void | setValue (const s16 value)=0 |
virtual void | setValueWithBitshift (const s32 value)=0 |
virtual void | setPageSize (const s16 pageSize)=0 |
Defines the interface for slider gadgets.
virtual const s16 WoopsiUI::SliderBase::getMaximumValue | ( | ) | const [pure virtual] |
Get the largest value that the slider can represent.
Implemented in WoopsiUI::ScrollbarHorizontal, WoopsiUI::ScrollbarVertical, WoopsiUI::SliderHorizontal, and WoopsiUI::SliderVertical.
virtual const s16 WoopsiUI::SliderBase::getMinimumValue | ( | ) | const [pure virtual] |
Get the smallest value that the slider can represent.
Implemented in WoopsiUI::ScrollbarHorizontal, WoopsiUI::ScrollbarVertical, WoopsiUI::SliderHorizontal, and WoopsiUI::SliderVertical.
virtual const s16 WoopsiUI::SliderBase::getPageSize | ( | ) | const [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 gadget.
Implemented in WoopsiUI::ScrollbarHorizontal, WoopsiUI::ScrollbarVertical, WoopsiUI::SliderHorizontal, and WoopsiUI::SliderVertical.
virtual const s16 WoopsiUI::SliderBase::getValue | ( | ) | const [pure virtual] |
Get the current value of the slider. return The current slider value.
Implemented in WoopsiUI::ScrollbarHorizontal, WoopsiUI::ScrollbarVertical, WoopsiUI::SliderHorizontal, and WoopsiUI::SliderVertical.
virtual void WoopsiUI::SliderBase::setMaximumValue | ( | const s16 | value | ) | [pure virtual] |
Set the largest value that the slider can represent.
value | The largest value. |
Implemented in WoopsiUI::ScrollbarHorizontal, WoopsiUI::ScrollbarVertical, WoopsiUI::SliderHorizontal, and WoopsiUI::SliderVertical.
virtual void WoopsiUI::SliderBase::setMinimumValue | ( | const s16 | value | ) | [pure virtual] |
Set the smallest value that the slider can represent.
value | The smallest value. |
Implemented in WoopsiUI::ScrollbarHorizontal, WoopsiUI::ScrollbarVertical, WoopsiUI::SliderHorizontal, and WoopsiUI::SliderVertical.
virtual void WoopsiUI::SliderBase::setPageSize | ( | const s16 | pageSize | ) | [pure virtual] |
Set the page size represented by the grip.
pageSize | The page size. |
Implemented in WoopsiUI::ScrollbarHorizontal, WoopsiUI::ScrollbarVertical, WoopsiUI::SliderHorizontal, and WoopsiUI::SliderVertical.
virtual void WoopsiUI::SliderBase::setValue | ( | const s16 | value | ) | [pure virtual] |
Set the value that of the slider. This will reposition and redraw the grip.
value | The new value. |
Implemented in WoopsiUI::ScrollbarHorizontal, WoopsiUI::ScrollbarVertical, WoopsiUI::SliderHorizontal, and WoopsiUI::SliderVertical.
virtual void WoopsiUI::SliderBase::setValueWithBitshift | ( | const s32 | value | ) | [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 WoopsiUI::ScrollbarHorizontal, WoopsiUI::ScrollbarVertical, WoopsiUI::SliderHorizontal, and WoopsiUI::SliderVertical.