mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-16 04:02:15 +00:00
Document cairo_place_image
This commit is contained in:
parent
8efb3f0e0e
commit
eb25f878a4
14
doc/lua.yaml
14
doc/lua.yaml
@ -194,4 +194,18 @@ values:
|
||||
| | 0.5 for half size etc. |
|
||||
| | Default value: No Scaling (1.0,1.0) |
|
||||
|
||||
require('cairo_imlib2_helper') in your lua file.
|
||||
- name: cairo_place_image(file, cr, x, y, width, height, alpha)
|
||||
desc: |-
|
||||
Renders an image onto a cairo_t, using imlib2. In some cases using a cairo_t and exact coordinates is more
|
||||
useful.
|
||||
|
||||
| Argument | Description |
|
||||
|---------------------|--------------------------------------------------------------------------------------|
|
||||
| file | Path to the image to render. |
|
||||
| cr | The `cairo_t` to render to. |
|
||||
| x,y | Position to render the image. |
|
||||
| width, height | The width and height to draw the image |
|
||||
| alpha | The transparency of the image 1.0 is solid 0.0 is fully translucent. |
|
||||
|
||||
require('cairo_imlib2_helper') in your lua file.
|
Loading…
Reference in New Issue
Block a user