PieDock  1.6.3
Cartouche.h
1 /*
2  * O ,-
3  * ° o . -´ ' ,-
4  * ° .´ ` . ´,´
5  * ( ° )) . (
6  * `-;_ . -´ `.`.
7  * `._' ´
8  *
9  * Copyright (c) 2007-2010 Markus Fisch <mf@markusfisch.de>
10  *
11  * Licensed under the MIT license:
12  * http://www.opensource.org/licenses/mit-license.php
13  */
14 #ifndef _PieDock_Cartouche_
15 #define _PieDock_Cartouche_
16 
17 #include "ArgbSurface.h"
18 
19 namespace PieDock
20 {
26  class Cartouche : public ArgbSurface
27  {
28  public:
29  Cartouche( int, int, int, unsigned int = 0xff000000 );
30  virtual ~Cartouche() {}
31 
32  protected:
33  struct Details
34  {
35  int top;
36  int left;
37  int bottom;
38  int right;
39  int bytesPerLine;
40  int color;
41  unsigned char *data;
42  };
43 
44  virtual void drawRectangle( int, int, int, int, unsigned int );
45  virtual void drawRoundedRectangle( int, int, int, int, int,
46  unsigned int );
47  virtual void drawCurveSlices( Details &, int, int, unsigned char );
48  };
49 }
50 
51 #endif