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

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

#include <CIcon.h>

Inheritance diagram for sptk::CIconMap:

Public Member Functions

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

Detailed Description

A map of theme icon names to theme icons.

Constructor & Destructor Documentation

◆ CIconMap()

sptk::CIconMap::CIconMap ( bool  shared = false)
inlineexplicit

Default constructor.

Parameters
sharedbool, if true then memory, allocated for the icons, isn't managed

Member Function Documentation

◆ insert()

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

Inserts a new icon into icon map.

Parameters
iconCIcon*, 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
tarCTar&, the loaded tar archive where images are located
nodexml::Node*, an XML node describing the theme icon images

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

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