Versions in this module Expand all Collapse all v0 v0.0.0 May 10, 2021 Changes in this version + var ErrDeviceLost = errors.New("GPU device lost") + func Main() + func NewDisplayLink(callback func()) (*displayLink, error) — darwin/amd64 + func NewWindow(win Callbacks, opts *Options) error — darwin/amd64, js/wasm + func NewWindow(window Callbacks, opts *Options) error — linux/amd64, windows/amd64 + type Callbacks interface + Event func(e event.Event) + SetDriver func(d Driver) + type Context interface + API func() gpu.API + Lock func() + MakeCurrent func() error + Present func() error + Release func() + Unlock func() + type Driver interface + Close func() + NewContext func() (Context, error) + Option func(opts *Options) + ReadClipboard func() + SetAnimating func(anim bool) + SetCursor func(name pointer.CursorName) + ShowTextInput func(show bool) + WriteClipboard func(s string) + type FrameEvent struct + Sync bool + type Options struct + MaxSize *Size + MinSize *Size + Size *Size + Title *string + WindowMode *WindowMode + type Size struct + Height unit.Value + Width unit.Value + type WindowMode uint8 + const Fullscreen + const Windowed