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