summaryrefslogtreecommitdiff
path: root/src/charts.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-08-25 23:56:51 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-08-25 23:56:51 -0700
commitdc3ee8c2f50260d553e5cffe3037d9f3c8a51aa1 (patch)
treefba9d531fea5fc54e69fd0205d2f913c0ca09ea3 /src/charts.h
parente811aee16be8f594919beb644b2474f643588623 (diff)
charts: add vwm_chart_render_as_{pixmap,ximage}()
Preparatory work for supporting --snapshot-on-sigchld to vmon; add a way to access a chart's pixels outside of the X server.
Diffstat (limited to 'src/charts.h')
-rw-r--r--src/charts.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/charts.h b/src/charts.h
index 222b968..ed71fdd 100644
--- a/src/charts.h
+++ b/src/charts.h
@@ -22,5 +22,7 @@ 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);
+void vwm_chart_render_as_pixmap(vwm_charts_t *charts, vwm_chart_t *chart, const XRenderColor *bg_color, Pixmap *res_pixmap);
+void vwm_chart_render_as_ximage(vwm_charts_t *charts, vwm_chart_t *chart, const XRenderColor *bg_color, XImage **res_ximage);
#endif
© All Rights Reserved