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.46 by root, Tue Nov 4 11:03:29 2008 UTC

59#if ENABLE_EWMH 59#if ENABLE_EWMH
60 XA_NET_WM_PID, 60 XA_NET_WM_PID,
61 XA_NET_WM_NAME, 61 XA_NET_WM_NAME,
62 XA_NET_WM_ICON_NAME, 62 XA_NET_WM_ICON_NAME,
63 XA_NET_WM_PING, 63 XA_NET_WM_PING,
64 XA_NET_WM_ICON,
64#endif 65#endif
65#if USE_XIM 66#if USE_XIM
66 XA_WM_LOCALE_NAME, 67 XA_WM_LOCALE_NAME,
67 XA_XIM_SERVERS, 68 XA_XIM_SERVERS,
68#endif 69#endif
73#if ENABLE_XEMBED 74#if ENABLE_XEMBED
74 XA_XEMBED, 75 XA_XEMBED,
75 XA_XEMBED_INFO, 76 XA_XEMBED_INFO,
76#endif 77#endif
77#if !ENABLE_MINIMAL 78#if !ENABLE_MINIMAL
78 // these are usually allocated by other subsystens, but we do it 79 // these are usually allocated by other subsystems, but we do it
79 // here to avoid a server roundtrip. 80 // here to avoid a server roundtrip.
80 XA_SCREEN_RESOURCES, 81 XA_SCREEN_RESOURCES,
81 XA_XDCCC_LINEAR_RGB_CORRECTION, 82 XA_XDCCC_LINEAR_RGB_CORRECTION,
82 XA_XDCCC_LINEAR_RGB_MATRICES, 83 XA_XDCCC_LINEAR_RGB_MATRICES,
83 XA_WM_COLORMAP_WINDOWS, 84 XA_WM_COLORMAP_WINDOWS,
329 operator Pixel () const { return c.pixel; } 330 operator Pixel () const { return c.pixel; }
330 331
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 bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); }
333 334
335 bool is_opaque () const
336 {
337#if XFT
338 return c.color.alpha == rgba::MAX_CC;
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