MCPcopy Create free account
hub / github.com/Snapchat/Valdi / makeOffset

Method makeOffset

snap_drawing/src/snap_drawing/cpp/Utils/Geometry.hpp:180–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 constexpr Rect makeOffset(Scalar dx, Scalar dy) const {
181 return Rect::makeLTRB(left + dx, top + dy, right + dx, bottom + dy);
182 }
183
184 constexpr void offsetX(Scalar dx) {
185 left += dx;

Callers 6

drawMethod · 0.45
convertRectToParentMethod · 0.45
convertPointToParentMethod · 0.45
onScrollWheelMethod · 0.45
onDecelerateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected