summaryrefslogtreecommitdiff
path: root/gui/over.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-21 22:31:52 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-21 22:31:52 -0300
commitc5d01642fa2ffc32c26434a1847b3e58aeea18d1 (patch)
tree54e38d2101631a5e2b331fd895603d3dd8b80006 /gui/over.c
parent513813be0325b7e29231c6a1e8c74758d1287eea (diff)
downloadeeshow-c5d01642fa2ffc32c26434a1847b3e58aeea18d1.tar.gz
eeshow-c5d01642fa2ffc32c26434a1847b3e58aeea18d1.tar.bz2
eeshow-c5d01642fa2ffc32c26434a1847b3e58aeea18d1.zip
eeshow/gui/: hover callback now indicates in which direction we left
Diffstat (limited to 'gui/over.c')
-rw-r--r--gui/over.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gui/over.c b/gui/over.c
index 9bdec04..aede7c5 100644
--- a/gui/over.c
+++ b/gui/over.c
@@ -45,7 +45,7 @@ struct overlay {
struct overlay_style style;
struct aoi **aois;
- bool (*hover)(void *user, bool on);
+ bool (*hover)(void *user, bool on, int dx, int dy);
void (*click)(void *user);
void *user;
@@ -420,7 +420,8 @@ void overlay_size_all(const struct overlay *overlays,
struct overlay *overlay_add(struct overlay **overlays, struct aoi **aois,
- bool (*hover)(void *user, bool on), void (*click)(void *user), void *user)
+ bool (*hover)(void *user, bool on, int dx, int dy),
+ void (*click)(void *user), void *user)
{
struct overlay *over, *prev;
struct overlay **anchor;