comparison Framework/Scene2D/PointerEvent.h @ 617:7efa2543699d

simplification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 May 2019 18:21:59 +0200
parents b716763571ad
children 00e6bff9ea39 2d8ab34c8c91
comparison
equal deleted inserted replaced
616:97926984d5d0 617:7efa2543699d
39 public: 39 public:
40 PointerEvent(); 40 PointerEvent();
41 41
42 ScenePoint2D GetMainPosition() const; 42 ScenePoint2D GetMainPosition() const;
43 43
44 void AddPosition(const ScenePoint2D& p)
45 {
46 positions_.push_back(p);
47 }
48
44 void AddPosition(double x, 49 void AddPosition(double x,
45 double y) 50 double y)
46 { 51 {
47 positions_.push_back(ScenePoint2D(x, y)); 52 positions_.push_back(ScenePoint2D(x, y));
48 } 53 }
49 54
50 // Add the center of the pixel
51 void AddIntegerPosition(int x,
52 int y);
53
54 size_t GetPositionsCount() const 55 size_t GetPositionsCount() const
55 { 56 {
56 return positions_.size(); 57 return positions_.size();
57 } 58 }
58 59