#ifndef __RGB_FLOAT_H #define __RGB_FLOAT_H #include #include #include using namespace std; class RgbFloat : public Fl_Group { public: RgbFloat(int x, int y); void setRGB(int r, int g, int b); void getRGB(uchar &r, uchar &g, uchar &b); private: int margen; Fl_Value_Input *vfRed, *vfGreen, *vfBlue; Fl_Box *frame; private: static void cambioCB(Fl_Widget *, long color); void _setRGB(int r, int g, int b); }; #endif