aboutsummaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-04-08 15:24:18 +0200
committerMateja <mail@matejamaric.com>2021-04-08 15:40:20 +0200
commit081aa95b38c53b5a9ea47907496e0ff043fdffe3 (patch)
treec0be6daa9077c38ef68a545068b6704a4ede3fd4 /st.h
parente9bb39d56fe9982b8a1b6e3f6864a10b4a35aa51 (diff)
downloadst-081aa95b38c53b5a9ea47907496e0ff043fdffe3.tar.gz
st-081aa95b38c53b5a9ea47907496e0ff043fdffe3.zip
Switched to Fira Code font and applied `boxdraw` patch.v1.1.0
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 9f11a6a..bca2cb5 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(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;
@@ -123,4 +132,5 @@ 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;