Flutter Engine
The Flutter Engine
Functions
fuchsia::ui::composition Namespace Reference

Functions

bool operator== (const fuchsia::ui::composition::ContentId &a, const fuchsia::ui::composition::ContentId &b)
 
bool operator== (const fuchsia::ui::composition::TransformId &a, const fuchsia::ui::composition::TransformId &b)
 
bool operator== (const fuchsia::ui::composition::ViewportProperties &a, const fuchsia::ui::composition::ViewportProperties &b)
 
bool operator== (const fuchsia::ui::composition::ImageProperties &a, const fuchsia::ui::composition::ImageProperties &b)
 
bool operator== (const fuchsia::ui::composition::HitRegion &a, const fuchsia::ui::composition::HitRegion &b)
 
bool operator!= (const fuchsia::ui::composition::HitRegion &a, const fuchsia::ui::composition::HitRegion &b)
 
bool operator== (const std::vector< fuchsia::ui::composition::HitRegion > &a, const std::vector< fuchsia::ui::composition::HitRegion > &b)
 

Function Documentation

◆ operator!=()

bool fuchsia::ui::composition::operator!= ( const fuchsia::ui::composition::HitRegion &  a,
const fuchsia::ui::composition::HitRegion &  b 
)
inline

Definition at line 125 of file fake_flatland_types.h.

126 {
127 return !(a == b);
128}
static bool b
struct MyStruct a[10]

◆ operator==() [1/6]

bool fuchsia::ui::composition::operator== ( const fuchsia::ui::composition::ContentId &  a,
const fuchsia::ui::composition::ContentId &  b 
)
inline

Definition at line 76 of file fake_flatland_types.h.

77 {
78 return a.value == b.value;
79}

◆ operator==() [2/6]

bool fuchsia::ui::composition::operator== ( const fuchsia::ui::composition::HitRegion &  a,
const fuchsia::ui::composition::HitRegion &  b 
)
inline

Definition at line 120 of file fake_flatland_types.h.

121 {
122 return a.region == b.region && a.hit_test == b.hit_test;
123}

◆ operator==() [3/6]

bool fuchsia::ui::composition::operator== ( const fuchsia::ui::composition::ImageProperties &  a,
const fuchsia::ui::composition::ImageProperties &  b 
)
inline

Definition at line 103 of file fake_flatland_types.h.

104 {
105 if (a.has_size() != b.has_size()) {
106 return false;
107 }
108
109 bool size_equal = true;
110 if (a.has_size()) {
111 const fuchsia::math::SizeU& a_size = a.size();
112 const fuchsia::math::SizeU& b_size = b.size();
113 size_equal =
114 (a_size.width == b_size.width && a_size.height == b_size.height);
115 }
116
117 return size_equal;
118}

◆ operator==() [4/6]

bool fuchsia::ui::composition::operator== ( const fuchsia::ui::composition::TransformId &  a,
const fuchsia::ui::composition::TransformId &  b 
)
inline

Definition at line 81 of file fake_flatland_types.h.

82 {
83 return a.value == b.value;
84}

◆ operator==() [5/6]

bool fuchsia::ui::composition::operator== ( const fuchsia::ui::composition::ViewportProperties &  a,
const fuchsia::ui::composition::ViewportProperties &  b 
)
inline

Definition at line 86 of file fake_flatland_types.h.

87 {
88 if (a.has_logical_size() != b.has_logical_size()) {
89 return false;
90 }
91
92 bool logical_size_equal = true;
93 if (a.has_logical_size()) {
94 const fuchsia::math::SizeU& a_logical_size = a.logical_size();
95 const fuchsia::math::SizeU& b_logical_size = b.logical_size();
96 logical_size_equal = (a_logical_size.width == b_logical_size.width &&
97 a_logical_size.height == b_logical_size.height);
98 }
99
100 return logical_size_equal;
101}

◆ operator==() [6/6]

bool fuchsia::ui::composition::operator== ( const std::vector< fuchsia::ui::composition::HitRegion > &  a,
const std::vector< fuchsia::ui::composition::HitRegion > &  b 
)
inline

Definition at line 130 of file fake_flatland_types.h.

132 {
133 if (a.size() != b.size())
134 return false;
135
136 for (size_t i = 0; i < a.size(); ++i) {
137 if (a[i] != b[i]) {
138 return false;
139 }
140 }
141
142 return true;
143}