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

Comparing cvsroot/rxvt-unicode/src/rxvt.h (file contents):
Revision 1.204 by root, Sun Jan 15 06:02:40 2006 UTC vs.
Revision 1.206 by root, Mon Jan 16 08:29:57 2006 UTC

1215 // modifies first argument(!) 1215 // modifies first argument(!)
1216 void paste (char *data, unsigned int len); 1216 void paste (char *data, unsigned int len);
1217 1217
1218 long vt_emask, vt_emask_perl; 1218 long vt_emask, vt_emask_perl;
1219 1219
1220 void vt_select_input () 1220 void vt_select_input () const
1221 { 1221 {
1222 XSelectInput (display->display, vt, vt_emask | vt_emask_perl); 1222 XSelectInput (display->display, vt, vt_emask | vt_emask_perl);
1223 } 1223 }
1224 1224
1225#if TRANSPARENT 1225#if TRANSPARENT
1283 1283
1284 bool init (int argc, const char *const *argv); 1284 bool init (int argc, const char *const *argv);
1285 bool init_vars (); 1285 bool init_vars ();
1286 1286
1287 bool pty_fill (); 1287 bool pty_fill ();
1288
1289 void make_current () const // make this the "currently active" urxvt instance
1290 {
1291 SET_R (this);
1292 rxvt_set_locale (locale);
1293 set_environ (envv);
1294 }
1288 1295
1289 void init_secondary (); 1296 void init_secondary ();
1290 const char **init_resources (int argc, const char *const *argv); 1297 const char **init_resources (int argc, const char *const *argv);
1291 const char *x_resource (const char *name); 1298 const char *x_resource (const char *name);
1292 void init_env (); 1299 void init_env ();
1417 void map_menuBar (int map); 1424 void map_menuBar (int map);
1418#endif 1425#endif
1419 1426
1420 // screen.C 1427 // screen.C
1421 1428
1422 void lalloc (line_t &l) 1429 void lalloc (line_t &l) const
1423 { 1430 {
1424 l.t = (text_t *)talloc->alloc (); 1431 l.t = (text_t *)talloc->alloc ();
1425 l.r = (rend_t *)ralloc->alloc (); 1432 l.r = (rend_t *)ralloc->alloc ();
1426 } 1433 }
1427 1434
1431 talloc->free (l.t); 1438 talloc->free (l.t);
1432 ralloc->free (l.r); 1439 ralloc->free (l.r);
1433 } 1440 }
1434#endif 1441#endif
1435 1442
1436 void lresize (line_t &l) 1443 void lresize (line_t &l) const
1437 { 1444 {
1438 if (!l.t) 1445 if (!l.t)
1439 return; 1446 return;
1440 1447
1441 l.t = (text_t *)talloc->alloc (l.t, prev_ncol * sizeof (text_t)); 1448 l.t = (text_t *)talloc->alloc (l.t, prev_ncol * sizeof (text_t));
1445 1452
1446 if (ncol > prev_ncol) 1453 if (ncol > prev_ncol)
1447 scr_blank_line (l, prev_ncol, ncol - prev_ncol, DEFAULT_RSTYLE); 1454 scr_blank_line (l, prev_ncol, ncol - prev_ncol, DEFAULT_RSTYLE);
1448 } 1455 }
1449 1456
1450 int fgcolor_of (rend_t r) 1457 int fgcolor_of (rend_t r) const
1451 { 1458 {
1452 int base = GET_BASEFG (r); 1459 int base = GET_BASEFG (r);
1453#ifndef NO_BRIGHTCOLOR 1460#ifndef NO_BRIGHTCOLOR
1454 if (r & RS_Bold 1461 if (r & RS_Bold
1455# if ENABLE_STYLES 1462# if ENABLE_STYLES
1459 base += minBrightCOLOR - minCOLOR; 1466 base += minBrightCOLOR - minCOLOR;
1460#endif 1467#endif
1461 return base; 1468 return base;
1462 } 1469 }
1463 1470
1464 int bgcolor_of (rend_t r) 1471 int bgcolor_of (rend_t r) const
1465 { 1472 {
1466 int base = GET_BASEBG (r); 1473 int base = GET_BASEBG (r);
1467#ifndef NO_BRIGHTCOLOR 1474#ifndef NO_BRIGHTCOLOR
1468 if (r & RS_Blink 1475 if (r & RS_Blink
1469# if ENABLE_STYLES 1476# if ENABLE_STYLES
1473 base += minBrightCOLOR - minCOLOR; 1480 base += minBrightCOLOR - minCOLOR;
1474#endif 1481#endif
1475 return base; 1482 return base;
1476 } 1483 }
1477 1484
1478 bool option (uint32_t opt) 1485 bool option (uint32_t opt) const
1479 { 1486 {
1480 return OPTION (opt); 1487 return OPTION (opt);
1481 } 1488 }
1482 1489
1483 void set_option (uint32_t opt, bool set) 1490 void set_option (uint32_t opt, bool set)
1486 options |= opt; 1493 options |= opt;
1487 else 1494 else
1488 options &= ~opt; 1495 options &= ~opt;
1489 } 1496 }
1490 1497
1491 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs); 1498 void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const;
1492 void scr_blank_screen_mem (line_t &l, rend_t efs); 1499 void scr_blank_screen_mem (line_t &l, rend_t efs) const;
1493 int scr_scroll_text (int row1, int row2, int count); 1500 int scr_scroll_text (int row1, int row2, int count);
1494 void scr_reset (); 1501 void scr_reset ();
1495 void scr_release (); 1502 void scr_release ();
1496 void scr_clear (bool really = false); 1503 void scr_clear (bool really = false);
1497 void scr_refresh (unsigned char refresh_type); 1504 void scr_refresh (unsigned char refresh_type);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines