summaryrefslogtreecommitdiff
path: root/src/grail-inserter.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-08-19 22:15:55 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-08-19 22:15:55 +0200
commit76f51a7675801acfe8e58c6a21192668d23d3320 (patch)
tree73109e613e93fbb8f20fabdbec9f7e0d5356f4dd /src/grail-inserter.h
parent8331322a0fec7277366a29a970eafbb795c08432 (diff)
Add contact information to the property list
Add the five first contacts to the property list, and unify the handling of all gesture types in this regard. To avoid duplication, move the scaling of properties closer to the gesture recognizer. Move all gesture event handling code to grail-event.c, simplifying the structure somewhat. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/grail-inserter.h')
-rw-r--r--src/grail-inserter.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/grail-inserter.h b/src/grail-inserter.h
index f8ec5ca..c5a865a 100644
--- a/src/grail-inserter.h
+++ b/src/grail-inserter.h
@@ -67,6 +67,18 @@ static inline float gin_prop_y(const struct gesture_inserter *gin, float y)
67 return gin->scale_y * y + gin->trans_y; 67 return gin->scale_y * y + gin->trans_y;
68} 68}
69 69
70int gin_add_contact_props(const struct gesture_inserter *gin,
71 grail_prop_t *prop, const struct touch_frame *frame);
72
73int gin_get_clients(struct grail *ge,
74 struct grail_client_info *info, int maxinfo,
75 const grail_mask_t* types, int btypes,
76 const grail_mask_t* span, int bspan,
77 const struct touch_frame *frame);
78void gin_send_event(struct grail *ge, struct slot_state *s,
79 const struct gesture_event *ev,
80 const struct touch_frame *frame);
81
70int gin_init(struct grail *ge); 82int gin_init(struct grail *ge);
71void gin_destroy(struct grail *ge); 83void gin_destroy(struct grail *ge);
72 84