unsigned width;
};
- const Style *const &style;
+ const Style *style;
std::string text;
std::vector<Line> lines;
public:
- Text(const Style *const &);
- Text(const Style *const &, const std::string &);
+ Text();
+ Text(const Style &, const std::string &);
+
+ void set_style(const Style *);
unsigned get_width() const;
unsigned get_height() const;
const std::string &get() const { return text; }
unsigned size() const { return text.size(); }
- void update_style();
-
void render(const Part &, const Geometry &) const;
Text &operator=(const std::string &);