| 1 | // Aseprite |
| 2 | // Copyright (C) 2016 David Capello |
| 3 | // |
| 4 | // This program is distributed under the terms of |
| 5 | // the End-User License Agreement for Aseprite. |
| 6 | |
| 7 | #ifndef APP_UI_COLOR_SOURCE_H_INCLUDED |
| 8 | #define APP_UI_COLOR_SOURCE_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | #include "app/color.h" |
| 12 | #include "gfx/point.h" |
| 13 | |
| 14 | namespace app { |
| 15 | |
| 16 | class IColorSource { |
| 17 | public: |
| 18 | virtual ~IColorSource() { } |
| 19 | virtual app::Color getColorByPosition(const gfx::Point& pos) = 0; |
| 20 | }; |
| 21 | |
| 22 | } // namespace app |
| 23 | |
| 24 | #endif |
| 25 | |