summaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorAiden Gall <aiden@aidengall.xyz>2023-11-16 15:28:59 +0000
committerAiden Gall <aiden@aidengall.xyz>2023-11-16 15:32:18 +0000
commit7786188a45318f1bcac232d1615ffb8103c80677 (patch)
tree83c2e3cab77a49ff1d12c812139a9a08b40e3c9b /st.h
parent09d3ab2294c8113e45cf7a64902989ba45bb748a (diff)
patch boxdraw
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 73903f6..e5ca4e0 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,
};
@@ -116,6 +117,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;
@@ -129,4 +138,5 @@ extern unsigned int tabspaces;
extern unsigned int defaultfg;
extern unsigned int defaultbg;
extern unsigned int defaultcs;
+extern const int boxdraw, boxdraw_bold, boxdraw_braille;
extern float alpha;