x

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (tomo.Backend, error)

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

func (*Backend) ColorRGBA added in v0.6.0

func (this *Backend) ColorRGBA(id tomo.Color) (r, g, b, a uint32)

func (*Backend) Do

func (this *Backend) Do(callback func())

func (*Backend) IconTexture added in v0.6.0

func (this *Backend) IconTexture(id tomo.Icon, size tomo.IconSize) canvas.Texture

func (*Backend) MimeIconTexture added in v0.6.0

func (this *Backend) MimeIconTexture(mime data.Mime, size tomo.IconSize) canvas.Texture

func (*Backend) NewBox

func (this *Backend) NewBox() tomo.Box

func (*Backend) NewCanvas

func (this *Backend) NewCanvas(bounds image.Rectangle) canvas.CanvasCloser

func (*Backend) NewCanvasBox

func (this *Backend) NewCanvasBox() tomo.CanvasBox

func (*Backend) NewContainerBox

func (this *Backend) NewContainerBox() tomo.ContainerBox

func (*Backend) NewSurfaceBox

func (this *Backend) NewSurfaceBox() (tomo.SurfaceBox, error)

func (*Backend) NewTextBox

func (this *Backend) NewTextBox() tomo.TextBox

func (*Backend) NewTexture

func (this *Backend) NewTexture(source image.Image) canvas.TextureCloser

func (*Backend) NewWindow

func (this *Backend) NewWindow(kind tomo.WindowKind, bounds image.Rectangle) (tomo.Window, error)

func (*Backend) Run

func (this *Backend) Run() error

func (*Backend) SetFaceSet added in v0.6.0

func (this *Backend) SetFaceSet(faceSet style.FaceSet)

func (*Backend) SetIconSet added in v0.5.0

func (this *Backend) SetIconSet(iconSet style.IconSet)

func (*Backend) SetStyle added in v0.4.0

func (this *Backend) SetStyle(style *style.Style)

func (*Backend) Stop

func (this *Backend) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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