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 21 of file ../../src/ui/scenic/lib/input/hit_tester.h
template <typename T>
std::vector<zx_koid_t> HitTest (const T & event, bool semantic_hit_test)
Defined at line 29 of file ../../src/ui/scenic/lib/input/hit_tester.h
void HitTester (const std::shared_ptr<const view_tree::Snapshot> & view_tree_snapshot, 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 T & event, bool semantic_hit_test)
Returns the koid of the top hit, or ZX_KOID_INVALID if there is none.
Defined at line 36 of file ../../src/ui/scenic/lib/input/hit_tester.h
std::vector<zx_koid_t> HitTest (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 |view_tree| and returns the koids of all hit views, in order
from geometrically closest to furthest from the |event|.
Defined at line 42 of file ../../src/ui/scenic/lib/input/hit_tester.cc