summaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2022-05-15 22:23:48 -0500
committerGitHub <noreply@github.com>2022-05-15 22:23:48 -0500
commitc38d27bf66fd2ae6f1493b36b3f34c74154268e6 (patch)
tree27a6a5b16e7123182ab9702a9667e0918cc90688 /st.h
parent06456761420bbfc96893a0f96b72c3996767e228 (diff)
update
Diffstat (limited to 'st.h')
-rw-r--r--st.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/st.h b/st.h
index 2c6188f..6d0c41e 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,11 +80,8 @@ typedef union {
void die(const char *, ...);
void redraw(void);
-void tfulldirt(void);
void draw(void);
-void kscrolldown(const Arg *);
-void kscrollup(const Arg *);
void printscreen(const Arg *);
void printsel(const Arg *);
void sendbreak(const Arg *);
@@ -94,7 +92,7 @@ void tnew(int, int);
void tresize(int, int);
void tsetdirtattr(int);
void ttyhangup(void);
-int ttynew(char *, char *, char *, char **);
+int ttynew(const char *, char *, const char *, char **);
size_t ttyread(void);
void ttyresize(int, int);
void ttywrite(const char *, size_t, int);
@@ -112,7 +110,15 @@ size_t utf8encode(Rune, char *);
void *xmalloc(size_t);
void *xrealloc(void *, size_t);
-char *xstrdup(char *);
+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;
@@ -126,4 +132,6 @@ extern char *termname;
extern unsigned int tabspaces;
extern unsigned int defaultfg;
extern unsigned int defaultbg;
-extern float alpha, alphaUnfocused;
+extern unsigned int defaultcs;
+extern const int boxdraw, boxdraw_bold, boxdraw_braille;
+extern float alpha;