29# include <Inventor/Qt/SoQtSlider.h>
31# include <Inventor/Win/SoWinSlider.h>
34#include <Inventor/misc/SoCallbackList.h>
35#include <Inventor/Xt/SoXtGLWidget.h>
38class SoFloatCallbackList;
42typedef void SoXtSliderCB(
void *userData,
float val);
59 SoWidget parent = NULL,
60 const char *name = NULL,
61 SbBool buildInsideParent = TRUE);
72 void setValue(
float v);
73 float getValue()
const {
return value; }
81 SoNONUNICODE
void setLabel(
const char *newlabel);
88 void setLabel(
const SbString& newlabel);
91 SbString getLabel()
const {
return labelStr;}
98 void setNumericFieldVisible(
SbBool b);
99 SbBool isNumericFieldVisible()
const {
return numberVisible; }
108 void addStartCallback(
110 void *userData = NULL);
111 void addValueChangedCallback(
113 void *userData = NULL);
114 void addFinishCallback(
116 void *userData = NULL);
118 void removeStartCallback(
120 void *userData = NULL);
121 void removeValueChangedCallback(
123 void *userData = NULL);
124 void removeFinishCallback(
126 void *userData = NULL);
129 void interactivity(
SbBool flag ) { interactive = flag; }
130 SbBool isInteractive() {
return interactive; }
143 void setSliderSize(
const SbVec2s &size);
159 virtual void redraw();
160 virtual void processEvent(XAnyEvent *anyevent);
161 virtual void sizeChanged(
const SbVec2s &newSize);
163 SoWidget buildWidget(SoWidget parent);
169 virtual void drawSliderTopRegion();
173 short slx1, sly1, slx2, sly2;
174 short thumx1, thumy1, thumx2, thumy2;
178 SoWidget mgrWidget, numberWidget, sliderWidget, labelWidget;
186 short position, posdiff;
189 void doLabelLayout();
190 void doNumberLayout();
193 SoFloatCallbackList *startCallbacks;
194 SoFloatCallbackList *changedCallbacks;
195 SoFloatCallbackList *finishCallbacks;
199 static void textFieldCB(SoWidget, SoXtSlider *,
XtPointer);
202 void constructorCommon(
SbBool buildNow);
Class for smart character strings.
Translates and reports events for the mouse device.