Versions in this module Expand all Collapse all v0 v0.0.0 May 22, 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) + Run func(f func()) + 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) + Wakeup func() + WriteClipboard func(s string) + type FrameEvent struct + Sync bool + type Options struct + CustomRenderer bool + MaxSize *Size + MinSize *Size + NavigationColor *color.NRGBA + Orientation *Orientation + Size *Size + StatusColor *color.NRGBA + Title *string + WindowMode *WindowMode + type Orientation uint8 + const AnyOrientation + const LandscapeOrientation + const PortraitOrientation + type Size struct + Height unit.Value + Width unit.Value + type ViewEvent struct + HWND uintptr + Layer uintptr + View uintptr + func (_ ViewEvent) ImplementsEvent() + type WakeupEvent struct + func (_ WakeupEvent) ImplementsEvent() + type WindowMode uint8 + const Fullscreen + const Windowed