x

package module
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: GPL-3.0 Imports: 23 Imported by: 1

README

x

Go Reference

An X11 backend for Tomo.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackend

func NewBackend() (tomo.Backend, error)

Types

type Backend

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

func (*Backend) Do

func (backend *Backend) Do(callback func())

func (*Backend) NewBox

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

func (*Backend) NewCanvasBox

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

func (*Backend) NewContainerBox

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

func (*Backend) NewPlainWindow added in v0.5.0

func (backend *Backend) NewPlainWindow(
	bounds image.Rectangle,
) (
	output tomo.MainWindow,
	err error,
)

func (*Backend) NewSurfaceBox added in v0.8.0

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

func (*Backend) NewTextBox

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

func (Backend) NewTexture added in v0.3.0

func (backend Backend) NewTexture(source image.Image) canvas.TextureCloser

func (*Backend) NewWindow

func (backend *Backend) NewWindow(
	bounds image.Rectangle,
) (
	output tomo.MainWindow,
	err error,
)

func (*Backend) Run

func (backend *Backend) Run() error

func (*Backend) Stop

func (backend *Backend) Stop()

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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