comparison layer/ScrollableImageCache.h @ 1081:cbc7c8675706 spectrogram-minor-refactor

Comments
author Chris Cannam
date Thu, 30 Jun 2016 18:21:11 +0100
parents 7ebfb61b1701
children c8c747783110
comparison
equal deleted inserted replaced
1080:2e5945b87aca 1081:cbc7c8675706
120 120
121 /** 121 /**
122 * Take a left coordinate and width describing a region, and 122 * Take a left coordinate and width describing a region, and
123 * adjust them so that they are contiguous with the cache valid 123 * adjust them so that they are contiguous with the cache valid
124 * region and so that the union of the adjusted region with the 124 * region and so that the union of the adjusted region with the
125 * cache valid region contains the supplied region. 125 * cache valid region contains the supplied region. Does not
126 * modify anything about the cache, only about the arguments.
126 */ 127 */
127 void adjustToTouchValidArea(int &left, int &width, 128 void adjustToTouchValidArea(int &left, int &width,
128 bool &isLeftOfValidArea) const; 129 bool &isLeftOfValidArea) const;
130
129 /** 131 /**
130 * Draw from an image onto the cache. The supplied image must have 132 * Draw from an image onto the cache. The supplied image must have
131 * the same height as the cache and the full height is always 133 * the same height as the cache and the full height is always
132 * drawn. The left and width parameters determine the target 134 * drawn. The left and width parameters determine the target
133 * region of the cache, the imageLeft and imageWidth parameters 135 * region of the cache, the imageLeft and imageWidth parameters