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

Class TextLayoutEntry

snap_drawing/src/snap_drawing/cpp/Text/TextLayout.hpp:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62class TextLayoutLineHeight {
63 enum class Kind { Multiple, Absolute };
64
65public:
66 constexpr TextLayoutLineHeight() = default;
67
68 static constexpr TextLayoutLineHeight multiple(Scalar multiple) {
69 return TextLayoutLineHeight(Kind::Multiple, multiple);
70 }
71
72 static constexpr TextLayoutLineHeight absolute(Scalar height) {
73 return TextLayoutLineHeight(Kind::Absolute, height);
74 }
75
76 LineMetrics getLineMetrics(const FontMetrics& fontMetrics) const;

Callers 2

TESTFunction · 0.85
TextLayout.cppFile · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68