PieDock 1.6.0

src/Cartouche.h

00001 /*
00002  *   O         ,-
00003  *  ° o    . -´  '     ,-
00004  *   °  .´        ` . ´,´
00005  *     ( °   ))     . (
00006  *      `-;_    . -´ `.`.
00007  *          `._'       ´
00008  *
00009  * Copyright (c) 2007-2010 Markus Fisch <mf@markusfisch.de>
00010  *
00011  * Licensed under the MIT license:
00012  * http://www.opensource.org/licenses/mit-license.php
00013  */
00014 #ifndef _PieDock_Cartouche_
00015 #define _PieDock_Cartouche_
00016 
00017 #include "ArgbSurface.h"
00018 
00019 namespace PieDock
00020 {
00026     class Cartouche : public ArgbSurface
00027     {
00028         public:
00029             Cartouche( int, int, int, unsigned int = 0xff000000 );
00030             virtual ~Cartouche() {}
00031 
00032         protected:
00033             struct Details
00034             {
00035                 int top;
00036                 int left;
00037                 int bottom;
00038                 int right;
00039                 int bytesPerLine;
00040                 int color;
00041                 unsigned char *data;
00042             };
00043 
00044             virtual void drawRectangle( int, int, int, int, unsigned int );
00045             virtual void drawRoundedRectangle( int, int, int, int, int, 
00046                 unsigned int );
00047             virtual void drawCurveSlices( Details &, int, int, unsigned char );
00048     };
00049 }
00050 
00051 #endif