| Flutter Impeller |

Classes | Functions
std Namespace Reference

## Classes
struct | hash< impeller::UniqueID >
struct | less< impeller::UniqueID >
struct | hash< impeller::DepthAttachmentDescriptor >
struct | hash< impeller::StencilAttachmentDescriptor >
struct | hash< impeller::Font::Metrics >
struct | hash< impeller::Glyph >
struct | equal_to< impeller::Glyph >
struct | less< impeller::Glyph >

## Functions
std::ostream & | operator<< (std::ostream &out, const impeller::Arc &a)
std::ostream & | operator<< (std::ostream &out, const impeller::Color &c)
std::ostream & | operator<< (std::ostream &out, const impeller::BlendMode &mode)
std::ostream & | operator<< (std::ostream &out, const impeller::Half &p)
std::ostream & | operator<< (std::ostream &out, const impeller::HalfVector2 &p)
std::ostream & | operator<< (std::ostream &out, const impeller::HalfVector3 &p)
std::ostream & | operator<< (std::ostream &out, const impeller::HalfVector4 &p)
std::ostream & | operator<< (std::ostream &out, const impeller::Matrix &m)
template<class T >
std::ostream & | operator<< (std::ostream &out, const impeller::TPoint< T > &p)
std::ostream & | operator<< (std::ostream &out, const impeller::Quaternion &q)
template<class T >
std::ostream & | operator<< (std::ostream &out, const impeller::TRect< T > &r)
std::ostream & | operator<< (std::ostream &out, const impeller::RoundRect &rr)
std::ostream & | operator<< (std::ostream &out, const impeller::RoundSuperellipse &rr)
std::ostream & | operator<< (std::ostream &out, const impeller::RoundingRadii &rr)
std::ostream & | operator<< (std::ostream &out, const impeller::RSTransform &rst)
std::ostream & | operator<< (std::ostream &out, const impeller::Degrees &d)
std::ostream & | operator<< (std::ostream &out, const impeller::Radians &r)
template<class T >
std::ostream & | operator<< (std::ostream &out, const impeller::TSize< T > &s)
std::ostream & | operator<< (std::ostream &out, const impeller::Vector3 &p)
std::ostream & | operator<< (std::ostream &out, const impeller::Vector4 &p)
std::ostream & | operator<< (std::ostream &out, const impeller::HandleGLES &handle)

## Function Documentation

## ◆ operator<<() [1/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::Arc & | a
| ) |  |
| inline

Definition at line 141 of file arc.h.

141 {
142 out << "Arc(" << a.GetOvalBounds() << ", " << a.GetStart() << " + "
143 << a.GetSweep()
144 << (a.IncludeCenter() ? ", with center)" : ", without center)");
145 return out;
146 }
impeller::Arc::IncludeCenter
constexpr bool IncludeCenter() const
Definition: arc.h:110
impeller::Arc::GetOvalBounds
const Rect & GetOvalBounds() const
Return the bounds of the oval in which this arc is inscribed.
Definition: arc.h:94
impeller::Arc::GetSweep
constexpr Degrees GetSweep() const
Definition: arc.h:108
impeller::Arc::GetStart
constexpr Degrees GetStart() const
Definition: arc.h:106

References impeller::Arc::GetOvalBounds(), impeller::Arc::GetStart(), impeller::Arc::GetSweep(), and impeller::Arc::IncludeCenter().

## ◆ operator<<() [2/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::BlendMode & | mode
| ) |  |
| inline

Definition at line 933 of file color.h.

934 {
935 out << "BlendMode::k" << BlendModeToString(mode);
936 return out;
937 }
impeller::BlendModeToString
const char * BlendModeToString(BlendMode blend_mode)
Definition: color.cc:47

References impeller::BlendModeToString().

## ◆ operator<<() [3/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::Color & | c
| ) |  |
| inline

Definition at line 927 of file color.h.

927 {
928 out << "(" << c.red << ", " << c.green << ", " << c.blue << ", " << c.alpha
929 << ")";
930 return out;
931 }
impeller::Color::blue
Scalar blue
Definition: color.h:138
impeller::Color::alpha
Scalar alpha
Definition: color.h:143
impeller::Color::red
Scalar red
Definition: color.h:128
impeller::Color::green
Scalar green
Definition: color.h:133

References impeller::Color::alpha, impeller::Color::blue, impeller::Color::green, and impeller::Color::red.

## ◆ operator<<() [4/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::Degrees & | d
| ) |  |
| inline

Definition at line 106 of file scalar.h.

106 {
107 return out << "Degrees(" << d.degrees << ")";
108 }
impeller::Degrees::degrees
Scalar degrees
Definition: scalar.h:67

References impeller::Degrees::degrees.

## ◆ operator<<() [5/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::Half & | p
| ) |  |
| inline

Definition at line 161 of file half.h.

161 {
162 out << "(" << static_cast<impeller::Scalar>(p.x) << ")";
163 return out;
164 }
impeller::Scalar
float Scalar
Definition: scalar.h:19
impeller::Half::x
InternalHalf x
Definition: half.h:42

References impeller::Half::x.

## ◆ operator<<() [6/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::HalfVector2 & | p
| ) |  |
| inline

Definition at line 166 of file half.h.

167 {
168 out << "(" << static_cast<impeller::Scalar>(p.x) << ", "
169 << static_cast<impeller::Scalar>(p.y) << ")";
170 return out;
171 }
impeller::HalfVector2::x
InternalHalf x
Definition: half.h:130
impeller::HalfVector2::y
InternalHalf y
Definition: half.h:131

References impeller::HalfVector2::x, and impeller::HalfVector2::y.

## ◆ operator<<() [7/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::HalfVector3 & | p
| ) |  |
| inline

Definition at line 173 of file half.h.

174 {
175 out << "(" << static_cast<impeller::Scalar>(p.x) << ", "
176 << static_cast<impeller::Scalar>(p.y) << ", "
177 << static_cast<impeller::Scalar>(p.z) << ")";
178 return out;
179 }
impeller::HalfVector3::x
InternalHalf x
Definition: half.h:102
impeller::HalfVector3::z
InternalHalf z
Definition: half.h:104
impeller::HalfVector3::y
InternalHalf y
Definition: half.h:103

References impeller::HalfVector3::x, impeller::HalfVector3::y, and impeller::HalfVector3::z.

## ◆ operator<<() [8/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::HalfVector4 & | p
| ) |  |
| inline

Definition at line 181 of file half.h.

182 {
183 out << "(" << static_cast<impeller::Scalar>(p.x) << ", "
184 << static_cast<impeller::Scalar>(p.y) << ", "
185 << static_cast<impeller::Scalar>(p.z) << ", "
186 << static_cast<impeller::Scalar>(p.w) << ")";
187 return out;
188 }
impeller::HalfVector4::x
InternalHalf x
Definition: half.h:61
impeller::HalfVector4::w
InternalHalf w
Definition: half.h:64
impeller::HalfVector4::y
InternalHalf y
Definition: half.h:62
impeller::HalfVector4::z
InternalHalf z
Definition: half.h:63

References impeller::HalfVector4::w, impeller::HalfVector4::x, impeller::HalfVector4::y, and impeller::HalfVector4::z.

## ◆ operator<<() [9/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::HandleGLES & | handle
| ) |  |
| inline

Definition at line 119 of file handle_gles.h.

120 {
121 out << HandleTypeToString(handle.GetType()) << "(";
122 if (handle.IsDead()) {
123 out << "DEAD";
124 } else {
125 const std::optional<impeller::UniqueID>& name = handle.GetName();
126 if (name.has_value()) {
127 out << name.value().id;
128 } else {
129 out << "UNNAMED";
130 }
131 }
132 out << ")";
133 return out;
134 }
impeller::HandleGLES::IsDead
constexpr bool IsDead() const
Determines if the handle is dead.
Definition: handle_gles.h:58
impeller::HandleGLES::GetName
const std::optional< UniqueID > & GetName() const
Definition: handle_gles.h:80
impeller::HandleGLES::GetType
HandleType GetType() const
Definition: handle_gles.h:79
impeller::HandleTypeToString
std::string HandleTypeToString(HandleType type)
Definition: handle_gles.cc:11

References impeller::HandleGLES::GetName(), impeller::HandleGLES::GetType(), impeller::HandleTypeToString(), and impeller::HandleGLES::IsDead().

## ◆ operator<<() [10/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::Matrix & | m
| ) |  |
| inline

Definition at line 728 of file matrix.h.

728 {
729 out << "(" << std::endl << std::fixed;
730 for (size_t i = 0; i < 4u; i++) {
731 for (size_t j = 0; j < 4u; j++) {
732 out << std::setw(15) << m.e[j][i] << ",";
733 }
734 out << std::endl;
735 }
736 out << ")";
737 return out;
738 }
impeller::Matrix::e
Scalar e[4][4]
Definition: matrix.h:40

References impeller::Matrix::e.

## ◆ operator<<() [11/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::Quaternion & | q
| ) |  |
| inline

Definition at line 94 of file quaternion.h.

95 {
96 out << "(" << q.x << ", " << q.y << ", " << q.z << ", " << q.w << ")";
97 return out;
98 }
impeller::Quaternion::y
Scalar y
Definition: quaternion.h:18
impeller::Quaternion::z
Scalar z
Definition: quaternion.h:19
impeller::Quaternion::w
Scalar w
Definition: quaternion.h:20
impeller::Quaternion::x
Scalar x
Definition: quaternion.h:17

References impeller::Quaternion::w, impeller::Quaternion::x, impeller::Quaternion::y, and impeller::Quaternion::z.

## ◆ operator<<() [12/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::Radians & | r
| ) |  |
| inline

Definition at line 110 of file scalar.h.

110 {
111 return out << "Radians(" << r.radians << ")";
112 }
impeller::Radians::radians
Scalar radians
Definition: scalar.h:45

References impeller::Radians::radians.

## ◆ operator<<() [13/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::RoundingRadii & | rr
| ) |  |
| inline

Definition at line 93 of file rounding_radii.h.

94 {
95 out << "(" //
96 << "ul: " << rr.top_left << ", " //
97 << "ur: " << rr.top_right << ", " //
98 << "ll: " << rr.bottom_left << ", " //
99 << "lr: " << rr.bottom_right //
100 << ")";
101 return out;
102 }
impeller::RoundingRadii::top_right
Size top_right
Definition: rounding_radii.h:16
impeller::RoundingRadii::bottom_left
Size bottom_left
Definition: rounding_radii.h:17
impeller::RoundingRadii::bottom_right
Size bottom_right
Definition: rounding_radii.h:18
impeller::RoundingRadii::top_left
Size top_left
Definition: rounding_radii.h:15

References impeller::RoundingRadii::bottom_left, impeller::RoundingRadii::bottom_right, impeller::RoundingRadii::top_left, and impeller::RoundingRadii::top_right.

## ◆ operator<<() [14/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::RoundRect & | rr
| ) |  |
| inline

Definition at line 200 of file round_rect.h.

201 {
202 out << "(" //
203 << "rect: " << rr.GetBounds() << ", " //
204 << "radii: " << rr.GetRadii() //
205 << ")";
206 return out;
207 }
impeller::RoundRect::GetRadii
constexpr const RoundingRadii & GetRadii() const
Definition: round_rect.h:55
impeller::RoundRect::GetBounds
constexpr const Rect & GetBounds() const
Definition: round_rect.h:53

References impeller::RoundRect::GetBounds(), and impeller::RoundRect::GetRadii().

## ◆ operator<<() [15/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::RoundSuperellipse & | rr
| ) |  |
| inline

Definition at line 173 of file round_superellipse.h.

174 {
175 out << "(" //
176 << "rect: " << rr.GetBounds() << ", " //
177 << "radii: " << rr.GetRadii();
178 out << ")";
179 return out;
180 }
impeller::RoundSuperellipse::GetRadii
constexpr const RoundingRadii & GetRadii() const
Definition: round_superellipse.h:50
impeller::RoundSuperellipse::GetBounds
constexpr const Rect & GetBounds() const
Definition: round_superellipse.h:49

References impeller::RoundSuperellipse::GetBounds(), and impeller::RoundSuperellipse::GetRadii().

## ◆ operator<<() [16/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::RSTransform & | rst
| ) |  |
| inline

Definition at line 72 of file rstransform.h.

73 {
74 // clang-format off
75 out << "("
76 << "scos: " << rst.scaled_cos << ", "
77 << "ssin: " << rst.scaled_sin << ", "
78 << "origin: (" << rst.translate_x << ", "
79 << rst.translate_y << ")"
80 << ")";
81 // clang-format on
82 return out;
83 }
impeller::RSTransform::translate_y
Scalar translate_y
Definition: rstransform.h:46
impeller::RSTransform::translate_x
Scalar translate_x
Definition: rstransform.h:45
impeller::RSTransform::scaled_sin
Scalar scaled_sin
Definition: rstransform.h:44
impeller::RSTransform::scaled_cos
Scalar scaled_cos
Definition: rstransform.h:43

References impeller::RSTransform::scaled_cos, impeller::RSTransform::scaled_sin, impeller::RSTransform::translate_x, and impeller::RSTransform::translate_y.

## ◆ operator<<() [17/21]

template<class T >

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::TPoint< T > & | p
| ) |  |
| inline

Definition at line 448 of file point.h.

449 {
450 out << "(" << p.x << ", " << p.y << ")";
451 return out;
452 }
impeller::TPoint::y
Type y
Definition: point.h:32
impeller::TPoint::x
Type x
Definition: point.h:31

References impeller::TPoint< T >::x, and impeller::TPoint< T >::y.

## ◆ operator<<() [18/21]

template<class T >

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::TRect< T > & | r
| ) |  |
| inline

Definition at line 801 of file rect.h.

802 {
803 out << "(" << r.GetLeftTop() << " => " << r.GetRightBottom() << ")";
804 return out;
805 }
impeller::TRect::GetRightBottom
constexpr TPoint< T > GetRightBottom() const
Definition: rect.h:371
impeller::TRect::GetLeftTop
constexpr TPoint< T > GetLeftTop() const
Definition: rect.h:359

References impeller::TRect< T >::GetLeftTop(), and impeller::TRect< T >::GetRightBottom().

## ◆ operator<<() [19/21]

template<class T >

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::TSize< T > & | s
| ) |  |
| inline

Definition at line 171 of file size.h.

172 {
173 out << "(" << s.width << ", " << s.height << ")";
174 return out;
175 }
impeller::TSize::height
Type height
Definition: size.h:29
impeller::TSize::width
Type width
Definition: size.h:28

References impeller::TSize< T >::height, and impeller::TSize< T >::width.

## ◆ operator<<() [20/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::Vector3 & | p
| ) |  |
| inline

Definition at line 330 of file vector.h.

330 {
331 out << "(" << p.x << ", " << p.y << ", " << p.z << ")";
332 return out;
333 }
impeller::Vector3::x
Scalar x
Definition: vector.h:23
impeller::Vector3::y
Scalar y
Definition: vector.h:24
impeller::Vector3::z
Scalar z
Definition: vector.h:25

References impeller::Vector3::x, impeller::Vector3::y, and impeller::Vector3::z.

## ◆ operator<<() [21/21]

std::ostream& std::operator<< | ( | std::ostream & | out,
|  | const impeller::Vector4 & | p
| ) |  |
| inline

Definition at line 335 of file vector.h.

335 {
336 out << "(" << p.x << ", " << p.y << ", " << p.z << ", " << p.w << ")";
337 return out;
338 }
impeller::Vector4::y
Scalar y
Definition: vector.h:236
impeller::Vector4::w
Scalar w
Definition: vector.h:238
impeller::Vector4::x
Scalar x
Definition: vector.h:235
impeller::Vector4::z
Scalar z
Definition: vector.h:237

References impeller::Vector4::w, impeller::Vector4::x, impeller::Vector4::y, and impeller::Vector4::z.