MCPcopy
hub / github.com/lxn/walk / publishMouseWheelEvent

Method publishMouseWheelEvent

window.go:2057–2063  ·  view source on GitHub ↗
(publisher *MouseEventPublisher, wParam, lParam uintptr)

Source from the content-addressed store, hash-verified

2055}
2056
2057func (wb *WindowBase) publishMouseWheelEvent(publisher *MouseEventPublisher, wParam, lParam uintptr) {
2058 x := int(win.GET_X_LPARAM(lParam))
2059 y := int(win.GET_Y_LPARAM(lParam))
2060 button := MouseButton(uint32(wParam))
2061
2062 publisher.Publish(x, y, button)
2063}
2064
2065// SizeChanged returns an *Event that you can attach to for handling size
2066// changed events for the *WindowBase.

Callers 2

WndProcMethod · 0.95
lvWndProcMethod · 0.80

Calls 2

MouseButtonTypeAlias · 0.85
PublishMethod · 0.45

Tested by

no test coverage detected