static
| 2687 | |
| 2688 | // static |
| 2689 | m2::AnyRectD TapInfo::GetBookmarkTapRect(m2::PointD const & mercator, ScreenBase const & screen) |
| 2690 | { |
| 2691 | static int constexpr kBmTouchPixelIncrease = 20; |
| 2692 | |
| 2693 | m2::AnyRectD result; |
| 2694 | double const bmAddition = kBmTouchPixelIncrease * VisualParams::Instance().GetVisualScale(); |
| 2695 | double const halfSize = VisualParams::Instance().GetTouchRectRadius(); |
| 2696 | double const pxWidth = halfSize; |
| 2697 | double const pxHeight = halfSize + bmAddition; |
| 2698 | screen.GetTouchRect(screen.GtoP(mercator) + m2::PointD(0, bmAddition), pxWidth, pxHeight, result); |
| 2699 | return result; |
| 2700 | } |
| 2701 | |
| 2702 | // static |
| 2703 | m2::AnyRectD TapInfo::GetRoutingPointTapRect(m2::PointD const & mercator, ScreenBase const & screen) |
nothing calls this directly
no test coverage detected