Versions in this module Expand all Collapse all v0 v0.22.0 Aug 2, 2026 Changes in this version + type Adapter struct + func NewAdapter(ptr unsafe.Pointer) Adapter + func (a Adapter) IsNil() bool + func (a Adapter) Pointer() unsafe.Pointer + type AdapterInfo struct + Name string + Type AdapterType + type AdapterType int + const AdapterTypeDiscrete + const AdapterTypeIntegrated + const AdapterTypeSoftware + const AdapterTypeUnknown + func (t AdapterType) String() string + type Button int8 + const ButtonEraser + const ButtonLeft + const ButtonMiddle + const ButtonNone + const ButtonRight + const ButtonX1 + const ButtonX2 + func (b Button) String() string + type Buttons uint8 + const ButtonsEraser + const ButtonsLeft + const ButtonsMiddle + const ButtonsNone + const ButtonsRight + const ButtonsX1 + const ButtonsX2 + func (b Buttons) Count() int + func (b Buttons) HasEraser() bool + func (b Buttons) HasLeft() bool + func (b Buttons) HasMiddle() bool + func (b Buttons) HasRight() bool + func (b Buttons) HasX1() bool + func (b Buttons) HasX2() bool + type CommandEncoder struct + func NewCommandEncoder(ptr unsafe.Pointer) CommandEncoder + func (ce CommandEncoder) IsNil() bool + func (ce CommandEncoder) Pointer() unsafe.Pointer + type CursorMode int + const CursorModeConfined + const CursorModeLocked + const CursorModeNormal + func (m CursorMode) String() string + type CursorShape int + const CursorCrosshair + const CursorDefault + const CursorMove + const CursorNone + const CursorNotAllowed + const CursorPointer + const CursorResizeEW + const CursorResizeNESW + const CursorResizeNS + const CursorResizeNWSE + const CursorText + const CursorWait + func (c CursorShape) String() string + type Device struct + func NewDevice(ptr unsafe.Pointer) Device + func (d Device) IsNil() bool + func (d Device) Pointer() unsafe.Pointer + type DeviceProvider interface + Adapter func() Adapter + AdapterInfo func() AdapterInfo + Device func() Device + Queue func() Queue + SurfaceFormat func() gputypes.TextureFormat + type EventSource interface + OnFocus func(func(focused bool)) + OnIMECompositionEnd func(fn func(committed string)) + OnIMECompositionStart func(fn func()) + OnIMECompositionUpdate func(fn func(state IMEState)) + OnKeyPress func(func(key Key, mods Modifiers)) + OnKeyRelease func(func(key Key, mods Modifiers)) + OnMouseMove func(func(x, y float64)) + OnMousePress func(func(button MouseButton, x, y float64)) + OnMouseRelease func(func(button MouseButton, x, y float64)) + OnResize func(func(width, height int)) + OnScroll func(func(dx, dy float64)) + OnTextInput func(func(text string)) + type GestureEvent struct + Center Point + NumPointers int + PinchType PinchType + RotationDelta float64 + Timestamp time.Duration + TranslationDelta Point + ZoomDelta float64 + ZoomDelta2D Point + type GestureEventSource interface + OnGesture func(fn func(GestureEvent)) + type HitTestCallback func(x, y float64) HitTestResult + type HitTestResult int + const HitTestCaption + const HitTestClient + const HitTestClose + const HitTestMaximize + const HitTestMinimize + const HitTestResizeE + const HitTestResizeN + const HitTestResizeNE + const HitTestResizeNW + const HitTestResizeS + const HitTestResizeSE + const HitTestResizeSW + const HitTestResizeW + func (h HitTestResult) String() string + type IMEController interface + SetIMEEnabled func(enabled bool) + SetIMEPosition func(x, y int) + type IMEState struct + Composing bool + CompositionText string + CursorPos int + SelectionEnd int + SelectionStart int + type Instance struct + func NewInstance(ptr unsafe.Pointer) Instance + func (i Instance) IsNil() bool + func (i Instance) Pointer() unsafe.Pointer + type Key uint16 + const Key0 + const Key1 + const Key2 + const Key3 + const Key4 + const Key5 + const Key6 + const Key7 + const Key8 + const Key9 + const KeyA + const KeyApostrophe + const KeyB + const KeyBackslash + const KeyBackspace + const KeyC + const KeyCapsLock + const KeyComma + const KeyD + const KeyDelete + const KeyDown + const KeyE + const KeyEnd + const KeyEnter + const KeyEqual + const KeyEscape + const KeyF + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF2 + const KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyG + const KeyGrave + const KeyH + const KeyHome + const KeyI + const KeyInsert + const KeyJ + const KeyK + const KeyL + const KeyLeft + const KeyLeftAlt + const KeyLeftBracket + const KeyLeftControl + const KeyLeftShift + const KeyLeftSuper + const KeyM + const KeyMinus + const KeyN + const KeyNumLock + const KeyNumpad0 + const KeyNumpad1 + const KeyNumpad2 + const KeyNumpad3 + const KeyNumpad4 + const KeyNumpad5 + const KeyNumpad6 + const KeyNumpad7 + const KeyNumpad8 + const KeyNumpad9 + const KeyNumpadAdd + const KeyNumpadDecimal + const KeyNumpadDivide + const KeyNumpadEnter + const KeyNumpadMultiply + const KeyNumpadSubtract + const KeyO + const KeyP + const KeyPageDown + const KeyPageUp + const KeyPause + const KeyPeriod + const KeyPrintScreen + const KeyQ + const KeyR + const KeyRight + const KeyRightAlt + const KeyRightBracket + const KeyRightControl + const KeyRightShift + const KeyRightSuper + const KeyS + const KeyScrollLock + const KeySemicolon + const KeySlash + const KeySpace + const KeyT + const KeyTab + const KeyU + const KeyUnknown + const KeyUp + const KeyV + const KeyW + const KeyX + const KeyY + const KeyZ + type Modifiers uint8 + const ModAlt + const ModCapsLock + const ModControl + const ModNumLock + const ModShift + const ModSuper + func (m Modifiers) HasAlt() bool + func (m Modifiers) HasControl() bool + func (m Modifiers) HasShift() bool + func (m Modifiers) HasSuper() bool + type MouseButton uint8 + const MouseButton4 + const MouseButton5 + const MouseButtonLeft + const MouseButtonMiddle + const MouseButtonRight + type NullEventSource struct + func (NullEventSource) OnFocus(func(bool)) + func (NullEventSource) OnIMECompositionEnd(func(string)) + func (NullEventSource) OnIMECompositionStart(func()) + func (NullEventSource) OnIMECompositionUpdate(func(IMEState)) + func (NullEventSource) OnKeyPress(func(Key, Modifiers)) + func (NullEventSource) OnKeyRelease(func(Key, Modifiers)) + func (NullEventSource) OnMouseMove(func(float64, float64)) + func (NullEventSource) OnMousePress(func(MouseButton, float64, float64)) + func (NullEventSource) OnMouseRelease(func(MouseButton, float64, float64)) + func (NullEventSource) OnResize(func(int, int)) + func (NullEventSource) OnScroll(func(float64, float64)) + func (NullEventSource) OnTextInput(func(string)) + type NullGestureEventSource struct + func (NullGestureEventSource) OnGesture(func(GestureEvent)) + type NullPlatformProvider struct + func (NullPlatformProvider) ClipboardRead() (string, error) + func (NullPlatformProvider) ClipboardWrite(string) error + func (NullPlatformProvider) DarkMode() bool + func (NullPlatformProvider) FontScale() float32 + func (NullPlatformProvider) HighContrast() bool + func (NullPlatformProvider) ReduceMotion() bool + func (NullPlatformProvider) SetCursor(CursorShape) + func (NullPlatformProvider) SubpixelLayout() SubpixelLayout + type NullPointerEventSource struct + func (NullPointerEventSource) OnPointer(func(PointerEvent)) + type NullScrollEventSource struct + func (NullScrollEventSource) OnScrollEvent(func(ScrollEvent)) + type NullWindowChrome struct + func (NullWindowChrome) Close() + func (NullWindowChrome) IsFrameless() bool + func (NullWindowChrome) IsFullscreen() bool + func (NullWindowChrome) IsMaximized() bool + func (NullWindowChrome) Maximize() + func (NullWindowChrome) Minimize() + func (NullWindowChrome) SetFrameless(bool) + func (NullWindowChrome) SetFullscreen(bool) + func (NullWindowChrome) SetHitTestCallback(HitTestCallback) + type NullWindowProvider struct + H int + SF float64 + W int + func (n NullWindowProvider) RequestRedraw() + func (n NullWindowProvider) ScaleFactor() float64 + func (n NullWindowProvider) Size() (int, int) + type OpenDevice struct + Device Device + Queue Queue + type PinchType uint8 + const PinchHorizontal + const PinchNone + const PinchProportional + const PinchVertical + func (p PinchType) String() string + type PlatformProvider interface + ClipboardRead func() (string, error) + ClipboardWrite func(text string) error + DarkMode func() bool + FontScale func() float32 + HighContrast func() bool + ReduceMotion func() bool + SetCursor func(cursor CursorShape) + SubpixelLayout func() SubpixelLayout + type Point struct + X float64 + Y float64 + func (p Point) Add(other Point) Point + func (p Point) Scale(factor float64) Point + func (p Point) Sub(other Point) Point + type PointerEvent struct + Button Button + Buttons Buttons + DeltaX float64 + DeltaY float64 + Height float32 + IsPrimary bool + Modifiers Modifiers + PointerID int + PointerType PointerType + Pressure float32 + TiltX float32 + TiltY float32 + Timestamp time.Duration + Twist float32 + Type PointerEventType + Width float32 + X float64 + Y float64 + type PointerEventSource interface + OnPointer func(fn func(PointerEvent)) + type PointerEventType uint8 + const PointerCancel + const PointerDown + const PointerEnter + const PointerLeave + const PointerMove + const PointerUp + func (t PointerEventType) String() string + type PointerType uint8 + const PointerTypeMouse + const PointerTypePen + const PointerTypeTouch + func (t PointerType) String() string + type Queue struct + func NewQueue(ptr unsafe.Pointer) Queue + func (q Queue) IsNil() bool + func (q Queue) Pointer() unsafe.Pointer + type Registry struct + func NewRegistry[T any](opts ...RegistryOption) *Registry[T] + func (r *Registry[T]) Available() []string + func (r *Registry[T]) Best() T + func (r *Registry[T]) BestName() string + func (r *Registry[T]) Count() int + func (r *Registry[T]) Get(name string) T + func (r *Registry[T]) Has(name string) bool + func (r *Registry[T]) Register(name string, factory func() T) + func (r *Registry[T]) Unregister(name string) + type RegistryOption func(*registryConfig) + func WithPriority(names ...string) RegistryOption + type ScrollDeltaMode uint8 + const ScrollDeltaLine + const ScrollDeltaPage + const ScrollDeltaPixel + func (m ScrollDeltaMode) String() string + type ScrollEvent struct + DeltaMode ScrollDeltaMode + DeltaX float64 + DeltaY float64 + IsMomentum bool + Modifiers Modifiers + Phase ScrollPhase + Timestamp time.Duration + X float64 + Y float64 + type ScrollEventSource interface + OnScrollEvent func(fn func(ScrollEvent)) + type ScrollPhase uint8 + const ScrollPhaseBegan + const ScrollPhaseCanceled + const ScrollPhaseChanged + const ScrollPhaseEnded + const ScrollPhaseNone + func (p ScrollPhase) String() string + type SubpixelLayout int + const SubpixelBGR + const SubpixelNone + const SubpixelRGB + const SubpixelVBGR + const SubpixelVRGB + func (s SubpixelLayout) String() string + type Surface struct + func NewSurface(ptr unsafe.Pointer) Surface + func (s Surface) IsNil() bool + func (s Surface) Pointer() unsafe.Pointer + type Texture interface + Height func() int + Width func() int + type TextureCreator interface + NewTextureFromRGBA func(width, height int, data []byte) (Texture, error) + type TextureDrawer interface + DrawTexture func(tex Texture, x, y float32) error + TextureCreator func() TextureCreator + type TextureRegionUpdater interface + UpdateRegion func(x, y, w, h int, data []byte) error + type TextureUpdater interface + UpdateData func(data []byte) error + type TextureView struct + func NewTextureView(ptr unsafe.Pointer) TextureView + func (tv TextureView) IsNil() bool + func (tv TextureView) Pointer() unsafe.Pointer + type WindowChrome interface + Close func() + IsFrameless func() bool + IsFullscreen func() bool + IsMaximized func() bool + Maximize func() + Minimize func() + SetFrameless func(frameless bool) + SetFullscreen func(fullscreen bool) + SetHitTestCallback func(callback HitTestCallback) + type WindowProvider interface + RequestRedraw func() + ScaleFactor func() float64 + Size func() (width, height int)