Mercurial > hg > svcore
comparison base/Clipboard.h @ 1615:24dc8cb42755 single-point
Rename a number of classes and methods (including Point -> Event); comments
author | Chris Cannam |
---|---|
date | Thu, 07 Mar 2019 15:44:09 +0000 |
parents | 23a29e5dc0e9 |
children | d7ae9bfb015e |
comparison
equal
deleted
inserted
replaced
1614:2e14a7876945 | 1615:24dc8cb42755 |
---|---|
16 #ifndef SV_CLIPBOARD_H | 16 #ifndef SV_CLIPBOARD_H |
17 #define SV_CLIPBOARD_H | 17 #define SV_CLIPBOARD_H |
18 | 18 |
19 #include <vector> | 19 #include <vector> |
20 | 20 |
21 #include "Point.h" | 21 #include "Event.h" |
22 | 22 |
23 class Clipboard | 23 class Clipboard |
24 { | 24 { |
25 public: | 25 public: |
26 Clipboard(); | 26 Clipboard(); |
27 ~Clipboard(); | 27 ~Clipboard(); |
28 | 28 |
29 void clear(); | 29 void clear(); |
30 bool empty() const; | 30 bool empty() const; |
31 const PointVector &getPoints() const; | 31 const EventVector &getPoints() const; |
32 void setPoints(const PointVector &points); | 32 void setPoints(const EventVector &points); |
33 void addPoint(const Point &point); | 33 void addPoint(const Event &point); |
34 | 34 |
35 bool haveReferenceFrames() const; | 35 bool haveReferenceFrames() const; |
36 bool referenceFramesDiffer() const; | 36 bool referenceFramesDiffer() const; |
37 | 37 |
38 protected: | 38 protected: |
39 PointVector m_points; | 39 EventVector m_points; |
40 }; | 40 }; |
41 | 41 |
42 #endif | 42 #endif |