diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-05-26 10:04:45 +0200 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2024-05-26 10:04:45 +0200 |
commit | cd5198f084186dacb9f90bc2b52654f16f6feefb (patch) | |
tree | c76c9942f52a9e8b2a2d012bcccf99198b9f189a /dmenu/drw.h | |
parent | 15663cf4d0666670ff1dffcac9d56aef87752c3f (diff) |
change settings
Diffstat (limited to 'dmenu/drw.h')
-rwxr-xr-x | dmenu/drw.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dmenu/drw.h b/dmenu/drw.h index fd7631b..48f2f93 100755 --- a/dmenu/drw.h +++ b/dmenu/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*, unsigned int, Colormap); 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); |