|
Dusk Audio Framework
|
#include <Cairo.hpp>
Public Member Functions | |
| CairoImage () | |
| CairoImage (const char *rawData, uint width, uint height, ImageFormat format) | |
| CairoImage (const char *rawData, const Size< uint > &size, ImageFormat format) | |
| CairoImage (const CairoImage &image) | |
| ~CairoImage () override | |
| void | loadFromMemory (const char *rawData, const Size< uint > &size, ImageFormat format=kImageFormatBGRA) noexcept override |
| void | loadFromPNG (const char *pngData, uint dataSize) noexcept |
| void | drawAt (const GraphicsContext &context, const Point< int > &pos) override |
| cairo_surface_t * | getSurface () const noexcept |
| CairoImage & | operator= (const CairoImage &image) noexcept |
| void | loadFromMemory (const char *rdata, uint w, uint h, ImageFormat fmt=kImageFormatBGRA) |
| void | draw (const GraphicsContext &context) |
| void | drawAt (const GraphicsContext &context, int x, int y) |
| Public Member Functions inherited from ImageBase | |
| virtual | ~ImageBase () |
| bool | isValid () const noexcept |
| bool | isInvalid () const noexcept |
| uint | getWidth () const noexcept |
| uint | getHeight () const noexcept |
| const Size< uint > & | getSize () const noexcept |
| const char * | getRawData () const noexcept |
| ImageFormat | getFormat () const noexcept |
| void | loadFromMemory (const char *rawData, uint width, uint height, ImageFormat format=kImageFormatBGRA) noexcept |
| void | draw (const GraphicsContext &context) |
| void | drawAt (const GraphicsContext &context, int x, int y) |
| ImageBase & | operator= (const ImageBase &image) noexcept |
| bool | operator== (const ImageBase &image) const noexcept |
| bool | operator!= (const ImageBase &image) const noexcept |
Additional Inherited Members | |
| Protected Member Functions inherited from ImageBase | |
| ImageBase () | |
| ImageBase (const char *rawData, uint width, uint height, ImageFormat format) | |
| ImageBase (const char *rawData, const Size< uint > &size, ImageFormat format) | |
| ImageBase (const ImageBase &image) | |
| Protected Attributes inherited from ImageBase | |
| const char * | rawData |
| Size< uint > | size |
| ImageFormat | format |
Cairo Image class.
TODO ...
| CairoImage::CairoImage | ( | ) |
Constructor for a null Image.
| CairoImage::CairoImage | ( | const char * | rawData, |
| uint | width, | ||
| uint | height, | ||
| ImageFormat | format ) |
Constructor using raw image data.
| CairoImage::CairoImage | ( | const char * | rawData, |
| const Size< uint > & | size, | ||
| ImageFormat | format ) |
Constructor using raw image data.
| CairoImage::CairoImage | ( | const CairoImage & | image | ) |
Constructor using another image data.
|
override |
Destructor.
|
overridevirtualnoexcept |
Load raw image data from memory.
Reimplemented from ImageBase.
|
noexcept |
Load PNG image from memory. Image size is read from PNG contents.
|
overridevirtual |
Draw this image at position pos using the graphics context context.
Implements ImageBase.
|
inlinenoexcept |
Get the cairo surface currently associated with this image. FIXME might be removed
|
noexcept |
TODO document this.