| 986 | } |
| 987 | |
| 988 | void ImGui::ExtendHitBoxWhenNearViewportEdge(ImGuiWindow* window, ImRect* bb, float threshold, ImGuiAxis axis) |
| 989 | { |
| 990 | ImRect window_rect = window->RootWindow->Rect(); |
| 991 | ImRect viewport_rect = window->Viewport->GetMainRect(); |
| 992 | if (window_rect.Min[axis] == viewport_rect.Min[axis] && bb->Min[axis] > window_rect.Min[axis] && bb->Min[axis] - threshold <= window_rect.Min[axis]) |
| 993 | bb->Min[axis] = window_rect.Min[axis]; |
| 994 | if (window_rect.Max[axis] == viewport_rect.Max[axis] && bb->Max[axis] < window_rect.Max[axis] && bb->Max[axis] + threshold >= window_rect.Max[axis]) |
| 995 | bb->Max[axis] = window_rect.Max[axis]; |
| 996 | } |
| 997 | |
| 998 | void ImGui::Scrollbar(ImGuiAxis axis) |
| 999 | { |
nothing calls this directly
no test coverage detected