diff options
author | tsxv478 <atvx717@infraredcombat.xyz> | 2022-09-21 02:22:44 +0300 |
---|---|---|
committer | tsxv478 <atvx717@infraredcombat.xyz> | 2022-09-21 02:22:44 +0300 |
commit | c8650fcedd4d86d4303710c57fc8df2d89d78ca4 (patch) | |
tree | b26b62aca38dcb0abc8c4abe86c38c63a0eb7adb /drw.h | |
parent | b585ebec88e7ba93833af2c0c086bd90ff823c92 (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); |