GRASS Programmer's Manual  6.4.3(2013)-r
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
driverlib.h
Go to the documentation of this file.
1 
2 #define DEF_WIDTH 640
3 #define DEF_HEIGHT 480
4 
5 #include "driver.h"
6 
7 extern const struct driver *driver;
8 
9 /* Utility Functions */
10 
11 /* Font.c */
12 int font_is_freetype(void);
13 
14 /* Text2.c */
15 void drawchar(double, double, double, double, unsigned char);
16 void soft_text_ext(int x, int, double, double, double, const char *);
17 void get_text_ext(int *, int *, int *, int *);
18 void soft_text(int, int, double, double, double, const char *);
19 void onechar(int, int, double, double, double, unsigned char);
20 
21 /* Text3.c */
22 void soft_text_freetype(int, int, double, double, double, const char *);
23 void soft_text_ext_freetype(int, int, double, double, double, const char *);
24 void get_text_ext_freetype(int *, int *, int *, int *);
25 
26 /* font2.c */
27 int font_init(const char *);
28 int get_char_vects(unsigned char, int *, unsigned char **, unsigned char **);
29 
30 /* font_freetype.c */
31 int font_init_freetype(const char *, int);
32 int font_init_charset(const char *);
33 const char *font_get_freetype_name(void);
34 const char *font_get_charset(void);
35 int font_get_index(void);
36 
37 /* connect_sock.c */
38 int get_connection_sock(int, int *, int *, int);
39 int prepare_connection_sock(const char *);
40 
41 /* command.c */
42 void command_init(int, int);
43 int get_command(char *);
44 int process_command(int);
45 
46 /* parse_ftcap.c */
47 extern int font_exists(const char *name);
48 extern struct GFONT_CAP *parse_freetypecap(void);
49 extern void free_freetypecap(struct GFONT_CAP *ftcap);
50 extern void free_font_list(char **fonts, int num_fonts);