8 #include "../../lib/vstguibase.h" 10 #if VSTGUI_LIVE_EDITING 12 #include "../../lib/ccolor.h" 13 #include "../../lib/idependency.h" 18 class UIColor :
protected CColor,
public CBaseObject,
public IDependency
21 UIColor () : CColor (kTransparentCColor), hue (0), saturation (0), lightness (0) {}
23 UIColor& operator= (
const CColor& c);
24 const CColor& base ()
const {
return *
this; }
26 double getRed ()
const {
return r; }
27 double getGreen ()
const {
return g; }
28 double getBlue ()
const {
return b; }
29 double getAlpha ()
const {
return alpha; }
31 double getHue ()
const {
return hue; }
32 double getSaturation ()
const {
return saturation; }
33 double getLightness ()
const {
return lightness; }
35 void setHue (
double h);
36 void setSaturation (
double s);
37 void setLightness (
double l);
39 void setRed (
double nr);
40 void setGreen (
double ng);
41 void setBlue (
double nb);
42 void setAlpha (
double na);
47 static IdStringPtr kMsgChanged;
48 static IdStringPtr kMsgEditChange;
49 static IdStringPtr kMsgBeginEditing;
50 static IdStringPtr kMsgEndEditing;
52 enum HSLUpdateDirection
58 void updateHSL (HSLUpdateDirection direction);
60 double hue, saturation, lightness;
66 #endif // VSTGUI_LIVE_EDITING Definition: customcontrols.cpp:8