sptk2 logo
SPTK Home Page

sptk::CIconMap Class Reference
[GUI Classes]

A map of theme icon names to theme icons. More...

#include <CIcon.h>

List of all members.

Public Member Functions

 CIconMap (bool shared=false)
 Default constructor.
 ~CIconMap ()
 Destructor.
void clear ()
 Removes all the allocated images.
void insert (CIcon *icon)
 Inserts a new icon into icon map.
void load (CTar &tar, CXmlNode *node)
 Loads a collection of images using information from XML node.


Detailed Description

A map of theme icon names to theme icons.

Constructor & Destructor Documentation

sptk::CIconMap::CIconMap ( bool  shared = false  )  [inline]

Default constructor.

Parameters:
shared bool, if true then memory, allocated for the icons, isn't managed


Member Function Documentation

void sptk::CIconMap::insert ( CIcon icon  ) 

Inserts a new icon into icon map.

Parameters:
icon CIcon*, a pointer to an icon

void sptk::CIconMap::load ( CTar tar,
CXmlNode node 
)

Loads a collection of images using information from XML node.

Any incorrect image information is ignored.

Parameters:
tar CTar&, the loaded tar archive where images are located
node CXmlNode*, an XML node describing the theme icon images


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

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