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.282 by sasha, Fri Aug 3 05:33:04 2007 UTC vs.
Revision 1.285 by sasha, Sat Aug 4 07:05:31 2007 UTC

171#else 171#else
172# undef KEEP_SCROLLCOLOR 172# undef KEEP_SCROLLCOLOR
173#endif 173#endif
174 174
175#if defined(XPM_BACKGROUND) || defined(ENABLE_TRANSPARENCY) 175#if defined(XPM_BACKGROUND) || defined(ENABLE_TRANSPARENCY)
176typedef struct { 176# define HAVE_BG_PIXMAP 1/* to simplify further usage */
177struct bgPixmap_t {
177#ifdef XPM_BACKGROUND 178# ifdef XPM_BACKGROUND
179
180# ifdef HAVE_AFTERIMAGE
178 ASImage *original_asim; 181 ASImage *original_asim;
179 short w, h, x, y; 182# endif
180 bool auto_resize; 183
184#define bgPmap_defaultScale 100
185#define bgPmap_defaultAlign 50
186 unsigned int h_scale, v_scale;/* percents of the window size */
187 int h_align, v_align; /* percents of the window size:
188 0 - left align, 50 - center, 100 - right */
189
190 bool handle_geometry (const char *geom);
191
181#endif 192# endif
193
194# define bgPmap_geometrySet (1UL<<0)
195# define bgPmap_propScale (1UL<<1)
196# define bgPmap_geometryFlags (bgPmap_geometrySet|bgPmap_propScale)
197
198# define bgPmap_Transparent (1UL<<16)
199 unsigned long flags;
200
182 Pixmap pixmap; 201 Pixmap pixmap;
183 unsigned int pmap_width, pmap_height; 202 unsigned int pmap_width, pmap_height;
184 unsigned int pmap_depth; 203 unsigned int pmap_depth;
185} bgPixmap_t; 204
205 bool window_size_sensitive();
206
207};
208#else
209# undef HAVE_BG_PIXMAP
186#endif 210#endif
187 211
188/* 212/*
189 * the 'essential' information for reporting Mouse Events 213 * the 'essential' information for reporting Mouse Events
190 * pared down from XButtonEvent 214 * pared down from XButtonEvent
564#endif 588#endif
565#ifdef KEEP_SCROLLCOLOR 589#ifdef KEEP_SCROLLCOLOR
566 Color_scroll, 590 Color_scroll,
567 Color_trough, 591 Color_trough,
568#endif 592#endif
569#if TINTING 593#if ENABLE_TRANSPARENCY
570 Color_tint, 594 Color_tint,
571#endif 595#endif
572#if OFF_FOCUS_FADING 596#if OFF_FOCUS_FADING
573 Color_fade, 597 Color_fade,
574#endif 598#endif
1009#endif 1033#endif
1010 struct mouse_event MEvent; 1034 struct mouse_event MEvent;
1011 XComposeStatus compose; 1035 XComposeStatus compose;
1012 ttymode_t tio; 1036 ttymode_t tio;
1013 row_col_t oldcursor; 1037 row_col_t oldcursor;
1014#if defined(XPM_BACKGROUND) || defined(ENABLE_TRANSPARENCY) 1038#ifdef HAVE_BG_PIXMAP
1015 bgPixmap_t bgPixmap; 1039 bgPixmap_t bgPixmap;
1016#endif 1040#endif
1017#ifdef XPM_BACKGROUND 1041#ifdef HAVE_AFTERIMAGE
1018 struct ASVisual *asv; 1042 ASVisual *asv;
1019 ASImageManager *asimman; 1043 ASImageManager *asimman;
1020#endif 1044#endif
1021 1045
1022#if ENABLE_OVERLAY 1046#if ENABLE_OVERLAY
1023 int ov_x, ov_y, ov_w, ov_h; // overlay dimensions 1047 int ov_x, ov_y, ov_w, ov_h; // overlay dimensions
1435 void get_options (int argc, const char *const *argv); 1459 void get_options (int argc, const char *const *argv);
1436 int parse_keysym (const char *str, const char *arg); 1460 int parse_keysym (const char *str, const char *arg);
1437 void get_xdefaults (FILE *stream, const char *name); 1461 void get_xdefaults (FILE *stream, const char *name);
1438 void extract_resources (); 1462 void extract_resources ();
1439 // xpm.C 1463 // xpm.C
1440 int scale_pixmap (const char *geom); 1464//int scale_pixmap (const char *geom);
1441 void resize_pixmap (); 1465 void resize_pixmap ();
1442 void set_bgPixmap (const char *file); 1466 void set_bgPixmap (const char *file);
1443}; 1467};
1444 1468
1445/* 1469/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines