Skip to content

v0.8.0

Choose a tag to compare

@kolkov kolkov released this 07 Feb 13:20
· 33 commits to main since this release
6ceb1e6

Added

  • WindowProvider interface — window geometry, DPI scale factor, redraw requests

    • Size() (width, height int) — window client area in physical pixels
    • ScaleFactor() float64 — DPI scale (1.0 = standard, 2.0 = Retina/HiDPI)
    • RequestRedraw() — trigger frame in on-demand rendering mode
    • NullWindowProvider for testing and headless operation
  • PlatformProvider interface — optional OS integration

    • ClipboardRead() / ClipboardWrite() — system clipboard
    • SetCursor(CursorShape) — mouse cursor management
    • DarkMode() — system dark mode detection
    • ReduceMotion() / HighContrast() / FontScale() — accessibility preferences
    • NullPlatformProvider for 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 (PointerEventSource with PointerType: Touch)

Install

go get github.com/gogpu/gpucontext@v0.8.0