Lines Matching refs:weight

171  * Unless you specify a weight for at least one component
174 * This is because when the weight is zero (the default),
454 * If <code>columnWeights[i]</code> &gt; weight for column i, then
455 * column i is assigned the weight in <code>columnWeights[i]</code>.
469 * If <code>rowWeights[i]</code> &gt; weight for row i, then
470 * row i is assigned the weight in <code>rowWeights[i]</code>.
1005 double weight_diff, weight;
1367 * Figure out if we should use this slave\'s weight. If the weight
1368 * is less than the total weight spanned by the width of the cell,
1369 * then discard the weight. Otherwise split the difference
1377 weight = 0.0;
1379 weight += r.weightX[k];
1380 for (k = constraints.tempX; weight > 0.0 && k < px; k++) {
1382 double dx = (wt * weight_diff) / weight;
1385 weight -= wt;
1406 weight = 0.0;
1408 weight += r.weightX[k];
1409 for (k = constraints.tempX; weight > 0.0 && k < px; k++) {
1411 int dx = (int)((wt * ((double)pixels_diff)) / weight);
1414 weight -= wt;
1428 * Figure out if we should use this slave's weight. If the weight
1429 * is less than the total weight spanned by the height of the cell,
1430 * then discard the weight. Otherwise split it the difference
1438 weight = 0.0;
1440 weight += r.weightY[k];
1441 for (k = constraints.tempY; weight > 0.0 && k < py; k++) {
1443 double dy = (wt * weight_diff) / weight;
1446 weight -= wt;
1513 weight = 0.0;
1515 weight += r.weightY[k];
1516 for (k = constraints.tempY; weight > 0.0 && k < py; k++) {
1518 int dy = (int)((wt * ((double)pixels_diff)) / weight);
1521 weight -= wt;
2045 double weight;
2099 weight = 0.0;
2101 weight += info.weightX[i];
2102 if (weight > 0.0) {
2104 int dx = (int)(( ((double)diffw) * info.weightX[i]) / weight);
2122 weight = 0.0;
2124 weight += info.weightY[i];
2125 if (weight > 0.0) {
2127 int dy = (int)(( ((double)diffh) * info.weightY[i]) / weight);