MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / measureUIString

Method measureUIString

src/ui/graphics.cpp:265–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265gfx::Size Graphics::measureUIString(const std::string& str)
266{
267 return gfx::Size(
268 Graphics::measureUIStringLength(str, m_font.get()),
269 m_font->height());
270}
271
272// static
273int Graphics::measureUIStringLength(const std::string& str, she::Font* font)

Callers 2

onPaintMethod · 0.80
drawTextStringMethod · 0.80

Calls 2

getMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected