… | |
… | |
2214 | if (img) // TODO: cannot be false |
2214 | if (img) // TODO: cannot be false |
2215 | { |
2215 | { |
2216 | img = img->clone (); // own the img |
2216 | img = img->clone (); // own the img |
2217 | |
2217 | |
2218 | if (img->repeat != RepeatNormal) // X11 only supports RepeatNormal as bg pixmap |
2218 | if (img->repeat != RepeatNormal) // X11 only supports RepeatNormal as bg pixmap |
2219 | img->sub_rect (0, 0, |
2219 | img->sub_rect (0, 0, |
2220 | border ? THIS->vt_width : THIS->szHint.width, |
2220 | border ? THIS->vt_width : THIS->szHint.width, |
2221 | border ? THIS->vt_height : THIS->szHint.height) |
2221 | border ? THIS->vt_height : THIS->szHint.height) |
2222 | ->replace (img); |
2222 | ->replace (img); |
2223 | |
2223 | |
2224 | // just in case, should usually be a nop |
2224 | // just in case, should usually be a nop |
2225 | img->reify () |
2225 | img->reify () |
2226 | ->replace (img); |
2226 | ->replace (img); |
2227 | |
2227 | |
… | |
… | |
2313 | RETVAL = THIS->pm; |
2313 | RETVAL = THIS->pm; |
2314 | OUTPUT: |
2314 | OUTPUT: |
2315 | RETVAL |
2315 | RETVAL |
2316 | |
2316 | |
2317 | void |
2317 | void |
2318 | rxvt_img::fill (SV *c) |
2318 | rxvt_img::fill (SV *c, int x = 0, int y = 0, int w = THIS->w, int h = THIS->h) |
|
|
2319 | PROTOTYPE: $;$$$$ |
2319 | INIT: |
2320 | INIT: |
2320 | rgba cc = parse_rgba (c, THIS->s); |
2321 | rgba cc = parse_rgba (c, THIS->s); |
2321 | C_ARGS: cc |
2322 | C_ARGS: cc, x, y, w, h |
2322 | |
2323 | |
2323 | void |
2324 | void |
2324 | rxvt_img::DESTROY () |
2325 | rxvt_img::DESTROY () |
2325 | CODE: |
2326 | CODE: |
2326 | delete THIS; |
2327 | delete THIS; |
… | |
… | |
2360 | rxvt_img * |
2361 | rxvt_img * |
2361 | rxvt_img::sub_rect (int x, int y, int width, int height) |
2362 | rxvt_img::sub_rect (int x, int y, int width, int height) |
2362 | |
2363 | |
2363 | rxvt_img * |
2364 | rxvt_img * |
2364 | rxvt_img::blur (int rh, int rv) |
2365 | rxvt_img::blur (int rh, int rv) |
|
|
2366 | |
|
|
2367 | rxvt_img * |
|
|
2368 | rxvt_img::muladd (rxvt_img::nv mul, rxvt_img::nv add) |
2365 | |
2369 | |
2366 | rxvt_img * |
2370 | rxvt_img * |
2367 | 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) |
2371 | 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) |
2368 | INIT: |
2372 | INIT: |
2369 | rxvt_img::nv matrix[3][3] = { |
2373 | rxvt_img::nv matrix[3][3] = { |