Community Core Vision 1.4
Cross platform, user friendly computer vision.
C:/CCV/1.4/addons/ofxNCore/src/Controls/ofxGuiColor.h
Go to the documentation of this file.
00001 /*
00002  *  ofxGuiColor.h
00003  *  openFrameworks
00004  *
00005  *  Created by Stefan Kirch on 18.06.08.
00006  *  Copyright 2008 alphakanal. All rights reserved.
00007  *
00008  */
00009 
00010 //      ----------------------------------------------------------------------------------------------------
00011 
00012 #ifndef OFX_GUI_COLOR
00013 #define OFX_GUI_COLOR
00014 
00015 //      ----------------------------------------------------------------------------------------------------
00016 
00017 #include "ofxGuiTypes.h"
00018 #include "ofxGuiObject.h"
00019 
00020 //      ----------------------------------------------------------------------------------------------------
00021 
00022 class ofxGuiColor : public ofxGuiObject
00023         {
00024                 
00025         public:
00026                 
00027                 ofxGuiColor();
00028                 
00029                 void    init(int id, string name, int x, int y, int width, int height, ofRGBA value, int display);
00030                 
00031                 void    setValue(ofRGBA value);
00032                 
00033                 bool    update(int id, int task, void* data, int length);
00034                 void    draw();
00035                 
00036                 bool    mouseDragged(int x, int y, int button);
00037                 bool    mousePressed(int x, int y, int button);
00038                 bool    mouseReleased(int x, int y, int button);
00039                 
00040                 void    buildFromXml();
00041                 void    saveToXml();
00042                 
00043                 int             mouseToSlider(float y);
00044 
00045                 int             mSize, mSlider;
00046                 ofRGBA  mValue;
00047 };
00048 
00049 //      ----------------------------------------------------------------------------------------------------
00050 
00051 #endif
00052 
00053 //      ----------------------------------------------------------------------------------------------------
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines