diff options
author | Mike Crute <mike@crute.us> | 2020-12-22 16:08:48 -0800 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2023-04-25 20:45:27 -0700 |
commit | 0ddcd0455171f2c52ae68d92bbddecb834350522 (patch) | |
tree | b6c046074cccfbc5fbc5328d1a284d4021c767fc /st.h | |
parent | ba77c544805651604b722f2dafca867843868dd1 (diff) | |
download | st-patched-0ddcd0455171f2c52ae68d92bbddecb834350522.tar.bz2 st-patched-0ddcd0455171f2c52ae68d92bbddecb834350522.tar.xz st-patched-0ddcd0455171f2c52ae68d92bbddecb834350522.zip |
Apply st-boxdraw_v2-0.8.3
Diffstat (limited to 'st.h')
-rw-r--r-- | st.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 | ||
@@ -111,6 +112,14 @@ void *xmalloc(size_t); | |||
111 | void *xrealloc(void *, size_t); | 112 | void *xrealloc(void *, size_t); |
112 | char *xstrdup(const char *); | 113 | char *xstrdup(const char *); |
113 | 114 | ||
115 | int isboxdraw(Rune); | ||
116 | ushort boxdrawindex(const Glyph *); | ||
117 | #ifdef XFT_VERSION | ||
118 | /* only exposed to x.c, otherwise we'll need Xft.h for the types */ | ||
119 | void boxdraw_xinit(Display *, Colormap, XftDraw *, Visual *); | ||
120 | void drawboxes(int, int, int, int, XftColor *, XftColor *, const XftGlyphFontSpec *, int); | ||
121 | #endif | ||
122 | |||
114 | /* config.h globals */ | 123 | /* config.h globals */ |
115 | extern char *utmp; | 124 | extern char *utmp; |
116 | extern char *scroll; | 125 | extern char *scroll; |
@@ -124,3 +133,4 @@ extern unsigned int tabspaces; | |||
124 | extern unsigned int defaultfg; | 133 | extern unsigned int defaultfg; |
125 | extern unsigned int defaultbg; | 134 | extern unsigned int defaultbg; |
126 | extern unsigned int defaultcs; | 135 | extern unsigned int defaultcs; |
136 | extern const int boxdraw, boxdraw_bold, boxdraw_braille; | ||