Documentation ¶
Index ¶
- type ButtonState
- type ModifiersState
- type MouseButton
- type MouseScrollAxis
- type MouseScrollDelta
- type ScanCode
- type TouchPhase
- type TouchPointerID
- type VirtualKey
- type WindowCloseRequestedCallback
- type WindowCursorEnteredCallback
- type WindowCursorLeftCallback
- type WindowCursorMovedCallback
- type WindowFocusedCallback
- type WindowKeyboardInputCallback
- type WindowModifiersChangedCallback
- type WindowMouseInputCallback
- type WindowMouseScrollCallback
- type WindowReceivedCharacterCallback
- type WindowResizedCallback
- type WindowSurfaceCreatedCallback
- type WindowSurfaceDestroyedCallback
- type WindowTouchInputCallback
- type WindowUnfocusedCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ButtonState ¶
type ButtonState uint8
const ( ButtonStatePressed ButtonState = iota ButtonStateReleased )
func (ButtonState) String ¶
func (v ButtonState) String() string
type ModifiersState ¶
type ModifiersState uint8
const ( ModifiersStateShift ModifiersState = 1 << iota ModifiersStateCtrl ModifiersStateAlt ModifiersStateLogo )
func (ModifiersState) String ¶
func (v ModifiersState) String() (s string)
type MouseButton ¶
type MouseButton uint32
const ( MouseButtonLeft MouseButton = iota MouseButtonRight MouseButtonMiddle )
func (MouseButton) String ¶
func (v MouseButton) String() string
type MouseScrollAxis ¶
type MouseScrollAxis uint8
const ( MouseScrollAxisVertical MouseScrollAxis = iota MouseScrollAxisHorizontal )
func (MouseScrollAxis) String ¶
func (v MouseScrollAxis) String() string
type MouseScrollDelta ¶
type MouseScrollDelta uint8
const ( MouseScrollDeltaLine MouseScrollDelta = iota MouseScrollDeltaPixel )
func (MouseScrollDelta) String ¶
func (v MouseScrollDelta) String() string
type TouchPhase ¶
type TouchPhase uint32
const ( TouchPhaseStarted TouchPhase = iota TouchPhaseMoved TouchPhaseEnded TouchPhaseCancelled )
func (TouchPhase) String ¶
func (v TouchPhase) String() string
type TouchPointerID ¶
type TouchPointerID uint8
type VirtualKey ¶
type VirtualKey uint32
const ( VirtualKeyCancel VirtualKey = iota + 4096 VirtualKeyHelp VirtualKeyBackSpace VirtualKeyTab VirtualKeyClear VirtualKeyReturn VirtualKeyLShift VirtualKeyRShift VirtualKeyLControl VirtualKeyRControl VirtualKeyLAlt VirtualKeyRAlt VirtualKeyPause VirtualKeyCapsLock VirtualKeyKana VirtualKeyJunja VirtualKeyFinal VirtualKeyKanji VirtualKeyEscape VirtualKeyConvert VirtualKeyNonconvert VirtualKeyAccept VirtualKeyModechange VirtualKeySpace VirtualKeyPageUp VirtualKeyPageDown VirtualKeyEnd VirtualKeyHome VirtualKeyLeft VirtualKeyUp VirtualKeyRight VirtualKeyDown VirtualKeySelect VirtualKeyPrint VirtualKeyExecute VirtualKeyInsert VirtualKeyDelete VirtualKey0 VirtualKey1 VirtualKey2 VirtualKey3 VirtualKey4 VirtualKey5 VirtualKey6 VirtualKey7 VirtualKey8 VirtualKey9 VirtualKeySemicolon VirtualKeyEquals VirtualKeyA VirtualKeyB VirtualKeyC VirtualKeyD VirtualKeyE VirtualKeyF VirtualKeyG VirtualKeyH VirtualKeyI VirtualKeyJ VirtualKeyK VirtualKeyL VirtualKeyM VirtualKeyN VirtualKeyO VirtualKeyP VirtualKeyQ VirtualKeyR VirtualKeyS VirtualKeyT VirtualKeyU VirtualKeyV VirtualKeyW VirtualKeyX VirtualKeyY VirtualKeyZ VirtualKeyLWin VirtualKeyRWin VirtualKeyContextMenu VirtualKeySleep VirtualKeyNumpad0 VirtualKeyNumpad1 VirtualKeyNumpad2 VirtualKeyNumpad3 VirtualKeyNumpad4 VirtualKeyNumpad5 VirtualKeyNumpad6 VirtualKeyNumpad7 VirtualKeyNumpad8 VirtualKeyNumpad9 VirtualKeyMultiply VirtualKeyAdd VirtualKeySubtract VirtualKeyDecimal VirtualKeyDivide VirtualKeyF1 VirtualKeyF2 VirtualKeyF3 VirtualKeyF4 VirtualKeyF5 VirtualKeyF6 VirtualKeyF7 VirtualKeyF8 VirtualKeyF9 VirtualKeyF10 VirtualKeyF11 VirtualKeyF12 VirtualKeyF13 VirtualKeyF14 VirtualKeyF15 VirtualKeyF16 VirtualKeyF17 VirtualKeyF18 VirtualKeyF19 VirtualKeyF20 VirtualKeyF21 VirtualKeyF22 VirtualKeyF23 VirtualKeyF24 VirtualKeyNumLock VirtualKeyScrollLock VirtualKeyHyphenMinus VirtualKeyVolumeMute VirtualKeyVolumeDown VirtualKeyVolumeUp VirtualKeyComma VirtualKeyPeriod VirtualKeySlash VirtualKeyBackQuote VirtualKeyOpenBracket VirtualKeyBackSlash VirtualKeyCloseBracket VirtualKeyQuote VirtualKeyAltgr )
func (VirtualKey) String ¶
func (v VirtualKey) String() string
type WindowCloseRequestedCallback ¶
type WindowCloseRequestedCallback func()
type WindowCursorEnteredCallback ¶
type WindowCursorEnteredCallback func()
type WindowCursorLeftCallback ¶
type WindowCursorLeftCallback func()
type WindowCursorMovedCallback ¶
type WindowCursorMovedCallback func(physicalX, physicalY float64)
type WindowFocusedCallback ¶
type WindowFocusedCallback func()
type WindowKeyboardInputCallback ¶
type WindowKeyboardInputCallback func(state ButtonState, scanCode ScanCode, virtualKeyCode VirtualKey)
type WindowModifiersChangedCallback ¶
type WindowModifiersChangedCallback func(state ModifiersState)
type WindowMouseInputCallback ¶
type WindowMouseInputCallback func(state ButtonState, button MouseButton)
type WindowMouseScrollCallback ¶
type WindowMouseScrollCallback func(delta MouseScrollDelta, axis MouseScrollAxis, value float64)
type WindowReceivedCharacterCallback ¶
type WindowReceivedCharacterCallback func(char rune)
type WindowResizedCallback ¶
type WindowSurfaceCreatedCallback ¶
type WindowSurfaceCreatedCallback func()
type WindowSurfaceDestroyedCallback ¶
type WindowSurfaceDestroyedCallback func()
type WindowTouchInputCallback ¶
type WindowTouchInputCallback func(phase TouchPhase, location dpi.PhysicalPosition[float64], id TouchPointerID)
type WindowUnfocusedCallback ¶
type WindowUnfocusedCallback func()
Click to show internal directories.
Click to hide internal directories.