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 /test | |
| 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 'test')
| -rw-r--r-- | test/grail-gesture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/grail-gesture.c b/test/grail-gesture.c index c559661..762d3df 100644 --- a/test/grail-gesture.c +++ b/test/grail-gesture.c | |||
| @@ -103,6 +103,10 @@ int main(int argc, char *argv[]) | |||
| 103 | return -1; | 103 | return -1; |
| 104 | } | 104 | } |
| 105 | grail_filter_abs_events(&ge, 1); | 105 | grail_filter_abs_events(&ge, 1); |
| 106 | |||
| 107 | struct grail_coord min = { -2, -1 }, max = { 2, 1 }; | ||
| 108 | grail_set_bbox(&ge, &min, &max); | ||
| 109 | |||
| 106 | loop_device(&ge, fd); | 110 | loop_device(&ge, fd); |
| 107 | grail_close(&ge, fd); | 111 | grail_close(&ge, fd); |
| 108 | 112 | ||
