A map of theme icon names to theme icons.
More...
#include <CIcon.h>
|
| CIconMap (bool shared=false) |
| Default constructor. More...
|
|
| ~CIconMap () |
| Destructor.
|
|
void | clear () |
| Removes all the allocated images.
|
|
void | insert (CIcon *icon) |
| Inserts a new icon into icon map. More...
|
|
void | load (Tar &tar, const xdoc::SNode &node) |
| Loads a collection of images using information from XML node. More...
|
|
A map of theme icon names to theme icons.
◆ CIconMap()
sptk::CIconMap::CIconMap |
( |
bool |
shared = false | ) |
|
|
inlineexplicit |
Default constructor.
- Parameters
-
shared | bool, if true then memory, allocated for the icons, isn't managed |
◆ insert()
void sptk::CIconMap::insert |
( |
CIcon * |
icon | ) |
|
Inserts a new icon into icon map.
- Parameters
-
icon | CIcon*, a pointer to an icon |
◆ load()
void sptk::CIconMap::load |
( |
Tar & |
tar, |
|
|
const xdoc::SNode & |
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 | xml::Node*, an XML node describing the theme icon images |
The documentation for this class was generated from the following file: