MCPcopy Create free account
hub / github.com/WiVRn/WiVRn / in_window

Function in_window

client/render/imgui_impl.cpp:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125static bool in_window(ImGuiWindow * window, ImVec2 position)
126{
127 if (window->Hidden or not window->Active)
128 return false;
129
130 if (window->Pos.x > position.x or
131 window->Pos.y > position.y or
132 window->Pos.x + window->Size.x < position.x or
133 window->Pos.y + window->Size.y < position.y)
134 return false;
135
136 return true;
137}
138
139static bool in_viewport(const imgui_context::viewport & viewport, ImVec2 position)
140{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected