class FlatlandTouchIntegrationTest_PartialScreenOverlappingViews_Class
Defined at line 774 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc
This test creates a view tree of the form:
root_view
|
parent_view
/
\
// child_A child_B
Where the root and parent are full screen, and child_A and child_B are partial screen views with
some overlap in the middle. Child A is "A"bove child B, who is "B"elow.
Let width and height represent the display width and height. Consider the following diagram,
drawn mostly to scale.
There are two full screen views: root (context) and parent (target). For event streams 1, 2, and
4, the viewport is full screen. For #4 the viewport is full screen but scaled, see that part of
the code for more details.
The top-left point of A is (width / 4, height / 4). The top-left point of
B is (width/2, height/4).Both A and B have the same dimensions: [width / 2 x height x 2].
Partial screen views: A on the left, B on the right, with A and B overlapping in the middle.
-------------------------------------
|Root/Parent/Viewport |
| |
| ---------------------------|
| |A |
<AB
> | B|
| | | | |
| | | | |
| ---------------------------|
| |
| |
-------------------------------------
Diagram for event stream #3 with a transformed viewport (VP):
Top-left point of the viewport is the same as A's top-left point. Bottom-right point of the
viewport is context view's bottom-right point.
-------------------------------------
|Root/Parent |
| |
| ---------------------------|
| |A/VP |
<AB
>/VP| B/VP|
| | | | |
| | | | |
| |- - - - - - - - - - - - - |
| | |
| | Viewport|
-------------------------------------
Public Methods
void FlatlandTouchIntegrationTest_PartialScreenOverlappingViews_Class ()
Defined at line 774 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc
void ~FlatlandTouchIntegrationTest_PartialScreenOverlappingViews_Class ()
Defined at line 774 of file ../../src/ui/scenic/tests/flatland_integration_tests/flatland_touch_integration_test.cc