|
| CFrame (const Buffer &imageData, uint32_t frameWidth, uint32_t cornerZone, CPatternDrawMode drawMode=CPngImage::CPatternDrawMode::PDM_STRETCH, CFrameKind kind=CFrameKind::USER_EXTENDED) |
| Constructor. More...
|
|
void | drawResized (int x, int y, int w, int h, bool drawBackground) |
| Draws resized image. More...
|
|
uint32_t | frameWidth () const |
| Returns frame width, to keep widgets inside the frame w/o overlaping.
|
|
uint32_t | cornerZone () const |
| Returns corner zone width to draw the frame corners without changes.
|
|
CFrameKind | kind () const |
| Returns an expected usage of the frame.
|
|
void | cutTileDraw (int srcX, int srcY, int srcW, int srcH, int destX, int destY, int destW, int destH) |
| Draws a part of the image by cutting a corresponding source and tiling it in required area. More...
|
|
void | cutStretchDraw (int srcX, int srcY, int srcW, int srcH, int destX, int destY, int destW, int destH) |
| Draws a part of the image by cutting a corresponding source and stretching it in required area. More...
|
|
| CPngImage (const Buffer &imagedata) |
| Constructor. More...
|
|
| CPngImage (const Fl_RGB_Image *image) |
| Constructor. More...
|
|
| CPngImage (const String &fileName) |
| Constructor. More...
|
|
void | drawResized (int x, int y, int w, int h, int cornerZone, CPatternDrawMode drawMode, bool drawBackground) |
| Draws resized image. More...
|
|
void | drawResized (int x, int y, int w, int h, int border[], CPatternDrawMode drawMode, bool drawBackground) |
| Draws resized image. More...
|
|
|
void | load (const Buffer &buffer) |
| Internal loader from PNG image buffer. More...
|
|
static void | cutTileDraw (CPngImage *image, int srcX, int srcY, int srcW, int srcH, int destX, int destY, int destW, int destH) |
| Draws a part of the image by cutting a corresponding source and tiling it in required area. More...
|
|
static void | cutStretchDraw (CPngImage *image, int srcX, int srcY, int srcW, int srcH, int destX, int destY, int destW, int destH) |
| Draws a part of the image by cutting a corresponding source and stretching it in required area. More...
|
|
Frame information class.
Contains the frame image and frame width