diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-05-05 13:55:37 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2020-05-05 13:55:37 -0400 |
commit | b35e4f57273f56c53dbc4d77d7b5992c47255662 (patch) | |
tree | fa6845acd8e28b3abe16f49c857136df2af34ab0 /st.h | |
parent | b43e574fa6e7e99cc620603cd0b7a36e1d7376b1 (diff) |
boxdraw added
Diffstat (limited to 'st.h')
-rw-r--r-- | st.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -33,6 +33,7 @@ enum glyph_attribute { ATTR_WRAP = 1 << 8, ATTR_WIDE = 1 << 9, ATTR_WDUMMY = 1 << 10, + ATTR_BOXDRAW = 1 << 11, ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT, }; @@ -121,6 +122,14 @@ void *xmalloc(size_t); void *xrealloc(void *, size_t); char *xstrdup(char *); +int isboxdraw(Rune); +ushort boxdrawindex(const Glyph *); +#ifdef XFT_VERSION +/* only exposed to x.c, otherwise we'll need Xft.h for the types */ +void boxdraw_xinit(Display *, Colormap, XftDraw *, Visual *); +void drawboxes(int, int, int, int, XftColor *, XftColor *, const XftGlyphFontSpec *, int); +#endif + /* config.h globals */ extern char *utmp; extern char *stty_args; @@ -131,6 +140,7 @@ extern char *termname; extern unsigned int tabspaces; extern unsigned int defaultfg; extern unsigned int defaultbg; +extern const int boxdraw, boxdraw_bold, boxdraw_braille; extern float alpha; extern MouseKey mkeys[]; extern int ximspot_update_interval; |