Package: cairo
Function cairo:surface-create-for-rectangle
Lambda Listcairo:surface-create-for-rectangle (target x y width height) ArgumentsReturn Value The newly allocated cairo:surface-t instance. The caller owns the surface and should call the cairo:surface-destroy function when done
with it. This function always returns a valid surface, but it will return "nil" surface if target is already in an error state or any other
error occurs. Details
Create a new surface that is a rectangle within the target surface.
All operations drawn to this surface are then clipped and translated onto
the target surface. Nothing drawn via this subsurface outside of its bounds
is drawn onto the target surface, making this a useful method for passing
constrained child surfaces to library routines that draw directly onto the
parent surface, that is with no further backend allocations, double buffering
or copies. Notes | See also |
2025-1-18