Refactored stylable_element

This commit is contained in:
Bartek Kryza
2021-09-26 23:50:27 +02:00
parent 80ee88aa4b
commit d6b88e68ec
4 changed files with 23 additions and 11 deletions

View File

@@ -54,8 +54,13 @@ enum class relationship_t {
std::string to_string(relationship_t r);
struct stylable_element {
std::string style;
class stylable_element {
public:
void set_style(const std::string &style);
std::string style() const;
private:
std::string style_;
};
struct decorated_element {