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.236 by root, Sun Jan 22 17:10:01 2006 UTC vs.
Revision 1.240 by root, Tue Jan 24 19:40:12 2006 UTC

823# define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g)) 823# define XPMClearArea(a, b, c, d, e, f, g) XClearArea((a), (b), (c), (d), (e), (f), (g))
824#else 824#else
825# define XPMClearArea(a, b, c, d, e, f, g) 825# define XPMClearArea(a, b, c, d, e, f, g)
826#endif 826#endif
827 827
828#ifdef DEBUG_CMD
829# define D_CMD(x) fprintf x ; fputc('\n', stderr)
830#else
831# define D_CMD(x)
832#endif
833#ifdef DEBUG_INIT
834# define D_INIT(x) fprintf x ; fputc('\n', stderr)
835#else
836# define D_INIT(x)
837#endif
838#ifdef DEBUG_MAIN
839# define D_MAIN(x) fprintf x ; fputc('\n', stderr)
840#else
841# define D_MAIN(x)
842#endif
843#ifdef DEBUG_SIZE
844# define D_SIZE(x) fprintf x ; fputc('\n', stderr)
845#else
846# define D_SIZE(x)
847#endif
848
849typedef callback1<void, const char *> log_callback; 828typedef callback1<void, const char *> log_callback;
850typedef callback1<int, int> getfd_callback; 829typedef callback1<int, int> getfd_callback;
851 830
852#define SET_LOCALE(locale) rxvt_set_locale (locale) 831#define SET_LOCALE(locale) rxvt_set_locale (locale)
853extern bool rxvt_set_locale (const char *locale) NOTHROW; 832extern bool rxvt_set_locale (const char *locale) NOTHROW;
1157#endif 1136#endif
1158 1137
1159 // modifies first argument(!) 1138 // modifies first argument(!)
1160 void paste (char *data, unsigned int len) NOTHROW; 1139 void paste (char *data, unsigned int len) NOTHROW;
1161 1140
1162 long vt_emask, vt_emask_perl; 1141 long vt_emask, vt_emask_perl, vt_emask_xim;
1163 1142
1164 void vt_select_input () const NOTHROW 1143 void vt_select_input () const NOTHROW
1165 { 1144 {
1166 XSelectInput (display->display, vt, vt_emask | vt_emask_perl); 1145 XSelectInput (display->display, vt, vt_emask | vt_emask_perl | vt_emask_xim);
1167 } 1146 }
1168 1147
1169#if TRANSPARENT 1148#if TRANSPARENT
1170 void rootwin_cb (XEvent &xev); 1149 void rootwin_cb (XEvent &xev);
1171 xevent_watcher rootwin_ev; 1150 xevent_watcher rootwin_ev;
1328 int rXParseAllocColor (rxvt_color * screen_in_out, const char *colour); 1307 int rXParseAllocColor (rxvt_color * screen_in_out, const char *colour);
1329 void set_widthheight (unsigned int newwidth, unsigned int newheight); 1308 void set_widthheight (unsigned int newwidth, unsigned int newheight);
1330 1309
1331 // screen.C 1310 // screen.C
1332 1311
1333 void lalloc (line_t &l) const NOTHROW 1312 void lalloc (line_t &l) const
1334 { 1313 {
1335 l.t = (text_t *)talloc->alloc (); 1314 l.t = (text_t *)talloc->alloc ();
1336 l.r = (rend_t *)ralloc->alloc (); 1315 l.r = (rend_t *)ralloc->alloc ();
1337 } 1316 }
1338 1317
1342 talloc->free (l.t); 1321 talloc->free (l.t);
1343 ralloc->free (l.r); 1322 ralloc->free (l.r);
1344 } 1323 }
1345#endif 1324#endif
1346 1325
1347 void lresize (line_t &l) const NOTHROW 1326 void lresize (line_t &l) const
1348 { 1327 {
1349 if (!l.t) 1328 if (!l.t)
1350 return; 1329 return;
1351 1330
1352 l.t = (text_t *)talloc->alloc (l.t, prev_ncol * sizeof (text_t)); 1331 l.t = (text_t *)talloc->alloc (l.t, prev_ncol * sizeof (text_t));
1420 void scr_remap_chars () NOTHROW; 1399 void scr_remap_chars () NOTHROW;
1421 void scr_remap_chars (line_t &l) NOTHROW; 1400 void scr_remap_chars (line_t &l) NOTHROW;
1422 1401
1423 enum cursor_mode { SAVE, RESTORE }; 1402 enum cursor_mode { SAVE, RESTORE };
1424 1403
1425 void scr_poweron () NOTHROW; 1404 void scr_poweron ();
1426 void scr_cursor (cursor_mode mode) NOTHROW; 1405 void scr_cursor (cursor_mode mode) NOTHROW;
1427 void scr_do_wrap () NOTHROW; 1406 void scr_do_wrap () NOTHROW;
1407 void scr_swap_screen () NOTHROW;
1428 int scr_change_screen (int scrn) NOTHROW; 1408 void scr_change_screen (int scrn);
1429 void scr_color (unsigned int color, int fgbg) NOTHROW; 1409 void scr_color (unsigned int color, int fgbg) NOTHROW;
1430 void scr_rendition (int set, int style) NOTHROW; 1410 void scr_rendition (int set, int style) NOTHROW;
1431 void scr_add_lines (const wchar_t *str, int len, int minlines = 0) NOTHROW; 1411 void scr_add_lines (const wchar_t *str, int len, int minlines = 0) NOTHROW;
1432 void scr_backspace () NOTHROW; 1412 void scr_backspace () NOTHROW;
1433 void scr_tab (int count, bool ht = false) NOTHROW; 1413 void scr_tab (int count, bool ht = false) NOTHROW;
1525# define __PROTO(p) p 1505# define __PROTO(p) p
1526#else 1506#else
1527# define __PROTO(p) () 1507# define __PROTO(p) ()
1528#endif 1508#endif
1529 1509
1530#ifdef DEBUG_malloc
1531# include "dmalloc.h" /* This comes last */
1532#endif
1533
1534#endif /* _RXVT_H_ */ 1510#endif /* _RXVT_H_ */
1535 1511

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines