cheshirekow  v0.1.0
fontconfig::CacheDelegate Class Reference

Holds information about the fonts contained in a single directory. More...

#include <cpp_fontconfig/Cache.h>

Public Member Functions

const Char8_tdir ()
 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...
 
CacheDelegateoperator-> ()
 
const CacheDelegateoperator-> () const
 
const Char8_tsubdir (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...
 
CacheDelegateoperator= (const CacheDelegate &other)
 not assignable More...
 

Private Attributes

FcCache * m_ptr
 

Friends

class RefPtr< Cache >
 

Detailed Description

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 52 of file Cache.h.

Constructor & Destructor Documentation

fontconfig::CacheDelegate::CacheDelegate ( FcCache *  ptr)
inlineexplicitprivate

wrap constructor

wraps the pointer with this interface, does nothing else, only called by RefPtr<Atomic>

Definition at line 62 of file Cache.h.

fontconfig::CacheDelegate::CacheDelegate ( const CacheDelegate other)
private

not copy-constructable

Member Function Documentation

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.

CacheDelegate* fontconfig::CacheDelegate::operator-> ( )
inline

Definition at line 75 of file Cache.h.

const CacheDelegate* fontconfig::CacheDelegate::operator-> ( ) const
inline

Definition at line 76 of file Cache.h.

CacheDelegate& fontconfig::CacheDelegate::operator= ( const CacheDelegate other)
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.

Friends And Related Function Documentation

friend class RefPtr< Cache >
friend

Definition at line 73 of file Cache.h.

Member Data Documentation

FcCache* fontconfig::CacheDelegate::m_ptr
private

Definition at line 55 of file Cache.h.


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