class ViewCoordinateConverter
Defined at line 21 of file ../../src/ui/a11y/lib/view/view_coordinate_converter.h
A helper class to convert between Scenic View coordinate spaces.
Public Methods
void ViewCoordinateConverter (fuchsia::ui::observation::scope::RegistryPtr registry, zx_koid_t context_view_ref_koid)
|context_view_ref_koid| serves as the context view when registering a new geometry observer.
Please check fuchsia.ui.observation.scope.Registry for full details.
Defined at line 18 of file ../../src/ui/a11y/lib/view/view_coordinate_converter.cc
void ~ViewCoordinateConverter ()
Defined at line 31 of file ../../src/ui/a11y/lib/view/view_coordinate_converter.h
std::optional<fuchsia::math::PointF> Convert (zx_koid_t view_ref_koid, fuchsia::math::PointF coordinate)
Converts a |coordinate| in |view_ref_koid| space into |context_view_ref_koid_| space. Returns
nullptr if |view_ref_koid| is not a known child of |context_view_ref_koid_|.
Defined at line 66 of file ../../src/ui/a11y/lib/view/view_coordinate_converter.cc
void RegisterCallback (OnGeometryChangeCallback callback)
Registers a callback that is invoked whenever there are changes in view geometry.
Defined at line 118 of file ../../src/ui/a11y/lib/view/view_coordinate_converter.cc