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

Method SetFocusOnGadget

ui/UIWindow.cpp:659–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657}
658
659void UIWindow::SetFocusOnGadget(UIGadget *gadget, bool key) {
660 if (m_GadgetCur) {
661 m_GadgetCur->LostFocus();
662 }
663 m_GadgetCur = gadget;
664 if (m_GadgetCur) {
665 m_GadgetCur->GainFocus();
666 m_ResetCurGadget = false;
667 }
668}
669
670// used to mark key pressed to id numbers
671void UIWindow::AddAcceleratorKey(int key, int id) {

Callers 4

selectcbFunction · 0.80
processMethod · 0.80
RealizeMethod · 0.80
OnKeyDownMethod · 0.80

Calls 2

LostFocusMethod · 0.80
GainFocusMethod · 0.80

Tested by

no test coverage detected