ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvttoolkit.h
(Generate patch)

Comparing rxvt-unicode/src/rxvttoolkit.h (file contents):
Revision 1.64 by root, Thu Jun 7 16:04:31 2012 UTC vs.
Revision 1.69 by sf-exg, Sat Dec 29 14:23:35 2012 UTC

66#endif 66#endif
67#if USE_XIM 67#if USE_XIM
68 XA_WM_LOCALE_NAME, 68 XA_WM_LOCALE_NAME,
69 XA_XIM_SERVERS, 69 XA_XIM_SERVERS,
70#endif 70#endif
71#if ENABLE_TRANSPARENCY 71#if BG_IMAGE_FROM_ROOT || ENABLE_PERL
72 XA_XROOTPMAP_ID, 72 XA_XROOTPMAP_ID,
73 XA_ESETROOT_PMAP_ID, 73 XA_ESETROOT_PMAP_ID,
74#endif 74#endif
75#if ENABLE_XEMBED 75#if ENABLE_XEMBED
76 XA_XEMBED, 76 XA_XEMBED,
217 void select_visual (int id); 217 void select_visual (int id);
218 void select_depth (int bitdepth); // select visual by depth 218 void select_depth (int bitdepth); // select visual by depth
219 void clear (); 219 void clear ();
220}; 220};
221 221
222enum { 222enum
223{
223 DISPLAY_HAS_RENDER = 1 << 0, 224 DISPLAY_HAS_RENDER = 1 << 0,
224 DISPLAY_HAS_RENDER_10 = 1 << 1,
225 DISPLAY_HAS_RENDER_MUL = 1 << 2,
226 DISPLAY_HAS_RENDER_CONV = 1 << 3, 225 DISPLAY_HAS_RENDER_CONV = 1 << 1,
227}; 226};
228 227
229struct rxvt_display : refcounted 228struct rxvt_display : refcounted
230{ 229{
231 event_vec<xevent_watcher> xw; 230 event_vec<xevent_watcher> xw;
318 317
319typedef unsigned long Pixel; 318typedef unsigned long Pixel;
320 319
321struct rgba 320struct rgba
322{ 321{
323 unsigned short r, g, b, a; 322 uint16_t r, g, b, a;
324 323
325 enum { MIN_CC = 0x0000, MAX_CC = 0xffff }; 324 enum { MIN_CC = 0x0000, MAX_CC = 0xffff };
326 325
327 rgba () 326 rgba ()
328 { } 327 { }
329 328
330 rgba (unsigned short r, unsigned short g, unsigned short b, unsigned short a = MAX_CC) 329 rgba (uint16_t r, uint16_t g, uint16_t b, uint16_t a = MAX_CC)
331 : r(r), g(g), b(b), a(a) 330 : r(r), g(g), b(b), a(a)
332 { } 331 { }
333}; 332};
334 333
335struct rxvt_color 334struct rxvt_color
355 } 354 }
356 355
357 bool alloc (rxvt_screen *screen, const rgba &color); 356 bool alloc (rxvt_screen *screen, const rgba &color);
358 void free (rxvt_screen *screen); 357 void free (rxvt_screen *screen);
359 358
359 operator rgba () const
360 {
361 rgba c;
362 get (c);
363 return c;
364 }
360 void get (rgba &color) const; 365 void get (rgba &color) const;
361 void get (XColor &color) const; 366 void get (XColor &color) const;
362 367
363 bool set (rxvt_screen *screen, const char *name); 368 bool set (rxvt_screen *screen, const char *name);
364 bool set (rxvt_screen *screen, const rgba &color); 369 bool set (rxvt_screen *screen, const rgba &color);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines