MCPcopy Create free account
hub / github.com/gioui/gio / ActionAt

Method ActionAt

io/input/pointer.go:517–528  ·  view source on GitHub ↗
(pos f32.Point)

Source from the content-addressed store, hash-verified

515}
516
517func (q *pointerQueue) ActionAt(pos f32.Point) (action system.Action, hasAction bool) {
518 q.hitTest(pos, func(n *hitNode) bool {
519 area := q.areas[n.area]
520 if area.action != 0 {
521 action = area.action
522 hasAction = true
523 return false
524 }
525 return true
526 })
527 return action, hasAction
528}
529
530func (q *pointerQueue) SemanticAt(pos f32.Point) (semID SemanticID, hasSemID bool) {
531 q.assignSemIDs()

Callers

nothing calls this directly

Calls 1

hitTestMethod · 0.95

Tested by

no test coverage detected