class FlatlandTouchIntegrationTest_SetHitRegion_CapturesTouch_Class
Defined at line 1188 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc
Creates a view tree of the form
root_view
|
parent_view
|
child_view
Parent and child each have a view ref, and the parent positions its hit region and its child like
so:
------------------------------------
| | |
| A | B |
| | |
|----------------------------------|
| | |
| C | D |
| | |
|----------------------------------|
where parent view occupies A, B, C, D,
and child view occupies A and C (the left-side half of the parent view),
and the parent view positions a hit region over C and D, which *covers* the child view.
The hit tests expected are:
- hit test in A should reach the child, due to the default hit region for the child.
- hit test in B should reach the parent, due to the default hit region for the parent.
- hit test in C and D should reach the parent, due to the parent's explicit hit region.
Public Methods
void FlatlandTouchIntegrationTest_SetHitRegion_CapturesTouch_Class ()
Defined at line 1188 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc
void ~FlatlandTouchIntegrationTest_SetHitRegion_CapturesTouch_Class ()
Defined at line 1188 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc