summaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authortsxv478 <vt0451@yandex.ru>2022-07-17 04:29:05 +0300
committertsxv478 <vt0451@yandex.ru>2022-07-17 04:29:05 +0300
commit59eed7c68a87f17e3bd0e60739dd75972cae9de0 (patch)
treecd8f478e9c74c9a367b2295ad801852ca57c45d6 /st.h
parent02760c4ad088e94d69976b5d5367b918fccd69bf (diff)
boxdraw patch
Diffstat (limited to 'st.h')
-rw-r--r--st.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/st.h b/st.h
index eda7eeb..665cac0 100644
--- a/st.h
+++ b/st.h
@@ -35,6 +35,7 @@ enum glyph_attribute {
ATTR_WIDE = 1 << 10,
ATTR_WDUMMY = 1 << 11,
ATTR_SELECTED = 1 << 12,
+ ATTR_BOXDRAW = 1 << 13,
ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT,
};
@@ -117,6 +118,14 @@ void *xmalloc(size_t);
void *xrealloc(void *, size_t);
char *xstrdup(const 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 *scroll;
@@ -130,3 +139,4 @@ extern unsigned int tabspaces;
extern unsigned int defaultfg;
extern unsigned int defaultbg;
extern unsigned int defaultcs;
+extern const int boxdraw, boxdraw_bold, boxdraw_braille;