windows

package
v0.0.0-...-b767601 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: MIT, Unlicense Imports: 28 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	NotInitialized     = ErrorCode(0x00010001)
	NoCurrentContext   = ErrorCode(0x00010002)
	InvalidEnum        = ErrorCode(0x00010003)
	InvalidValue       = ErrorCode(0x00010004)
	OutOfMemory        = ErrorCode(0x00010005)
	APIUnavailable     = ErrorCode(0x00010006)
	VersionUnavailable = ErrorCode(0x00010007)
	PlatformError      = ErrorCode(0x00010008)
	FormatUnavailable  = ErrorCode(0x00010009)
	NoWindowContext    = ErrorCode(0x0001000A)
)
View Source
const (
	EmptyHandle = winsyscall.Handle(0)
)

Variables

This section is empty.

Functions

func EnablePollEvents

func EnablePollEvents()

func ExtensionSupportedWGL

func ExtensionSupportedWGL(extension string) bool

func GetTimerFrequency

func GetTimerFrequency() uint64

func GetTimerValue

func GetTimerValue() uint64

func InitWindows

func InitWindows()

func PollEvents

func PollEvents()

PollEvents In the Windows implementation, each Window has own event loop goroutine, so there is no need to process events here.

Types

type Action

type Action int

type ErrorCode

type ErrorCode int

func (ErrorCode) Error

func (e ErrorCode) Error() string

type Hint

type Hint int

type InputMode

type InputMode int

type Key

type Key int

type ModifierKey

type ModifierKey int

type MouseButton

type MouseButton int

type PeripheralEvent

type PeripheralEvent int

type StandardCursor

type StandardCursor int

type ViewEvent

type ViewEvent struct {
	HWND uintptr
}

func (ViewEvent) ImplementsEvent

func (ViewEvent) ImplementsEvent()

func (ViewEvent) ImplementsViewEvent

func (ViewEvent) ImplementsViewEvent()

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL