MCPcopy Create free account
hub / github.com/ZDoom/Raze / SetFocus

Method SetFocus

libraries/ZWidget/src/core/widget.cpp:353–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void Widget::SetFocus()
354{
355 Widget* window = Window();
356 if (window)
357 {
358 if (window->FocusWidget)
359 window->FocusWidget->OnLostFocus();
360 window->FocusWidget = this;
361 window->FocusWidget->OnSetFocus();
362 window->ActivateWindow();
363 }
364}
365
366void Widget::SetEnabled(bool value)
367{

Callers 3

LauncherWindowMethod · 0.80
OnSetFocusMethod · 0.80
ErrorWindowMethod · 0.80

Calls 3

ActivateWindowMethod · 0.80
OnLostFocusMethod · 0.45
OnSetFocusMethod · 0.45

Tested by

no test coverage detected