GRASS GIS 8 Programmer's Manual 8.2.1(2023)-exported
path.h
Go to the documentation of this file.
1
2#ifndef DRIVERLIB_PATH_H
3#define DRIVERLIB_PATH_H
4
9};
10
11struct vertex {
12 double x, y;
13 int mode;
14};
15
16struct path {
18 int count;
19 int alloc;
20 int start;
21};
22
23void path_init(struct path *);
24void path_free(struct path *);
25void path_alloc(struct path *, int);
26void path_reset(struct path *);
27void path_append(struct path *, double, double, int);
28void path_copy(struct path *, const struct path *);
29void path_begin(struct path *);
30void path_move(struct path *, double, double);
31void path_cont(struct path *, double, double);
32void path_close(struct path *);
33void path_stroke(struct path *, void (*)(double, double, double, double));
34
35#endif
36
void path_cont(struct path *, double, double)
Definition: path.c:79
void path_init(struct path *)
Definition: path.c:5
void path_alloc(struct path *, int)
Definition: path.c:23
void path_append(struct path *, double, double, int)
Definition: path.c:38
void path_reset(struct path *)
Definition: 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: path.c:84
void path_move(struct path *, double, double)
Definition: path.c:73
void path_begin(struct path *)
Definition: path.c:67
void path_free(struct path *)
Definition: path.c:13
void path_stroke(struct path *, void(*)(double, double, double, double))
Definition: path.c:97
void path_copy(struct path *, const struct path *)
Definition: 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