… | |
… | |
58 | |
58 | |
59 | #if HAVE_PIXBUF |
59 | #if HAVE_PIXBUF |
60 | typedef GdkPixbuf * urxvt__pixbuf; |
60 | typedef GdkPixbuf * urxvt__pixbuf; |
61 | #endif |
61 | #endif |
62 | typedef rxvt_img * urxvt__img; |
62 | typedef rxvt_img * urxvt__img; |
|
|
63 | typedef rxvt_img::nv rxvt_img__nv; |
63 | |
64 | |
64 | ///////////////////////////////////////////////////////////////////////////// |
65 | ///////////////////////////////////////////////////////////////////////////// |
65 | |
66 | |
66 | static rgba |
67 | static rgba |
67 | parse_rgba (SV *sv, rxvt_screen *s = 0) |
68 | parse_rgba (SV *sv, rxvt_screen *s = 0) |
… | |
… | |
2282 | |
2283 | |
2283 | void |
2284 | void |
2284 | rxvt_img::move (int dx, int dy) |
2285 | rxvt_img::move (int dx, int dy) |
2285 | |
2286 | |
2286 | void |
2287 | void |
2287 | rxvt_img::brightness (NV r, NV g, NV b, NV a = 1.) |
2288 | rxvt_img::brightness (rxvt_img::nv r, rxvt_img::nv g, rxvt_img::nv b, rxvt_img::nv a = 1.) |
2288 | |
2289 | |
2289 | void |
2290 | void |
2290 | rxvt_img::contrast (NV r, NV g, NV b, NV a = 1.) |
2291 | rxvt_img::contrast (rxvt_img::nv r, rxvt_img::nv g, rxvt_img::nv b, rxvt_img::nv a = 1.) |
2291 | |
2292 | |
2292 | rxvt_img * |
2293 | rxvt_img * |
2293 | rxvt_img::clone () |
2294 | rxvt_img::clone () |
2294 | |
2295 | |
2295 | rxvt_img * |
2296 | rxvt_img * |
… | |
… | |
2300 | |
2301 | |
2301 | rxvt_img * |
2302 | rxvt_img * |
2302 | rxvt_img::blur (int rh, int rv) |
2303 | rxvt_img::blur (int rh, int rv) |
2303 | |
2304 | |
2304 | rxvt_img * |
2305 | rxvt_img * |
2305 | rxvt_img::transform (NV p11, NV p12, NV p13, NV p21, NV p22, NV p23, NV p31, NV p32, NV p33) |
2306 | rxvt_img::transform (rxvt_img::nv p11, rxvt_img::nv p12, rxvt_img::nv p13, rxvt_img::nv p21, rxvt_img::nv p22, rxvt_img::nv p23, rxvt_img::nv p31, rxvt_img::nv p32, rxvt_img::nv p33) |
2306 | INIT: |
2307 | INIT: |
2307 | double matrix[3][3] = { |
2308 | rxvt_img::nv matrix[3][3] = { |
2308 | { p11, p12, p13 }, |
2309 | { p11, p12, p13 }, |
2309 | { p21, p22, p23 }, |
2310 | { p21, p22, p23 }, |
2310 | { p31, p32, p33 } |
2311 | { p31, p32, p33 } |
2311 | }; |
2312 | }; |
2312 | C_ARGS: matrix |
2313 | C_ARGS: matrix |
2313 | |
2314 | |
2314 | rxvt_img * |
2315 | rxvt_img * |
2315 | rxvt_img::scale (int new_width, int new_height) |
2316 | rxvt_img::scale (int new_width, int new_height) |
2316 | |
2317 | |
2317 | rxvt_img * |
2318 | rxvt_img * |
2318 | rxvt_img::rotate (int x, int y, NV phi) |
2319 | rxvt_img::rotate (int x, int y, rxvt_img::nv phi) |
2319 | |
2320 | |
2320 | #endif |
2321 | #endif |
2321 | |
2322 | |