Definition at line 13 of file imagecache.cpp.
Public Member Functions | |
| ImageCacheImp (unsigned int cache_max) | |
| const QPixmap * | load (const QString &image_file) |
| const QPixmap * | load (const QString &image_file, int width, int height, QImage::ScaleMode scale) |
| const QPixmap * | load (const QString &image_file, QPixmap *pre_loaded) |
| bool | hitTest (const QString &image_file) const |
| void | resize (unsigned int new_size) |
| unsigned int | size () |
| void | clear () |
| void | cleanup () |
Private Types | |
| typedef simple_ref_ptr < cache_entry > | cache_entry_ptr |
| typedef std::list < cache_entry_ptr > | cache_list |
| typedef std::map< QString, cache_list::iterator > | cache_map |
Private Member Functions | |
| cache_entry_ptr | addImage (const QString &image_file) |
| cache_entry_ptr | addScaleImage (const QString &image_file, int width, int height, QImage::ScaleMode scale) |
| void | unload_first () |
| void | trim_cache () |
| void | ensure_cache_min () |
Private Attributes | |
| cache_list | m_cache |
| cache_map | m_cache_index |
| unsigned int | m_max_cache_size |
| SimpleCleanup< ImageCacheImp > | m_clean_stub |
Classes | |
| struct | cache_entry |
typedef simple_ref_ptr<cache_entry> ImageCacheImp::cache_entry_ptr [private] |
Definition at line 120 of file imagecache.cpp.
typedef std::list<cache_entry_ptr> ImageCacheImp::cache_list [private] |
Definition at line 121 of file imagecache.cpp.
typedef std::map<QString, cache_list::iterator> ImageCacheImp::cache_map [private] |
Definition at line 122 of file imagecache.cpp.
| ImageCacheImp::ImageCacheImp | ( | unsigned int | cache_max | ) | [inline] |
Definition at line 16 of file imagecache.cpp.
| const QPixmap* ImageCacheImp::load | ( | const QString & | image_file | ) | [inline] |
| const QPixmap* ImageCacheImp::load | ( | const QString & | image_file, | |
| int | width, | |||
| int | height, | |||
| QImage::ScaleMode | scale | |||
| ) | [inline] |
Definition at line 33 of file imagecache.cpp.
| const QPixmap* ImageCacheImp::load | ( | const QString & | image_file, | |
| QPixmap * | pre_loaded | |||
| ) | [inline] |
Definition at line 46 of file imagecache.cpp.
| bool ImageCacheImp::hitTest | ( | const QString & | image_file | ) | const [inline] |
| void ImageCacheImp::resize | ( | unsigned int | new_size | ) | [inline] |
| unsigned int ImageCacheImp::size | ( | ) | [inline] |
| void ImageCacheImp::clear | ( | void | ) | [inline] |
| void ImageCacheImp::cleanup | ( | ) | [inline] |
Definition at line 88 of file imagecache.cpp.
| cache_entry_ptr ImageCacheImp::addImage | ( | const QString & | image_file | ) | [inline, private] |
| cache_entry_ptr ImageCacheImp::addScaleImage | ( | const QString & | image_file, | |
| int | width, | |||
| int | height, | |||
| QImage::ScaleMode | scale | |||
| ) | [inline, private] |
| void ImageCacheImp::unload_first | ( | ) | [inline, private] |
| void ImageCacheImp::trim_cache | ( | ) | [inline, private] |
| void ImageCacheImp::ensure_cache_min | ( | ) | [inline, private] |
cache_list ImageCacheImp::m_cache [private] |
Definition at line 217 of file imagecache.cpp.
Referenced by addImage(), clear(), load(), resize(), size(), trim_cache(), and unload_first().
cache_map ImageCacheImp::m_cache_index [private] |
Definition at line 218 of file imagecache.cpp.
Referenced by addImage(), clear(), hitTest(), load(), and unload_first().
unsigned int ImageCacheImp::m_max_cache_size [private] |
Definition at line 219 of file imagecache.cpp.
Referenced by ensure_cache_min(), resize(), and trim_cache().
Definition at line 220 of file imagecache.cpp.
1.5.5