21 #ifndef FXREALSLIDER_H 22 #define FXREALSLIDER_H 33 REALSLIDER_HORIZONTAL = 0,
34 REALSLIDER_VERTICAL = 0x00008000,
35 REALSLIDER_ARROW_UP = 0x00010000,
36 REALSLIDER_ARROW_DOWN = 0x00020000,
37 REALSLIDER_ARROW_LEFT = REALSLIDER_ARROW_UP,
38 REALSLIDER_ARROW_RIGHT = REALSLIDER_ARROW_DOWN,
39 REALSLIDER_INSIDE_BAR = 0x00040000,
40 REALSLIDER_TICKS_TOP = 0x00080000,
41 REALSLIDER_TICKS_BOTTOM = 0x00100000,
42 REALSLIDER_TICKS_LEFT = REALSLIDER_TICKS_TOP,
43 REALSLIDER_TICKS_RIGHT = REALSLIDER_TICKS_BOTTOM,
44 REALSLIDER_NORMAL = REALSLIDER_HORIZONTAL
74 void drawSliderHead(
FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
75 void drawHorzTicks(
FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
76 void drawVertTicks(
FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
81 long onPaint(
FXObject*,FXSelector,
void*);
82 long onMotion(
FXObject*,FXSelector,
void*);
83 long onMouseWheel(
FXObject*,FXSelector,
void*);
84 long onLeftBtnPress(
FXObject*,FXSelector,
void*);
85 long onLeftBtnRelease(
FXObject*,FXSelector,
void*);
86 long onMiddleBtnPress(
FXObject*,FXSelector,
void*);
87 long onMiddleBtnRelease(
FXObject*,FXSelector,
void*);
88 long onKeyPress(
FXObject*,FXSelector,
void*);
89 long onKeyRelease(
FXObject*,FXSelector,
void*);
90 long onUngrabbed(
FXObject*,FXSelector,
void*);
91 long onAutoSlide(
FXObject*,FXSelector,
void*);
92 long onCmdSetValue(
FXObject*,FXSelector,
void*);
93 long onCmdSetIntValue(
FXObject*,FXSelector,
void*);
94 long onCmdGetIntValue(
FXObject*,FXSelector,
void*);
95 long onCmdSetLongValue(
FXObject*,FXSelector,
void*);
96 long onCmdGetLongValue(
FXObject*,FXSelector,
void*);
97 long onCmdSetRealValue(
FXObject*,FXSelector,
void*);
98 long onCmdGetRealValue(
FXObject*,FXSelector,
void*);
99 long onCmdSetIntRange(
FXObject*,FXSelector,
void*);
100 long onCmdGetIntRange(
FXObject*,FXSelector,
void*);
101 long onCmdSetRealRange(
FXObject*,FXSelector,
void*);
102 long onCmdGetRealRange(
FXObject*,FXSelector,
void*);
103 long onCmdSetHelp(
FXObject*,FXSelector,
void*);
104 long onCmdGetHelp(
FXObject*,FXSelector,
void*);
105 long onCmdSetTip(
FXObject*,FXSelector,
void*);
106 long onCmdGetTip(
FXObject*,FXSelector,
void*);
107 long onQueryHelp(
FXObject*,FXSelector,
void*);
108 long onQueryTip(
FXObject*,FXSelector,
void*);
111 ID_AUTOSLIDE=FXFrame::ID_LAST,
117 FXRealSlider(
FXComposite* p,
FXObject* tgt=
nullptr,FXSelector sel=0,FXuint opts=REALSLIDER_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=0,FXint pr=0,FXint pt=0,FXint pb=0);
120 virtual FXint getDefaultWidth();
123 virtual FXint getDefaultHeight();
126 virtual FXbool canFocus()
const;
129 virtual void layout();
132 virtual void enable();
135 virtual void disable();
138 void setValue(FXdouble value,FXbool notify=
false);
144 void setRange(FXdouble lo,FXdouble hi,FXbool notify=
false);
147 void getRange(FXdouble& lo,FXdouble& hi)
const { lo=range[0]; hi=range[1]; }
150 FXuint getSliderStyle()
const;
153 void setSliderStyle(FXuint style);
159 void setHeadSize(FXint hs);
165 void setSlotSize(FXint bs);
171 void setIncrement(FXdouble inc);
174 void setGranularity(FXdouble gr);
180 void setTickDelta(FXdouble dist);
186 void setSlotColor(FXColor clr);
204 virtual void save(
FXStream& store)
const;
FXint getSlotSize() const
Get the slider's current slot size.
Definition: FXRealSlider.h:162
The real slider widget is a valuator widget which provides simple linear value range.
Definition: FXRealSlider.h:57
The Frame widget provides borders around some contents.
Definition: FXFrame.h:58
Base composite.
Definition: FXComposite.h:32
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
FXColor getSlotColor() const
Get the current slot color.
Definition: FXRealSlider.h:189
FXdouble getIncrement() const
Get the slider's auto-increment/decrement value.
Definition: FXRealSlider.h:168
void getRange(FXdouble &lo, FXdouble &hi) const
Get the slider's current range.
Definition: FXRealSlider.h:147
Definition: FX4Splitter.h:28
FXint getHeadSize() const
Get the slider's head size.
Definition: FXRealSlider.h:156
const FXString & getHelpText() const
Get the current help text.
Definition: FXRealSlider.h:195
void setHelpText(const FXString &text)
Set the help text to be displayed on the status line.
Definition: FXRealSlider.h:192
void setTipText(const FXString &text)
Set the tip text to be displayed in the tooltip.
Definition: FXRealSlider.h:198
FXdouble getGranularity() const
Return slider's granularity.
Definition: FXRealSlider.h:177
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:138
Window Device Context.
Definition: FXDCWindow.h:48
FXdouble getValue() const
Return slider value.
Definition: FXRealSlider.h:141
FXdouble getTickDelta() const
Get delta between ticks.
Definition: FXRealSlider.h:183
const FXString & getTipText() const
Get the current tooltip text value.
Definition: FXRealSlider.h:201
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42