]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/button.h
Add Text class with multiline support
[libs/gltk.git] / source / button.h
index d13a4c094c22deade08f6fcbe9e0fcf4b656857a..31d87e1f0ba806f5dfc100c1c6bde41b20cb3a6c 100644 (file)
@@ -10,6 +10,7 @@ Distributed under the LGPL
 
 #include <sigc++/sigc++.h>
 #include <msp/gl/texture2d.h>
+#include "text.h"
 #include "widget.h"
 
 namespace Msp {
@@ -26,11 +27,12 @@ public:
        {
        public:
                Loader(Button &);
-               Button &get_object() const;
+       private:
+               void text(const std::string &);
        };
 
 private:
-       std::string text;
+       Text text;
        const GL::Texture2D *icon;
        bool pressed;