Lines Matching refs:bounds
195 const VGfloat *bounds,
200 if (bounds) {
201 coords[2] = MIN2(coords[2], bounds[2]);
203 if ((coords[0] + coords[2]) > (bounds[0] + bounds[2])) {
204 coords[2] = (bounds[0] + bounds[2]) - coords[0];
210 const VGfloat *bounds,
215 if (bounds) {
216 coords[3] = MIN2(coords[3], bounds[3]);
217 if ((coords[1] + coords[3]) > (bounds[1] + bounds[3])) {
218 coords[3] = (bounds[1] + bounds[3]) - coords[1];
224 const VGfloat bounds[4],
227 /* if outside the bounds */
228 if (coords[0] > (bounds[0] + bounds[2]) ||
229 coords[1] > (bounds[1] + bounds[3]) ||
230 (coords[0] + coords[2]) < bounds[0] ||
231 (coords[1] + coords[3]) < bounds[1]) {
242 if (coords[0] < bounds[0]) {
243 shift[0] = bounds[0] - coords[0];
245 coords[0] = bounds[0];
250 if (coords[1] < bounds[1]) {
251 shift[1] = bounds[1] - coords[1];
253 coords[1] = bounds[1];
257 shift[2] = bounds[2] - coords[2];
258 shift[3] = bounds[3] - coords[3];
260 coords[2] = MIN2(coords[2], bounds[2]);
261 coords[3] = MIN2(coords[3], bounds[3]);
264 if ((coords[0] + coords[2]) > (bounds[0] + bounds[2])) {
265 coords[2] = (bounds[0] + bounds[2]) - coords[0];
267 if ((coords[1] + coords[3]) > (bounds[1] + bounds[3])) {
268 coords[3] = (bounds[1] + bounds[3]) - coords[1];
271 /* if outside the bounds */
272 if ((coords[0] + coords[2]) < bounds[0] ||
273 (coords[1] + coords[3]) < bounds[1]) {