st

st fork
git clone git://git.rr3.xyz/st
Log | Files | Refs | README | LICENSE

win.h (1399B)


      1 /* See LICENSE for license details. */
      2 /* Requires: util.h, st.h */
      3 
      4 #define xgetmode() xmode(0,0)
      5 #define xsetmode(set,flags) ((set) ? xmode((flags),0) : xmode(0,(flags)))
      6 #define xtogmode(flags) xmode((flags),(flags))
      7 
      8 enum win_mode {
      9 	MODE_VISIBLE     = 1 << 0,
     10 	MODE_FOCUSED     = 1 << 1,
     11 	MODE_APPKEYPAD   = 1 << 2,
     12 	MODE_MOUSEBTN    = 1 << 3,
     13 	MODE_MOUSEMOTION = 1 << 4,
     14 	MODE_REVERSE     = 1 << 5,
     15 	MODE_KBDLOCK     = 1 << 6,
     16 	MODE_HIDE        = 1 << 7,
     17 	MODE_APPCURSOR   = 1 << 8,
     18 	MODE_MOUSESGR    = 1 << 9,
     19 	MODE_8BIT        = 1 << 10,
     20 	MODE_BLINK       = 1 << 11,
     21 	MODE_FBLINK      = 1 << 12,
     22 	MODE_FOCUS       = 1 << 13,
     23 	MODE_MOUSEX10    = 1 << 14,
     24 	MODE_MOUSEMANY   = 1 << 15,
     25 	MODE_BRCKTPASTE  = 1 << 16,
     26 	MODE_NUMLOCK     = 1 << 17,
     27 	MODE_MOUSE       = MODE_MOUSEBTN|MODE_MOUSEMOTION|MODE_MOUSEX10\
     28 	                  |MODE_MOUSEMANY,
     29 };
     30 
     31 void xclipcopy(void);
     32 void xclippaste(void);
     33 void xselpaste(void);
     34 void xzoomabs(double);
     35 void xzoomrel(double);
     36 void xzoomrst(void);
     37 void xbell(void);
     38 void xclipcopy(void);
     39 void xdrawcursor(int, int, Glyph, int, int, Glyph);
     40 void xdrawline(Line, int, int, int);
     41 void xfinishdraw(void);
     42 void xloadcolors(void);
     43 int xsetcolorname(int, const char *);
     44 void xseticontitle(char *);
     45 void xsettitle(char *);
     46 int xsetcursor(int);
     47 uint xmode(uint, uint);
     48 void xsetpointermotion(int);
     49 void xsetsel(char *);
     50 int xstartdraw(void);
     51 void xximspot(int, int);