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

Method OnDraw

ui/UIEdit.cpp:280–286  ·  view source on GitHub ↗

behavior when gadget is being drawn.

Source from the content-addressed store, hash-verified

278
279// behavior when gadget is being drawn.
280void UIEdit::OnDraw() {
281 if (m_Flags & UIF_BORDER) {
282 ui_DrawBox(GR_RGB(128, 128, 128), m_X1b - 1, 0, m_X2b + 1, m_H);
283 }
284
285 DrawText();
286}
287
288void UIEdit::DrawText() {
289 char buffer[EDIT_BUFLEN_MAX];

Callers

nothing calls this directly

Calls 2

ui_DrawBoxFunction · 0.85
GR_RGBFunction · 0.50

Tested by

no test coverage detected