cheshirekow  v0.1.0
fontconfig::BlanksDelegate Class Reference

holds a list of Unicode chars which are expected to be blank More...

#include <cpp_fontconfig/Blanks.h>

Public Member Functions

bool add (Char32_t ucs4)
 Add a character to an FcBlanks. More...
 
void destroy ()
 Destroys an FcBlanks object, freeing any associated memory. More...
 
bool isMember (Char32_t ucs4)
 Query membership in an FcBlanks. More...
 
BlanksDelegateoperator-> ()
 
const BlanksDelegateoperator-> () const
 

Private Member Functions

 BlanksDelegate (FcBlanks *ptr)
 wrap constructor More...
 
 BlanksDelegate (const BlanksDelegate &other)
 not copy-constructable More...
 
BlanksDelegateoperator= (const BlanksDelegate &other)
 not assignable More...
 

Private Attributes

FcBlanks * m_ptr
 

Friends

class RefPtr< Blanks >
 

Detailed Description

holds a list of Unicode chars which are expected to be blank

unexpectedly blank chars are assumed to be invalid and are elided from the charset associated with the font.

Blanks structures are not reference counted. It is safe to pass around copies of this object, however you must remember to call destroy on one and only one copy when you're done with it

It contains only one data member which is a pointer and the copy constructor will simply copy that pointer so there is no reason to allocate a Blank on the heap.

Definition at line 53 of file Blanks.h.

Constructor & Destructor Documentation

fontconfig::BlanksDelegate::BlanksDelegate ( FcBlanks *  ptr)
inlineexplicitprivate

wrap constructor

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

Definition at line 63 of file Blanks.h.

fontconfig::BlanksDelegate::BlanksDelegate ( const BlanksDelegate other)
private

not copy-constructable

Member Function Documentation

bool fontconfig::BlanksDelegate::add ( Char32_t  ucs4)

Add a character to an FcBlanks.

Adds a single character to an FcBlanks object, returning FcFalse if this process ran out of memory.

See Also
FcBlanksAdd
void fontconfig::BlanksDelegate::destroy ( )

Destroys an FcBlanks object, freeing any associated memory.

See Also
FcBlanksDestroy
bool fontconfig::BlanksDelegate::isMember ( Char32_t  ucs4)

Query membership in an FcBlanks.

Returns whether the specified FcBlanks object contains the indicated Unicode value.

See Also
FcBlanksIsMember
BlanksDelegate* fontconfig::BlanksDelegate::operator-> ( )
inline

Definition at line 76 of file Blanks.h.

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

Definition at line 77 of file Blanks.h.

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

not assignable

Friends And Related Function Documentation

friend class RefPtr< Blanks >
friend

Definition at line 74 of file Blanks.h.

Member Data Documentation

FcBlanks* fontconfig::BlanksDelegate::m_ptr
private

Definition at line 56 of file Blanks.h.


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