sptk2 logo
SPTK Home Page

sptk::CIcon Class Reference
[GUI Classes]

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

#include <CIcon.h>

List of all members.

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.
CPngImageimage ()
 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.


Detailed Description

Class CIcon provides a storage of PNG image.

Member Function Documentation

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

Sets the image pointer.

Parameters:
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.

Parameters:
imageData const CBuffer&, an image data to load PNG image from


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

Mon Mar 5 11:56:15 2012: SPTK 3.5.7