| 1 | // Aseprite |
| 2 | // Copyright (C) 2019 Igara Studio S.A. |
| 3 | // Copyright (C) 2017 David Capello |
| 4 | // |
| 5 | // This program is distributed under the terms of |
| 6 | // the End-User License Agreement for Aseprite. |
| 7 | |
| 8 | #ifndef APP_WRAP_POINT_H_INCLUDED |
| 9 | #define APP_WRAP_POINT_H_INCLUDED |
| 10 | #pragma once |
| 11 | |
| 12 | #include "filters/tiled_mode.h" |
| 13 | #include "gfx/point.h" |
| 14 | #include "gfx/size.h" |
| 15 | |
| 16 | namespace app { |
| 17 | |
| 18 | gfx::Point wrap_point(const filters::TiledMode tiledMode, |
| 19 | const gfx::Size& spriteSize, |
| 20 | const gfx::Point& pt, |
| 21 | const bool clamp); |
| 22 | |
| 23 | gfx::PointF wrap_pointF(const filters::TiledMode tiledMode, |
| 24 | const gfx::Size& spriteSize, |
| 25 | const gfx::PointF& pt); |
| 26 | |
| 27 | } // namespace app |
| 28 | |
| 29 | #endif |
| 30 | |