cheshirekow  v0.1.0
fontconfig::Cache Struct Reference

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< Cacheload (const Char8_t *dir, RefPtr< Config > config, Char8_t **cache_file)
 load a directory cache More...
 
static RefPtr< CacheloadFile (const Char8_t *cache_file, struct stat *file_stat)
 load a cache file More...
 
static RefPtr< Cacheread (const Char8_t *dir, bool force, RefPtr< Config > config)
 read or construct a directory cache More...
 

Detailed Description

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.

See Also
FcCache

Definition at line 135 of file Cache.h.

Member Typedef Documentation

typedef FcCache* fontconfig::Cache::cobjptr

Definition at line 139 of file Cache.h.

Definition at line 137 of file Cache.h.

typedef FcCache* fontconfig::Cache::Storage

Definition at line 138 of file Cache.h.

Member Function Documentation

static bool fontconfig::Cache::dirClean ( const Char8_t cache_dir,
bool  verbose 
)
static

This tries to clean up the cache directory of cache_dir. This returns FcTrue if the operation is successfully complete. otherwise FcFalse.

static bool fontconfig::Cache::dirValid ( const Char8_t dir)
static

checks directory cache

Returns FcTrue if dir has an associated valid cache file, else returns FcFalse

static RefPtr<Cache> fontconfig::Cache::load ( const Char8_t dir,
RefPtr< Config config,
Char8_t **  cache_file 
)
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 RefPtr<Cache> fontconfig::Cache::loadFile ( const Char8_t cache_file,
struct stat *  file_stat 
)
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 RefPtr<Cache> fontconfig::Cache::read ( const Char8_t dir,
bool  force,
RefPtr< Config config 
)
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.


The documentation for this struct was generated from the following file: