comparison base/View.h @ 15:47500c27ac26

* Add getXForFrame / getFrameForX in preference to using the zoom level everywhere
author Chris Cannam
date Mon, 30 Jan 2006 13:19:42 +0000
parents f67ddc287bc3
children cc98d496d52b
comparison
equal deleted inserted replaced
14:b101cc2ae1ab 15:47500c27ac26
83 * width and zoom level. 83 * width and zoom level.
84 */ 84 */
85 virtual size_t getEndFrame() const; 85 virtual size_t getEndFrame() const;
86 86
87 /** 87 /**
88 * Return the pixel x-coordinate corresponding to a given sample
89 * frame (which may be negative).
90 */
91 int getXForFrame(long frame) const;
92
93 /**
94 * Return the closest frame to the given pixel x-coordinate.
95 */
96 long getFrameForX(int x) const;
97
98 /**
88 * Return the zoom level, i.e. the number of frames per pixel. 99 * Return the zoom level, i.e. the number of frames per pixel.
89 */ 100 */
90 virtual int getZoomLevel() const { return m_zoomLevel; } 101 virtual int getZoomLevel() const { return m_zoomLevel; }
91 102
92 /** 103 /**