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