summaryrefslogtreecommitdiff
path: root/gui-over.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-06 19:14:31 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-06 19:14:31 -0300
commitae5c02bbe7498b38f6173d31b900170ae8e54ddc (patch)
tree5029e73220a66b19482f2bc3c2c8d392d5709d34 /gui-over.h
parentb3e7bfacea40336e4f855f662a8c88a31e94f007 (diff)
downloadeeshow-ae5c02bbe7498b38f6173d31b900170ae8e54ddc.tar.gz
eeshow-ae5c02bbe7498b38f6173d31b900170ae8e54ddc.tar.bz2
eeshow-ae5c02bbe7498b38f6173d31b900170ae8e54ddc.zip
eeshow/: use printf-style formatting for overlay text; test mode -F fmt string
Diffstat (limited to 'gui-over.h')
-rw-r--r--gui-over.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui-over.h b/gui-over.h
index 477c5d9..bdde9a6 100644
--- a/gui-over.h
+++ b/gui-over.h
@@ -25,9 +25,9 @@ struct overlay;
struct overlay *overlay_draw(struct overlay *over, cairo_t *cr, int *x, int *y);
void overlay_draw_all(struct overlay *overlays, cairo_t *cr);
-struct overlay *overlay_add(struct overlay **overlays, const char *s,
- struct aoi **aois,
+struct overlay *overlay_add(struct overlay **overlays, struct aoi **aois,
bool (*hover)(void *user, bool on), void (*click)(void *user), void *user);
+void overlay_text(struct overlay *over, const char *fmt, ...);
void overlay_remove(struct overlay **overlays, struct overlay *over);
void overlay_remove_all(struct overlay **overlays);