corona  1.0.2
Public Member Functions
TestDeletionImage Class Reference
Inheritance diagram for TestDeletionImage:
Inheritance graph
[legend]
Collaboration diagram for TestDeletionImage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TestDeletionImage (int width, int height, PixelFormat format, byte *pixels, byte *palette, int palette_size, PixelFormat palette_format, bool &deleted)
 ~TestDeletionImage ()
int COR_CALL getWidth ()
int COR_CALL getHeight ()
PixelFormat COR_CALL getFormat ()
void *COR_CALL getPixels ()
void *COR_CALL getPalette ()
int COR_CALL getPaletteSize ()
PixelFormat COR_CALL getPaletteFormat ()

Detailed Description

Basically the same as SimpleImage, but it sets a boolean flag when the image is deleted.

Definition at line 120 of file APITests.cpp.


Constructor & Destructor Documentation

TestDeletionImage::TestDeletionImage ( int  width,
int  height,
PixelFormat  format,
byte pixels,
byte palette,
int  palette_size,
PixelFormat  palette_format,
bool &  deleted 
) [inline]

Definition at line 122 of file APITests.cpp.

Definition at line 138 of file APITests.cpp.


Member Function Documentation

int COR_CALL TestDeletionImage::getWidth ( ) [inline, virtual]

Get image width.

Returns:
image width

Implements corona::Image.

Definition at line 144 of file APITests.cpp.

int COR_CALL TestDeletionImage::getHeight ( ) [inline, virtual]

Get image height.

Returns:
image height

Implements corona::Image.

Definition at line 148 of file APITests.cpp.

PixelFormat COR_CALL TestDeletionImage::getFormat ( ) [inline, virtual]

Get pixel format.

Returns:
pixel format

Implements corona::Image.

Definition at line 152 of file APITests.cpp.

void* COR_CALL TestDeletionImage::getPixels ( ) [inline, virtual]

Get pixel buffer. The pixels are packed in the format defined by the image's pixel format.

Returns:
pointer to first element in pixel buffer

Implements corona::Image.

Definition at line 156 of file APITests.cpp.

void* COR_CALL TestDeletionImage::getPalette ( ) [inline, virtual]

Get the palette. Pixels are packed in the format defined by getPaletteFormat().

Returns:
pointer to first palette entry

Implements corona::Image.

Definition at line 160 of file APITests.cpp.

int COR_CALL TestDeletionImage::getPaletteSize ( ) [inline, virtual]

Get the number of entries in the palette.

Returns:
number of palette entries

Implements corona::Image.

Definition at line 164 of file APITests.cpp.

PixelFormat COR_CALL TestDeletionImage::getPaletteFormat ( ) [inline, virtual]

Get the format of the colors in the palette.

Returns:
pixel format of palette entries

Implements corona::Image.

Definition at line 168 of file APITests.cpp.


The documentation for this class was generated from the following file: