diff options
author | tsxv478 <vt0451@yandex.ru> | 2022-09-21 02:22:44 +0300 |
---|---|---|
committer | tsxv478 <vt0451@yandex.ru> | 2022-09-21 02:22:44 +0300 |
commit | 47769a59eb9efed2699d3c66ea847c3f52296a9b (patch) | |
tree | b26b62aca38dcb0abc8c4abe86c38c63a0eb7adb /drw.h | |
parent | f8a5d245468cc6e04903fe96e3efcbd85aea13d9 (diff) |
scroll patch
Diffstat (limited to 'drw.h')
-rw-r--r-- | drw.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -13,6 +13,7 @@ typedef struct Fnt { } Fnt; enum { ColFg, ColBg }; /* Clr scheme index */ +enum { AlignL, AlignR }; typedef XftColor Clr; typedef struct { @@ -53,6 +54,7 @@ void drw_setscheme(Drw *drw, Clr *scm); /* 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); +int drw_text_align(Drw *drw, int x, int y, unsigned int w, unsigned int h, const char *text, int textlen, int align); /* Map functions */ void drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h); |