fynefyne.io/fyne/internal/painter/software Index | Files

package software

import "fyne.io/fyne/internal/painter/software"

Index

Types

type Painter

type Painter struct {
}

Painter is a simple software painter that can paint a canvas in memory.

func NewPainter

func NewPainter() *Painter

NewPainter creates a new Painter.

func (*Painter) Paint

func (*Painter) Paint(c fyne.Canvas) image.Image

Paint is the main entry point for a simple software painter. The canvas to be drawn is passed in as a parameter and the return is an image containing the result of rendering.

Source Files

draw.go painter.go

Version
v1.4.1
Published
Nov 16, 2020
Platform
js/wasm
Imports
14 packages
Last checked
33 minutes ago

Tools for package owners.