Versions in this module Expand all Collapse all v0 v0.0.3 Mar 16, 2026 Changes in this version + type Error int32 + func (e Error) Error() string + type Format int32 + const Rgb565 + const Rgba8888 + const Rgbx8888 + func (v Format) String() string + type NativeWindowTransform int32 + const ANATIVEWINDOW_TRANSFORM_IDENTITY + const ANATIVEWINDOW_TRANSFORM_MIRROR_HORIZONTAL + const ANATIVEWINDOW_TRANSFORM_MIRROR_VERTICAL + const ANATIVEWINDOW_TRANSFORM_ROTATE_180 + const ANATIVEWINDOW_TRANSFORM_ROTATE_270 + const ANATIVEWINDOW_TRANSFORM_ROTATE_90 + type NativeWindow_Buffer struct + func NewNativeWindow_BufferFromPointer(ptr unsafe.Pointer) *NativeWindow_Buffer + func (h *NativeWindow_Buffer) Pointer() unsafe.Pointer + type NativeWindow_ChangeFrameRateStrategy int32 + const ANATIVEWINDOW_CHANGE_FRAME_RATE_ALWAYS + const ANATIVEWINDOW_CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS + type NativeWindow_FrameRateCompatibility int32 + const ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_DEFAULT + const ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_FIXED_SOURCE + type Window struct + func NewWindowFromPointer(ptr unsafe.Pointer) *Window + func (h *Window) Acquire() + func (h *Window) ClearFrameRate() error + func (h *Window) Close() error + func (h *Window) Format() int32 + func (h *Window) GetBuffersDataSpace() error + func (h *Window) GetBuffersDefaultDataSpace() error + func (h *Window) Height() int32 + func (h *Window) Pointer() unsafe.Pointer + func (h *Window) SetBuffersDataSpace(dataSpace int32) error + func (h *Window) SetBuffersGeometry(width int32, height int32, format Format) error + func (h *Window) SetBuffersTransform(transform int32) error + func (h *Window) SetFrameRate(frameRate float32, compatibility int8) error + func (h *Window) SetFrameRateWithChangeStrategy(frameRate float32, compatibility int8, changeFrameRateStrategy int8) error + func (h *Window) TryAllocateBuffers() + func (h *Window) UnlockAndPost() error + func (h *Window) Width() int32