| libchamplain Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
struct ChamplainMemoryCache; ChamplainMemoryCache * champlain_memory_cache_new_full (guint size_limit,ChamplainRenderer *renderer); guint champlain_memory_cache_get_size_limit (ChamplainMemoryCache *memory_cache); void champlain_memory_cache_set_size_limit (ChamplainMemoryCache *memory_cache,guint size_limit); void champlain_memory_cache_clean (ChamplainMemoryCache *memory_cache);
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.
struct ChamplainMemoryCache;
The ChamplainMemoryCache structure contains only private data and should be accessed using the provided API
Since 0.8
ChamplainMemoryCache * champlain_memory_cache_new_full (guint size_limit,ChamplainRenderer *renderer);
Constructor of ChamplainMemoryCache.
|
maximum number of tiles stored in the cache |
|
the ChamplainRenderer used for tiles rendering |
Returns : |
a constructed ChamplainMemoryCache |
Since 0.8
guint champlain_memory_cache_get_size_limit
(ChamplainMemoryCache *memory_cache);
Gets the maximum number of tiles stored in the cache.
|
a ChamplainMemoryCache |
Returns : |
maximum number of stored tiles |
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.
|
a ChamplainMemoryCache |
|
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.
|
a ChamplainMemoryCache |
Since 0.8