MCPcopy Create free account
hub / github.com/Snapchat/Valdi / LineBreakResult

Class LineBreakResult

snap_drawing/src/snap_drawing/cpp/Text/TextLayoutBuilder.cpp:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75struct LineBreakResult {
76 const ShapedGlyph* end;
77 const ShapedGlyph* next;
78 bool reachedEndLine;
79 bool brokenByNewLineCharacter;
80
81 constexpr LineBreakResult(const ShapedGlyph* end,
82 const ShapedGlyph* next,
83 bool reachedEndLine,
84 bool brokenByNewLineCharacter)
85 : end(end), next(next), reachedEndLine(reachedEndLine), brokenByNewLineCharacter(brokenByNewLineCharacter) {}
86};
87
88static LineBreakResult lineBreak(const ShapedGlyph* begin,
89 const ShapedGlyph* end,

Callers 1

lineBreakFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected