Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Move window-manipulating functions into x.c
[st.git]
/
st.h
diff --git
a/st.h
b/st.h
index
ad94351
..
5d44411
100644
(file)
--- a/
st.h
+++ b/
st.h
@@
-80,11
+80,6
@@
enum selection_snap {
SNAP_LINE = 2
};
SNAP_LINE = 2
};
-enum window_state {
- WIN_VISIBLE = 1,
- WIN_FOCUSED = 2
-};
-
typedef unsigned char uchar;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef unsigned char uchar;
typedef unsigned int uint;
typedef unsigned long ulong;
@@
-92,6
+87,7
@@
typedef unsigned short ushort;
typedef uint_least32_t Rune;
typedef uint_least32_t Rune;
+#define Glyph Glyph_
typedef struct {
Rune u; /* character code */
ushort mode; /* attribute flags */
typedef struct {
Rune u; /* character code */
ushort mode; /* attribute flags */
@@
-100,7
+96,6
@@
typedef struct {
} Glyph;
typedef Glyph *Line;
} Glyph;
typedef Glyph *Line;
-typedef XftGlyphFontSpec GlyphFontSpec;
typedef struct {
Glyph attr; /* current char attributes */
typedef struct {
Glyph attr; /* current char attributes */
@@
-116,7
+111,6
@@
typedef struct {
Line *line; /* screen */
Line *alt; /* alternate screen */
int *dirty; /* dirtyness of lines */
Line *line; /* screen */
Line *alt; /* alternate screen */
int *dirty; /* dirtyness of lines */
- GlyphFontSpec *specbuf; /* font spec buffer used for rendering */
TCursor c; /* cursor */
int top; /* top scroll limit */
int bot; /* bottom scroll limit */
TCursor c; /* cursor */
int top; /* top scroll limit */
int bot; /* bottom scroll limit */
@@
-187,6
+181,7
@@
void redraw(void);
int tattrset(int);
void tnew(int, int);
int tattrset(int);
void tnew(int, int);
+void tresize(int, int);
void tsetdirt(int, int);
void tsetdirtattr(int);
int match(uint, uint);
void tsetdirt(int, int);
void tsetdirtattr(int);
int match(uint, uint);
@@
-199,20
+194,18
@@
void ttywrite(const char *, size_t);
void resettitle(void);
char *kmap(KeySym, uint);
void resettitle(void);
char *kmap(KeySym, uint);
-void cresize(int, int);
void selclear(void);
void selinit(void);
void selnormalize(void);
int selected(int, int);
char *getsel(void);
void selclear(void);
void selinit(void);
void selnormalize(void);
int selected(int, int);
char *getsel(void);
-int x2col(int);
-int y2row(int);
size_t utf8decode(char *, Rune *, size_t);
size_t utf8encode(Rune, char *);
void *xmalloc(size_t);
size_t utf8decode(char *, Rune *, size_t);
size_t utf8encode(Rune, char *);
void *xmalloc(size_t);
+void *xrealloc(void *, size_t);
char *xstrdup(char *);
/* Globals */
char *xstrdup(char *);
/* Globals */
@@
-231,10
+224,6
@@
extern char *opt_name;
extern char *opt_title;
extern int oldbutton;
extern char *opt_title;
extern int oldbutton;
-extern char *usedfont;
-extern double usedfontsize;
-extern double defaultfontsize;
-
/* config.h globals */
extern char font[];
extern int borderpx;
/* config.h globals */
extern char font[];
extern int borderpx;