#include <Cartouche.h>
|
| | Cartouche (int, int, int, unsigned int=0xff000000) |
| |
| | ArgbSurface (int, int) |
| |
| | Surface (const Surface &) |
| |
| virtual | ~Surface () |
| |
|
unsigned char * | getData () const |
| |
|
const int & | getWidth () const |
| |
|
const int & | getHeight () const |
| |
|
const int & | getDepth () const |
| |
|
const int & | getBytesPerPixel () const |
| |
|
const int & | getBytesPerLine () const |
| |
|
const int & | getPadding () const |
| |
|
const int & | getSize () const |
| |
| Surface & | operator= (const Surface &) |
| |
|
| virtual void | drawRectangle (int, int, int, int, unsigned int) |
| |
| virtual void | drawRoundedRectangle (int, int, int, int, int, unsigned int) |
| |
| virtual void | drawCurveSlices (Details &, int, int, unsigned char) |
| |
|
| enum | ColorDepth { Indexed = 8,
HighColor = 16,
RGB = 24,
ARGB = 32
} |
| |
A plain solid rectangle with rounded corners
- Author
- Markus Fisch mf@ma.nosp@m.rkus.nosp@m.fisch.nosp@m..de
| Cartouche::Cartouche |
( |
int |
w, |
|
|
int |
h, |
|
|
int |
r, |
|
|
unsigned int |
c = 0xff000000 |
|
) |
| |
Create plain solid rectangle
- Parameters
-
| w | - width of rectangle in pixels |
| h | - height of rectangle in pixels |
| r | - radius of rounded corner in pixels |
| c | - color of rectangle (optional) |
References drawRectangle(), and drawRoundedRectangle().
| void Cartouche::drawCurveSlices |
( |
Details & |
d, |
|
|
int |
x, |
|
|
int |
y, |
|
|
unsigned char |
n |
|
) |
| |
|
protectedvirtual |
Draw curve slices of a rounded rectangle
- Parameters
-
| d | - details |
| x | - x curve position |
| y | - y curve position |
| n | - alpha of neighbouring pixel |
Referenced by drawRoundedRectangle().
| void Cartouche::drawRectangle |
( |
int |
left, |
|
|
int |
top, |
|
|
int |
right, |
|
|
int |
bottom, |
|
|
unsigned int |
color |
|
) |
| |
|
protectedvirtual |
Draw a solid rectangle
- Parameters
-
| left | - left corner of rectangle |
| top | - top corner of rectangle |
| right | - right corner of rectangle |
| bottom | - bottom corner of rectangle |
| color | - color of rectangle |
Referenced by Cartouche(), and drawRoundedRectangle().
| void Cartouche::drawRoundedRectangle |
( |
int |
left, |
|
|
int |
top, |
|
|
int |
right, |
|
|
int |
bottom, |
|
|
int |
radius, |
|
|
unsigned int |
color |
|
) |
| |
|
protectedvirtual |
Draw rounded rectangle
- Parameters
-
| left | - left corner of rectangle |
| top | - top corner of rectangle |
| right | - right corner of rectangle |
| bottom | - bottom corner of rectangle |
| radius | - radius of a corner |
| color | - color of rectangle |
References drawCurveSlices(), and drawRectangle().
Referenced by Cartouche().
The documentation for this class was generated from the following files: