aboutsummaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorFederico Igne <git@federicoigne.com>2020-05-23 11:29:02 +0100
committerFederico Igne <git@federicoigne.com>2020-05-23 11:29:02 +0100
commit81df9b428bd0330af98db9c69ffe69b0441e00fd (patch)
tree58773d60020d006a841f18b80578d9e763e839e9 /st.h
parentdd31d0207ba2acebfb65400e916a624a57c638a4 (diff)
downloadst-81df9b428bd0330af98db9c69ffe69b0441e00fd.tar.gz
st-81df9b428bd0330af98db9c69ffe69b0441e00fd.zip
Apply BoxDraw patch
Homepage link: https://st.suckless.org/patches/boxdraw/ Patch link: https://st.suckless.org/patches/boxdraw/st-boxdraw_v2-0.8.3.diff Additional info: patch applied manually.
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 f9ad815..e9b3abe 100644
--- a/st.h
+++ b/st.h
@@ -33,6 +33,7 @@ enum glyph_attribute {
33 ATTR_WRAP = 1 << 8, 33 ATTR_WRAP = 1 << 8,
34 ATTR_WIDE = 1 << 9, 34 ATTR_WIDE = 1 << 9,
35 ATTR_WDUMMY = 1 << 10, 35 ATTR_WDUMMY = 1 << 10,
36 ATTR_BOXDRAW = 1 << 11,
36 ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT, 37 ATTR_BOLD_FAINT = ATTR_BOLD | ATTR_FAINT,
37}; 38};
38 39
@@ -114,6 +115,14 @@ void *xmalloc(size_t);
114void *xrealloc(void *, size_t); 115void *xrealloc(void *, size_t);
115char *xstrdup(char *); 116char *xstrdup(char *);
116 117
118int isboxdraw(Rune);
119ushort boxdrawindex(const Glyph *);
120#ifdef XFT_VERSION
121/* only exposed to x.c, otherwise we'll need Xft.h for the types */
122void boxdraw_xinit(Display *, Colormap, XftDraw *, Visual *);
123void drawboxes(int, int, int, int, XftColor *, XftColor *, const XftGlyphFontSpec *, int);
124#endif
125
117/* config.h globals */ 126/* config.h globals */
118extern char *utmp; 127extern char *utmp;
119extern char *stty_args; 128extern char *stty_args;
@@ -124,3 +133,4 @@ extern char *termname;
124extern unsigned int tabspaces; 133extern unsigned int tabspaces;
125extern unsigned int defaultfg; 134extern unsigned int defaultfg;
126extern unsigned int defaultbg; 135extern unsigned int defaultbg;
136extern const int boxdraw, boxdraw_bold, boxdraw_braille;