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.38 by root, Thu Jun 14 19:31:17 2012 UTC vs.
Revision 1.39 by root, Fri Jun 15 18:36:26 2012 UTC

9 9
10#define float_to_component(d) (int32_t)((d) * 65535.99) 10#define float_to_component(d) (int32_t)((d) * 65535.99)
11 11
12#include <X11/extensions/Xrender.h> 12#include <X11/extensions/Xrender.h>
13 13
14class rxvt_img 14struct rxvt_img
15{ 15{
16 void destroy ();
17 Picture picture ();
18
19public:
20 typedef double nv; 16 typedef double nv;
21 17
22 // *could* also hold the Pixmap itself 18 // *could* also hold the Pixmap itself
23 struct pixref 19 struct pixref
24 { 20 {
98 // copy 94 // copy
99 rxvt_img *reify (); // make x, y 0, make real width/height 95 rxvt_img *reify (); // make x, y 0, make real width/height
100 rxvt_img *blur (int rh, int rv); 96 rxvt_img *blur (int rh, int rv);
101 rxvt_img *clone (); 97 rxvt_img *clone ();
102 rxvt_img *sub_rect (int x, int y, int width, int height); 98 rxvt_img *sub_rect (int x, int y, int width, int height);
103 rxvt_img *transform (nv matrix[3][3]); 99 rxvt_img *transform (const nv matrix[3][3]);
104 rxvt_img *scale (int new_width, int new_height); 100 rxvt_img *scale (int new_width, int new_height);
105 rxvt_img *rotate (int cx, int cy, nv phi); 101 rxvt_img *rotate (int cx, int cy, nv phi);
106 rxvt_img *convert_format (XRenderPictFormat *format, const rgba &bg); 102 rxvt_img *convert_format (XRenderPictFormat *format, const rgba &bg);
107 rxvt_img *blend (rxvt_img *img, nv factor = 1.); 103 rxvt_img *blend (rxvt_img *img, nv factor = 1.);
108 104
111 { 107 {
112 delete p; 108 delete p;
113 p = this; 109 p = this;
114 return this; 110 return this;
115 } 111 }
112
113private:
114
115 void destroy ();
116 Picture picture ();
117 rxvt_img *transform (const nv *matrix);
116}; 118};
117 119
118#endif 120#endif
119 121
120#endif 122#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines