GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72086
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
driverlib.h File Reference
#include "driver.h"
Include dependency graph for driverlib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEF_WIDTH   640
 
#define DEF_HEIGHT   480
 

Functions

int font_get_type (void)
 
const char * font_get_encoding (void)
 
void get_text_ext (const char *, double *, double *, double *, double *)
 
void soft_text (const char *)
 
void soft_text_freetype (const char *)
 
void get_text_ext_freetype (const char *, double *, double *, double *, double *)
 
int font_init (const char *)
 
int get_char_vects (unsigned char, int *, unsigned char **, unsigned char **)
 
int font_init_freetype (const char *, int)
 
const char * font_get_freetype_name (void)
 
int font_get_index (void)
 
int font_exists (const char *)
 Check if font exists. More...
 
int parse_fontcap_entry (struct GFONT_CAP *, const char *)
 Parse fontcap entry. More...
 
struct GFONT_CAPparse_fontcap (void)
 Parse fontcaps. More...
 
void free_fontcap (struct GFONT_CAP *)
 Free allocated GFONT_CAP structure. More...
 

Variables

struct driverdriver
 

Macro Definition Documentation

#define DEF_HEIGHT   480

Definition at line 3 of file driverlib.h.

Referenced by LIB_init().

#define DEF_WIDTH   640

Definition at line 2 of file driverlib.h.

Referenced by LIB_init().

Function Documentation

int font_exists ( const char *  )

Check if font exists.

Definition at line 27 of file parse_ftcap.c.

References R_OK.

Referenced by COM_Set_font(), and parse_fontcap_entry().

const char* font_get_encoding ( void  )

Definition at line 34 of file font.c.

References G_store().

const char* font_get_freetype_name ( void  )

Definition at line 20 of file font_freetype.c.

int font_get_index ( void  )

Definition at line 25 of file font_freetype.c.

int font_get_type ( void  )

Definition at line 29 of file font.c.

Referenced by COM_Get_text_box(), and COM_Text().

int font_init ( const char *  )

Definition at line 180 of file font2.c.

int font_init_freetype ( const char *  ,
int   
)

Definition at line 9 of file font_freetype.c.

References G_free(), and G_store().

void free_fontcap ( struct GFONT_CAP ftcap)

Free allocated GFONT_CAP structure.

Parameters
ftcappointer to GFONT_CAP to be freed

Definition at line 124 of file parse_ftcap.c.

References GFONT_CAP::encoding, G_free(), GFONT_CAP::longname, GFONT_CAP::name, name, and NULL.

int get_char_vects ( unsigned  char,
int ,
unsigned char **  ,
unsigned char **   
)

Definition at line 191 of file font2.c.

References int.

void get_text_ext ( const char *  ,
double *  ,
double *  ,
double *  ,
double *   
)

Definition at line 91 of file text2.c.

References rectangle::b, rectangle::l, rectangle::r, and rectangle::t.

Referenced by COM_Get_text_box().

void get_text_ext_freetype ( const char *  ,
double *  ,
double *  ,
double *  ,
double *   
)

Definition at line 269 of file text3.c.

References rectangle::b, cur_x, cur_y, rectangle::l, rectangle::r, and rectangle::t.

Referenced by COM_Get_text_box().

struct GFONT_CAP* parse_fontcap ( void  )

Parse fontcaps.

Returns
pointer to GFONT_CAP structure

Definition at line 73 of file parse_ftcap.c.

References _, fclose(), file, G_gisbase(), G_warning(), getenv(), GPATH_MAX, GFONT_CAP::name, NULL, parse_fontcap_entry(), and GFONT_CAP::path.

Referenced by LIB_init().

int parse_fontcap_entry ( struct GFONT_CAP e,
const char *  str 
)

Parse fontcap entry.

Parameters
epointer to GFONT_CAP struct
str?
Returns
1 on success
0 on failure

Definition at line 41 of file parse_ftcap.c.

References GFONT_CAP::encoding, font_exists(), G_store(), GNAME_MAX, GPATH_MAX, GFONT_CAP::index, GFONT_CAP::longname, GFONT_CAP::name, name, GFONT_CAP::path, GFONT_CAP::type, and Option::type.

Referenced by COM_Set_font(), and parse_fontcap().

void soft_text ( const char *  )

Definition at line 108 of file text2.c.

References NULL.

Referenced by COM_Text().

void soft_text_freetype ( const char *  )

Definition at line 264 of file text3.c.

References cur_x, cur_y, and NULL.

Referenced by COM_Text().

Variable Documentation