cheshirekow  v0.1.0
fontconfig::Pattern Struct Reference

traits class for FcPattern holds a set of names with associated value lists; More...

#include <cpp_fontconfig/Pattern.h>

Classes

class  Builder
 utility for building patterns using interface similar to variable argument list More...
 

Public Types

typedef FcPattern * cobjptr
 
typedef PatternDelegate Delegate
 
typedef FcPattern * Storage
 

Static Public Member Functions

static Builder buildNew ()
 Builds a pattern using a list of objects, types and values. More...
 
static RefPtr< Patterncreate (void)
 Create a pattern. More...
 
static RefPtr< Patternparse (const Char8_t *name)
 Parse a pattern string. More...
 

Detailed Description

traits class for FcPattern holds a set of names with associated value lists;

each name refers to a property of a font. FcPatterns are used as inputs to the matching code as well as holding information about specific fonts. Each property can hold one or more values; conventionally all of the same type, although the interface doesn't demand that.

Definition at line 53 of file Pattern.h.

Member Typedef Documentation

typedef FcPattern* fontconfig::Pattern::cobjptr

Definition at line 57 of file Pattern.h.

Definition at line 55 of file Pattern.h.

typedef FcPattern* fontconfig::Pattern::Storage

Definition at line 56 of file Pattern.h.

Member Function Documentation

static Builder fontconfig::Pattern::buildNew ( )
static

Builds a pattern using a list of objects, types and values.

Each value to be entered in the pattern is specified with three arguments:

  • Object name, a string describing the property to be added.
  • Object type, one of the FcType enumerated values
  • Value, not an FcValue, but the raw type as passed to any of the FcPatternAdd<type> functions. Must match the type of the second argument.

The argument list is terminated by a null object name, no object type nor value need be passed for this. The values are added to `pattern', if `pattern' is null, a new pattern is created. In either case, the pattern is returned. Example

Pattern pattern = Pattern::buildNew (FC_FAMILY, FcTypeString, "Times", (char *) 0);
static RefPtr<Pattern> fontconfig::Pattern::create ( void  )
static

Create a pattern.

Creates a pattern with no properties; used to build patterns from scratch.

static RefPtr<Pattern> fontconfig::Pattern::parse ( const Char8_t name)
static

Parse a pattern string.

Converts name from the standard text format described above into a pattern.


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