tee

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

#tee GoDoc Package tee implements a surface that multiplexes all operations performed on it to the one or more underlying surfaces.

Download:

go get github.com/jimmyfrasche/cairo/tee

Package tee implements a surface that multiplexes all operations performed on it to the one or more underlying surfaces.

Libcairo must be compiled with

CAIRO_HAS_TEE_SURFACE

in addition to the requirements of cairo.


Automatically generated by autoreadme on 2014.05.08

Documentation

Overview

Package tee implements a surface that multiplexes all operations performed on it to the one or more underlying surfaces.

Libcairo must be compiled with

CAIRO_HAS_TEE_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
}

Surface is a tee surface.

Surface is a paged vector surface.

If any of the underlying surface are not paged or vector backed, those operations will be no-ops.

func New

func New(masterSurface cairo.Surface, surfaces ...cairo.Surface) (Surface, error)

New creates a new tee surface.

Originally cairo_tee_surface_create.

func (Surface) Add

func (s Surface) Add(as ...cairo.Surface) error

Add adds as surfaces to s.

Originally cairo_tee_surface_add.

func (Surface) Index

func (s Surface) Index(i int) (cairo.Surface, error)

Index returns the ith surface of this tee.

The returned error is set if there's an error on the returned surface. If the index does not exist, Index returns (nil, nil).

Originally cairo_tee_surface_index.

func (Surface) Remove

func (s Surface) Remove(rs ...cairo.Surface) error

Remove removes rs surfaces from s.

Originally cairo_tee_surface_remove.

Jump to

Keyboard shortcuts

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