1 #ifndef MSP_GLTK_TEXT_H_
2 #define MSP_GLTK_TEXT_H_
15 Stores and renders text. Supports multiline text.
29 std::vector<Line> lines;
33 Text(const Style &, const std::string &);
35 void set_style(const Style *);
37 unsigned get_width() const;
38 unsigned get_height() const;
40 void set(const std::string &);
41 void erase(unsigned, unsigned);
42 void insert(unsigned, const std::string &);
43 const std::string &get() const { return text; }
44 unsigned size() const { return text.size(); }
46 void render(const Part &, const Geometry &) const;
48 Text &operator=(const std::string &);