| 99 | } |
| 100 | |
| 101 | bool _SimulationScrollbar::doesMouseCursorIntersectSliderBar(RealRect const& rect) const |
| 102 | { |
| 103 | auto sliderbarRect = calcSliderbarRect(rect); |
| 104 | |
| 105 | ImVec2 mousePositionAbsolute = ImGui::GetMousePos(); |
| 106 | return mousePositionAbsolute.x >= rect.topLeft.x + sliderbarRect.topLeft.x - 3 |
| 107 | && mousePositionAbsolute.x <= rect.topLeft.x + sliderbarRect.bottomRight.x + 3 |
| 108 | && mousePositionAbsolute.y >= rect.topLeft.y + sliderbarRect.topLeft.y - 3 |
| 109 | && mousePositionAbsolute.y <= rect.topLeft.y + sliderbarRect.bottomRight.y + 3; |
| 110 | } |
nothing calls this directly
no outgoing calls
no test coverage detected