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

Method fitString

src/ui/graphics.cpp:289–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289gfx::Size Graphics::fitString(const std::string& str, int maxWidth, int align)
290{
291 return doUIStringAlgorithm(str, gfx::ColorNone, gfx::ColorNone, gfx::Rect(0, 0, maxWidth, 0), align, false);
292}
293
294gfx::Size Graphics::doUIStringAlgorithm(const std::string& str, gfx::Color fg, gfx::Color bg, const gfx::Rect& rc, int align, bool draw)
295{

Callers 3

sizeHintMethod · 0.80
onSizeHintMethod · 0.80
onSizeHintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected