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

Method OnDraw

Descent3/newui.cpp:867–874  ·  view source on GitHub ↗

ui system overridables overridable draws the window background before gadgets

Source from the content-addressed store, hash-verified

865// ui system overridables
866// overridable draws the window background before gadgets
867void NewUIWindow::OnDraw() {
868 UIWindow::OnDraw();
869
870 if (m_Flags & UIF_BORDER) {
871 ui_DrawBox(GR_DARKGRAY, 0, 0, m_W, m_H);
872 ui_DrawBox(GR_LIGHTGRAY, 2, 2, m_W - 2, m_H - 2);
873 }
874}
875
876void NewUIWindow::OnDestroy() { bm_DestroyChunkedBitmap(&m_Chunk); }
877

Callers

nothing calls this directly

Calls 4

ui_DrawBoxFunction · 0.85
drawMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected