class TestView
Defined at line 49 of file ../../src/ui/testing/util/test_view.h
Public Methods
void OnStart ()
|component_testing::LocalComponentImpl|
Defined at line 25 of file ../../src/ui/testing/util/test_view.cc
std::optional<zx_koid_t> GetViewRefKoid ()
Defined at line 32 of file ../../src/ui/testing/util/test_view.cc
void TestView (async_dispatcher_t * dispatcher, ContentType content_type, std::weak_ptr<TestViewAccess> access)
Defined at line 70 of file ../../src/ui/testing/util/test_view.h
void ~TestView ()
Defined at line 80 of file ../../src/ui/testing/util/test_view.h
const std::optional<fuchsia::ui::views::ViewRef> & view_ref ()
Defined at line 85 of file ../../src/ui/testing/util/test_view.h
void CreateViewWithViewRef (zx::eventpair token, fuchsia::ui::views::ViewRefControl view_ref_control, fuchsia::ui::views::ViewRef view_ref)
Defined at line 90 of file ../../src/ui/testing/util/test_view.h
void CreateView2 (fuchsia::ui::app::CreateView2Args args)
|fuchsia.ui.app.ViewProvider|
Defined at line 143 of file ../../src/ui/testing/util/test_view.cc
void NestChildView ()
Add a child view!
The viewport will have side length of 1/4 our side length and will be centered in our view.
Defined at line 178 of file ../../src/ui/testing/util/test_view.cc
uint32_t width ()
Defined at line 212 of file ../../src/ui/testing/util/test_view.cc
uint32_t height ()
Defined at line 217 of file ../../src/ui/testing/util/test_view.cc
Enumerations
enum ContentType
| Name | Value |
|---|---|
| DEFAULT | 0 |
| COORDINATE_GRID | 1 |
Defined at line 52 of file ../../src/ui/testing/util/test_view.h