#include <cSurfaceIcon.h>
Support for a single LOD from an ICO file format. (Cursors are the same as icons) http://en.wikipedia.org/wiki/ICO_%28file_format%29
◆ cSurfaceIcon()
GrayLib::cSurfaceIcon::cSurfaceIcon |
( |
bool |
bCursor = false | ) |
|
|
noexcept |
◆ ~cSurfaceIcon()
GrayLib::cSurfaceIcon::~cSurfaceIcon |
( |
| ) |
|
◆ DrawIconX()
Draw the icon to the surface. Draw m_SurfMask and possibly m_SurfColor. like _WIN32 DrawIconEx()
- Note
- name "DrawIcon" is "#define" in UNDER_CE
◆ get_Height()
PIXELS_t GrayLib::cSurfaceIcon::get_Height |
( |
void |
| ) |
const |
|
inlinenoexcept |
height in pixels not bytes.
◆ get_SizeImage()
size_t GrayLib::cSurfaceIcon::get_SizeImage |
( |
| ) |
const |
◆ get_Width()
PIXELS_t GrayLib::cSurfaceIcon::get_Width |
( |
void |
| ) |
const |
|
inlinenoexcept |
width in pixels not bytes.
◆ isValid()
bool GrayLib::cSurfaceIcon::isValid |
( |
| ) |
const |
|
inlinenoexcept |
◆ ReadStream1()
Read Just a single LODs of a MIME_EXT_ico file. similar to _WIN32 LoadImage() or maybe LoadIcon()
- Note
- may contain multiple icons of various sizes ??
◆ ReadStreamAll()
◆ ReadStreamH()
◆ ReadStreamNH()
◆ SetScaleIcon()
bool GrayLib::cSurfaceIcon::SetScaleIcon |
( |
const cSurfaceIcon & |
src, |
|
|
float |
fx, |
|
|
float |
fy |
|
) |
| |
Set this icon as a scaled version of some other icon. ASSUME fx != 1 || fy != 1
◆ UNITTEST_FRIEND()
◆ WriteStream1()
- Todo:
- Write MIME_EXT_ico file.
◆ WriteStreamAll()
◆ m_bCursor
bool GrayLib::cSurfaceIcon::m_bCursor |
The m_ptHotspot is set/used.
◆ m_ptHotspot
cPoint2i GrayLib::cSurfaceIcon::m_ptHotspot |
m_bCursor support this but Icons do not. PIXELS_t
◆ m_SurfColor
cSurface GrayLib::cSurfaceIcon::m_SurfColor |
◆ m_SurfMask
cSurface GrayLib::cSurfaceIcon::m_SurfMask |
The documentation for this class was generated from the following files: