Documentation ¶
Overview ¶
Package recording provides a surface that records drawing operations performed on it to later be replayed on another surface.
Libcairo must be compiled with
CAIRO_HAS_RECORDING_SURFACE
in addition to the requirements of cairo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Surface ¶
type Surface struct { cairo.XtensionPagedVectorSurface // contains filtered or unexported fields }
Surface records all drawing operations performed against it. This recording can then be "replayed" against a target surface by using it as a source surface.
func New ¶
New creates a new recording surface.
If extents.Empty() is true, the recording surface is unbounded.
Originally cairo_recording_surface_create.
func (Surface) Extents ¶
Extents reports the extents of this surface. If the surface is unbounded, then extents.Empty() is true.
Originally cairo_recording_surface_get_extents.
func (Surface) InkExtents ¶
InkExtents measures the extents of the operations recorded on this surface.
This is useful to compute the required size of a surface to replay the recorded drawing operations on.
Originally cairo_recording_surface_ink_extents.