Home
last modified time | relevance | path

Searched refs:toIndex (Results 1 - 25 of 31) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Drender_swiper.cpp773 auto toIndex = needReverse_ ? (itemCount_ - currentHoverIndex_ - 1) : currentHoverIndex_; in HandleClick() local
774 StartIndicatorAnimation(currentIndex_, toIndex); in HandleClick()
911 int32_t toIndex = 0; in SpringItems() local
912 toIndex = GreatNotEqual(scrollOffset_, 0.0) ? GetPrevIndex() : GetNextIndex(); in SpringItems()
913 if (currentIndex_ == toIndex) { in SpringItems()
1068 int32_t toIndex = 0; in MoveItems() local
1081 toIndex = GetPrevIndex(); in MoveItems()
1082 end = currentIndex_ == toIndex ? 0.0 : (scrollOffset_ < 0.0 ? 0.0 : nextItemOffset); in MoveItems()
1086 toIndex = currentIndex_; in MoveItems()
1090 toIndex in MoveItems()
1273 AddSwipeToTranslateListener(int32_t fromIndex, int32_t toIndex) AddSwipeToTranslateListener() argument
1293 AddSwipeToOpacityListener(int32_t fromIndex, int32_t toIndex) AddSwipeToOpacityListener() argument
1314 AddSwipeToIndicatorListener(int32_t fromIndex, int32_t toIndex) AddSwipeToIndicatorListener() argument
1333 CalculateEndOffset(int32_t fromIndex, int32_t toIndex, bool reverse) CalculateEndOffset() argument
1367 DoSwipeToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse) DoSwipeToAnimation() argument
1427 RedoSwipeToAnimation(int32_t toIndex, bool reverse) RedoSwipeToAnimation() argument
1625 int32_t toIndex = newDragOffset > 0 ? GetPrevIndex() : GetNextIndex(); UpdateScrollPosition() local
2221 auto toIndex = GetPrevIndex(); IndicatorSwipePrev() local
2227 auto toIndex = GetNextIndex(); IndicatorSwipeNext() local
2472 MoveIndicator(int32_t toIndex, double offset, bool isAuto) MoveIndicator() argument
2853 UpdateIndicatorOffset(int32_t fromIndex, int32_t toIndex, double value) UpdateIndicatorOffset() argument
2937 StartIndicatorAnimation(int32_t fromIndex, int32_t toIndex, bool isLoop) StartIndicatorAnimation() argument
3302 int32_t toIndex = currentIndex_ + backNum; SetSwiperHidden() local
[all...]
H A Drender_swiper.h215 void MoveIndicator(int32_t toIndex, double offset, bool isAuto = false);
222 void StartIndicatorAnimation(int32_t fromIndex, int32_t toIndex, bool isLoop = false);
241 void UpdateIndicatorOffset(int32_t fromIndex, int32_t toIndex, double value);
490 void AddSwipeToTranslateListener(int32_t fromIndex, int32_t toIndex);
491 void AddSwipeToOpacityListener(int32_t fromIndex, int32_t toIndex);
492 void AddSwipeToIndicatorListener(int32_t fromIndex, int32_t toIndex);
493 double CalculateEndOffset(int32_t fromIndex, int32_t toIndex, bool reverse);
494 void DoSwipeToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse);
495 void RedoSwipeToAnimation(int32_t toIndex, bool reverse);
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_tabs_function.cpp55 auto toIndex = 0; in GetToIndex() local
57 toIndex = proxy_->GetToIndex(); in GetToIndex()
59 auto toRef = JSRef<JSVal>::Make(JSVal(ToJSValue(toIndex))); in GetToIndex()
89 JSRef<JSVal> JsTabsFunction::Execute(int32_t fromIndex, int32_t toIndex) in Execute() argument
92 JSRef<JSVal> to = JSRef<JSVal>::Make(ToJSValue(toIndex)); in Execute()
H A Djs_tabs_function.h37 JSRef<JSVal> Execute(int32_t fromIndex, int32_t toIndex);
/foundation/graphic/graphic_3d/lume/metaobject/src/container/
H A Dcontainer_base.cpp202 ChildMovedInfo ContainerBase::MoveInternal(SizeType fromIndex, SizeType toIndex) in MoveInternal() argument
209 toIndex = BASE_NS::Math::min(toIndex, size - 1); in MoveInternal()
211 if (fromIndex == toIndex) { in MoveInternal()
214 if (fromIndex > toIndex) { in MoveInternal()
216 const auto last = children_.rbegin() + (size - toIndex); in MoveInternal()
220 const auto last = children_.begin() + toIndex + 1; in MoveInternal()
223 return { child, fromIndex, toIndex, parent_ }; in MoveInternal()
226 bool ContainerBase::Move(SizeType fromIndex, SizeType toIndex) in Move() argument
231 info = MoveInternal(fromIndex, toIndex); in Move()
242 Move(const IObject::Ptr& child, SizeType toIndex) Move() argument
[all...]
H A Dcontainer.cpp124 IContainer::SizeType toIndex = 0; in Replace() local
139 toIndex = index; in Replace()
176 toIndex = children_.size(); in Replace()
184 ChildChangedInfo addedInfo { added, toIndex, parent_ }; in Replace()
185 ChildChangedInfo removedInfo { removed, toIndex, parent_ }; in Replace()
210 Invoke<IOnChildMoved>(OnMoved(), ChildMovedInfo { moved, fromIndex, toIndex, parent_ }); in Replace()
H A Dcontainer_base.h50 bool Move(SizeType fromIndex, SizeType toIndex) override;
51 bool Move(const IObject::Ptr& child, SizeType toIndex) override;
82 ChildMovedInfo MoveInternal(SizeType fromIndex, SizeType toIndex);
/foundation/arkui/ace_engine/frameworks/core/components/stepper/
H A Drender_stepper.h179 void InitStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse);
180 void AddStepperToTranslateListener(int32_t fromIndex, int32_t toIndex);
181 void AddStepperToOpacityListener(int32_t fromIndex, int32_t toIndex);
182 void AddStepperToStopListener(int32_t fromIndex, int32_t toIndex);
183 void DoStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse);
H A Dstepper_animation_controller.cpp224 void StepperAnimationController::PlayStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse) in PlayStepperToAnimation() argument
241 if (toIndex > fromIndex) { in PlayStepperToAnimation()
H A Dstepper_animation_controller.h87 void PlayStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse);
H A Drender_stepper.cpp689 int32_t toIndex = GetPrevIndex(); in StepperPrev() local
690 FireBackEvent(currentIndex_, toIndex); in StepperPrev()
691 StepperTo(toIndex, false); in StepperPrev()
696 int32_t toIndex = GetNextIndex(); in StepperNext() local
697 FireNextEvent(currentIndex_, toIndex); in StepperNext()
698 StepperTo(toIndex, false); in StepperNext()
717 void RenderStepper::DoStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse) in DoStepperToAnimation() argument
730 stepperAnimationController_->SetAnimationStopCallback([weak, fromIndex, toIndex]() { in DoStepperToAnimation()
741 stepperAnimationController_->PlayStepperToAnimation(fromIndex, toIndex, reverse); in DoStepperToAnimation()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_content_transition_proxy.h44 void SetToIndex(int32_t toIndex) in SetToIndex() argument
46 toIndex_ = toIndex; in SetToIndex()
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/
H A Dobject_container.h92 bool Move(IContainer::SizeType fromIndex, IContainer::SizeType toIndex) override
94 return container_->Move(fromIndex, toIndex);
96 bool Move(const IObject::Ptr& child, IContainer::SizeType toIndex) override
98 return container_->Move(child, toIndex);
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/
H A Dstaggered_animation_state.cpp138 auto toIndex = info.to; in ChildMoved() local
141 toIndex = BASE_NS::Math::min(toIndex, size - 1); in ChildMoved()
142 if (fromIndex == toIndex) { in ChildMoved()
146 if (fromIndex > toIndex) { in ChildMoved()
148 const auto last = children_.rbegin() + static_cast<SegmentVector::difference_type>(size - toIndex); in ChildMoved()
152 const auto last = children_.begin() + static_cast<SegmentVector::difference_type>(toIndex + 1); in ChildMoved()
H A Danimation.h272 bool Move(SizeType fromIndex, SizeType toIndex) override
274 return GetContainer().Move(fromIndex, toIndex);
276 bool Move(const IObject::Ptr& child, SizeType toIndex) override
278 return GetContainer().Move(child, toIndex);
/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dmetadata.cpp277 bool MetadataPropertyContainer::Move(SizeType fromIndex, SizeType toIndex) in Move() argument
279 return impl_.Move(fromIndex, toIndex); in Move()
281 bool MetadataPropertyContainer::Move(const IObject::Ptr& child, SizeType toIndex) in Move() argument
283 return impl_.Move(child, toIndex); in Move()
H A Dmetadata.h96 bool Move(SizeType fromIndex, SizeType toIndex) override;
97 bool Move(const IObject::Ptr& child, SizeType toIndex) override;
/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dgrid_layout_manager.h45 void LayoutToItem(int32_t toIndex) override;
H A Drender_list.cpp473 int32_t toIndex = items_.rbegin()->first; in RecycleAllChild() local
475 return RecycleByRange(fromIndex, toIndex); in RecycleAllChild()
485 int32_t toIndex = items_.rbegin()->first; in SyncIndex() local
490 if (end > 0 && toIndex > end) { in SyncIndex()
491 RecycleByRange(end + 1, toIndex); in SyncIndex()
H A Dlist_layout_manager.h53 void LayoutToItem(int32_t toIndex) override;
H A Dlayout_manager.h72 virtual void LayoutToItem(int32_t toIndex) {} in LayoutToItem() argument
/foundation/graphic/graphic_3d/lume/metaobject/src/model/
H A Dcomposite_object_provider.cpp162 size_t toIndex = CalculateIndex(provider, to.Index()); in OnMovedProviderData() local
163 if (fromIndex != -1 && toIndex != -1) { in OnMovedProviderData()
166 DataModelIndex { toIndex, to.GetDimensionPointer() }); in OnMovedProviderData()
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/
H A Dintf_container.h173 * @param toIndex The index to move the object to. The target position is the position in the
177 virtual bool Move(SizeType fromIndex, SizeType toIndex) = 0;
183 * @param toIndex The index to move the object to. The target position is the position in the
187 virtual bool Move(const IObject::Ptr& child, SizeType toIndex) = 0;
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_pattern.h450 void OnCustomContentTransition(int32_t toIndex);
451 void OnCustomAnimationFinish(int32_t fromIndex, int32_t toIndex, bool hasOnChanged);
454 void SetCustomAnimationToIndex(int32_t toIndex) in SetCustomAnimationToIndex() argument
456 customAnimationToIndex_ = toIndex; in SetCustomAnimationToIndex()
823 void TriggerCustomContentTransitionEvent(int32_t fromIndex, int32_t toIndex);
/foundation/multimedia/media_foundation/tests/unittest/avbuffer/
H A Davbuffer_unit_test.cpp289 for (int32_t toIndex = 0; toIndex < TEST_LOOP_DEPTH; ++toIndex) { in CheckMetaTransParcel()

Completed in 23 milliseconds

12