… | |
… | |
247 | #endif |
247 | #endif |
248 | |
248 | |
249 | bool operator == (const rxvt_color &b) const { return Pixel (*this) == Pixel (b); } |
249 | bool operator == (const rxvt_color &b) const { return Pixel (*this) == Pixel (b); } |
250 | bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } |
250 | bool operator != (const rxvt_color &b) const { return Pixel (*this) != Pixel (b); } |
251 | |
251 | |
252 | bool alloc (rxvt_screen *screen, rxvt_rgba rgba); |
252 | bool alloc (rxvt_screen *screen, const rxvt_rgba &color); |
253 | void free (rxvt_screen *screen); |
253 | void free (rxvt_screen *screen); |
254 | |
254 | |
255 | void get (rxvt_screen *screen, rxvt_rgba &rgba); |
255 | void get (rxvt_screen *screen, rxvt_rgba &color); |
256 | |
256 | |
257 | bool set (rxvt_screen *screen, const char *name); |
257 | bool set (rxvt_screen *screen, const char *name); |
258 | bool set (rxvt_screen *screen, rxvt_rgba rgba); |
258 | bool set (rxvt_screen *screen, const rxvt_rgba &color); |
259 | |
259 | |
260 | rxvt_color fade (rxvt_screen *screen, int percent); // fades to black |
|
|
261 | rxvt_color fade (rxvt_screen *screen, int percent, rxvt_color &fadeto); |
260 | rxvt_color fade (rxvt_screen *screen, int percent, const rxvt_rgba &to = rxvt_rgba (0, 0, 0)); |
262 | }; |
261 | }; |
263 | |
262 | |
264 | #endif |
263 | #endif |
265 | |
264 | |