summaryrefslogtreecommitdiff
path: root/drw.h
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-08-17 04:27:28 +0300
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-08-17 04:27:28 +0300
commit48d827bb16e57a06c951c08bcf98ca1c088da9eb (patch)
tree8a35a8236d66db6476f8437557881144463e82bb /drw.h
parent67f972f7426503cd4307ffe53868453d19777efa (diff)
WinIcon Patch
Changes to be committed: modified: config.def.h modified: config.def.h.orig modified: config.h modified: config.mk new file: config.mk.orig modified: drw.c modified: drw.c.orig modified: drw.h new file: drw.h.orig modified: dwm.c modified: dwm.c.orig modified: patches_huge/dwm-winicon-6.3-v2.1.diff
Diffstat (limited to 'drw.h')
-rw-r--r--drw.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drw.h b/drw.h
index 6471431..e42eead 100644
--- a/drw.h
+++ b/drw.h
@@ -21,6 +21,7 @@ typedef struct {
int screen;
Window root;
Drawable drawable;
+ Picture picture;
GC gc;
Clr *scheme;
Fnt *fonts;
@@ -50,9 +51,12 @@ void drw_cur_free(Drw *drw, Cur *cursor);
void drw_setfontset(Drw *drw, Fnt *set);
void drw_setscheme(Drw *drw, Clr *scm);
+Picture drw_picture_create_resized(Drw *drw, char *src, unsigned int src_w, unsigned int src_h, unsigned int dst_w, unsigned int dst_h);
+
/* Drawing functions */
void drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert);
int drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lpad, const char *text, int invert);
+void drw_pic(Drw *drw, int x, int y, unsigned int w, unsigned int h, Picture pic);
/* Map functions */
void drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h);