summaryrefslogtreecommitdiff
path: root/drw.h
diff options
context:
space:
mode:
authortsxv478 <vt0451@yandex.ru>2022-09-21 02:22:44 +0300
committertsxv478 <vt0451@yandex.ru>2022-09-21 02:22:44 +0300
commit47769a59eb9efed2699d3c66ea847c3f52296a9b (patch)
treeb26b62aca38dcb0abc8c4abe86c38c63a0eb7adb /drw.h
parentf8a5d245468cc6e04903fe96e3efcbd85aea13d9 (diff)
scroll patch
Diffstat (limited to 'drw.h')
-rw-r--r--drw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drw.h b/drw.h
index fd7631b..d76b2be 100644
--- a/drw.h
+++ b/drw.h
@@ -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);