mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 09:44:04 +00:00
lua cairo: Add cairo_surface_create_for_rectangle (#1492)
Adds the function for cairo_surface_create_for_rectangle copied from the cairo header files. Personally I use this to ensure that Items can't draw outside there designated area.
This commit is contained in:
parent
49b3487b76
commit
468488677a
@ -706,6 +706,12 @@ const char *cairo_status_to_string(cairo_status_t status);
|
||||
cairo_surface_t *cairo_surface_create_similar(cairo_surface_t * other,
|
||||
cairo_content_t content, int width, int height);
|
||||
|
||||
cairo_surface_t *cairo_surface_create_for_rectangle (cairo_surface_t *target,
|
||||
double x,
|
||||
double y,
|
||||
double width,
|
||||
double height);
|
||||
|
||||
cairo_surface_t *cairo_surface_reference(cairo_surface_t * surface);
|
||||
|
||||
void cairo_surface_finish(cairo_surface_t * surface);
|
||||
|
Loading…
Reference in New Issue
Block a user