summaryrefslogtreecommitdiffstats
path: root/st.h
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2022-12-31 16:30:35 -0500
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2022-12-31 16:30:35 -0500
commit7c6ef5232de8d31a10e593882c29189c05296541 (patch)
tree6d173bd6bdd519139467ae5a723602e9134dd7cd /st.h
parentc1a13da18e043a229cd08d9796ffd234c7311a86 (diff)
downloadst-7c6ef5232de8d31a10e593882c29189c05296541.tar.gz
Applied boxdraw + more repo cleanup
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 fd3b0d8..808f5f7 100644
--- a/st.h
+++ b/st.h
@@ -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,
};
@@ -111,6 +112,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;
@@ -124,3 +133,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;