cheshirekow  v0.1.0
fontconfig::FontSetDelegate Class Reference

An FcFontSet simply holds a list of patterns; these are used to return the results of listing available fonts. More...

#include <cpp_fontconfig/FontSet.h>

Public Member Functions

bool add (RefPtr< Pattern > font)
 Add to a font set. More...
 
void destroy ()
 Destroy a font set. More...
 
FontSetDelegateoperator-> ()
 
const FontSetDelegateoperator-> () const
 
void print ()
 Print a set of patterns to stdout. More...
 

Private Member Functions

 FontSetDelegate (FcFontSet *ptr)
 wrap constructor More...
 
 FontSetDelegate (const FontSetDelegate &other)
 not copy-constructable More...
 
FontSetDelegateoperator= (const FontSetDelegate &other)
 not assignable More...
 

Private Attributes

FcFontSet * m_ptr
 

Friends

class RefPtr< FontSet >
 

Detailed Description

An FcFontSet simply holds a list of patterns; these are used to return the results of listing available fonts.

An FcFontSet contains a list of FcPatterns. Internally fontconfig uses this data structure to hold sets of fonts. Externally, fontconfig returns the results of listing fonts in this format. 'nfont' holds the number of patterns in the 'fonts' array; 'sfont' is used to indicate the size of that array.

Definition at line 47 of file FontSet.h.

Constructor & Destructor Documentation

fontconfig::FontSetDelegate::FontSetDelegate ( FcFontSet *  ptr)
inlineexplicitprivate

wrap constructor

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

Definition at line 57 of file FontSet.h.

fontconfig::FontSetDelegate::FontSetDelegate ( const FontSetDelegate other)
private

not copy-constructable

Member Function Documentation

bool fontconfig::FontSetDelegate::add ( RefPtr< Pattern font)

Add to a font set.

Adds a pattern to a font set. Note that the pattern is not copied before being inserted into the set. Returns FcFalse if the pattern cannot be inserted into the set (due to allocation failure). Otherwise returns FcTrue.

void fontconfig::FontSetDelegate::destroy ( )

Destroy a font set.

Destroys a font set. Note that this destroys any referenced patterns as well.

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

Definition at line 70 of file FontSet.h.

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

Definition at line 71 of file FontSet.h.

FontSetDelegate& fontconfig::FontSetDelegate::operator= ( const FontSetDelegate other)
private

not assignable

void fontconfig::FontSetDelegate::print ( )

Print a set of patterns to stdout.

Friends And Related Function Documentation

friend class RefPtr< FontSet >
friend

Definition at line 68 of file FontSet.h.

Member Data Documentation

FcFontSet* fontconfig::FontSetDelegate::m_ptr
private

Definition at line 50 of file FontSet.h.


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