comparison view/View.h @ 1376:5a051ca3170e

Merge from branch zoom
author Chris Cannam
date Tue, 06 Nov 2018 11:13:13 +0000
parents 694004228ab7
children 28075cc658c9
comparison
equal deleted inserted replaced
1373:cca66ce390e0 1376:5a051ca3170e
102 */ 102 */
103 sv_frame_t getEndFrame() const; 103 sv_frame_t getEndFrame() const;
104 104
105 /** 105 /**
106 * Return the pixel x-coordinate corresponding to a given sample 106 * Return the pixel x-coordinate corresponding to a given sample
107 * frame (which may be negative). 107 * frame. The frame is permitted to be negative, and the result
108 * may be outside the currently visible area. But this should not
109 * be called with frame values very far away from the currently
110 * visible area, as that could lead to overflow. In that situation
111 * an error will be logged and 0 returned.
108 */ 112 */
109 int getXForFrame(sv_frame_t frame) const; 113 int getXForFrame(sv_frame_t frame) const;
110 114
111 /** 115 /**
112 * Return the closest frame to the given pixel x-coordinate. 116 * Return the closest frame to the given pixel x-coordinate.