recording

package
v0.0.0-...-1fae4d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2014 License: BSD-2-Clause Imports: 2 Imported by: 0

README

#recording GoDoc Package recording provides a surface that records drawing operations performed on it to later be replayed on another surface.

Download:

go get github.com/jimmyfrasche/cairo/recording

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.


Automatically generated by autoreadme on 2014.05.08

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

func New(content cairo.Content, extents cairo.Rectangle) Surface

New creates a new recording surface.

If extents.Empty() is true, the recording surface is unbounded.

Originally cairo_recording_surface_create.

func (Surface) Extents

func (s Surface) Extents() (extents cairo.Rectangle)

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

func (s Surface) InkExtents() cairo.Rectangle

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.

func (Surface) Unbounded

func (s Surface) Unbounded() bool

Unbounded reports whether this surface is unbounded.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL