MCPcopy Create free account
hub / github.com/audacity/audacity / FindFocus

Function FindFocus

libraries/lib-basic-ui/BasicUI.h:387–393  ·  view source on GitHub ↗

Find the window that is accepting keyboard input, if any ! @post `result: result != nullptr` (but may point to an empty WindowPlacement) */

Source from the content-addressed store, hash-verified

385 @post `result: result != nullptr` (but may point to an empty WindowPlacement)
386 */
387inline std::unique_ptr<WindowPlacement> FindFocus()
388{
389 if (auto p = Get())
390 if (auto result = p->DoFindFocus())
391 return result;
392 return std::make_unique<WindowPlacement>();
393}
394
395//! Set the window that accepts keyboard input
396inline void SetFocus(const WindowPlacement &focus)

Callers 15

GetStateMethod · 0.85
GetStateMethod · 0.85
DoFindFocusMethod · 0.85
InitMethod · 0.85
GetStateMethod · 0.85
SetSelectedRowMethod · 0.85
GetFocusMethod · 0.85
SetSelectedRowMethod · 0.85
GetFocusMethod · 0.85
OnUndoMethod · 0.85
OnRedoMethod · 0.85

Calls 2

GetFunction · 0.85
DoFindFocusMethod · 0.45

Tested by 1

OnUpdateMethod · 0.68