| 1 | // Aseprite UI Library |
| 2 | // Copyright (C) 2001-2013 David Capello |
| 3 | // |
| 4 | // This file is released under the terms of the MIT license. |
| 5 | // Read LICENSE.txt for more information. |
| 6 | |
| 7 | #ifndef UI_LAYOUT_IO_H_INCLUDED |
| 8 | #define UI_LAYOUT_IO_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | #include <string> |
| 12 | |
| 13 | namespace ui { |
| 14 | |
| 15 | class Widget; |
| 16 | |
| 17 | class LayoutIO |
| 18 | { |
| 19 | public: |
| 20 | virtual ~LayoutIO() { } |
| 21 | virtual std::string loadLayout(Widget* widget) = 0; |
| 22 | virtual void saveLayout(Widget* widget, const std::string& str) = 0; |
| 23 | }; |
| 24 | |
| 25 | } // namespace ui |
| 26 | |
| 27 | #endif |
| 28 | |