ReactOS 0.4.16-dev-334-g4d9f67c
|
#include <globals.h>
Public Member Functions | |
IconCache () | |
virtual | ~IconCache () |
void | init () |
const Icon & | extract (LPCTSTR path, ICONCACHE_FLAGS flags=ICF_NORMAL) |
const Icon & | extract (LPCTSTR path, int icon_idx, ICONCACHE_FLAGS flags=ICF_HICON) |
const Icon & | extract (IExtractIcon *pExtract, LPCTSTR path, int icon_idx, ICONCACHE_FLAGS flags=ICF_HICON) |
const Icon & | extract (LPCITEMIDLIST pidl, ICONCACHE_FLAGS flags=ICF_NORMAL) |
const Icon & | add (HICON hIcon, ICON_TYPE type=IT_DYNAMIC) |
const Icon & | add (int sys_idx) |
const Icon & | get_icon (int icon_id) |
HIMAGELIST | get_sys_imagelist () const |
void | free_icon (int icon_id) |
Protected Types | |
typedef map< int, Icon > | IconMap |
typedef pair< String, int > | CacheKey |
typedef map< CacheKey, ICON_ID > | PathCacheMap |
typedef pair< String, pair< int, int > > | IdxCacheKey |
typedef map< IdxCacheKey, ICON_ID > | IdxCacheMap |
typedef pair< ShellPath, int > | PidlCacheKey |
typedef map< PidlCacheKey, ICON_ID > | PidlCacheMap |
Protected Attributes | |
IconMap | _icons |
PathCacheMap | _pathCache |
IdxCacheMap | _idxCache |
PidlCacheMap | _pidlcache |
HIMAGELIST | _himlSys_small |
Static Protected Attributes | |
static int | s_next_id = ICID_DYNAMIC |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
Definition at line 128 of file globals.h.
|
virtual |
Definition at line 630 of file explorer.cpp.
const Icon & IconCache::add | ( | HICON | hIcon, |
ICON_TYPE | type = IT_DYNAMIC |
||
) |
Definition at line 611 of file explorer.cpp.
Referenced by extract().
Definition at line 618 of file explorer.cpp.
const Icon & IconCache::extract | ( | IExtractIcon * | pExtract, |
LPCTSTR | path, | ||
int | icon_idx, | ||
ICONCACHE_FLAGS | flags = ICF_HICON |
||
) |
Definition at line 518 of file explorer.cpp.
const Icon & IconCache::extract | ( | LPCITEMIDLIST | pidl, |
ICONCACHE_FLAGS | flags = ICF_NORMAL |
||
) |
Definition at line 544 of file explorer.cpp.
const Icon & IconCache::extract | ( | LPCTSTR | path, |
ICONCACHE_FLAGS | flags = ICF_NORMAL |
||
) |
Definition at line 416 of file explorer.cpp.
Referenced by FavoritesMenu::AddEntries(), Entry::extract_icon(), and BookmarkList::fill_tree().
Definition at line 491 of file explorer.cpp.
Definition at line 650 of file explorer.cpp.
Referenced by ShellBrowser::invalidate_cache(), and Entry::~Entry().
Definition at line 625 of file explorer.cpp.
Referenced by StartMenu::AddButton(), QuickLaunchBar::AddShortcuts(), Pane::draw_item(), MainFrameBase::FillBookmarks(), ShellBrowser::get_image_idx(), and FindProgramDlg::Notify().
|
inline |
void IconCache::init | ( | ) |
Definition at line 381 of file explorer.cpp.
Referenced by ExplorerGlobals::init().
|
protected |
Definition at line 165 of file globals.h.
Referenced by extract(), and get_sys_imagelist().
|
protected |
Definition at line 151 of file globals.h.
Referenced by add(), extract(), free_icon(), get_icon(), and init().
|
protected |
|
protected |
|
protected |
|
staticprotected |