diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-08-06 21:11:17 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-08-06 21:11:17 +0200 |
| commit | 7db9d8d76ff61c4802ac15559dcea6fa54ff567a (patch) | |
| tree | b67e040c0abeb0ab1fca72754a767dc9ab851461 /src/grail-recognizer.h | |
initial bzr repo at rev 27
Diffstat (limited to 'src/grail-recognizer.h')
| -rw-r--r-- | src/grail-recognizer.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/grail-recognizer.h b/src/grail-recognizer.h new file mode 100644 index 0000000..8a5ac80 --- /dev/null +++ b/src/grail-recognizer.h | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /***************************************************************************** | ||
| 2 | * | ||
| 3 | * grail - Gesture Recognition And Instantiation Library | ||
| 4 | * | ||
| 5 | * Copyright (C) 2010 Canonical Ltd. | ||
| 6 | * | ||
| 7 | * This program is free software: you can redistribute it and/or modify it | ||
| 8 | * under the terms of the GNU General Public License as published by the | ||
| 9 | * Free Software Foundation, either version 3 of the License, or (at your | ||
| 10 | * option) any later version. | ||
| 11 | * | ||
| 12 | * This program is distributed in the hope that it will be useful, but | ||
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 15 | * General Public License for more details. | ||
| 16 | * | ||
| 17 | * You should have received a copy of the GNU General Public License along | ||
| 18 | * with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 19 | * | ||
| 20 | * Authors: | ||
| 21 | * Henrik Rydberg <rydberg@bitmath.org> | ||
| 22 | * | ||
| 23 | ****************************************************************************/ | ||
| 24 | |||
| 25 | #ifndef _GRAIL_RECOGNIZER_H | ||
| 26 | #define _GRAIL_RECOGNIZER_H | ||
| 27 | |||
| 28 | #include "grail-gestures.h" | ||
| 29 | |||
| 30 | struct gesture_recognizer { | ||
| 31 | struct touch_frame frame; | ||
| 32 | struct move_model move; | ||
| 33 | struct combo_model pan; | ||
| 34 | struct combo_model pinch; | ||
| 35 | struct combo_model rotate; | ||
| 36 | struct combo_model combo; | ||
| 37 | struct tapping_model tapping; | ||
| 38 | }; | ||
| 39 | |||
| 40 | int gru_init(struct grail *ge); | ||
| 41 | void gru_recognize(struct grail *ge, const struct touch_frame *frame); | ||
| 42 | void gru_destroy(struct grail *ge); | ||
| 43 | |||
| 44 | #endif | ||
