draw

package
v0.0.0-...-e9a2133 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Draw

func Draw(app *types.App) (*image.RGBA, error)

Draw an app widget.

Types

type FontCache

type FontCache map[string]*truetype.Font

FontCache is the custom font cache

func (FontCache) Load

func (fc FontCache) Load(fd draw2d.FontData) (*truetype.Font, error)

Load loads a font from the cache

func (FontCache) Store

func (fc FontCache) Store(fd draw2d.FontData, font *truetype.Font)

Store stores a font in the cache

Jump to

Keyboard shortcuts

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