The page cache is responsible for the creation and storage of preview bitmaps of pages that are shown...
BitmapEx GetPreviewBitmap(const CacheKey aKey, const bool bResize)
Request a preview bitmap for the specified page object in the specified size.
PageCache(const Size &rPreviewSize, const bool bDoSuperSampling, const SharedCacheContext &rpCacheContext)
The page cache is created with a reference to the slide sorter so that it has access to both the view...
void InvalidatePreviewBitmap(const CacheKey aKey)
Tell the cache that the bitmap associated with the given request data is not up-to-date anymore.
void SetMarkedPreviewBitmap(const CacheKey aKey, const BitmapEx &rBitmap)
void RequestPreviewBitmap(const CacheKey aKey)
When the requested preview bitmap does not yet exist or is not up-to-date then the rendering of one i...
void InvalidateCache()
Call this method when all preview bitmaps have to be generated anew.
std::unique_ptr< GenericPageCache > mpImplementation
void SetPreciousFlag(const CacheKey aKey, const bool bIsPrecious)
With the precious flag you can control whether a bitmap can be removed or reduced in size to make roo...
void ChangeSize(const Size &rPreviewSize, const bool bDoSuperSampling)
BitmapEx GetMarkedPreviewBitmap(const CacheKey aKey)