class HitTester

Defined at line 17 of file ../../src/ui/scenic/lib/input/hit_tester.h

Performs hit testing and tracks hit testing inspect data.

Public Methods

void ~HitTester ()

Defined at line 20 of file ../../src/ui/scenic/lib/input/hit_tester.h

template <typename T>
std::vector<zx_koid_t> HitTest (const view_tree::Snapshot & snapshot, const T & event, bool semantic_hit_test)

Defined at line 29 of file ../../src/ui/scenic/lib/input/hit_tester.h

void HitTester (inspect::Node & parent_node)

Defined at line 34 of file ../../src/ui/scenic/lib/input/hit_tester.cc

template <typename T>
zx_koid_t TopHitTest (const view_tree::Snapshot & snapshot, const T & event, bool semantic_hit_test)

Returns the koid of the top hit, or ZX_KOID_INVALID if there is none.

Defined at line 37 of file ../../src/ui/scenic/lib/input/hit_tester.h

std::vector<zx_koid_t> HitTest (const view_tree::Snapshot & snapshot, const Viewport & viewport, glm::vec2 position_in_viewport, zx_koid_t context, zx_koid_t target, bool semantic_hit_test)

Perform a hit test with |event| in |snapshot| and returns the koids of all hit views, in order

from geometrically closest to furthest from the |event|.

Defined at line 40 of file ../../src/ui/scenic/lib/input/hit_tester.cc