Lines Matching refs:element
42 // We also store the location of the virtual elementCountth element.
43 // Thus fLocation[i + 1] - fLocation[i] is the size of the ith element
60 virtual float ElementLocation(int32 element)
62 if (element < 0 || element >= fCount)
65 return fLocations[element];
68 virtual float ElementSize(int32 element)
70 if (element < 0 || element >= fCount)
73 return fLocations[element + 1] - fLocations[element] - 1
218 ComplexLayouter::AddConstraints(int32 element, int32 length,
221 if (element < 0 || length <= 0 || element + length > fElementCount)
225 this, element, length, (int32)_min, (int32)_max, (int32)_preferred);
236 int32 end = element + length - 1;
238 while (*slot != NULL && (*slot)->start > element)
241 if (*slot != NULL && (*slot)->start == element) {
246 Constraint* constraint = new(nothrow) Constraint(element, end, min,
260 ComplexLayouter::SetWeight(int32 element, float weight)
262 if (element < 0 || element >= fElementCount)
265 fWeights[element] = max_c(weight, 0);