Back to

package headless

v0.0.0 (278e9bc)
Latest Go to latest
Published: Jun 3, 2020 | Licenses: MIT, Unlicense | Module:


Package headless implements headless windows for rendering an operation list to an image.


type Window

type Window struct {
	// contains filtered or unexported fields

Window is a headless window.

func NewWindow

func NewWindow(width, height int) (*Window, error)

NewWindow creates a new headless window.

func (*Window) Frame

func (w *Window) Frame(frame *op.Ops)

Frame replace the window content and state with the operation list.

func (*Window) Release

func (w *Window) Release()

Release resources associated with the window.

func (*Window) Screenshot

func (w *Window) Screenshot() (*image.RGBA, error)

Screenshot returns an image with the content of the window.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier