v0.8.0
Added
-
WindowProvider interface — window geometry, DPI scale factor, redraw requests
Size() (width, height int)— window client area in physical pixelsScaleFactor() float64— DPI scale (1.0 = standard, 2.0 = Retina/HiDPI)RequestRedraw()— trigger frame in on-demand rendering modeNullWindowProviderfor testing and headless operation
-
PlatformProvider interface — optional OS integration
ClipboardRead() / ClipboardWrite()— system clipboardSetCursor(CursorShape)— mouse cursor managementDarkMode()— system dark mode detectionReduceMotion() / HighContrast() / FontScale()— accessibility preferencesNullPlatformProviderfor testing
-
CursorShape enum — 12 standard cursor shapes (Default, Pointer, Text, Crosshair, Move, ResizeNS/EW/NWSE/NESW, NotAllowed, Wait, None)
Removed
- TouchEventSource — replaced by W3C Pointer Events Level 3 (
PointerEventSourcewithPointerType: Touch)
Install
go get github.com/gogpu/gpucontext@v0.8.0