|
JX Application Framework
|
#include <JSliderBase.h>
Classes | |
| class | Moved |
Public Member Functions | |
| JSliderBase (const JCoordinate thumbHalfSize, const JCoordinate w, const JCoordinate h) | |
| ~JSliderBase () override | |
| JFloat | GetValue () const |
| JFloat | GetMinValue () const |
| JFloat | GetMaxValue () const |
| JFloat | GetStepSize () const |
| void | SetValue (const JFloat value) |
| void | SetMinValue (const JFloat minValue) |
| void | SetMaxValue (const JFloat maxValue) |
| void | SetRange (const JFloat minValue, const JFloat maxValue) |
| void | SetStepSize (const JFloat step) |
Public Member Functions inherited from JBroadcaster | |
| JBroadcaster () | |
| virtual | ~JBroadcaster () |
| JBroadcaster & | operator= (const JBroadcaster &source) |
| bool | HasSenders () const |
| JSize | GetSenderCount () const |
| bool | HasRecipients () const |
| JSize | GetRecipientCount () const |
| virtual JString | ToString () const |
| template<class T > | |
| void | ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f) |
Static Public Attributes | |
| static const JUtf8Byte * | kMoved = "Moved::JSliderBase" |
Protected Types | |
| enum | SliderOrientation { kVertical , kHorizontal } |
Protected Member Functions | |
| SliderOrientation | GetOrientation () const |
| JCoordinate | GetThumbPosition () const |
| JFloat | ClickToValue (const JPoint &pt) const |
| JCoordinate | ValueToPixel (const JFloat value) const |
| virtual void | SliderRedraw () const =0 |
| virtual JCoordinate | SliderGetWidth () const =0 |
| virtual JCoordinate | SliderGetHeight () const =0 |
Protected Member Functions inherited from JBroadcaster | |
| JBroadcaster (const JBroadcaster &source) | |
| void | ListenTo (const JBroadcaster *sender) |
| void | StopListening (const JBroadcaster *sender) |
| void | ClearWhenGoingAway (const JBroadcaster *sender, void *pointerToMember) |
| void | StopListening (const JBroadcaster *sender, const std::type_info &messageType) |
| template<class T > | |
| void | Send (JBroadcaster *recipient, const T &message) |
| template<class T > | |
| void | Broadcast (const T &message) |
| virtual void | Receive (JBroadcaster *sender, const Message &message) |
| void | SendWithFeedback (JBroadcaster *recipient, Message *message) |
| void | BroadcastWithFeedback (Message *message) |
| virtual void | ReceiveWithFeedback (JBroadcaster *sender, Message *message) |
| virtual void | ReceiveGoingAway (JBroadcaster *sender) |
Interface for the JSliderBase class
Abstract base class for all types of sliders. A slider is an object that lets the user graphically set a value within some range. Each slider is either horizontal or vertical and can have a thumb for the user to grab.
|
protected |
| JSliderBase::JSliderBase | ( | const JCoordinate | thumbHalfSize, |
| const JCoordinate | w, | ||
| const JCoordinate | h | ||
| ) |
|
override |
Convert a pixel value to a slider value.
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inline |
| void JSliderBase::SetMaxValue | ( | const JFloat | maxValue | ) |
| void JSliderBase::SetMinValue | ( | const JFloat | minValue | ) |
| void JSliderBase::SetStepSize | ( | const JFloat | step | ) |
| void JSliderBase::SetValue | ( | const JFloat | value | ) |
|
protectedpure virtual |
Implemented in JXSliderBase.
|
protectedpure virtual |
Implemented in JXSliderBase.
|
protectedpure virtual |
Implemented in JXSliderBase.
|
protected |
Convert a slider value to a pixel value in local coordinates.
|
static |