MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / CalculateSizes

Method CalculateSizes

LibLemon/src/gfx/text.cpp:286–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284 }
285
286 void TextObject::CalculateSizes(){
287 textSize.x = GetTextLength(text.c_str(), font);
288 textSize.y = font->height;
289 }
290
291 void TextObject::Render(surface_t* surface){
292 switch(renderMode){

Callers

nothing calls this directly

Calls 1

GetTextLengthFunction · 0.85

Tested by

no test coverage detected