From f86158c6b7b1d9f2cfd7f7f05e0576de643b9c5a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 30 Mar 2021 18:46:38 +0200 Subject: Widget fg/bg and gfx filters --- libs/libgui/gfx.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/libgui/gfx.h') diff --git a/libs/libgui/gfx.h b/libs/libgui/gfx.h index 1999b0c..83736fd 100644 --- a/libs/libgui/gfx.h +++ b/libs/libgui/gfx.h @@ -46,6 +46,10 @@ /* #define WF_RELATIVE (1 << 4) */ enum font_type { FONT_8, FONT_12, FONT_16, FONT_24, FONT_32, FONT_64 }; +enum gfx_filter { + GFX_FILTER_NONE, + GFX_FILTER_INVERT, +}; // Generalized font struct struct font { @@ -67,6 +71,7 @@ struct font *gfx_resolve_font(enum font_type font_type); void gfx_write_char(struct context *ctx, vec2 pos, enum font_type font_type, u32 c, char ch); void gfx_write(struct context *ctx, vec2 pos, enum font_type font_type, u32 c, const char *text); void gfx_load_image(struct context *ctx, vec2 pos, const char *path); +void gfx_load_image_filter(struct context *ctx, vec2 pos, enum gfx_filter filter, const char *path); void gfx_load_wallpaper(struct context *ctx, const char *path); void gfx_copy(struct context *dest, struct context *src, vec2 pos, vec2 size); void gfx_ctx_on_ctx(struct context *dest, struct context *src, vec2 pos); -- cgit v1.2.3