1 | // Aseprite Document Library |
2 | // Copyright (c) 2001-2015 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 DOC_BRUSH_TYPE_H_INCLUDED |
8 | #define DOC_BRUSH_TYPE_H_INCLUDED |
9 | #pragma once |
10 | |
11 | #include <string> |
12 | |
13 | namespace doc { |
14 | |
15 | enum BrushType { |
16 | kCircleBrushType = 0, |
17 | kSquareBrushType = 1, |
18 | kLineBrushType = 2, |
19 | kImageBrushType = 3, |
20 | |
21 | kFirstBrushType = kCircleBrushType, |
22 | kLastBrushType = kImageBrushType, |
23 | }; |
24 | |
25 | std::string brush_type_to_string_id(BrushType brushType); |
26 | BrushType string_id_to_brush_type(const std::string& s); |
27 | |
28 | } // namespace doc |
29 | |
30 | #endif |
31 | |