cheshirekow
v0.1.0
|
traits class for FcCache Holds information about the fonts contained in a single directory. More...
#include <cpp_fontconfig/Cache.h>
Public Types | |
typedef FcCache * | cobjptr |
typedef CacheDelegate | Delegate |
typedef FcCache * | Storage |
Static Public Member Functions | |
static bool | dirClean (const Char8_t *cache_dir, bool verbose) |
This tries to clean up the cache directory of cache_dir. This returns FcTrue if the operation is successfully complete. otherwise FcFalse. More... | |
static bool | dirValid (const Char8_t *dir) |
checks directory cache More... | |
static RefPtr< Cache > | load (const Char8_t *dir, RefPtr< Config > config, Char8_t **cache_file) |
load a directory cache More... | |
static RefPtr< Cache > | loadFile (const Char8_t *cache_file, struct stat *file_stat) |
load a cache file More... | |
static RefPtr< Cache > | read (const Char8_t *dir, bool force, RefPtr< Config > config) |
read or construct a directory cache More... | |
traits class for FcCache Holds information about the fonts contained in a single directory.
Normal applications need not worry about this as caches for font access are automatically managed by the library. Applications dealing with cache management may want to use some of these objects in their work, however the included 'fc-cache' program generally suffices for all of that.
typedef FcCache* fontconfig::Cache::cobjptr |
typedef FcCache* fontconfig::Cache::Storage |
|
static |
This tries to clean up the cache directory of cache_dir. This returns FcTrue if the operation is successfully complete. otherwise FcFalse.
|
static |
checks directory cache
Returns FcTrue if dir has an associated valid cache file, else returns FcFalse
|
static |
load a directory cache
Loads the cache related to dir. If no cache file exists, returns NULL. The name of the cache file is returned in cache_file, unless that is NULL. See also FcDirCacheRead.
|
static |
load a cache file
This function loads a directory cache from cache_file. If file_stat is non-NULL, it will be filled with the results of stat(2) on the cache file.
|
static |
read or construct a directory cache
This returns a cache for dir. If force is FcFalse, then an existing, valid cache file will be used. Otherwise, a new cache will be created by scanning the directory and that returned.