cheshirekow  v0.1.0
fontconfig::Config Struct Reference

#include <cpp_fontconfig/Config.h>

Public Types

typedef FcConfig * cobjptr
 
typedef ConfigDelegate Delegate
 
typedef FcConfig * Storage
 

Static Public Member Functions

static RefPtr< Configcreate ()
 Create a configuration. More...
 
static bool enableHome (bool enable)
 controls use of the home directory. More...
 
static Char8_tfilename (const Char8_t *url)
 Find a config file. More...
 
static RefPtr< ConfiggetCurrent ()
 Return current configuration. More...
 
static Char8_thome (void)
 return the current home directory. More...
 

Detailed Description

Definition at line 411 of file Config.h.

Member Typedef Documentation

typedef FcConfig* fontconfig::Config::cobjptr

Definition at line 415 of file Config.h.

Definition at line 413 of file Config.h.

typedef FcConfig* fontconfig::Config::Storage

Definition at line 414 of file Config.h.

Member Function Documentation

static RefPtr<Config> fontconfig::Config::create ( )
static

Create a configuration.

Creates an empty configuration.

static bool fontconfig::Config::enableHome ( bool  enable)
static

controls use of the home directory.

If enable is FcTrue, then Fontconfig will use various files which are specified relative to the user's home directory (using the ~ notation in the configuration). When enable is FcFalse, then all use of the home directory in these contexts will be disabled. The previous setting of the value is returned.

static Char8_t* fontconfig::Config::filename ( const Char8_t url)
static

Find a config file.

Given the specified external entity name, return the associated filename. This provides applications a way to convert various configuration file references into filename form.

A null or empty name indicates that the default configuration file should be used; which file this references can be overridden with the FONTCONFIG_FILE environment variable. Next, if the name starts with ~, it refers to a file in the current users home directory. Otherwise if the name doesn't start with '/', it refers to a file in the default configuration directory; the built-in default directory can be overridden with the FONTCONFIG_PATH environment variable.

static RefPtr<Config> fontconfig::Config::getCurrent ( )
static

Return current configuration.

Returns the current default configuration.

static Char8_t* fontconfig::Config::home ( void  )
static

return the current home directory.

Return the current user's home directory, if it is available, and if using it is enabled, and NULL otherwise. See also FcConfigEnableHome).


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