21 #ifndef FXRANGERANGESLIDER_H 22 #define FXRANGERANGESLIDER_H 33 RANGESLIDER_HORIZONTAL = 0,
34 RANGESLIDER_VERTICAL = 0x00008000,
35 RANGESLIDER_ARROW_UP = 0x00010000,
36 RANGESLIDER_ARROW_DOWN = 0x00020000,
37 RANGESLIDER_ARROW_LEFT = RANGESLIDER_ARROW_UP,
38 RANGESLIDER_ARROW_RIGHT = RANGESLIDER_ARROW_DOWN,
39 RANGESLIDER_INSIDE_BAR = 0x00040000,
40 RANGESLIDER_NORMAL = RANGESLIDER_HORIZONTAL
70 void drawSliderHead(
FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h);
75 long onPaint(
FXObject*,FXSelector,
void*);
76 long onMotion(
FXObject*,FXSelector,
void*);
77 long onMouseWheel(
FXObject*,FXSelector,
void*);
78 long onLeftBtnPress(
FXObject*,FXSelector,
void*);
79 long onLeftBtnRelease(
FXObject*,FXSelector,
void*);
80 long onMiddleBtnPress(
FXObject*,FXSelector,
void*);
81 long onMiddleBtnRelease(
FXObject*,FXSelector,
void*);
82 long onKeyPress(
FXObject*,FXSelector,
void*);
83 long onKeyRelease(
FXObject*,FXSelector,
void*);
84 long onUngrabbed(
FXObject*,FXSelector,
void*);
85 long onAutoSlide(
FXObject*,FXSelector,
void*);
86 long onCmdSetIntRange(
FXObject*,FXSelector,
void*);
87 long onCmdGetIntRange(
FXObject*,FXSelector,
void*);
88 long onCmdSetRealRange(
FXObject*,FXSelector,
void*);
89 long onCmdGetRealRange(
FXObject*,FXSelector,
void*);
90 long onCmdSetHelp(
FXObject*,FXSelector,
void*);
91 long onCmdGetHelp(
FXObject*,FXSelector,
void*);
92 long onCmdSetTip(
FXObject*,FXSelector,
void*);
93 long onCmdGetTip(
FXObject*,FXSelector,
void*);
94 long onQueryHelp(
FXObject*,FXSelector,
void*);
95 long onQueryTip(
FXObject*,FXSelector,
void*);
98 ID_AUTOSLIDE=FXFrame::ID_LAST,
104 FXRangeSlider(
FXComposite* p,
FXObject* tgt=
nullptr,FXSelector sel=0,FXuint opts=RANGESLIDER_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);
107 virtual FXint getDefaultWidth();
110 virtual FXint getDefaultHeight();
113 virtual FXbool canFocus()
const;
116 virtual void layout();
119 virtual void enable();
122 virtual void disable();
125 void setValue(FXint head,FXint value,FXbool notify=
false);
128 FXint
getValue(FXint head)
const {
return values[1+head]; }
131 void setRange(FXint lo,FXint hi,FXbool notify=
false);
134 void getRange(FXint& lo,FXint& hi)
const { lo=values[0]; hi=values[3]; }
137 FXuint getSliderStyle()
const;
140 void setSliderStyle(FXuint style);
146 void setHeadSize(FXint hs);
152 void setSlotSize(FXint bs);
158 void setIncrement(FXint inc);
161 void setSlotColor(FXColor clr);
179 virtual void save(
FXStream& store)
const;
FXint getIncrement() const
Get the slider's auto-increment/decrement value.
Definition: FXRangeSlider.h:155
FXColor getSlotColor() const
Get the current slot color.
Definition: FXRangeSlider.h:164
The Frame widget provides borders around some contents.
Definition: FXFrame.h:58
void setHelpText(const FXString &text)
Set the help text to be displayed on the status line.
Definition: FXRangeSlider.h:167
Base composite.
Definition: FXComposite.h:32
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
Definition: FX4Splitter.h:28
FXint getHeadSize() const
Get the slider's head size.
Definition: FXRangeSlider.h:143
void getRange(FXint &lo, FXint &hi) const
Get the slider's current range.
Definition: FXRangeSlider.h:134
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
FXint getSlotSize() const
Get the slider's current slot size.
Definition: FXRangeSlider.h:149
The range slider widget is a valuator widget which determines a subrange of the given range...
Definition: FXRangeSlider.h:55
void setTipText(const FXString &text)
Set the tip text to be displayed in the tooltip.
Definition: FXRangeSlider.h:173
const FXString & getTipText() const
Get the current tooltip text value.
Definition: FXRangeSlider.h:176
const FXString & getHelpText() const
Get the current help text.
Definition: FXRangeSlider.h:170
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42
FXint getValue(FXint head) const
Return slider value.
Definition: FXRangeSlider.h:128