GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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);
void command_init(int rfd, int wfd)
Definition: command.c:82
void get_text_ext(int *, int *, int *, int *)
Definition: text2.c:128
struct driver * driver
Definition: driver/init.c:26
void get_text_ext_freetype(int *, int *, int *, int *)
Definition: text3.c:298
string name
Definition: render.py:1314
int process_command(int c)
Definition: command.c:111
int font_init(const char *)
Definition: font2.c:180
int get_connection_sock(int, int *, int *, int)
const char * font_get_charset(void)
Definition: font_freetype.c:34
int prepare_connection_sock(const char *)
int get_command(char *c)
Definition: command.c:530
struct GFONT_CAP * ftcap
Definition: driver/init.c:28
int font_init_freetype(const char *, int)
Definition: font_freetype.c:10
void free_freetypecap(struct GFONT_CAP *ftcap)
Definition: parse_ftcap.c:85
void soft_text(int, int, double, double, double, const char *)
Definition: text2.c:139
const char * font_get_freetype_name(void)
Definition: font_freetype.c:29
void free_font_list(char **fonts, int num_fonts)
Definition: Font.c:104
void soft_text_ext(int x, int, double, double, double, const char *)
Definition: text2.c:115
void onechar(int, int, double, double, double, unsigned char)
Definition: text2.c:156
void soft_text_freetype(int, int, double, double, double, const char *)
Definition: text3.c:268
Definition: driver.h:25
int font_is_freetype(void)
Definition: Font.c:57
int font_get_index(void)
Definition: font_freetype.c:41
struct GFONT_CAP * parse_freetypecap(void)
Definition: parse_ftcap.c:21
void drawchar(double, double, double, double, unsigned char)
Definition: text2.c:60
void soft_text_ext_freetype(int, int, double, double, double, const char *)
Definition: text3.c:277
int font_exists(const char *name)
Definition: parse_ftcap.c:9
int get_char_vects(unsigned char, int *, unsigned char **, unsigned char **)
Definition: font2.c:191
int font_init_charset(const char *)
Definition: font_freetype.c:21