diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-08-11 17:54:25 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-08-11 17:59:29 +0100 |
| commit | e944cd6a6cc64734642b531dac2b93fff0029fb9 (patch) | |
| tree | fea2f75ab771388b02afedf71fa33ce86877aaf1 /include | |
| parent | a73179326ed8fda9588b8650209bd230957c2876 (diff) | |
add a translation utility to grail
By calling the grail_set_bbox(), grail will do translation of api
coordinates and matching properties to an external coordinate system,
such as screen coordinates.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include')
| -rw-r--r-- | include/grail.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grail.h b/include/grail.h index 241800e..c77a6e3 100644 --- a/include/grail.h +++ b/include/grail.h | |||
| @@ -86,6 +86,10 @@ int grail_idle(struct grail *ge, int fd, int ms); | |||
| 86 | int grail_pull(struct grail *ge, int fd); | 86 | int grail_pull(struct grail *ge, int fd); |
| 87 | void grail_close(struct grail *ge, int fd); | 87 | void grail_close(struct grail *ge, int fd); |
| 88 | 88 | ||
| 89 | void grail_set_bbox(struct grail *ge, | ||
| 90 | const struct grail_coord *min, | ||
| 91 | const struct grail_coord *max); | ||
| 92 | |||
| 89 | void grail_get_units(const struct grail *ge, | 93 | void grail_get_units(const struct grail *ge, |
| 90 | struct grail_coord *min, struct grail_coord *max); | 94 | struct grail_coord *min, struct grail_coord *max); |
| 91 | 95 | ||
