1 | #ifndef FASTUIDRAW_DEMO_READ_PATH_HPP |
2 | #define FASTUIDRAW_DEMO_READ_PATH_HPP |
3 | |
4 | #include <string> |
5 | #include <fastuidraw/path.hpp> |
6 | |
7 | /* Read path data from an std::string and append that |
8 | data to path. The format of the input is: |
9 | |
10 | [ marks the start of a closed outline |
11 | ] marks the end of a closed outline |
12 | { marks the start of an open outline |
13 | } marks the end of an open outline |
14 | [[ marks the start of a sequence of control points |
15 | ]] marks the end of a sequence of control points |
16 | arc marks an arc edge, the next value is the angle in degres |
17 | value0 value1 marks a coordinate (control point of edge point) |
18 | */ |
19 | void |
20 | read_path(fastuidraw::Path &path, const std::string &source, |
21 | std::string *dst_cpp_code = nullptr); |
22 | |
23 | #endif |
24 | |