painter

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const TextDPI = 78

TextDPI is a global constant that determines how text scales to interface sizes

Variables

This section is empty.

Functions

func CachedFontFace

func CachedFontFace(style fyne.TextStyle, opts *truetype.Options) font.Face

CachedFontFace returns a font face held in memory. These are loaded from the current theme.

func ClearFontCache

func ClearFontCache()

ClearFontCache is used to remove cached fonts in the case that we wish to re-load font faces

func GetAspect

func GetAspect(img *canvas.Image) float32

GetAspect looks up an aspect ratio of an image

func PaintImage

func PaintImage(img *canvas.Image, c fyne.Canvas, width, height int) image.Image

PaintImage renders a given fyne Image to a Go standard image

func RenderedTextSize

func RenderedTextSize(text string, size int, style fyne.TextStyle) fyne.Size

RenderedTextSize looks up how bit a string would be if drawn on screen

func SvgCacheMonitorTheme

func SvgCacheMonitorTheme()

SvgCacheMonitorTheme hooks up the SVG cache to listen for theme changes and resets the cache

func SvgCacheReset

func SvgCacheReset()

SvgCacheReset clears the SVG cache.

Types

This section is empty.

Directories

Path Synopsis
Package gl provides a full Fyne render implementation using system OpenGL libraries.
Package gl provides a full Fyne render implementation using system OpenGL libraries.

Jump to

Keyboard shortcuts

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