MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / isFocused

Function isFocused

src/OpenLoco/src/Input/MouseInput.cpp:243–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241 }
242
243 bool isFocused(Ui::WindowType type, Ui::WindowNumber_t number)
244 {
245 if (!hasFlag(Flags::widgetFocused))
246 {
247 return false;
248 }
249
250 if (_focusedWindowType != type)
251 {
252 return false;
253 }
254
255 if (_focusedWindowNumber != number)
256 {
257 return false;
258 }
259
260 return true;
261 }
262
263 bool isFocused(Ui::WindowType type, Ui::WindowNumber_t number, Ui::WidgetIndex_t index)
264 {

Callers 9

drawSearchBoxFunction · 0.85
keyUpFunction · 0.85
drawSearchBoxFunction · 0.85
keyUpFunction · 0.85
onUpdateFunction · 0.85
drawFunction · 0.85
keyUpFunction · 0.85
drawFunction · 0.85
keyUpFunction · 0.85

Calls 1

hasFlagFunction · 0.50

Tested by

no test coverage detected