2017-01-20 08:06:39 +00:00
|
|
|
/* See LICENSE for license details. */
|
|
|
|
|
2018-02-23 20:16:52 +00:00
|
|
|
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,
|
2023-06-26 10:13:18 +01:00
|
|
|
MODE_KBDSELECT = 1 << 18,
|
2018-02-23 20:16:52 +00:00
|
|
|
};
|
|
|
|
|
2017-10-10 18:01:18 +01:00
|
|
|
void xbell(void);
|
2017-01-20 08:06:39 +00:00
|
|
|
void xclipcopy(void);
|
2018-02-24 20:58:54 +00:00
|
|
|
void xdrawcursor(int, int, Glyph, int, int, Glyph);
|
2018-02-24 20:53:23 +00:00
|
|
|
void xdrawline(Line, int, int, int);
|
|
|
|
void xfinishdraw(void);
|
2017-01-20 08:06:39 +00:00
|
|
|
void xloadcols(void);
|
|
|
|
int xsetcolorname(int, const char *);
|
2022-01-07 17:21:04 +00:00
|
|
|
int xgetcolor(int, unsigned char *, unsigned char *, unsigned char *);
|
2020-09-06 06:53:41 +01:00
|
|
|
void xseticontitle(char *);
|
2017-01-20 08:06:39 +00:00
|
|
|
void xsettitle(char *);
|
2017-11-06 23:57:45 +00:00
|
|
|
int xsetcursor(int);
|
2018-02-23 20:16:52 +00:00
|
|
|
void xsetmode(int, unsigned int);
|
2017-01-20 08:06:39 +00:00
|
|
|
void xsetpointermotion(int);
|
2017-11-07 00:25:58 +00:00
|
|
|
void xsetsel(char *);
|
2018-02-24 20:53:23 +00:00
|
|
|
int xstartdraw(void);
|
2023-06-26 10:13:18 +01:00
|
|
|
void toggle_winmode(int);
|
|
|
|
void keyboard_select(const Arg *);
|
2019-02-12 17:41:41 +00:00
|
|
|
void xximspot(int, int);
|