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.40 by ayin, Wed Dec 26 14:22:30 2007 UTC vs.
Revision 1.42 by root, Wed Jan 23 05:59:30 2008 UTC

73#if ENABLE_XEMBED 73#if ENABLE_XEMBED
74 XA_XEMBED, 74 XA_XEMBED,
75 XA_XEMBED_INFO, 75 XA_XEMBED_INFO,
76#endif 76#endif
77#if !ENABLE_MINIMAL 77#if !ENABLE_MINIMAL
78 // these are usually allocated by other subsystens, but we do it 78 // these are usually allocated by other subsystems, but we do it
79 // here to avoid a server roundtrip. 79 // here to avoid a server roundtrip.
80 XA_SCREEN_RESOURCES, 80 XA_SCREEN_RESOURCES,
81 XA_XDCCC_LINEAR_RGB_CORRECTION, 81 XA_XDCCC_LINEAR_RGB_CORRECTION,
82 XA_XDCCC_LINEAR_RGB_MATRICES, 82 XA_XDCCC_LINEAR_RGB_MATRICES,
83 XA_WM_COLORMAP_WINDOWS, 83 XA_WM_COLORMAP_WINDOWS,
329 operator Pixel () const { return c.pixel; } 329 operator Pixel () const { return c.pixel; }
330 330
331 bool operator == (const rxvt_color &b) const { return Pixel (*this) == Pixel (b); } 331 bool operator == (const rxvt_color &b) const { return Pixel (*this) == Pixel (b); }
332 bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } 332 bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); }
333 333
334 bool is_opaque () const
335 {
336#if XFT
337 //TODO: only supports 24 bit truecolour
338 return c.color.alpha < 0xff00;
339#else
340 return 1;
341#endif
342 }
343
334 bool alloc (rxvt_screen *screen, const rgba &color); 344 bool alloc (rxvt_screen *screen, const rgba &color);
335 void free (rxvt_screen *screen); 345 void free (rxvt_screen *screen);
336 346
337 void get (rgba &color); 347 void get (rgba &color);
338 void get (XColor &color); 348 void get (XColor &color);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines