decoration: configurable graphical effects, added to a particle

This commit is contained in:
Daniel Eklöf 2018-12-26 15:30:47 +01:00
parent 052513c736
commit 0284f5ac85
4 changed files with 58 additions and 0 deletions

10
decoration.h Normal file
View file

@ -0,0 +1,10 @@
#pragma once
#include <cairo.h>
struct deco {
void *private;
void (*expose)(const struct deco *deco, cairo_t *cr,
int x, int y, int width, int height);
void (*destroy)(struct deco *deco);
};