Searched refs:middleIndex (Results 1 – 5 of 5) sorted by relevance
47 auto middleIndex = textPickerColumnPattern->GetHalfDisplayCounts(); in GetBeginIndex() local58 …return (static_cast<int32_t>(currentIndex + totalIndex) - middleIndex) % static_cast<int32_t>(tota… in GetBeginIndex()67 auto middleIndex = textPickerColumnPattern->GetHalfDisplayCounts(); in GetEndIndex() local77 return (static_cast<int32_t>(currentIndex) + middleIndex) % static_cast<int32_t>(totalIndex); in GetEndIndex()
492 auto middleIndex = showCount / 2; // the center option is selected. in FlushCurrentTextOptions() local563 auto middleIndex = showCount / 2; // the center option is selected. in FlushCurrentImageOptions() local617 auto middleIndex = showCount / 2; // the center option is selected. in FlushCurrentMixtureOptions() local860 if (currentIndex == middleIndex) { in UpdatePickerTextProperties()863 } else if ((currentIndex == middleIndex + 1) || (currentIndex == middleIndex - 1)) { in UpdatePickerTextProperties()868 if (currentIndex < middleIndex) { in UpdatePickerTextProperties()870 } else if (currentIndex > middleIndex) { in UpdatePickerTextProperties()1133 int32_t middleIndex = static_cast<int32_t>(GetShowOptionCount()) / HALF_NUMBER; in HandleDragEnd() local1684 int32_t middleIndex = static_cast<int32_t>(GetShowOptionCount()) / HALF_NUMBER; in OnAroundButtonClick() local1685 int32_t step = param->itemIndex - middleIndex; in OnAroundButtonClick()[all …]
415 …r<TextPickerLayoutProperty>& textPickerLayoutProperty, uint32_t currentIndex, uint32_t middleIndex,
846 uint32_t middleIndex = GetShowCount() / 2; in HandleDragEnd() local847 …auto shiftDistance = (dir == DatePickerScrollDirection::UP) ? optionProperties_[middleIndex].prevD… in HandleDragEnd()848 … : optionProperties_[middleIndex].nextDistance; in HandleDragEnd()1229 int32_t middleIndex = static_cast<int32_t>(GetShowCount()) / 2; in OnAroundButtonClick() local1230 int32_t step = param->itemIndex_ - middleIndex; in OnAroundButtonClick()1238 …(step > 0 ? optionProperties_[middleIndex].prevDistance : optionProperties_[middleIndex].nextDista… in OnAroundButtonClick()1262 uint32_t middleIndex = GetShowCount() / 2; in PlayRestAnimation() local1263 …double shiftDistance = (dir == DatePickerScrollDirection::UP) ? optionProperties_[middleIndex].pre… in PlayRestAnimation()1264 … : optionProperties_[middleIndex].nextDistance; in PlayRestAnimation()
897 int32_t middleIndex = static_cast<int32_t>(GetShowCount()) / MIDDLE_CHILD_INDEX; in HandleDragEnd() local898 …auto shiftDistance = (dir == TimePickerScrollDirection::UP) ? optionProperties_[middleIndex].prevD… in HandleDragEnd()899 … : optionProperties_[middleIndex].nextDistance; in HandleDragEnd()1372 int32_t middleIndex = static_cast<int32_t>(GetShowCount()) / 2; in OnAroundButtonClick() local1373 int32_t step = param->itemIndex_ - middleIndex; in OnAroundButtonClick()1381 …(step > 0 ? optionProperties_[middleIndex].prevDistance : optionProperties_[middleIndex].nextDista… in OnAroundButtonClick()1411 int32_t middleIndex = static_cast<int32_t>(GetShowCount()) / 2; in PlayRestAnimation() local1412 …double shiftDistance = (dir == TimePickerScrollDirection::UP) ? optionProperties_[middleIndex].pre… in PlayRestAnimation()1413 … : optionProperties_[middleIndex].nextDistance; in PlayRestAnimation()