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.299 by ayin, Mon Aug 27 20:00:27 2007 UTC vs.
Revision 1.304 by sasha, Wed Sep 12 19:51:41 2007 UTC

111char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1); 111char * rxvt_wcstoutf8 (const wchar_t *str, int len = -1);
112wchar_t * rxvt_utf8towcs (const char *str, int len = -1); 112wchar_t * rxvt_utf8towcs (const char *str, int len = -1);
113 113
114#define rxvt_strdup(s) ((s) ? strdup(s) : 0) 114#define rxvt_strdup(s) ((s) ? strdup(s) : 0)
115 115
116char * rxvt_r_basename (const char *str) NOTHROW; 116char * rxvt_basename (const char *str) NOTHROW;
117void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW; 117void rxvt_vlog (const char *fmt, va_list arg_ptr) NOTHROW;
118void rxvt_log (const char *fmt,...) NOTHROW; 118void rxvt_log (const char *fmt,...) NOTHROW;
119void rxvt_warn (const char *fmt,...) NOTHROW; 119void rxvt_warn (const char *fmt,...) NOTHROW;
120void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN; 120void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN;
121void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; 121void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN;
122 122
123int rxvt_Str_match (const char *s1, const char *s2) NOTHROW;
124char * rxvt_Str_trim (char *str) NOTHROW; 123char * rxvt_strtrim (char *str) NOTHROW;
125int rxvt_Str_escaped (char *str) NOTHROW;
126char ** rxvt_splitcommastring (const char *cs) NOTHROW; 124char ** rxvt_splitcommastring (const char *cs) NOTHROW;
127void rxvt_freecommastring (char **cs) NOTHROW; 125void rxvt_freecommastring (char **cs) NOTHROW;
128 126
129///////////////////////////////////////////////////////////////////////////// 127/////////////////////////////////////////////////////////////////////////////
130 128
181 tintNeeded = (1UL<<9), 179 tintNeeded = (1UL<<9),
182 tintWholesome = (1UL<<10), 180 tintWholesome = (1UL<<10),
183 tintServerSide = (1UL<<11), 181 tintServerSide = (1UL<<11),
184 tintFlags = (tintSet|tintServerSide|tintNeeded|tintWholesome), 182 tintFlags = (tintSet|tintServerSide|tintNeeded|tintWholesome),
185 blurNeeded = (1UL<<12), 183 blurNeeded = (1UL<<12),
184 blurServerSide = (1UL<<13), /* this don't work yet */
186 185
187 isTransparent = (1UL<<16), 186 isTransparent = (1UL<<16),
188 isInvalid = (1UL<<17) 187 isInvalid = (1UL<<17),
188 isVtOrigin = (1UL<<18) /* if set pixmap has origin at corner of
189 vt window instead of parent[0]! */
189 }; 190 };
190 191
191 unsigned long flags; 192 unsigned long flags;
192 193
193 enum { 194 enum {
244 Pixmap pixmap; 245 Pixmap pixmap;
245 unsigned int pmap_width, pmap_height; 246 unsigned int pmap_width, pmap_height;
246 unsigned int pmap_depth; 247 unsigned int pmap_depth;
247 248
248 bool window_size_sensitive (); 249 bool window_size_sensitive ();
250 bool window_position_sensitive () {
251 return (flags & isTransparent);
252 };
253
254 bool is_parentOrigin () {
255 return !(flags & isVtOrigin);
256 };
257
249 bool need_client_side_rendering (); 258 bool need_client_side_rendering ();
250 void apply (); 259 void apply ();
251 bool render (); 260 bool render ();
252 void invalidate () { 261 void invalidate () {
253 if (!(flags & isInvalid)) 262 if (!(flags & isInvalid))
961 rxvt_perl_term perl; 970 rxvt_perl_term perl;
962#endif 971#endif
963 struct mbstate mbstate; // current input multibyte state 972 struct mbstate mbstate; // current input multibyte state
964 973
965 unsigned char want_refresh:1, 974 unsigned char want_refresh:1,
966#ifdef ENABLE_TRANSPARENCY
967 want_full_refresh:1, /* awaiting full screen refresh */
968#endif
969 current_screen:1, /* primary or secondary */ 975 current_screen:1, /* primary or secondary */
970 num_scr_allow:1, 976 num_scr_allow:1,
971 bypass_keystate:1, 977 bypass_keystate:1,
972#ifdef CURSOR_BLINK 978#ifdef CURSOR_BLINK
973 hidden_cursor:1, 979 hidden_cursor:1,
1068 char * incr_buf; 1074 char * incr_buf;
1069 size_t incr_buf_size, incr_buf_fill; 1075 size_t incr_buf_size, incr_buf_fill;
1070/* ---------- */ 1076/* ---------- */
1071 Cursor leftptr_cursor; 1077 Cursor leftptr_cursor;
1072/* ---------- */ 1078/* ---------- */
1073#ifndef NO_BACKSPACE_KEY
1074 const char *key_backspace;
1075#endif
1076#ifndef NO_DELETE_KEY
1077 const char *key_delete;
1078#endif
1079 struct mouse_event MEvent; 1079 struct mouse_event MEvent;
1080 XComposeStatus compose; 1080 XComposeStatus compose;
1081 ttymode_t tio; 1081 ttymode_t tio;
1082 row_col_t oldcursor; 1082 row_col_t oldcursor;
1083#ifdef HAVE_BG_PIXMAP 1083#ifdef HAVE_BG_PIXMAP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines