Files
GDevelop/Extensions/CommonDialogs/nwidgets/ColorBox.h
T
2014-06-30 21:39:29 +02:00

51 lines
672 B
C++

/**
* nWidgets
*
* Par Florian "4ian" Rival
*
*/
/**
*
* ColorBox is colored rectangle, which can be displayed
* in a window.
*/
#ifndef COLORBOX_H
#define COLORBOX_H
#include "dlib/gui_widgets.h"
#include <sstream>
#include <string>
using namespace std;
namespace nw
{
class ColorBox : public dlib::drawable
{
public:
ColorBox (dlib::drawable_window& w, dlib::rectangle area, unsigned char red_, unsigned char green_, unsigned char blue_);
~ColorBox ();
void set_rect(const dlib::rectangle & rect_);
private:
void draw( const dlib::canvas& c ) const;
unsigned char red, green,blue;
};
}//namespace nw
#endif // COLORBOX_H