Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -23,24 +23,22 @@ struct GlyphMetrics
int32_t m_yOffset;
int32_t m_xAdvance;
// yAdvance is used only in vertical text layouts and is 0 for horizontal texts.
int32_t m_yAdvance {0};
int32_t m_yAdvance{0};
bool operator==(GlyphMetrics const & other) const
{
return m_key == other.m_key;
}
bool operator==(GlyphMetrics const & other) const { return m_key == other.m_key; }
};
// TODO(AB): Move to a separate file?
struct TextMetrics
{
int32_t m_lineWidthInPixels {0};
int32_t m_maxLineHeightInPixels {0};
int32_t m_lineWidthInPixels{0};
int32_t m_maxLineHeightInPixels{0};
std::vector<GlyphMetrics> m_glyphs;
// Used for SplitText.
bool m_isRTL {false};
bool m_isRTL{false};
void AddGlyphMetrics(int16_t font, uint16_t glyphId, int32_t xOffset, int32_t yOffset, int32_t xAdvance, int32_t height)
void AddGlyphMetrics(int16_t font, uint16_t glyphId, int32_t xOffset, int32_t yOffset, int32_t xAdvance,
int32_t height)
{
m_glyphs.push_back({{font, glyphId}, xOffset, yOffset, xAdvance});