MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / updateTextRegion

Method updateTextRegion

source/windowing/StarLabelWidget.cpp:95–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void LabelWidget::updateTextRegion() {
96 context()->setTextStyle(m_style);
97 m_textRegion = RectI(context()->determineInterfaceTextSize(m_text, {Vec2F(), m_hAnchor, m_vAnchor, m_wrapWidth, m_textCharLimit}));
98 setSize(m_textRegion.size());
99}
100
101}

Callers

nothing calls this directly

Calls 3

setTextStyleMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected