X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftext.h;h=d964aa19bbf4575ce7d10c9ceea743d38a15017c;hb=6081ed9020ad22214a8e5b3829092f97b12d7c71;hp=7be119216aae4086210e8cfec8133be9b65a2c8d;hpb=a87d05583cb7dffaf0e0f5eb9f9b2fc0bcf656e1;p=libs%2Fgltk.git diff --git a/source/text.h b/source/text.h index 7be1192..d964aa1 100644 --- a/source/text.h +++ b/source/text.h @@ -24,13 +24,15 @@ private: unsigned width; }; - const Style *const &style; + const Style *style; std::string text; std::vector 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; @@ -41,8 +43,6 @@ public: 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 &);