… | |
… | |
2094 | |
2094 | |
2095 | if (img) // TODO: cannot be false |
2095 | if (img) // TODO: cannot be false |
2096 | { |
2096 | { |
2097 | XRenderPictFormat *f = XRenderFindVisualFormat (THIS->dpy, THIS->visual); |
2097 | XRenderPictFormat *f = XRenderFindVisualFormat (THIS->dpy, THIS->visual); |
2098 | rxvt_img *img2 = 0; |
2098 | rxvt_img *img2 = 0; |
|
|
2099 | rxvt_img *img3 = 0; |
2099 | |
2100 | |
2100 | if (f != img->format) |
2101 | if (f != img->format) |
2101 | img = img2 = img->convert_to (f, THIS->pix_colors [Color_bg]); |
2102 | img = img2 = img->convert_to (f, THIS->pix_colors [Color_bg]); |
2102 | |
2103 | |
2103 | img->unshare (); |
2104 | img->unshare (); |
… | |
… | |
2191 | void |
2192 | void |
2192 | rxvt_img::DESTROY () |
2193 | rxvt_img::DESTROY () |
2193 | CODE: |
2194 | CODE: |
2194 | delete THIS; |
2195 | delete THIS; |
2195 | |
2196 | |
|
|
2197 | void |
|
|
2198 | rxvt_img::unshare () |
|
|
2199 | |
|
|
2200 | void |
|
|
2201 | rxvt_img::repeat_mode (render_repeat_mode repeat = RepeatNormal) |
|
|
2202 | |
|
|
2203 | void |
|
|
2204 | rxvt_img::move (int dx, int dy) |
|
|
2205 | |
|
|
2206 | void |
|
|
2207 | rxvt_img::brightness (NV r, NV g, NV b, NV a = 1.) |
|
|
2208 | |
|
|
2209 | void |
|
|
2210 | rxvt_img::contrast (NV r, NV g, NV b, NV a = 1.) |
|
|
2211 | |
|
|
2212 | rxvt_img * |
|
|
2213 | rxvt_img::clone () |
|
|
2214 | |
|
|
2215 | rxvt_img * |
|
|
2216 | rxvt_img::sub_rect (int x, int y, int width, int height) |
|
|
2217 | |
2196 | rxvt_img * |
2218 | rxvt_img * |
2197 | rxvt_img::blur (int rh, int rv) |
2219 | rxvt_img::blur (int rh, int rv) |
2198 | |
2220 | |
2199 | void |
|
|
2200 | rxvt_img::brightness (NV r, NV g, NV b, NV a = 1.) |
|
|
2201 | |
|
|
2202 | void |
|
|
2203 | rxvt_img::contrast (NV r, NV g, NV b, NV a = 1.) |
|
|
2204 | |
|
|
2205 | void |
|
|
2206 | rxvt_img::unshare () |
|
|
2207 | |
|
|
2208 | rxvt_img * |
2221 | rxvt_img * |
2209 | rxvt_img::clone () |
|
|
2210 | |
|
|
2211 | rxvt_img * |
|
|
2212 | rxvt_img::sub_rect (int x, int y, int width, int height, render_repeat_mode repeat = RepeatNormal) |
|
|
2213 | |
|
|
2214 | rxvt_img * |
|
|
2215 | rxvt_img::transform (int new_width, int new_height, NV p11, NV p12, NV p13, NV p21, NV p22, NV p23, NV p31, NV p32, NV p33, render_repeat_mode repeat = RepeatNormal) |
2222 | rxvt_img::transform (int new_width, int new_height, NV p11, NV p12, NV p13, NV p21, NV p22, NV p23, NV p31, NV p32, NV p33) |
2216 | INIT: |
2223 | INIT: |
2217 | double matrix[9] = { |
2224 | double matrix[9] = { |
2218 | p11, p12, p13, |
2225 | p11, p12, p13, |
2219 | p21, p22, p23, |
2226 | p21, p22, p23, |
2220 | p31, p32, p33 |
2227 | p31, p32, p33 |
2221 | }; |
2228 | }; |
2222 | C_ARGS: new_width, new_height, matrix, repeat |
2229 | C_ARGS: new_width, new_height, matrix |
2223 | |
2230 | |
2224 | rxvt_img * |
2231 | rxvt_img * |
2225 | rxvt_img::scale (int new_width, int new_height) |
2232 | rxvt_img::scale (int new_width, int new_height) |
2226 | |
2233 | |
2227 | rxvt_img * |
2234 | rxvt_img * |
2228 | rxvt_img::rotate (int new_width, int new_height, int x, int y, NV phi, render_repeat_mode repeat = RepeatNormal) |
2235 | rxvt_img::rotate (int new_width, int new_height, int x, int y, NV phi) |
2229 | |
2236 | |
2230 | #endif |
2237 | #endif |
2231 | |
2238 | |