called before drawing usually. sets x,y,w,h optionally.
| 199 | |
| 200 | // called before drawing usually. sets x,y,w,h optionally. |
| 201 | void 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. |
| 207 | void UIGadget::Process(bool do_keys, bool do_mouse, bool do_user) { |