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

Function UpdateText

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

Source from the content-addressed store, hash-verified

120}
121
122inline Timer::TimeDuration UpdateText(const gui::Text& text, const std::u32string& displayed_text, const gui::UnitRect& text_block_rect)
123{
124 Methane::ScopeTimer scope_timer("Text update");
125 text.SetTextInScreenRect(displayed_text, text_block_rect);
126 return scope_timer.GetElapsedDuration();
127}
128
129TypographyApp::TypographyApp()
130 : UserInterfaceApp(

Callers 1

AnimateTextBlockMethod · 0.85

Calls 2

GetElapsedDurationMethod · 0.80
SetTextInScreenRectMethod · 0.45

Tested by

no test coverage detected