comparison 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
comparison
equal deleted inserted replaced
600:6129b1e5ba42 602:03c4b998fcd0
36 double y_; 36 double y_;
37 std::string utf8_; 37 std::string utf8_;
38 size_t fontIndex_; 38 size_t fontIndex_;
39 BitmapAnchor anchor_; 39 BitmapAnchor anchor_;
40 unsigned int border_; 40 unsigned int border_;
41 uint64_t revision_;
41 42
42 public: 43 public:
43 TextSceneLayer(double x, 44 TextSceneLayer();
44 double y,
45 const std::string& utf8,
46 size_t fontIndex,
47 BitmapAnchor anchor,
48 unsigned int border);
49 45
50 virtual ISceneLayer* Clone() const; 46 virtual ISceneLayer* Clone() const;
47
48 void SetPosition(double x,
49 double y);
50
51 void SetText(const std::string& utf8);
52
53 void SetFontIndex(size_t fontIndex);
54
55 void SetAnchor(BitmapAnchor anchor);
56
57 void SetBorder(unsigned int border);
51 58
52 double GetX() const 59 double GetX() const
53 { 60 {
54 return x_; 61 return x_;
55 } 62 }
89 return false; 96 return false;
90 } 97 }
91 98
92 virtual uint64_t GetRevision() const 99 virtual uint64_t GetRevision() const
93 { 100 {
94 return 0; 101 return revision_;
95 } 102 }
96 }; 103 };
97 } 104 }