GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
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 
Definition: path.h:11
path_mode
Definition: path.h:5
void path_reset(struct path *)
Definition: driver/path.c:32
double y
Definition: path.h:12
void path_stroke(struct path *, void(*)(double, double, double, double))
Definition: driver/path.c:97
void path_append(struct path *, double, double, int)
Definition: driver/path.c:38
int count
Definition: path.h:18
int start
Definition: path.h:20
struct vertex * vertices
Definition: path.h:17
void path_move(struct path *, double, double)
Definition: driver/path.c:73
void path_free(struct path *)
Definition: driver/path.c:13
int alloc
Definition: path.h:19
void path_init(struct path *)
Definition: driver/path.c:5
Definition: path.h:7
Definition: path.h:6
Definition: path.h:16
void path_cont(struct path *, double, double)
Definition: driver/path.c:79
void path_begin(struct path *)
Definition: driver/path.c:67
void path_alloc(struct path *, int)
Definition: driver/path.c:23
void path_copy(struct path *, const struct path *)
Definition: driver/path.c:52
Definition: path.h:8
int mode
Definition: path.h:13
void path_close(struct path *)
Definition: driver/path.c:84
double x
Definition: path.h:12