diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-08-19 22:15:55 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-08-19 22:15:55 +0200 |
| commit | 76f51a7675801acfe8e58c6a21192668d23d3320 (patch) | |
| tree | 73109e613e93fbb8f20fabdbec9f7e0d5356f4dd /src/grail-inserter.h | |
| parent | 8331322a0fec7277366a29a970eafbb795c08432 (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.h | 12 |
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 | ||
| 70 | int gin_add_contact_props(const struct gesture_inserter *gin, | ||
| 71 | grail_prop_t *prop, const struct touch_frame *frame); | ||
| 72 | |||
| 73 | int 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); | ||
| 78 | void gin_send_event(struct grail *ge, struct slot_state *s, | ||
| 79 | const struct gesture_event *ev, | ||
| 80 | const struct touch_frame *frame); | ||
| 81 | |||
| 70 | int gin_init(struct grail *ge); | 82 | int gin_init(struct grail *ge); |
| 71 | void gin_destroy(struct grail *ge); | 83 | void gin_destroy(struct grail *ge); |
| 72 | 84 | ||
