| 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::Color &c)
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::RoundingRadii &rr)
std::ostream & | operator<< (std::ostream &out, const impeller::RSTransform &rst)
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/16]

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

Definition at line 926 of file color.h.

926 {
927 out << "(" << c.red << ", " << c.green << ", " << c.blue << ", " << c.alpha
928 << ")";
929 return out;
930 }
impeller::Color::blue
Scalar blue
Definition: color.h:137
impeller::Color::alpha
Scalar alpha
Definition: color.h:142
impeller::Color::red
Scalar red
Definition: color.h:127
impeller::Color::green
Scalar green
Definition: color.h:132

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

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

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

Definition at line 163 of file half.h.

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

References impeller::Half::x.

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

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

Definition at line 168 of file half.h.

169 {
170 out << "(" << static_cast<impeller::Scalar>(p.x) << ", "
171 << static_cast<impeller::Scalar>(p.y) << ")";
172 return out;
173 }
impeller::HalfVector2::x
InternalHalf x
Definition: half.h:132
impeller::HalfVector2::y
InternalHalf y
Definition: half.h:133

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

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

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

Definition at line 175 of file half.h.

176 {
177 out << "(" << static_cast<impeller::Scalar>(p.x) << ", "
178 << static_cast<impeller::Scalar>(p.y) << ", "
179 << static_cast<impeller::Scalar>(p.z) << ")";
180 return out;
181 }
impeller::HalfVector3::x
InternalHalf x
Definition: half.h:104
impeller::HalfVector3::z
InternalHalf z
Definition: half.h:106
impeller::HalfVector3::y
InternalHalf y
Definition: half.h:105

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

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

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

Definition at line 183 of file half.h.

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

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

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

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

Definition at line 109 of file handle_gles.h.

110 {
111 out << HandleTypeToString(handle.GetType()) << "(";
112 if (handle.IsDead()) {
113 out << "DEAD";
114 } else {
115 const std::optional<impeller::UniqueID>& name = handle.GetName();
116 if (name.has_value()) {
117 out << name.value().id;
118 } else {
119 out << "UNNAMED";
120 }
121 }
122 out << ")";
123 return out;
124 }
impeller::HandleGLES::IsDead
constexpr bool IsDead() const
Determines if the handle is dead.
Definition: handle_gles.h:53
impeller::HandleGLES::GetName
const std::optional< UniqueID > & GetName() const
Definition: handle_gles.h:75
impeller::HandleGLES::GetType
HandleType GetType() const
Definition: handle_gles.h:74
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<<() [7/16]

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

Definition at line 648 of file matrix.h.

648 {
649 out << "(" << std::endl << std::fixed;
650 for (size_t i = 0; i < 4u; i++) {
651 for (size_t j = 0; j < 4u; j++) {
652 out << std::setw(15) << m.e[j][i] << ",";
653 }
654 out << std::endl;
655 }
656 out << ")";
657 return out;
658 }
impeller::Matrix::e
Scalar e[4][4]
Definition: matrix.h:40

References impeller::Matrix::e.

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

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<<() [9/16]

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

Definition at line 85 of file rounding_radii.h.

86 {
87 out << "(" //
88 << "ul: " << rr.top_left << ", " //
89 << "ur: " << rr.top_right << ", " //
90 << "ll: " << rr.bottom_left << ", " //
91 << "lr: " << rr.bottom_right //
92 << ")";
93 return out;
94 }
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<<() [10/16]

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

Definition at line 136 of file round_rect.h.

137 {
138 out << "(" //
139 << "rect: " << rr.GetBounds() << ", " //
140 << "radii: " << rr.GetRadii() //
141 << ")";
142 return out;
143 }
impeller::RoundRect::GetRadii
constexpr const RoundingRadii & GetRadii() const
Definition: round_rect.h:44
impeller::RoundRect::GetBounds
constexpr const Rect & GetBounds() const
Definition: round_rect.h:43

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

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

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

Definition at line 74 of file rstransform.h.

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

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

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

template<class T >

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

Definition at line 342 of file point.h.

343 {
344 out << "(" << p.x << ", " << p.y << ")";
345 return out;
346 }
impeller::TPoint::y
Type y
Definition: point.h:31
impeller::TPoint::x
Type x
Definition: point.h:30

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

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

template<class T >

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

Definition at line 805 of file rect.h.

806 {
807 out << "(" << r.GetLeftTop() << " => " << r.GetRightBottom() << ")";
808 return out;
809 }
impeller::TRect::GetRightBottom
constexpr TPoint< T > GetRightBottom() const
Definition: rect.h:375
impeller::TRect::GetLeftTop
constexpr TPoint< T > GetLeftTop() const
Definition: rect.h:363

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

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

template<class T >

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

Definition at line 183 of file size.h.

184 {
185 out << "(" << s.width << ", " << s.height << ")";
186 return out;
187 }
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<<() [15/16]

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<<() [16/16]

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.