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.186 by root, Wed Jan 4 04:42:45 2006 UTC vs.
Revision 1.187 by root, Thu Jan 5 21:21:49 2006 UTC

835#define SET_LOCALE(locale) rxvt_set_locale (locale) 835#define SET_LOCALE(locale) rxvt_set_locale (locale)
836extern bool rxvt_set_locale (const char *locale); 836extern bool rxvt_set_locale (const char *locale);
837extern bool rxvt_push_locale (const char *locale); 837extern bool rxvt_push_locale (const char *locale);
838extern void rxvt_pop_locale (); 838extern void rxvt_pop_locale ();
839 839
840/*
841 ***************************************************************************** 840/****************************************************************************/
842 * VARIABLES 841
843 *****************************************************************************
844 */
845#ifdef MENUBAR 842#ifdef MENUBAR
846# include "menubar.h" 843# include "menubar.h"
847#endif 844#endif
848 845
849#define BLINK_INTERVAL 0.5 846#define BLINK_INTERVAL 0.5
856# endif 853# endif
857# endif 854# endif
858# define __attribute__(x) 855# define __attribute__(x)
859#endif 856#endif
860 857
858/****************************************************************************/
859
860#define LINE_LONGER 0x0001 // line is continued on the next row
861#define LINE_FILTERED 0x0002 // line has been filtered
862#define LINE_COMPRESSED 0x0004 // line has been compressed (NYI)
863
864struct line_t {
865 text_t *t; // terminal the text
866 rend_t *r; // rendition, uses RS_ flags
867 tlen_t_ l; // length of each text line, LINE_CONT == continued on next line
868 uint32_t f; // flags
869
870 bool is_longer ()
871 {
872 return f & LINE_LONGER;
873 }
874
875 void is_longer (int set)
876 {
877 if (set)
878 f |= LINE_LONGER;
879 else
880 f &= ~LINE_LONGER;
881 }
882
883 void clear ()
884 {
885 t = 0;
886 r = 0;
887 l = 0;
888 f = 0;
889 }
890
891 void touch () // call whenever a line is changed/touched/updated
892 {
893#if ENABLE_PERL
894 f &= ~LINE_FILTERED;
895#endif
896 }
897
898 void touch (int col)
899 {
900 max_it (l, col);
901 touch ();
902 }
903};
904
905/****************************************************************************/
906
861// primivite wrapper around mbstate_t to ensure initialisation 907// primivite wrapper around mbstate_t to ensure initialisation
862struct mbstate { 908struct mbstate {
863 mbstate_t mbs; 909 mbstate_t mbs;
864 910
865 operator mbstate_t *() { return &mbs; } 911 operator mbstate_t *() { return &mbs; }
866 void reset () { memset (&mbs, 0, sizeof (mbs)); } 912 void reset () { memset (&mbs, 0, sizeof (mbs)); }
867 mbstate () { reset (); } 913 mbstate () { reset (); }
868}; 914};
915
916/****************************************************************************/
869 917
870#define UNICODE_MASK 0x1fffffUL 918#define UNICODE_MASK 0x1fffffUL
871 919
872#if UNICODE3 920#if UNICODE3
873# define COMPOSE_LO 0x40000000UL 921# define COMPOSE_LO 0x40000000UL
904}; 952};
905 953
906extern class rxvt_composite_vec rxvt_composite; 954extern class rxvt_composite_vec rxvt_composite;
907#endif 955#endif
908 956
957/****************************************************************************/
909 958
910#ifdef KEYSYM_RESOURCE 959#ifdef KEYSYM_RESOURCE
911 class keyboard_manager; 960 class keyboard_manager;
912#endif 961#endif
913 962
1404 void scr_touch (bool refresh); 1453 void scr_touch (bool refresh);
1405 void scr_expose (int x, int y, int width, int height, bool refresh); 1454 void scr_expose (int x, int y, int width, int height, bool refresh);
1406 rxvt_fontset *scr_find_fontset (rend_t r = DEFAULT_RSTYLE); 1455 rxvt_fontset *scr_find_fontset (rend_t r = DEFAULT_RSTYLE);
1407 void scr_recolour (); 1456 void scr_recolour ();
1408 void scr_remap_chars (); 1457 void scr_remap_chars ();
1409 void scr_remap_chars (const line_t &l); 1458 void scr_remap_chars (line_t &l);
1410 1459
1411 void scr_poweron (); 1460 void scr_poweron ();
1412 void scr_cursor (int mode); 1461 void scr_cursor (int mode);
1413 void scr_do_wrap (); 1462 void scr_do_wrap ();
1414 int scr_change_screen (int scrn); 1463 int scr_change_screen (int scrn);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines