win.h (1582B)
1 /* See LICENSE for license details. */ 2 3 enum win_mode { 4 MODE_VISIBLE = 1 << 0, 5 MODE_FOCUSED = 1 << 1, 6 MODE_APPKEYPAD = 1 << 2, 7 MODE_MOUSEBTN = 1 << 3, 8 MODE_MOUSEMOTION = 1 << 4, 9 MODE_REVERSE = 1 << 5, 10 MODE_KBDLOCK = 1 << 6, 11 MODE_HIDE = 1 << 7, 12 MODE_APPCURSOR = 1 << 8, 13 MODE_MOUSESGR = 1 << 9, 14 MODE_8BIT = 1 << 10, 15 MODE_BLINK = 1 << 11, 16 MODE_FBLINK = 1 << 12, 17 MODE_FOCUS = 1 << 13, 18 MODE_MOUSEX10 = 1 << 14, 19 MODE_MOUSEMANY = 1 << 15, 20 MODE_BRCKTPASTE = 1 << 16, 21 MODE_NUMLOCK = 1 << 17, 22 MODE_MOUSE = MODE_MOUSEBTN|MODE_MOUSEMOTION|MODE_MOUSEX10\ 23 |MODE_MOUSEMANY, 24 MODE_PLACEHOLDER = 1 << 18, 25 #if KEYBOARDSELECT_PATCH 26 MODE_KBDSELECT = 1 << 19, 27 #endif // KEYBOARDSELECT_PATCH 28 }; 29 30 void xbell(void); 31 void xclipcopy(void); 32 #if LIGATURES_PATCH 33 void xdrawcursor(int, int, Glyph, int, int, Glyph, Line, int); 34 #else 35 void xdrawcursor(int, int, Glyph, int, int, Glyph); 36 #endif // LIGATURES_PATCH 37 void xdrawline(Line, int, int, int); 38 void xfinishdraw(void); 39 void xloadcols(void); 40 int xsetcolorname(int, const char *); 41 void xseticontitle(char *); 42 #if CSI_22_23_PATCH 43 void xfreetitlestack(void); 44 void xsettitle(char *, int); 45 void xpushtitle(void); 46 #else 47 void xsettitle(char *); 48 #endif // CSI_22_23_PATCH 49 int xsetcursor(int); 50 void xsetmode(int, unsigned int); 51 void xsetpointermotion(int); 52 void xsetsel(char *); 53 int xstartdraw(void); 54 void xximspot(int, int); 55 void xclearwin(void); 56 #if REFLOW_PATCH && KEYBOARDSELECT_PATCH 57 void xdrawglyph(Glyph, int, int); 58 #endif // KEYBOARDSELECT_PATCH