summaryrefslogtreecommitdiff
path: root/gui/over.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-29 02:10:04 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-29 02:12:01 -0300
commit5f2414aa745a2fadd89e77fb8753d308ca4586f8 (patch)
tree0cbf2149e6064bd3949130e41b6848791c093132 /gui/over.h
parenta8384239c95cd514662c928f0b6023415024579a (diff)
downloadeeshow-5f2414aa745a2fadd89e77fb8753d308ca4586f8.tar.gz
eeshow-5f2414aa745a2fadd89e77fb8753d308ca4586f8.tar.bz2
eeshow-5f2414aa745a2fadd89e77fb8753d308ca4586f8.zip
gui/over.c (over_iterate_geometry): iterate overlays and pass geometry
This way, one can draw things in relation to overlays. E.g., the threads in the revision history.
Diffstat (limited to 'gui/over.h')
-rw-r--r--gui/over.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/over.h b/gui/over.h
index 7bb53ad..64166eb 100644
--- a/gui/over.h
+++ b/gui/over.h
@@ -67,6 +67,10 @@ void overlay_style(struct overlay *over, const struct overlay_style *style);
void overlay_set_related(struct overlay *over, struct overlay *related);
void overlay_set_related_all(struct overlay *overlays, struct overlay *related);
+void over_iterate_geometry(const struct overlay *over,
+ void (*fn)(void *user, void *user_over, int x, int y, unsigned w,
+ unsigned h, int dy), void *user);
+
void overlay_remove(struct overlay **overlays, struct overlay *over);
void overlay_remove_all(struct overlay **overlays);