summaryrefslogtreecommitdiff
path: root/.config/guix/modules/dwm/drw.h
diff options
context:
space:
mode:
authorbd <bdunahu@colostate.edu>2024-03-09 22:21:34 -0700
committerbd <bdunahu@colostate.edu>2024-03-09 22:21:34 -0700
commit5cf1dc72f1a22ff6b2428d0f1f439f1c8d30c576 (patch)
treec156e2174a0c53a2e7790a0bdbb57319b3528574 /.config/guix/modules/dwm/drw.h
parent443504c783443e568148bc467d740381deaf814c (diff)
Added alpha patch to dwm, minor cleanup
Diffstat (limited to '.config/guix/modules/dwm/drw.h')
-rw-r--r--.config/guix/modules/dwm/drw.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/.config/guix/modules/dwm/drw.h b/.config/guix/modules/dwm/drw.h
index 6471431..2143533 100644
--- a/.config/guix/modules/dwm/drw.h
+++ b/.config/guix/modules/dwm/drw.h
@@ -20,6 +20,9 @@ typedef struct {
Display *dpy;
int screen;
Window root;
+ Visual *visual;
+ unsigned int depth;
+ Colormap cmap;
Drawable drawable;
GC gc;
Clr *scheme;
@@ -27,7 +30,7 @@ typedef struct {
} Drw;
/* Drawable abstraction */
-Drw *drw_create(Display *dpy, int screen, Window win, unsigned int w, unsigned int h);
+Drw *drw_create(Display *dpy, int screen, Window win, unsigned int w, unsigned int h, Visual *visual, unsigned int depth, Colormap cmap);
void drw_resize(Drw *drw, unsigned int w, unsigned int h);
void drw_free(Drw *drw);
@@ -39,8 +42,8 @@ unsigned int drw_fontset_getwidth_clamp(Drw *drw, const char *text, unsigned int
void drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h);
/* Colorscheme abstraction */
-void drw_clr_create(Drw *drw, Clr *dest, const char *clrname);
-Clr *drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount);
+void drw_clr_create(Drw *drw, Clr *dest, const char *clrname, unsigned int alpha);
+Clr *drw_scm_create(Drw *drw, const char *clrnames[], const unsigned int alphas[], size_t clrcount);
/* Cursor abstraction */
Cur *drw_cur_create(Drw *drw, int shape);