Lines Matching defs:length
35 void FlexLayout::GetStartPos(const int16_t& length,
51 pos = length - validLengths[count];
52 /* if total length of children is too long or only one child, layout them centerly no matter what key word set.
54 } else if ((majorAlign_ == ALIGN_CENTER) || (validLengths[count] >= length) || (childsNum[count] == 1)) {
55 pos = (length - validLengths[count]) / 2; // 2: half
60 interval = (length - validLengths[count]) / childsNum[count];
63 interval = (length - validLengths[count]) / (childsNum[count] + 1);
66 interval = (length - validLengths[count]) / (childsNum[count] - 1);
71 void FlexLayout::GetNoWrapStartPos(const int16_t& length, int16_t& majorPos, int16_t& interval)
77 GetStartPos(length, majorPos, interval, 0, &totalValidLength, &childrenNum);
106 /* calculate valid length of all children views */