| 248 | } |
| 249 | |
| 250 | df::Touch MapWidget::GetSymmetrical(df::Touch const & touch) const |
| 251 | { |
| 252 | m2::PointD const pixelCenter = m_framework.GetVisiblePixelCenter(); |
| 253 | m2::PointD const symmetricalLocation = pixelCenter + pixelCenter - m2::PointD(touch.m_location); |
| 254 | |
| 255 | df::Touch result; |
| 256 | result.m_id = touch.m_id + 1; |
| 257 | result.m_location = symmetricalLocation; |
| 258 | |
| 259 | return result; |
| 260 | } |
| 261 | |
| 262 | void MapWidget::OnViewportChanged(ScreenBase const & screen) |
| 263 | { |
nothing calls this directly
no test coverage detected