MCPcopy Create free account
hub / github.com/comaps/comaps / CheckBorders

Function CheckBorders

libs/drape_frontend/screen_operations.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69bool CheckBorders(ScreenBase const & screen)
70{
71 m2::RectD const & r = screen.ClipRect();
72 m2::RectD const & worldR = df::GetWorldRect();
73
74 return (r.IsRectInside(worldR) || worldR.IsRectInside(r));
75}
76
77bool CanShrinkInto(ScreenBase const & screen, m2::RectD const & boundRect)
78{

Callers 3

ApplyScaleFunction · 0.85
DoDragMethod · 0.85
ScaleImplMethod · 0.85

Calls 2

GetWorldRectFunction · 0.85
IsRectInsideMethod · 0.45

Tested by

no test coverage detected