| 1 | // Aseprite |
| 2 | // Copyright (c) 2020 Igara Studio S.A. |
| 3 | // |
| 4 | // This program is distributed under the terms of |
| 5 | // the End-User License Agreement for Aseprite. |
| 6 | |
| 7 | #ifndef APP_UI_TILE_SOURCE_H_INCLUDED |
| 8 | #define APP_UI_TILE_SOURCE_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | #include "doc/tile.h" |
| 12 | #include "gfx/point.h" |
| 13 | |
| 14 | namespace app { |
| 15 | |
| 16 | class ITileSource { |
| 17 | public: |
| 18 | virtual ~ITileSource() { } |
| 19 | virtual doc::tile_t getTileByPosition(const gfx::Point& pos) = 0; |
| 20 | }; |
| 21 | |
| 22 | } // namespace app |
| 23 | |
| 24 | #endif |
| 25 | |