MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / IsWindowNavFocusable

Method IsWindowNavFocusable

include/imgui/imgui.cpp:14435–14438  ·  view source on GitHub ↗

Can we focus this window with Ctrl+Tab (or PadMenu + PadFocusPrev/PadFocusNext) Note that NoNavFocus makes the window not reachable with Ctrl+Tab but it can still be focused with mouse or programmatically. If you want a window to never be focused, you may use the e.g. NoInputs flag.

Source from the content-addressed store, hash-verified

14433// Note that NoNavFocus makes the window not reachable with Ctrl+Tab but it can still be focused with mouse or programmatically.
14434// If you want a window to never be focused, you may use the e.g. NoInputs flag.
14435bool ImGui::IsWindowNavFocusable(ImGuiWindow* window)
14436{
14437 return window->WasActive && window == window->RootWindow && !(window->Flags & ImGuiWindowFlags_NoNavFocus);
14438}
14439
14440static ImGuiWindow* FindWindowNavFocusable(int i_start, int i_stop, int dir) // FIXME-OPT O(N)
14441{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected