2019-09-16 07:35:57 +00:00
|
|
|
/* See LICENSE for license details. */
|
|
|
|
|
|
|
|
enum win_mode {
|
|
|
|
MODE_VISIBLE = 1 << 0,
|
|
|
|
MODE_FOCUSED = 1 << 1,
|
|
|
|
MODE_APPKEYPAD = 1 << 2,
|
|
|
|
MODE_MOUSEBTN = 1 << 3,
|
|
|
|
MODE_MOUSEMOTION = 1 << 4,
|
|
|
|
MODE_REVERSE = 1 << 5,
|
|
|
|
MODE_KBDLOCK = 1 << 6,
|
|
|
|
MODE_HIDE = 1 << 7,
|
|
|
|
MODE_APPCURSOR = 1 << 8,
|
|
|
|
MODE_MOUSESGR = 1 << 9,
|
|
|
|
MODE_8BIT = 1 << 10,
|
|
|
|
MODE_BLINK = 1 << 11,
|
|
|
|
MODE_FBLINK = 1 << 12,
|
|
|
|
MODE_FOCUS = 1 << 13,
|
|
|
|
MODE_MOUSEX10 = 1 << 14,
|
|
|
|
MODE_MOUSEMANY = 1 << 15,
|
|
|
|
MODE_BRCKTPASTE = 1 << 16,
|
|
|
|
MODE_NUMLOCK = 1 << 17,
|
|
|
|
MODE_MOUSE = MODE_MOUSEBTN|MODE_MOUSEMOTION|MODE_MOUSEX10\
|
|
|
|
|MODE_MOUSEMANY,
|
2024-03-07 21:35:11 +00:00
|
|
|
MODE_PLACEHOLDER = 1 << 18,
|
2019-09-17 06:53:00 +00:00
|
|
|
#if KEYBOARDSELECT_PATCH
|
2021-05-09 15:48:28 +00:00
|
|
|
MODE_KBDSELECT = 1 << 19,
|
2019-09-17 06:53:00 +00:00
|
|
|
#endif // KEYBOARDSELECT_PATCH
|
2019-09-16 07:35:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void xbell(void);
|
|
|
|
void xclipcopy(void);
|
2020-06-05 11:43:14 +00:00
|
|
|
#if LIGATURES_PATCH
|
|
|
|
void xdrawcursor(int, int, Glyph, int, int, Glyph, Line, int);
|
|
|
|
#else
|
2019-09-16 07:35:57 +00:00
|
|
|
void xdrawcursor(int, int, Glyph, int, int, Glyph);
|
2020-06-05 11:43:14 +00:00
|
|
|
#endif // LIGATURES_PATCH
|
2019-09-16 07:35:57 +00:00
|
|
|
void xdrawline(Line, int, int, int);
|
|
|
|
void xfinishdraw(void);
|
|
|
|
void xloadcols(void);
|
|
|
|
int xsetcolorname(int, const char *);
|
2021-05-10 07:28:15 +00:00
|
|
|
void xseticontitle(char *);
|
2021-08-18 08:07:42 +00:00
|
|
|
#if CSI_22_23_PATCH
|
|
|
|
void xfreetitlestack(void);
|
|
|
|
void xsettitle(char *, int);
|
|
|
|
void xpushtitle(void);
|
|
|
|
#else
|
2019-09-16 07:35:57 +00:00
|
|
|
void xsettitle(char *);
|
2021-08-18 08:07:42 +00:00
|
|
|
#endif // CSI_22_23_PATCH
|
2019-09-16 07:35:57 +00:00
|
|
|
int xsetcursor(int);
|
|
|
|
void xsetmode(int, unsigned int);
|
|
|
|
void xsetpointermotion(int);
|
|
|
|
void xsetsel(char *);
|
|
|
|
int xstartdraw(void);
|
2020-03-24 10:25:39 +00:00
|
|
|
void xximspot(int, int);
|
2024-03-13 09:33:51 +00:00
|
|
|
void xclearwin(void);
|
|
|
|
#if REFLOW_PATCH && KEYBOARDSELECT_PATCH
|
|
|
|
void xdrawglyph(Glyph, int, int);
|
|
|
|
#endif // KEYBOARDSELECT_PATCH
|