|
PieDock 1.4.3
|
#include <Surface.h>

Public Types | |
| enum | ColorDepth { Indexed = 8, HighColor = 16, RGB = 24, ARGB = 32 } |
Public Member Functions | |
| Surface (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= (Surface &) |
Protected Member Functions | |
| Surface () | |
| virtual void | calculateSize (int, int, int=ARGB) |
| virtual void | allocateData () |
| virtual void | freeData () |
Protected Attributes | |
| unsigned char * | data |
| int | width |
| int | height |
| int | depth |
| int | bytesPerPixel |
| int | bytesPerLine |
| int | padding |
| int | size |
Abstract surface
| Surface::Surface | ( | Surface & | s | ) |
Copy constructor
| s | - some surface |
| Surface::~Surface | ( | ) | [virtual] |
Free resources
References freeData().
| Surface::Surface | ( | ) | [protected] |
Initialize virtual surface
| void Surface::allocateData | ( | ) | [protected, virtual] |
Allocate data for surface
Reimplemented in PieDock::XSurface.
Referenced by PieDock::ArgbSurface::ArgbSurface(), PieDock::PngSurface::load(), and operator=().
| void Surface::calculateSize | ( | int | w, |
| int | h, | ||
| int | d = ARGB |
||
| ) | [protected, virtual] |
Calculate size in bytes of this surface
| w | - width of surface in pixels |
| h | - height of surface in pixels |
| d | - color depth, bits per pixel (optional) |
Referenced by PieDock::ArgbSurface::ArgbSurface(), PieDock::PngSurface::load(), and PieDock::XSurface::XSurface().
| void Surface::freeData | ( | ) | [protected, virtual] |
Free data of surface
Reimplemented in PieDock::XSurface.
Referenced by PieDock::PngSurface::load(), operator=(), and ~Surface().
1.7.3