|
#include <CIcon.h>
Public Member Functions | |
| CIcon (std::string name="", CPngImage *image=0L, bool shared=true) | |
| Constructor. | |
| ~CIcon () | |
| Destructor. | |
| void | load (const CBuffer &imageData) |
| Loads a PNG image from buffer. | |
| CPngImage * | image () |
| Returns an icon image. | |
| const std::string | name () const |
| Returns an icon symbolic name. | |
| void | image (CPngImage *img, bool shared) |
| Sets the image pointer. | |
Public Attributes | |
| bool | m_shared |
| Is this icon shared (stock) icon. | |
| void sptk::CIcon::image | ( | CPngImage * | img, | |
| bool | shared | |||
| ) | [inline] |
Sets the image pointer.
| img | CPngImage*, an image pointer | |
| shared | bool, if false then memory should be maintained by the class |
References m_shared.
| void sptk::CIcon::load | ( | const CBuffer & | imageData | ) |
Loads a PNG image from buffer.
| imageData | const CBuffer&, an image data to load PNG image from |