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

Method OnFormat

ui/UIGadget.cpp:201–204  ·  view source on GitHub ↗

called before drawing usually. sets x,y,w,h optionally.

Source from the content-addressed store, hash-verified

199
200// called before drawing usually. sets x,y,w,h optionally.
201void UIGadget::OnFormat() {
202 if (m_Flags & UIF_CENTER)
203 m_X = m_Wnd->W() / 2 - m_W / 2;
204}
205
206// interprets input on this gadget. this gadget is in focus.
207void UIGadget::Process(bool do_keys, bool do_mouse, bool do_user) {

Callers

nothing calls this directly

Calls 1

WMethod · 0.80

Tested by

no test coverage detected