ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtimg.h
(Generate patch)

Comparing rxvt-unicode/src/rxvtimg.h (file contents):
Revision 1.25 by root, Fri Jun 8 20:35:43 2012 UTC vs.
Revision 1.27 by root, Sat Jun 9 10:21:19 2012 UTC

64 this->repeat = repeat; 64 this->repeat = repeat;
65 } 65 }
66 66
67 void unshare (); // prepare for write 67 void unshare (); // prepare for write
68 void fill (const rxvt_color &c); 68 void fill (const rxvt_color &c);
69 //void linear_gradient (const XLinearGradient *gradient, const XFixed *stops, const XRenderColor *colors, int nstops);
70 //void radial_gradient (const XRadialGradient *gradient, const XFixed *stops, const XRenderColor *colors, int nstops);
71 //void conical_gradient (const XConicalGradient *gradient, const XFixed *stops, const XRenderColor *colors, int nstops);
69 void brightness (uint16_t r, uint16_t g, uint16_t b, uint16_t a); 72 void brightness (uint16_t r, uint16_t g, uint16_t b, uint16_t a);
70 void contrast (uint16_t r, uint16_t g, uint16_t b, uint16_t a); 73 void contrast (uint16_t r, uint16_t g, uint16_t b, uint16_t a);
71 74
72 void brightness (double r, double g, double b, double a = 1.) 75 void brightness (double r, double g, double b, double a = 1.)
73 { 76 {
93 rxvt_img *transform (int new_width, int new_height, double matrix[9]); 96 rxvt_img *transform (int new_width, int new_height, double matrix[9]);
94 rxvt_img *scale (int new_width, int new_height); 97 rxvt_img *scale (int new_width, int new_height);
95 rxvt_img *rotate (int new_width, int new_height, int x, int y, double phi); 98 rxvt_img *rotate (int new_width, int new_height, int x, int y, double phi);
96 rxvt_img *convert_format (XRenderPictFormat *format, const rxvt_color &bg); 99 rxvt_img *convert_format (XRenderPictFormat *format, const rxvt_color &bg);
97 rxvt_img *blend (rxvt_img *img, double factor); 100 rxvt_img *blend (rxvt_img *img, double factor);
101
102 // egregiuous helper category
103 rxvt_img *replace (rxvt_img *&p)
104 {
105 delete p;
106 p = this;
107 return this;
108 }
98}; 109};
99 110
100#endif 111#endif
101 112
102#endif 113#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines