diff Framework/Scene2D/TextSceneLayer.h @ 602:03c4b998fcd0

display scene positions in the basic sample
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 29 Apr 2019 14:40:01 +0200
parents b9ce24c606ae
children 2d8ab34c8c91
line wrap: on
line diff
--- a/Framework/Scene2D/TextSceneLayer.h	Sat Apr 27 12:38:25 2019 +0200
+++ b/Framework/Scene2D/TextSceneLayer.h	Mon Apr 29 14:40:01 2019 +0200
@@ -38,17 +38,24 @@
     size_t         fontIndex_;
     BitmapAnchor   anchor_;
     unsigned int   border_;
+    uint64_t       revision_;
   
   public:
-    TextSceneLayer(double x,
-                   double y,
-                   const std::string& utf8,
-                   size_t fontIndex,
-                   BitmapAnchor anchor,
-                   unsigned int border);
+    TextSceneLayer();
 
     virtual ISceneLayer* Clone() const;
 
+    void SetPosition(double x,
+                     double y);
+
+    void SetText(const std::string& utf8);
+
+    void SetFontIndex(size_t fontIndex);
+
+    void SetAnchor(BitmapAnchor anchor);
+
+    void SetBorder(unsigned int border);
+
     double GetX() const
     {
       return x_;
@@ -91,7 +98,7 @@
 
     virtual uint64_t GetRevision() const
     {
-      return 0;
+      return revision_;
     }
   };
 }