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

Method OnDraw

ui/UIStatic.cpp:123–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void UIStatic::OnDraw() {
124 if (m_Flags & UIF_BORDER)
125 ui_DrawBox(GR_WHITE, 0, 0, m_W, m_H);
126
127 if (m_Background)
128 m_Background->draw(0, 0, m_W, m_H);
129 if (m_Title) {
130 // int y = (m_H/2 - m_Title->height()/2);
131 // int x = (m_W/2 - m_Title->width()/2);
132 m_Title->draw(0, 0);
133 }
134}
135
136void UIStatic::OnFormat() {
137 if (m_Flags & UIF_FIT) {

Callers

nothing calls this directly

Calls 3

ui_DrawBoxFunction · 0.85
ui_DrawRectFunction · 0.85
drawMethod · 0.45

Tested by

no test coverage detected