MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / set_width

Method set_width

modules/gui/gui/src/backend/text_server/text_line.cpp:309–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void TextLine::set_width(float p_width)
310{
311 width = p_width;
312 if (alignment == HORIZONTAL_ALIGNMENT_FILL || overrun_behavior != TextServer::OVERRUN_NO_TRIMMING)
313 {
314 dirty = true;
315 }
316}
317
318float TextLine::get_width() const
319{

Callers 7

get_string_sizeMethod · 0.45
draw_stringMethod · 0.45
draw_multiline_stringMethod · 0.45
draw_string_outlineMethod · 0.45
layoutMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected