x

package module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 22 Imported by: 1

README

x

Go Reference

An X11 backend for Tomo.

Installation

cd x/x
go build -buildmode=plugin .
mkdir -p ~/.local/lib/tomo/plugins
mv x.so ~/.local/lib/tomo/plugins

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) 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
x
Plugin x provides the X11 backend as a plugin.
Plugin x provides the X11 backend as a plugin.

Jump to

Keyboard shortcuts

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