GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73390
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
path.h
Go to the documentation of this file.
1 
2 #ifndef DRIVERLIB_PATH_H
3 #define DRIVERLIB_PATH_H
4 
5 enum path_mode {
9 };
10 
11 struct vertex {
12  double x, y;
13  int mode;
14 };
15 
16 struct path {
17  struct vertex *vertices;
18  int count;
19  int alloc;
20  int start;
21 };
22 
23 void path_init(struct path *);
24 void path_free(struct path *);
25 void path_alloc(struct path *, int);
26 void path_reset(struct path *);
27 void path_append(struct path *, double, double, int);
28 void path_copy(struct path *, const struct path *);
29 void path_begin(struct path *);
30 void path_move(struct path *, double, double);
31 void path_cont(struct path *, double, double);
32 void path_close(struct path *);
33 void path_stroke(struct path *, void (*)(double, double, double, double));
34 
35 #endif
36 
void path_alloc(struct path *p, int n)
Definition: driver/path.c:23
Definition: path.h:11
path_mode
Definition: path.h:5
void path_close(struct path *p)
Definition: driver/path.c:84
double y
Definition: path.h:12
void path_cont(struct path *p, double x, double y)
Definition: driver/path.c:79
int count
Definition: path.h:18
void path_free(struct path *p)
Definition: driver/path.c:13
void path_move(struct path *p, double x, double y)
Definition: driver/path.c:73
int start
Definition: path.h:20
struct vertex * vertices
Definition: path.h:17
void path_reset(struct path *p)
Definition: driver/path.c:32
int alloc
Definition: path.h:19
Definition: path.h:7
void path_copy(struct path *dst, const struct path *src)
Definition: driver/path.c:52
Definition: path.h:6
Definition: path.h:16
Definition: path.h:8
void path_begin(struct path *p)
Definition: driver/path.c:67
int mode
Definition: path.h:13
void path_init(struct path *p)
Definition: driver/path.c:5
void path_append(struct path *p, double x, double y, int mode)
Definition: driver/path.c:38
void path_stroke(struct path *p, void(*line)(double, double, double, double))
Definition: driver/path.c:97
double x
Definition: path.h:12