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.505 by sf-exg, Sun Jun 10 13:07:56 2012 UTC vs.
Revision 1.510 by root, Fri Nov 30 07:02:12 2012 UTC

278 rxvt_img *img; 278 rxvt_img *img;
279 279
280 void destroy () 280 void destroy ()
281 { 281 {
282 delete img; 282 delete img;
283 img = 0;
283 } 284 }
284 285
285 rxvt_image (); 286 rxvt_image ();
286 bool set_file_geometry (rxvt_screen *s, const char *file); 287 void set_file_geometry (rxvt_screen *s, const char *file);
287 bool set_file (rxvt_screen *s, const char *file); 288 void set_file (rxvt_screen *s, const char *file);
288 bool set_geometry (const char *geom, bool update = false); 289 bool set_geometry (const char *geom, bool update = false);
289}; 290};
290# endif 291# endif
291#endif 292#endif
292 293
1209 1210
1210 ev_tstamp bg_valid_since; 1211 ev_tstamp bg_valid_since;
1211 1212
1212 rxvt_img *bg_img; 1213 rxvt_img *bg_img;
1213 1214
1214 int target_x;
1215 int target_y;
1216 bool bg_set_position (int x, int y);
1217 bool bg_window_size_sensitive (); 1215 bool bg_window_size_sensitive ();
1218 bool bg_window_position_sensitive (); 1216 bool bg_window_position_sensitive ();
1219 1217
1220 void bg_render (); 1218 void bg_render ();
1221 void bg_invalidate () 1219 void bg_invalidate ()
1445 void set_widthheight (unsigned int newwidth, unsigned int newheight); 1443 void set_widthheight (unsigned int newwidth, unsigned int newheight);
1446 void get_window_origin (int &x, int &y); 1444 void get_window_origin (int &x, int &y);
1447 1445
1448 // screen.C 1446 // screen.C
1449 1447
1448 bool option (uint8_t opt) const NOTHROW
1449 {
1450 return options[opt >> 3] & (1 << (opt & 7));
1451 }
1452
1453 void set_option (uint8_t opt, bool set = true) NOTHROW;
1454
1450 int fgcolor_of (rend_t r) const NOTHROW 1455 int fgcolor_of (rend_t r) const NOTHROW
1451 { 1456 {
1452 int base = GET_BASEFG (r); 1457 int base = GET_BASEFG (r);
1453#ifndef NO_BRIGHTCOLOR 1458#ifndef NO_BRIGHTCOLOR
1454 if (r & RS_Bold 1459 if (r & RS_Bold
1472 && IN_RANGE_EXC (base, minCOLOR, minBrightCOLOR)) 1477 && IN_RANGE_EXC (base, minCOLOR, minBrightCOLOR))
1473 base += minBrightCOLOR - minCOLOR; 1478 base += minBrightCOLOR - minCOLOR;
1474#endif 1479#endif
1475 return base; 1480 return base;
1476 } 1481 }
1477
1478 bool option (uint8_t opt) const NOTHROW
1479 {
1480 return options[opt >> 3] & (1 << (opt & 7));
1481 }
1482
1483 void set_option (uint8_t opt, bool set = true) NOTHROW;
1484 1482
1485 // modifies first argument(!) 1483 // modifies first argument(!)
1486 void tt_paste (char *data, unsigned int len) NOTHROW; 1484 void tt_paste (char *data, unsigned int len) NOTHROW;
1487 void paste (char *data, unsigned int len) NOTHROW; 1485 void paste (char *data, unsigned int len) NOTHROW;
1488 void scr_alloc () NOTHROW; 1486 void scr_alloc () NOTHROW;
1566 const char **get_options (int argc, const char *const *argv); 1564 const char **get_options (int argc, const char *const *argv);
1567 int parse_keysym (const char *str, const char *arg); 1565 int parse_keysym (const char *str, const char *arg);
1568 const char *x_resource (const char *name); 1566 const char *x_resource (const char *name);
1569 void extract_resources (); 1567 void extract_resources ();
1570 void extract_keysym_resources (); 1568 void extract_keysym_resources ();
1571 void find_resources (const char *n_prefix, const char *c_prefix, int mode,
1572 Bool (*proc)(XrmDatabase *, XrmBindingList, XrmQuarkList, XrmRepresentation *, XrmValue *, XPointer));
1573 bool parse_bool_resource (const char *str)
1574 {
1575 return (!strcasecmp (str, "TRUE")
1576 || !strcasecmp (str, "YES")
1577 || !strcasecmp (str, "ON")
1578 || !strcasecmp (str, "1"));
1579 }
1580}; 1569};
1581 1570
1582#endif /* _RXVT_H_ */ 1571#endif /* _RXVT_H_ */
1583 1572

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines