Versions in this module Expand all Collapse all v1 v1.0.0 Feb 24, 2021 Changes in this version + func ClientSize(window w32.HWND) (w, h int) — windows/amd64 + func CloseWindow(window w32.HWND) — windows/amd64 + func DisableFullscreen(window w32.HWND, placement w32.WINDOWPLACEMENT) — windows/amd64 + func EnableFullscreen(window w32.HWND) (windowed w32.WINDOWPLACEMENT) — windows/amd64 + func HandlePanics(id string) — windows/amd64 + func HideConsoleWindow() — windows/amd64 + func IsFullscreen(window w32.HWND) bool — windows/amd64 + func NewWindow(opts WindowOptions, f MessageCallback) (w32.HWND, error) — windows/amd64 + func RunMainGameLoop(f func()) — windows/amd64 + func RunMainLoop() — windows/amd64 + func SetIconFromExe(window w32.HWND, resourceID uint16) — windows/amd64 + type KeyOptions uintptr — windows/amd64 + func (o KeyOptions) IsExtended() bool + func (o KeyOptions) RepeatCount() int + func (o KeyOptions) ScanCode() int + func (o KeyOptions) WasDown() bool + type MessageCallback func(window w32.HWND, msg uint32, w, l uintptr) uintptr — windows/amd64 + type MessageHandler struct — windows/amd64 + OnActivate func() + OnChar func(r rune) + OnDeactivate func() + OnKeyDown func(key uintptr, options KeyOptions) + OnKeyUp func(key uintptr, options KeyOptions) + OnLeftMouseDown func(x, y int, options MouseOptions) + OnLeftMouseUp func(x, y int, options MouseOptions) + OnMiddleMouseDown func(x, y int, options MouseOptions) + OnMiddleMouseUp func(x, y int, options MouseOptions) + OnMouseMove func(x, y int, options MouseOptions) + OnMouseWheel func(forward float32, x, y int, options MouseOptions) + OnMove func(x, y int) + OnOther func(msg uint32, w, l uintptr) (handled bool) + OnRightMouseDown func(x, y int, options MouseOptions) + OnRightMouseUp func(x, y int, options MouseOptions) + OnSize func(width, height int) + OnTimer func(id uintptr) + func (m *MessageHandler) Callback(window w32.HWND, msg uint32, w, l uintptr) uintptr + type MouseOptions uintptr — windows/amd64 + func (o MouseOptions) ControlDown() bool + func (o MouseOptions) LButtonDown() bool + func (o MouseOptions) MButtonDown() bool + func (o MouseOptions) RButtonDown() bool + func (o MouseOptions) ShiftDown() bool + func (o MouseOptions) XButton1Down() bool + func (o MouseOptions) XButton2Down() bool + type WindowOptions struct — windows/amd64 + Background w32.HBRUSH + ClassName string + ClassStyle uint32 + Cursor w32.HCURSOR + Height int + Title string + Width int + WindowStyle uint + X int + Y int + func DefaultOptions() WindowOptions