| Top |
GObject
╰── GInitiallyUnowned
╰── ChamplainMapSource
╰── ChamplainTileCache
╰── ChamplainMemoryCache
ChamplainMemoryCache is a cache that stores and retrieves tiles from the memory. The cache contents is not preserved between application restarts so this cache serves mostly as a quick access temporary cache to the most recently used tiles.
ChamplainMemoryCache * champlain_memory_cache_new_full (guint size_limit,ChamplainRenderer *renderer);
Constructor of ChamplainMemoryCache.
size_limit |
maximum number of tiles stored in the cache |
|
renderer |
the ChamplainRenderer used for tiles rendering |
Since: 0.8
guint
champlain_memory_cache_get_size_limit (ChamplainMemoryCache *memory_cache);
Gets the maximum number of tiles stored in the cache.
Since: 0.8
void champlain_memory_cache_set_size_limit (ChamplainMemoryCache *memory_cache,guint size_limit);
Sets the maximum number of tiles stored in the cache.
Since: 0.8
void
champlain_memory_cache_clean (ChamplainMemoryCache *memory_cache);
Cleans the contents of the cache.
Since: 0.8
struct ChamplainMemoryCache;
The ChamplainMemoryCache structure contains only private data and should be accessed using the provided API
Since: 0.8