gioui.org: gioui.org/app/headless Index | Files

package headless

import "gioui.org/app/headless"

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

Index

Package Files

headless.go headless_egl.go

type Window Uses

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

Window is a headless window.

func NewWindow Uses

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

NewWindow creates a new headless window.

func (*Window) Frame Uses

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

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

func (*Window) Release Uses

func (w *Window) Release()

Release resources associated with the window.

func (*Window) Screenshot Uses

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

Screenshot returns an image with the content of the window.

Package headless imports 7 packages (graph) and is imported by 1 packages. Updated 2019-12-12. Refresh now. Tools for package owners.