25#ifndef _SO_WIN_COLOR_SLIDER_
26#define _SO_WIN_COLOR_SLIDER_
28#include <Inventor/Win/SoWinBeginStrict.h>
30#include <Inventor/Win/SoWinSlider.h>
64 SoWinColorSlider(SoWidget parent = NULL,
65 const char *name = NULL,
66 SbBool buildInsideParent = TRUE,
67 Type type = INTENSITY_SLIDER);
86 void setBaseColor(
const float rgbOrHsv[3],
SbBool updateText = TRUE);
87 const float *getBaseColor() {
return color; }
94 void setWYSIWYG(
SbBool trueOrFalse);
95 SbBool isWYSIWYG() {
return WYSIWYGmode; }
98 SoWinColorSlider::Type getType() {
return type; }
106 SoWinColorSlider(SoWidget parent,
113 virtual void sizeChanged(
const SbVec2s &newSize);
117 virtual void drawSliderTopRegion();
125 SbColor *defaultColors, *colors;
129 void makeDefaultColors();
130 void makeWYSIWYGcolors();
132 static void sliderChangedCB(
void *,
float val);
135 void constructorCommon(SoWinColorSlider::Type type,
SbBool buildNow);
138#include <Inventor/Win/SoWinEndStrict.h>