particle: add utility function to render a particle's decoration

This commit is contained in:
Daniel Eklöf 2018-12-29 21:00:03 +01:00
parent 6f5572ff6b
commit 22507ae26c
8 changed files with 21 additions and 20 deletions

View file

@ -50,6 +50,9 @@ void particle_default_destroy(struct particle *particle);
struct exposable *exposable_common_new(
const struct particle *particle, const char *on_click);
void exposable_default_destroy(struct exposable *exposable);
void exposable_render_deco(
const struct exposable *exposable, cairo_t *cr, int x, int y, int height);
void exposable_default_on_mouse(
struct exposable *exposable, struct bar *bar,
enum mouse_event event, int x, int y);