comparison base/Clipboard.h @ 872:afeb580b1b57 tonioni

Add methods to return new Clipboard points with particular characteristics (this is an immutable object)
author Chris Cannam
date Fri, 10 Jan 2014 15:21:01 +0000
parents e73a1a1e8f24
children 6a94bb528e9d
comparison
equal deleted inserted replaced
871:0b15c9328003 872:afeb580b1b57
32 Point(const Point &point); 32 Point(const Point &point);
33 Point &operator=(const Point &point); 33 Point &operator=(const Point &point);
34 34
35 bool haveFrame() const; 35 bool haveFrame() const;
36 long getFrame() const; 36 long getFrame() const;
37 Point withFrame(long frame) const;
37 38
38 bool haveValue() const; 39 bool haveValue() const;
39 float getValue() const; 40 float getValue() const;
41 Point withValue(float value) const;
40 42
41 bool haveDuration() const; 43 bool haveDuration() const;
42 size_t getDuration() const; 44 size_t getDuration() const;
45 Point withDuration(size_t duration) const;
43 46
44 bool haveLabel() const; 47 bool haveLabel() const;
45 QString getLabel() const; 48 QString getLabel() const;
49 Point withLabel(QString label) const;
46 50
47 bool haveLevel() const; 51 bool haveLevel() const;
48 float getLevel() const; 52 float getLevel() const;
53 Point withLevel(float level) const;
49 54
50 bool haveReferenceFrame() const; 55 bool haveReferenceFrame() const;
51 bool referenceFrameDiffers() const; // from point frame 56 bool referenceFrameDiffers() const; // from point frame
52 57
53 long getReferenceFrame() const; 58 long getReferenceFrame() const;