aboutsummaryrefslogtreecommitdiff
path: root/libs/libgui/gfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libgui/gfx.h')
-rw-r--r--libs/libgui/gfx.h11
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