package headless
import "gioui.org/gpu/headless"
Package headless implements headless windows for rendering an operation list to an image.
Index ¶
Types ¶
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
Window is a headless window.
func NewWindow ¶
NewWindow creates a new headless window.
func (*Window) Frame ¶
Frame replaces 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 ¶
Screenshot transfers the Window content at origin img.Rect.Min to img.
func (*Window) Size ¶
Size returns the window size.
Source Files ¶
headless.go headless_js.go
- Version
- v0.4.1
- Published
- Nov 30, 2023
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 1 minute ago –
Tools for package owners.