~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/driver/path.h

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifndef DRIVERLIB_PATH_H
 
3
#define DRIVERLIB_PATH_H
 
4
 
 
5
enum path_mode {
 
6
    P_MOVE,
 
7
    P_CONT,
 
8
    P_CLOSE,
 
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