IconCache Struct Reference

#include <ibrowser.h>

Collaboration diagram for IconCache:

Collaboration graph
[legend]

Public Member Functions

 IconCache ()
void init ()
const Iconextract (const String &path)
const Iconextract (LPCTSTR path, int idx)
const Iconextract (IExtractIcon *pExtract, LPCTSTR path, int idx)
const Iconadd (HICON hIcon, ICON_TYPE type=IT_DYNAMIC)
const Iconadd (int sys_idx)
const Iconget_icon (int icon_id)
HIMAGELIST get_sys_imagelist () const
void free_icon (int icon_id)

Protected Types

typedef map< int, IconIconMap
typedef map< String, ICON_IDPathMap
typedef pair< String, int > CachePair
typedef map< CachePair, ICON_IDPathIdxMap

Protected Attributes

IconMap _icons
PathMap _pathMap
PathIdxMap _pathIdxMap
HIMAGELIST _himlSys

Static Protected Attributes

static int s_next_id

Detailed Description

Definition at line 160 of file ibrowser.h.


Member Typedef Documentation

typedef map<int, Icon> IconCache::IconMap [protected]

Definition at line 180 of file ibrowser.h.

typedef map<String, ICON_ID> IconCache::PathMap [protected]

Definition at line 183 of file ibrowser.h.

typedef pair<String, int> IconCache::CachePair [protected]

Definition at line 186 of file ibrowser.h.

typedef map<CachePair, ICON_ID> IconCache::PathIdxMap [protected]

Definition at line 187 of file ibrowser.h.


Constructor & Destructor Documentation

IconCache::IconCache (  )  [inline]

Definition at line 161 of file ibrowser.h.

00161 : _himlSys(0) {}


Member Function Documentation

void IconCache::init (  ) 

const Icon& IconCache::extract ( const String &  path  ) 

const Icon& IconCache::extract ( LPCTSTR  path,
int  idx 
)

const Icon& IconCache::extract ( IExtractIcon *  pExtract,
LPCTSTR  path,
int  idx 
)

const Icon& IconCache::add ( HICON  hIcon,
ICON_TYPE  type = IT_DYNAMIC 
)

const Icon& IconCache::add ( int  sys_idx  ) 

const Icon& IconCache::get_icon ( int  icon_id  ) 

HIMAGELIST IconCache::get_sys_imagelist (  )  const [inline]

Definition at line 173 of file ibrowser.h.

References _himlSys.

00173 {return _himlSys;}

void IconCache::free_icon ( int  icon_id  ) 


Field Documentation

int IconCache::s_next_id [static, protected]

Definition at line 178 of file ibrowser.h.

IconMap IconCache::_icons [protected]

Definition at line 181 of file ibrowser.h.

PathMap IconCache::_pathMap [protected]

Definition at line 184 of file ibrowser.h.

PathIdxMap IconCache::_pathIdxMap [protected]

Definition at line 188 of file ibrowser.h.

HIMAGELIST IconCache::_himlSys [protected]

Definition at line 190 of file ibrowser.h.

Referenced by get_sys_imagelist().


The documentation for this struct was generated from the following file:
IBrowser Source Code Documentation
generated on 18.09.2008 by doxygen

Homepage