34 KNOB_DOT = 0x00008000,
35 KNOB_TICKS = 0x00010000,
36 KNOB_INDICATOR = 0x00020000,
37 KNOB_NORMAL = (KNOB_NEEDLE|KNOB_TICKS)
61 FXint calcValue(FXint x,FXint y);
66 long onPaint(
FXObject*,FXSelector,
void*);
67 long onLeftBtnPress(
FXObject*,FXSelector,
void*);
68 long onLeftBtnRelease(
FXObject*,FXSelector,
void*);
69 long onMiddleBtnPress(
FXObject*,FXSelector,
void*);
70 long onMiddleBtnRelease(
FXObject*,FXSelector,
void*);
71 long onMouseWheel(
FXObject*,FXSelector,
void*);
72 long onUngrabbed(
FXObject*,FXSelector,
void*);
73 long onMotion(
FXObject*,FXSelector,
void*);
74 long onFocusIn(
FXObject*,FXSelector,
void*);
75 long onFocusOut(
FXObject*,FXSelector,
void*);
76 long onKeyPress(
FXObject*,FXSelector,
void*);
77 long onKeyRelease(
FXObject*,FXSelector,
void*);
78 long onAutoSlide(
FXObject*,FXSelector,
void*);
79 long onCmdSetValue(
FXObject*,FXSelector,
void*);
80 long onCmdSetIntValue(
FXObject*,FXSelector,
void*);
81 long onCmdGetIntValue(
FXObject*,FXSelector,
void*);
82 long onCmdSetLongValue(
FXObject*,FXSelector,
void*);
83 long onCmdGetLongValue(
FXObject*,FXSelector,
void*);
84 long onCmdSetRealValue(
FXObject*,FXSelector,
void*);
85 long onCmdGetRealValue(
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 FXKnob(
FXComposite* p,
FXObject* tgt=
nullptr,FXSelector sel=0,FXuint opts=KNOB_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=DEFAULT_PAD,FXint pr=DEFAULT_PAD,FXint pt=DEFAULT_PAD,FXint pb=DEFAULT_PAD);
107 virtual FXbool canFocus()
const;
110 virtual FXint getDefaultWidth();
113 virtual FXint getDefaultHeight();
116 virtual void layout();
119 virtual void enable();
122 virtual void disable();
125 void setValue(FXint value,FXbool notify=
false);
131 void setRange(FXint lo,FXint hi,FXbool notify=
false);
134 void getRange(FXint& lo,FXint& hi)
const { lo=range[0]; hi=range[1]; }
140 void setLimits(FXint start,FXint end,FXbool notify=
false);
143 void getLimits(FXint& start,FXint& end);
146 FXuint getKnobStyle()
const;
149 void setKnobStyle(FXuint style);
158 void setTickDelta(FXint dist);
164 void setLineColor(FXColor clr);
182 virtual void save(
FXStream& store)
const;
The Frame widget provides borders around some contents.
Definition: FXFrame.h:58
const FXString & getTipText() const
Get the current tooltip text value.
Definition: FXKnob.h:179
void setTipText(const FXString &text)
Set the tip text to be displayed in the tooltip.
Definition: FXKnob.h:176
Base composite.
Definition: FXComposite.h:32
const FXString & getHelpText() const
Get the current help text.
Definition: FXKnob.h:173
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
FXColor getLineColor() const
Get the current indicator needle color.
Definition: FXKnob.h:167
Definition: FX4Splitter.h:28
void setIncrement(FXint inc)
Change the knob's auto-increment/decrement value.
Definition: FXKnob.h:155
void getRange(FXint &lo, FXint &hi) const
Get the knob's current range.
Definition: FXKnob.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
FXint getIncrement() const
Get the knob's auto-increment/decrement value.
Definition: FXKnob.h:152
The knob widget is a valuator widget which provides simple linear value range.
Definition: FXKnob.h:48
void setHelpText(const FXString &text)
Set the help text to be displayed on the status line.
Definition: FXKnob.h:170
FXint getValue() const
Return knob value.
Definition: FXKnob.h:128
FXint getTickDelta() const
Get delta between ticks.
Definition: FXKnob.h:161
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42