summaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-20 01:52:58 -0600
committerzachir <zachir@librem.one>2023-02-20 01:52:58 -0600
commite37e594a2a75e965c353dd541385208d03f2b4bc (patch)
tree59126c7bb6dff97bc76a13b8e82fc78034cc16e2 /st.h
parent6cafedb4b171c53bea640d7850988526b3b64c20 (diff)
add alpha anysize bold-is-not-bright boxdraw_v2 charoffsets clipboard and focus patches
Diffstat (limited to 'st.h')
-rw-r--r--st.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/st.h b/st.h
index fd3b0d8..9ed9f4e 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,
};
@@ -79,6 +80,7 @@ typedef union {
void die(const char *, ...);
void redraw(void);
+void tfulldirt(void);
void draw(void);
void printscreen(const Arg *);
@@ -111,6 +113,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 +134,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, alphaUnfocused;