ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvt.h
(Generate patch)

Comparing rxvt-unicode/src/rxvt.h (file contents):
Revision 1.197 by root, Wed Jan 11 05:29:40 2006 UTC vs.
Revision 1.201 by root, Fri Jan 13 04:59:04 2006 UTC

112void rxvt_freecommastring (char **cs); 112void rxvt_freecommastring (char **cs);
113char * rxvt_File_find (const char *file, const char *ext, const char *path); 113char * rxvt_File_find (const char *file, const char *ext, const char *path);
114void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h); 114void rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h);
115void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type); 115void rxvt_Draw_Triangle (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int type);
116void rxvt_usleep (int usecs); 116void rxvt_usleep (int usecs);
117
118/////////////////////////////////////////////////////////////////////////////
119
120// temporarily replace the process environment
121extern char **environ;
122extern char **rxvt_environ; // the original environ pointer
123
124inline void set_environ (stringvec *envv)
125{
126 if (envv)
127 environ = (char **)envv->begin ();
128}
129
130inline void set_environ (char **envv)
131{
132 if (envv)
133 environ = envv;
134}
117 135
118/* 136/*
119 ***************************************************************************** 137 *****************************************************************************
120 * STRUCTURES AND TYPEDEFS 138 * STRUCTURES AND TYPEDEFS
121 ***************************************************************************** 139 *****************************************************************************
698#define Col2Pixel(col) ((int32_t)Width2Pixel(col)) 716#define Col2Pixel(col) ((int32_t)Width2Pixel(col))
699#define Row2Pixel(row) ((int32_t)Height2Pixel(row)) 717#define Row2Pixel(row) ((int32_t)Height2Pixel(row))
700#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth) 718#define Width2Pixel(n) ((int32_t)(n) * (int32_t)fwidth)
701#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight) 719#define Height2Pixel(n) ((int32_t)(n) * (int32_t)fheight)
702 720
703#define TEMP_ENV temp_environ temp_environ (envv)
704
705#define OPTION(opt) (options & (opt)) 721#define OPTION(opt) (options & (opt))
706#define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \ 722#define DEFAULT_OPTIONS (Opt_scrollBar | Opt_scrollTtyOutput \
707 | Opt_jumpScroll | Opt_secondaryScreen \ 723 | Opt_jumpScroll | Opt_secondaryScreen \
708 | Opt_pastableTabs | Opt_intensityStyles) 724 | Opt_pastableTabs | Opt_intensityStyles)
709 725
1192#endif 1208#endif
1193 1209
1194 // modifies first argument(!) 1210 // modifies first argument(!)
1195 void paste (char *data, unsigned int len); 1211 void paste (char *data, unsigned int len);
1196 1212
1197 void flush (); 1213 long vt_emask, vt_emask_perl;
1214
1215 void vt_select_input ()
1216 {
1217 XSelectInput (display->display, vt, vt_emask | vt_emask_perl);
1218 }
1198 1219
1199#if TRANSPARENT 1220#if TRANSPARENT
1200 void rootwin_cb (XEvent &xev); 1221 void rootwin_cb (XEvent &xev);
1201 xevent_watcher rootwin_ev; 1222 xevent_watcher rootwin_ev;
1202#endif 1223#endif
1203 1224
1204 void x_cb (XEvent &xev); 1225 void x_cb (XEvent &xev);
1226 void flush ();
1205 xevent_watcher termwin_ev; 1227 xevent_watcher termwin_ev;
1206 xevent_watcher vt_ev; 1228 xevent_watcher vt_ev;
1207#ifdef HAVE_SCROLLBARS 1229#ifdef HAVE_SCROLLBARS
1208 xevent_watcher scrollbar_ev; 1230 xevent_watcher scrollbar_ev;
1209#endif 1231#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines