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.269 by root, Tue May 1 21:30:01 2007 UTC vs.
Revision 1.280 by ayin, Sun Jul 29 08:56:36 2007 UTC

73#endif 73#endif
74 74
75#include <termios.h> 75#include <termios.h>
76typedef struct termios ttymode_t; 76typedef struct termios ttymode_t;
77 77
78#ifdef HAVE_AFTERIMAGE
79# include <afterimage.h>
80#undef min
81#undef max
78#ifdef XPM_BACKGROUND 82#elif defined(XPM_BACKGROUND)
79# ifdef XPM_INC_X11 83# ifdef XPM_INC_X11
80# include <X11/xpm.h> 84# include <X11/xpm.h>
81# else 85# else
82# include <xpm.h> 86# include <xpm.h>
83# endif 87# endif
113// misc.C 117// misc.C
114char * rxvt_wcstombs (const wchar_t *str, int len = -1); 118char * rxvt_wcstombs (const wchar_t *str, int len = -1);
115wchar_t * rxvt_mbstowcs (const char *str, int len = -1); 119wchar_t * rxvt_mbstowcs (const char *str, int len = -1);
116char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1); 120char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1);
117wchar_t * rxvt_utf8towcs (const char *str, int len = -1); 121wchar_t * rxvt_utf8towcs (const char *str, int len = -1);
118char * rxvt_strdup_cpp (const char *str);
119 122
120#define rxvt_strdup(s) ((s) ? strdup(s) : 0) 123#define rxvt_strdup(s) ((s) ? strdup(s) : 0)
121 124
122char * rxvt_r_basename (const char *str) NOTHROW; 125char * rxvt_r_basename (const char *str) NOTHROW;
123void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW; 126void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW;
130const char * rxvt_Str_skip_space (const char *str) NOTHROW; 133const char * rxvt_Str_skip_space (const char *str) NOTHROW;
131char * rxvt_Str_trim (char *str) NOTHROW; 134char * rxvt_Str_trim (char *str) NOTHROW;
132int rxvt_Str_escaped (char *str) NOTHROW; 135int rxvt_Str_escaped (char *str) NOTHROW;
133char ** rxvt_splitcommastring (const char *cs) NOTHROW; 136char ** rxvt_splitcommastring (const char *cs) NOTHROW;
134void rxvt_freecommastring (char **cs) NOTHROW; 137void rxvt_freecommastring (char **cs) NOTHROW;
135char * rxvt_File_find (const char *file, const char *ext, const char *path) NOTHROW;
136 138
137///////////////////////////////////////////////////////////////////////////// 139/////////////////////////////////////////////////////////////////////////////
138 140
139// temporarily replace the process environment 141// temporarily replace the process environment
140extern char **environ; 142extern char **environ;
177#endif 179#endif
178 180
179#ifdef XPM_BACKGROUND 181#ifdef XPM_BACKGROUND
180typedef struct { 182typedef struct {
181 short w, h, x, y; 183 short w, h, x, y;
184 bool auto_resize ;
182 Pixmap pixmap; 185 Pixmap pixmap;
183} bgPixmap_t; 186} bgPixmap_t;
184#endif 187#endif
185 188
186/* 189/*
894 rxvt_perl_term perl; 897 rxvt_perl_term perl;
895#endif 898#endif
896 struct mbstate mbstate; // current input multibyte state 899 struct mbstate mbstate; // current input multibyte state
897 900
898 unsigned char want_refresh:1, 901 unsigned char want_refresh:1,
899#ifdef TRANSPARENT 902#ifdef ENABLE_TRANSPARENCY
900 want_full_refresh:1, /* awaiting full screen refresh */ 903 want_full_refresh:1, /* awaiting full screen refresh */
901 am_transparent:1, /* is a transparent term */ 904 am_transparent:1, /* is a transparent term */
902 am_pixmap_trans:1, /* transparency w/known root pixmap */ 905 am_pixmap_trans:1, /* transparency w/known root pixmap */
903#endif 906#endif
904 current_screen:1, /* primary or secondary */ 907 current_screen:1, /* primary or secondary */
948 /* give proper Scroll behaviour */ 951 /* give proper Scroll behaviour */
949#if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) 952#if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING)
950 mouse_slip_wheel_speed, 953 mouse_slip_wheel_speed,
951#endif 954#endif
952 refresh_count, 955 refresh_count,
953 refresh_limit,
954 last_bot, /* scrollbar last bottom position */ 956 last_bot, /* scrollbar last bottom position */
955 last_top, /* scrollbar last top position */ 957 last_top, /* scrollbar last top position */
956 last_state, /* scrollbar last state */ 958 last_state, /* scrollbar last state */
957 scrollbar_len, 959 scrollbar_len,
958 window_vt_x, 960 window_vt_x,
1016 XComposeStatus compose; 1018 XComposeStatus compose;
1017 ttymode_t tio; 1019 ttymode_t tio;
1018 row_col_t oldcursor; 1020 row_col_t oldcursor;
1019#ifdef XPM_BACKGROUND 1021#ifdef XPM_BACKGROUND
1020 bgPixmap_t bgPixmap; 1022 bgPixmap_t bgPixmap;
1023#ifdef HAVE_AFTERIMAGE
1024 struct ASVisual *asv;
1025 ASImageManager *asimman;
1026 ASImage *original_asim;
1027 struct { unsigned int width, height; } xpmAttr; /* all we need is width/height */
1028#else
1021 XpmAttributes xpmAttr; /* originally loaded pixmap and its scaling */ 1029 XpmAttributes xpmAttr; /* originally loaded pixmap and its scaling */
1030#endif
1022#endif 1031#endif
1023 1032
1024#if ENABLE_OVERLAY 1033#if ENABLE_OVERLAY
1025 int ov_x, ov_y, ov_w, ov_h; // overlay dimensions 1034 int ov_x, ov_y, ov_w, ov_h; // overlay dimensions
1026 text_t **ov_text; 1035 text_t **ov_text;
1084 void vt_select_input () const NOTHROW 1093 void vt_select_input () const NOTHROW
1085 { 1094 {
1086 XSelectInput (dpy, vt, vt_emask | vt_emask_perl | vt_emask_xim); 1095 XSelectInput (dpy, vt, vt_emask | vt_emask_perl | vt_emask_xim);
1087 } 1096 }
1088 1097
1089#if TRANSPARENT || ENABLE_PERL 1098#if ENABLE_TRANSPARENCY || ENABLE_PERL
1090 void rootwin_cb (XEvent &xev); 1099 void rootwin_cb (XEvent &xev);
1091 xevent_watcher rootwin_ev; 1100 xevent_watcher rootwin_ev;
1101#endif
1102#if ENABLE_TRANSPARENCY
1103 int check_our_parents ();
1104 void check_our_parents_cb (time_watcher &w);
1105 time_watcher check_our_parents_ev;
1092#endif 1106#endif
1093 1107
1094 void x_cb (XEvent &xev); 1108 void x_cb (XEvent &xev);
1095 void flush (); 1109 void flush ();
1096 xevent_watcher termwin_ev; 1110 xevent_watcher termwin_ev;
1214 void button_press (XButtonEvent &ev); 1228 void button_press (XButtonEvent &ev);
1215 void button_release (XButtonEvent &ev); 1229 void button_release (XButtonEvent &ev);
1216 void focus_in (); 1230 void focus_in ();
1217 void focus_out (); 1231 void focus_out ();
1218 void update_fade_color (unsigned int idx); 1232 void update_fade_color (unsigned int idx);
1219 int check_our_parents ();
1220#ifdef PRINTPIPE 1233#ifdef PRINTPIPE
1221 FILE *popen_printer (); 1234 FILE *popen_printer ();
1222 int pclose_printer (FILE *stream); 1235 int pclose_printer (FILE *stream);
1223#endif 1236#endif
1224 void process_print_pipe (); 1237 void process_print_pipe ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines