sptk2 logo
SPTK Home Page
Public Member Functions | Public Attributes | List of all members
sptk::CIcon Class Reference

Class CIcon provides a storage of PNG image. More...

#include <CIcon.h>

Public Member Functions

 CIcon (const String &name="", CPngImage *image=0L, bool shared=true)
 Constructor.
 
 ~CIcon ()
 Destructor.
 
void load (const Buffer &imageData)
 Loads a PNG image from buffer. More...
 
CPngImageimage ()
 Returns an icon image.
 
String name () const
 Returns an icon symbolic name.
 
void image (CPngImage *img, bool shared)
 Sets the image pointer. More...
 

Public Attributes

bool m_shared
 

Detailed Description

Class CIcon provides a storage of PNG image.

Member Function Documentation

◆ image()

void sptk::CIcon::image ( CPngImage img,
bool  shared 
)
inline

Sets the image pointer.

Parameters
imgCPngImage*, an image pointer
sharedbool, if false then memory should be maintained by the class

References m_shared.

◆ load()

void sptk::CIcon::load ( const Buffer imageData)

Loads a PNG image from buffer.

Parameters
imageDataconst CBuffer&, an image data to load PNG image from

Member Data Documentation

◆ m_shared

bool sptk::CIcon::m_shared

Is this icon shared (stock) icon

Referenced by image(), and ~CIcon().


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

Fri Oct 14 2022 09:58:36: SPTK 5.4.1