cheshirekow
v0.1.0
|
Holds information about the fonts contained in a single directory. More...
#include <cpp_fontconfig/Cache.h>
Public Member Functions | |
const Char8_t * | dir () |
Return directory of cache. More... | |
int | numFont () |
Returns the number of fonts in cache. More... | |
int | numSubdir () |
Return the number of subdirectories in cache. More... | |
CacheDelegate * | operator-> () |
const CacheDelegate * | operator-> () const |
const Char8_t * | subdir (int i) |
Returns a copy of the fontset from cache. More... | |
void | unload () |
unload a cache file More... | |
Private Member Functions | |
CacheDelegate (FcCache *ptr) | |
wrap constructor More... | |
CacheDelegate (const CacheDelegate &other) | |
not copy-constructable More... | |
CacheDelegate & | operator= (const CacheDelegate &other) |
not assignable More... | |
Private Attributes | |
FcCache * | m_ptr |
Friends | |
class | RefPtr< Cache > |
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.
|
inlineexplicitprivate |
|
private |
not copy-constructable
const Char8_t* fontconfig::CacheDelegate::dir | ( | ) |
Return directory of cache.
This function returns the directory from which the cache was constructed.
int fontconfig::CacheDelegate::numFont | ( | ) |
Returns the number of fonts in cache.
This returns the number of fonts which would be included in the return from FcCacheCopySet.
int fontconfig::CacheDelegate::numSubdir | ( | ) |
Return the number of subdirectories in cache.
This returns the total number of subdirectories in the cache.
|
inline |
|
inline |
|
private |
not assignable
const Char8_t* fontconfig::CacheDelegate::subdir | ( | int | i | ) |
Returns a copy of the fontset from cache.
The returned fontset contains each of the font patterns from cache. This fontset may be modified, but the patterns from the cache are read-only.Return the i'th subdirectory. The set of subdirectories stored in a cache file are indexed by this function, i should range from 0 to n-1, where n is the return value from FcCacheNumSubdir.
void fontconfig::CacheDelegate::unload | ( | ) |
unload a cache file
This function dereferences cache. When no other references to it remain, all memory associated with the cache will be freed.