MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / focus

Method focus

source/windowing/StarWidget.cpp:259–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void Widget::focus() {
260 m_focus = true;
261 if (auto w = window())
262 w->setFocus(this);
263}
264
265void Widget::blur() {
266 m_focus = false;

Callers 10

commonMethod · 0.80
makeWidgetCallbacksMethod · 0.80
innerSendEventMethod · 0.80
sendEventMethod · 0.80
showMethod · 0.80
initMultiPlayerMenuMethod · 0.80
switchStateMethod · 0.80
showMethod · 0.80
startChatMethod · 0.80
startCommandMethod · 0.80

Calls 1

setFocusMethod · 0.80

Tested by

no test coverage detected