Lines Matching refs:alignment

36  * found in TeX where there is alignment of the
507 * Determines the desired alignment for this view along an
508 * axis. This is implemented to give the total alignment
509 * needed to position the children with the alignment points
516 * @return the desired alignment >= 0.0f && <= 1.0f; this should
517 * be a value between 0.0 and 1.0 where 0 indicates alignment at the
518 * origin and 1.0 indicates alignment to the full span
519 * away from the origin; an alignment of 0.5 would be the
526 return majorRequest.alignment;
528 return minorRequest.alignment;
879 r.alignment = 0.5f;
910 r.alignment = 0.5f;
975 // if the alignment is 0 then we need to fit into the descent
978 // if the alignment is 1 then we need to fit into the ascent
1014 r.alignment = 0.5f;
1063 // calculate the preferred alignment as the preferred ascent divided by the preferred span
1065 r.alignment = (float)totalAscent.preferred / r.preferred;
1069 if (r.alignment == 0.0f) {
1070 // if the preferred alignment is 0 then the minimum and maximum spans are simply
1074 } else if (r.alignment == 1.0f) {
1075 // if the preferred alignment is 1 then the minimum and maximum spans are simply
1080 // we want to honor the preferred alignment so we calculate two possible minimum
1081 // span values using 1) the minimum ascent and the alignment, and 2) the minimum
1082 // descent and the alignment. We'll choose the larger of these two numbers.
1083 r.minimum = Math.round(Math.max(totalAscent.minimum / r.alignment,
1084 totalDescent.minimum / (1.0f - r.alignment)));
1086 r.maximum = Math.round(Math.min(totalAscent.maximum / r.alignment,
1087 totalDescent.maximum / (1.0f - r.alignment)));