summaryrefslogtreecommitdiff
path: root/src/grail-gestures.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2011-03-28 20:55:29 +0200
committerHenrik Rydberg <rydberg@euromail.se>2011-03-28 22:02:11 +0200
commita0a4c6c30704a792193ff49d7fcaab63dac8a07a (patch)
treec47a79cdd0520fac1f1197f584aaba863cca6864 /src/grail-gestures.h
parent43fe69ceb335a0ad1fd55fb58acee124d6d9cf19 (diff)
Introduce touch gesture events
Touch gesture events follow the same logic as drags, except they cannot be held back but are emitted immediately. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/grail-gestures.h')
-rw-r--r--src/grail-gestures.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/grail-gestures.h b/src/grail-gestures.h
index d92a24b..a24bbbd 100644
--- a/src/grail-gestures.h
+++ b/src/grail-gestures.h
@@ -77,6 +77,8 @@ struct combo_model {
77 grail_prop_t prop[DIM_GRAIL_PROP]; 77 grail_prop_t prop[DIM_GRAIL_PROP];
78}; 78};
79 79
80int gru_touch(struct grail *ge,
81 const struct utouch_frame *frame);
80int gru_drag(struct grail *ge, 82int gru_drag(struct grail *ge,
81 const struct utouch_frame *frame); 83 const struct utouch_frame *frame);
82int gru_pinch(struct grail *ge, 84int gru_pinch(struct grail *ge,
@@ -90,6 +92,8 @@ static inline int out_of_bounds(const struct combo_model *s,
90 return m->ntouch < s->mintouch || m->ntouch > s->maxtouch; 92 return m->ntouch < s->mintouch || m->ntouch > s->maxtouch;
91} 93}
92 94
95int gru_wintouch(struct grail *ge,
96 const struct utouch_frame *frame);
93int gru_windrag(struct grail *ge, 97int gru_windrag(struct grail *ge,
94 const struct utouch_frame *frame); 98 const struct utouch_frame *frame);
95int gru_winpinch(struct grail *ge, 99int gru_winpinch(struct grail *ge,