Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | Public Attributes | List of all members
flutter::testing::ViewContent Struct Reference

#include <shell_test.h>

Static Public Member Functions

static FrameContent NoViews ()
 
static FrameContent DummyView (double width=1, double height=1)
 
static FrameContent DummyView (flutter::ViewportMetrics viewport_metrics)
 
static FrameContent ImplicitView (double width, double height, LayerTreeBuilder builder)
 

Public Attributes

flutter::ViewportMetrics viewport_metrics
 
LayerTreeBuilder builder
 

Detailed Description

Definition at line 39 of file shell_test.h.

Member Function Documentation

◆ DummyView() [1/2]

FrameContent flutter::testing::ViewContent::DummyView ( double  width = 1,
double  height = 1 
)
static

Definition at line 29 of file shell_test.cc.

29 {
31 result[kImplicitViewId] = ViewContent{
32 .viewport_metrics = {1.0, width, height, 22, 0},
33 .builder = {},
34 };
35 return result;
36}
GAsyncResult * result
std::map< int64_t, ViewContent > FrameContent
Definition shell_test.h:37
constexpr int64_t kImplicitViewId
int32_t height
int32_t width

◆ DummyView() [2/2]

FrameContent flutter::testing::ViewContent::DummyView ( flutter::ViewportMetrics  viewport_metrics)
static

Definition at line 38 of file shell_test.cc.

38 {
40 result[kImplicitViewId] = ViewContent{
41 .viewport_metrics = std::move(viewport_metrics),
42 .builder = {},
43 };
44 return result;
45}
flutter::ViewportMetrics viewport_metrics
Definition shell_test.h:40

◆ ImplicitView()

FrameContent flutter::testing::ViewContent::ImplicitView ( double  width,
double  height,
LayerTreeBuilder  builder 
)
static

Definition at line 47 of file shell_test.cc.

49 {
51 result[kImplicitViewId] = ViewContent{
52 .viewport_metrics = {1.0, width, height, 22, 0},
53 .builder = std::move(builder),
54 };
55 return result;
56}

◆ NoViews()

FrameContent flutter::testing::ViewContent::NoViews ( )
static

Definition at line 25 of file shell_test.cc.

25 {
26 return std::map<int64_t, ViewContent>();
27}

Member Data Documentation

◆ builder

LayerTreeBuilder flutter::testing::ViewContent::builder

Definition at line 43 of file shell_test.h.

◆ viewport_metrics

flutter::ViewportMetrics flutter::testing::ViewContent::viewport_metrics

Definition at line 40 of file shell_test.h.


The documentation for this struct was generated from the following files: