| 123 | } |
| 124 | |
| 125 | static 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 | |
| 139 | static bool in_viewport(const imgui_context::viewport & viewport, ImVec2 position) |
| 140 | { |
no outgoing calls
no test coverage detected