MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnFormat

Method OnFormat

ui/UIButton.cpp:213–220  ·  view source on GitHub ↗

override: called when resized or before drawing.

Source from the content-addressed store, hash-verified

211
212// override: called when resized or before drawing.
213void UIButton::OnFormat() {
214 if (m_Flags & UIF_FIT) {
215 m_W = m_Items[m_State]->width() + 20;
216 m_H = m_Items[m_State]->height() + 8;
217 }
218
219 UIGadget::OnFormat();
220}
221
222// behavior when gadget is being drawn.
223void UIButton::OnDraw() {

Callers 1

RenderMethod · 0.45

Calls 4

widthMethod · 0.45
heightMethod · 0.45
get_colorMethod · 0.45
get_alphaMethod · 0.45

Tested by

no test coverage detected