… | |
… | |
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); |