blob: 6c8287fb9fba27980f2db3d6373b59086d967cf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* gui-over.h - GUI: overlays
*
* Written 2016 by Werner Almesberger
* Copyright 2016 by Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef GUI_OVER_H
#define GUI_OVER_H
#include <stdbool.h>
#include <cairo/cairo.h>
#include "gui-aoi.h"
struct overlay;
void overlay_draw_all(struct overlay *overlays, cairo_t *cr);
struct overlay *overlay_add(struct overlay **overlays, const char *s,
struct aoi **aois,
bool (*hover)(void *user, bool on), void (*click)(void *user), void *user);
void overlay_remove(struct overlay **overlays, struct overlay *over);
void overlay_remove_all(struct overlay **overlays);
#endif /* !GUI_OVER_H */
|