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