diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-23 16:38:44 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-25 16:52:02 -0700 |
commit | a21b85887a5565e308a84ec7bcf5656d7500163c (patch) | |
tree | 0c804c16e9878a72b4744865a99e6e7843803fc1 /src/charts.h | |
parent | 36daa7b60f0545a79482d174c778293ec831e03e (diff) |
overlays: rename overlays.[ch]->charts.[ch]
Diffstat (limited to 'src/charts.h')
-rw-r--r-- | src/charts.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/charts.h b/src/charts.h new file mode 100644 index 0000000..222b968 --- /dev/null +++ b/src/charts.h @@ -0,0 +1,26 @@ +#ifndef _CHARTS_H +#define _CHARTS_H + +#include <X11/extensions/Xfixes.h> +#include <X11/extensions/Xrender.h> + +#include "xserver.h" + +typedef struct _vwm_charts_t vwm_charts_t; +typedef struct _vwm_chart_t vwm_chart_t; + +vwm_charts_t * vwm_charts_create(vwm_xserver_t *xserver); +void vwm_charts_destroy(vwm_charts_t *charts); +void vwm_charts_rate_increase(vwm_charts_t *charts); +void vwm_charts_rate_decrease(vwm_charts_t *charts); +void vwm_charts_rate_set(vwm_charts_t *charts, unsigned hertz); +int vwm_charts_update(vwm_charts_t *charts, int *desired_delay); + +vwm_chart_t * vwm_chart_create(vwm_charts_t *charts, int pid, int width, int height); +void vwm_chart_destroy(vwm_charts_t *charts, vwm_chart_t *chart); +void vwm_chart_reset_snowflakes(vwm_charts_t *charts, vwm_chart_t *chart); +int vwm_chart_set_visible_size(vwm_charts_t *charts, vwm_chart_t *chart, int width, int height); +void vwm_chart_compose(vwm_charts_t *charts, vwm_chart_t *chart, XserverRegion *res_damaged_region); +void vwm_chart_render(vwm_charts_t *charts, vwm_chart_t *chart, int op, Picture dest, int x, int y, int width, int height); + +#endif |