Documentation ¶
Overview ¶
Package script implements a device and surface for writing drawing operations to a file for debugging purposes.
Libcairo must be compiled with
CAIRO_HAS_SCRIPT_SURFACE
in addition to the requirements of cairo.
Index ¶
Constants ¶
const ( //ASCII is a human readable mode. ASCII mode = C.CAIRO_SCRIPT_MODE_ASCII //Binary specifies a byte-code based mode. Binary mode = C.CAIRO_SCRIPT_MODE_BINARY )
The mode type specifies the output mode of a script.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { *cairo.XtensionDevice // contains filtered or unexported fields }
Device is a pseudo-Device that records operations performed on it.
func New ¶
New creates a script device from writer in mode.
Originally cairo_script_create_for_stream.
func (Device) Comment ¶
Comment adds a comment to the script.
Originally cairo_script_write_comment.
func (Device) FromRecordingSurface ¶
FromRecordingSurface outputs the record operations in rs to d.
Originally cairo_script_from_recording_surface.
func (Device) Mode ¶
func (d Device) Mode() mode
Mode reports the recording mode of this device.
Originally cairo_script_get_mode.
func (Device) NewSurface ¶
NewSurface creates a script surface that records to d.
Originally cairo_script_surface_create.
type Surface ¶
type Surface struct {
cairo.XtensionPagedVectorSurface
}
Surface is a script surface.