MCPcopy Create free account
hub / github.com/MethanePowered/MethaneKit / UpdateTextRect

Function UpdateTextRect

Apps/05-Typography/TypographyApp.cpp:115–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115inline Timer::TimeDuration UpdateTextRect(gui::TextItem& text, const gui::UnitRect& text_block_rect)
116{
117 Methane::ScopeTimer scope_timer("Text update");
118 text.SetRect(text_block_rect);
119 return scope_timer.GetElapsedDuration();
120}
121
122inline Timer::TimeDuration UpdateText(const gui::Text& text, const std::u32string& displayed_text, const gui::UnitRect& text_block_rect)
123{

Callers 1

ResizeMethod · 0.85

Calls 2

GetElapsedDurationMethod · 0.80
SetRectMethod · 0.45

Tested by

no test coverage detected