diff options
author | Marvin Borner | 2021-05-21 15:25:42 +0200 |
---|---|---|
committer | Marvin Borner | 2021-05-21 15:25:42 +0200 |
commit | a69af1e2cc219f2f4010a6231dd32416a18437f2 (patch) | |
tree | 822571c69cc924adff0ec2c98c88f7bf928b43d5 /libs/libgui/gfx.h | |
parent | 5c27101d27a6fe9005ce4b95075d1dea5117d190 (diff) |
Major GUI refactoring
Diffstat (limited to 'libs/libgui/gfx.h')
-rw-r--r-- | libs/libgui/gfx.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libs/libgui/gfx.h b/libs/libgui/gfx.h index 1dfa96d..eb98578 100644 --- a/libs/libgui/gfx.h +++ b/libs/libgui/gfx.h @@ -43,10 +43,13 @@ #define WF_NO_FB (1 << 3) #define WF_NO_WINDOW (1 << 4) #define WF_ALPHA (1 << 5) +#define WF_BAR (1 << 6) #define GFX_NON_ALPHA 0 #define GFX_ALPHA 1 +#define GFX_CENTER_IN(a, b) (ABS((a) - (b)) / 2) + enum font_type { FONT_8, FONT_12, FONT_16, FONT_24, FONT_32, FONT_64 }; enum gfx_filter { GFX_FILTER_NONE, @@ -89,12 +92,4 @@ void gfx_border(struct context *ctx, u32 c, u32 width) NONNULL; int gfx_font_height(enum font_type); int gfx_font_width(enum font_type); -/** - * Wrappers - */ - -/* #define gfx_redraw() \ */ -/* (msg_send(pidof(WM_PATH), GFX_REDRAW, NULL)) // TODO: Partial redraw (optimization) */ -/* #define gfx_redraw_focused() (msg_send(pidof(WM_PATH), GFX_REDRAW_FOCUSED, NULL)) */ - #endif |