Home
last modified time | relevance | path

Searched refs:swiper (Results 1 – 25 of 121) sorted by relevance

12345

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/swiper/
H A Dswiper_declaration.cpp60 …[](const std::string& val, SwiperDeclaration& swiper) { swiper.SetAutoPlay(StringToBool(val)); } }, in SetSpecializedAttr()
90 … SwiperDeclaration& swiper) { swiper.SetAutoPlayInterval(StringToDouble(val)); } }, in SetSpecializedAttr()
126 swiper.SetFadeColor(swiper.ParseColor(val)); in SetSpecializedStyle()
130 swiper.indicator_->SetBottom(swiper.ParseDimension(val)); in SetSpecializedStyle()
134 swiper.indicator_->SetColor(swiper.ParseColor(val)); in SetSpecializedStyle()
138 swiper.indicator_->SetLeft(swiper.ParseDimension(val)); in SetSpecializedStyle()
142 swiper.indicator_->SetRight(swiper.ParseDimension(val)); in SetSpecializedStyle()
146 swiper.indicator_->SetSelectedColor(swiper.ParseColor(val)); in SetSpecializedStyle()
158 swiper.indicator_->SetTop(swiper.ParseDimension(val)); in SetSpecializedStyle()
162 swiper.SetNextMargin(swiper.ParseDimension(val)); in SetSpecializedStyle()
[all …]
H A Dswiper_declaration.h387 bool operator==(const SwiperDeclaration& swiper) const
389 return GetDuration() == swiper.GetDuration() &&
390 GetAxis() == swiper.GetAxis() &&
391 IsLoop() == swiper.IsLoop() &&
392 IsAutoPlay() == swiper.IsAutoPlay() &&
394 GetCachedSize() == swiper.GetCachedSize() &&
396 GetEdgeEffect() == swiper.GetEdgeEffect() &&
398 GetDisplayMode() == swiper.GetDisplayMode() &&
400 GetItemSpace() == swiper.GetItemSpace() &&
401 GetFadeColor() == swiper.GetFadeColor() &&
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dswiper_model_impl.cpp52 if (swiper) { in SetDirection()
61 if (swiper) { in SetIndex()
70 if (!swiper) { in SetDisplayMode()
81 if (!swiper) { in SetDisplayCount()
91 if (swiper) { in SetShowIndicator()
103 if (swiper) { in SetItemSpace()
112 if (swiper) { in SetCachedCount()
121 if (swiper) { in SetAutoPlay()
130 if (swiper) { in SetAutoPlayInterval()
139 if (swiper) { in SetDuration()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_helper.cpp26 CHECK_NULL_VOID(swiper); in InitSwiperController()
27 swiper->SwipeTo(index); in InitSwiperController()
32 CHECK_NULL_VOID(swiper); in InitSwiperController()
38 CHECK_NULL_VOID(swiper); in InitSwiperController()
42 swiper->ShowNext(); in InitSwiperController()
47 CHECK_NULL_VOID(swiper); in InitSwiperController()
51 swiper->ShowPrevious(); in InitSwiperController()
56 CHECK_NULL_VOID(swiper); in InitSwiperController()
63 CHECK_NULL_VOID(swiper); in InitSwiperController()
64 swiper->FinishAnimation(); in InitSwiperController()
[all …]
H A Dswiper_helper.h28 …tic void SaveDigitIndicatorProperty(const RefPtr<FrameNode>& indicatorNode, SwiperPattern& swiper);
29 …tatic void SaveDotIndicatorProperty(const RefPtr<FrameNode>& indicatorNode, SwiperPattern& swiper);
31 static void DumpAdvanceInfo(SwiperPattern& swiper);
37 static void DumpInfoAddPositionDesc(SwiperPattern& swiper);
38 static void DumpInfoAddGestureDesc(SwiperPattern& swiper);
39 static void DumpInfoAddAnimationDesc(SwiperPattern& swiper);
H A Dswiper_pattern.cpp666swiper->targetIndex_.has_value() ? swiper->targetIndex_.value() : swiper->currentIndex_; in InitSurfaceChangedCallback()
669 swiper->StopPropertyTranslateAnimation(swiper->isFinishAnimation_); in InitSurfaceChangedCallback()
1053 swiper->jumpIndex_ = swiper->currentIndex_; in OnDirtyLayoutWrapperSwap()
3192swiper->FireAnimationStartEvent(swiper->GetLoopIndex(swiper->currentIndex_), nextIndex, info); in PlayPropertyTranslateAnimation()
3199swiper->FireAnimationStartEvent(swiper->GetLoopIndex(swiper->currentIndex_), nextIndex, info); in PlayPropertyTranslateAnimation()
3450 swiper->GetLoopIndex(swiper->currentIndex_), swiper->GetLoopIndex(nextIndex), info); in PlayTranslateAnimation()
3575 if (swiper && swiper->GetHost() && !swiper->isTouchDown_) { in PlayFadeAnimation()
4177 if (swiper) { in PostTranslateTask()
4184 …if (!swiper->IsLoop() && swiper->GetLoopIndex(swiper->currentIndex_) + 1 > (childrenSize - display… in PostTranslateTask()
4188 swiper->targetIndex_ = swiper->CheckTargetIndex(swiper->currentIndex_ + stepItems); in PostTranslateTask()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dswiper_indicator_accessibility_property.cpp26 auto swiper = GetSwiperNode(); in GetCurrentIndex() local
27 CHECK_NULL_RETURN(swiper, -1); in GetCurrentIndex()
35 auto swiper = GetSwiperNode(); in GetBeginIndex() local
36 CHECK_NULL_RETURN(swiper, -1); in GetBeginIndex()
44 auto swiper = GetSwiperNode(); in GetEndIndex() local
45 CHECK_NULL_RETURN(swiper, -1); in GetEndIndex()
53 auto swiper = GetSwiperNode(); in GetCollectionItemCounts() local
54 CHECK_NULL_RETURN(swiper, -1); in GetCollectionItemCounts()
62 auto swiper = GetSwiperNode(); in GetAccessibilityText() local
63 CHECK_NULL_RETURN(swiper, ""); in GetAccessibilityText()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Dswiper_element.cpp77 if (!swiper) { in IsFocusable()
99 if (!swiper) { in OnFocus()
119 swiper->OnFocus(); in OnFocus()
153 if (swiper) { in OnBlur()
154 swiper->OnBlur(); in OnBlur()
163 if (!swiper) { in HandleIndicatorFocus()
167 swiper->IndicatorShowFocus(isFocus); in HandleIndicatorFocus()
173 if (!swiper) { in RequestNextFocus()
202 if (!swiper) { in RequestIndicatorFocus()
209 swiper->IndicatorShowFocus(true); in RequestIndicatorFocus()
[all …]
H A Drender_swiper.cpp132 if (!swiper) { in Update()
213 if (swiper && swiper_ && (*swiper == *swiper_) && in Update()
565 if (swiper) { in InitAccessibilityEventListener()
573 if (swiper) { in InitAccessibilityEventListener()
1023 if (swiper) { in StartSpringMotion()
1030 if (swiper) { in StartSpringMotion()
1038 if (swiper) { in StartSpringMotion()
1043 swiper->ExecuteMoveCallback(swiper->currentIndex_); in StartSpringMotion()
1123 if (swiper) { in MoveItems()
1158 swiper->ExecuteMoveCallback(swiper->currentIndex_); in MoveItems()
[all …]
H A Dswiper_component.h208 bool operator==(const SwiperComponent& swiper) const
210 return *declaration_ == *swiper.declaration_ &&
211 show_ == swiper.show_ &&
212 slideContinued_ == swiper.slideContinued_ &&
213 disableRation_ == swiper.disableRation_ &&
214 disableSwipe_ == swiper.disableSwipe_ &&
215 mainSwiperSize_ == swiper.mainSwiperSize_ &&
216 curve_ == swiper.curve_;
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/
H A DArkSwiper.ts158 getUINativeModule().swiper.resetSwiperInitialize(node);
168 getUINativeModule().swiper.resetSwiperNextMargin(node);
268 getUINativeModule().swiper.setSwiperDisplayArrow(
369 getUINativeModule().swiper.setSwiperIndicator(
405 getUINativeModule().swiper.setSwiperIndicator(
503 getUINativeModule().swiper.resetSwiperCurve(node);
541 getUINativeModule().swiper.resetSwiperOnChange(node);
629 getUINativeModule().swiper.resetSwiperLoop(node);
668 getUINativeModule().swiper.resetSwiperIndex(node);
698 getUINativeModule().swiper.resetSwiperEnabled(node);
[all …]
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dui-js-components-swiper.md1 # swiper开发指导
4 swiper为滑动容器,提供切换显示子组件的能力。具体用法请参考[swiper](../reference/apis-arkui/arkui-js/js-components-container-s…
7 ## 创建swiper组件
14 <swiper>
24 </swiper>
39 swiper{
86 </swiper>
101 swiper{
160 swiper{
232 swiper{
[all …]
/ohos5.0/docs/en/application-dev/ui/
H A Dui-js-components-swiper.md14 <swiper>
24 </swiper>
39 swiper{
86 </swiper>
101 swiper{
145 </swiper>
160 swiper{
207 </swiper>
232 swiper{
300 </swiper>
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-container-swiper.md1 # swiper chapter
36 …ght\|bottom | &lt;length&gt;&nbsp;\|&nbsp;&lt;percentage&gt; | - | 否 | 导航点指示器在swiper中的相对位置。 |
49 <swiper class="container" index="{{index}}">
50 <div class="swiper-item primary-item">
53 <div class="swiper-item warning-item">
56 <div class="swiper-item success-item">
59 </swiper>
71 .swiper-item {
98 ![卡片swiper](figures/swiper.png)
/ohos5.0/docs/zh-cn/device-dev/guide/
H A Ddevice-camera-visual-firstpage.md90 在根节点中添加一个子节点swiper,代码片段如下:
100 <swiper class="swiper" index="{{swiperPage}}" duration="500" onchange="swiperChange">
101 </swiper>
108 .swiper {
136 //swiper滑动回调事件,保存当前swiper的index值,每次滑动都会将index值保存在swiperPage变量中
148 <swiper class="swiper" index="{{swiperPage}}" duration="500" onchange="swiperChange">
150 <stack class="swiper">
172 </swiper>
204 <swiper class="swiper" index="{{swiperPage}}" duration="500" onchange="swiperChange">
335 </swiper>
[all …]
/ohos5.0/foundation/ability/ability_runtime/services/dialog_ui/ams_system_dialog/entry/src/main/ets/pages/
H A DselectorPhoneDialog.ets29 swiper:SwiperPhone,
72 swiper: {
139 this.selector.swiper.height = '220vp';
140 this.selector.swiper.indicator = true;
141 this.selector.swiper.contentHeight = '200vp';
143 this.selector.swiper.gridRows = '1fr 1fr';
146 this.selector.swiper.height = '200vp';
147 this.selector.swiper.contentHeight = '200vp';
149 this.selector.swiper.gridRows = '1fr 1fr';
153 this.selector.swiper.gridColumns = '1fr 1fr 1fr';
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-container-swiper.md1 # swiper chapter
33 | cachedsize<sup>7+</sup> | number | -1 | 否 | swiper延迟加载时item最少缓存数量。-1表示全部缓存。 …
46 …ottom | &lt;length&gt;&nbsp;\|&nbsp;&lt;percentage&gt; | - | 否 | 导航点指示器在swiper中的相对位置。 |
77 …<swiper class="swiper" id="swiper" index="0" indicator="true" loop="true" digital="false" cachedsi…
88 </swiper>
103 .swiper {
149 this.$element('swiper').swipeTo({index: 2});
152 this.$element('swiper').showNext();
155 this.$element('swiper').showPrevious();
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js-lite/
H A Djs-lite-components-container-swiper.md1 # swiper chapter
63 <swiper class="container" index="{{index}}">
64 <div class="swiper-item primary-item">
67 <div class="swiper-item warning-item">
70 <div class="swiper-item success-item">
73 </swiper>
85 .swiper-item {
112 ![swiper](figures/swiper-lite.gif)
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-container-swiper.md1 # swiper chapter
36 …length&gt; \| &lt;percentage&gt; | - | No | Relative position of the indicator in the swiper.|
49 <swiper class="container" index="{{index}}">
50 <div class="swiper-item primary-item">
53 <div class="swiper-item warning-item">
56 <div class="swiper-item success-item">
59 </swiper>
71 .swiper-item {
98 ![Swiper](figures/swiper.png)
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/swiper/
H A Dswiper_element.cpp69 RefPtr<RenderSwiper> swiper = AceType::DynamicCast<RenderSwiper>(renderNode_); in BuildChildByIndex() local
70 if (!swiper) { in BuildChildByIndex()
73 swiper->AddChildByIndex(index, renderNode); in BuildChildByIndex()
80 RefPtr<RenderSwiper> swiper = AceType::DynamicCast<RenderSwiper>(renderNode_); in DeleteChildByIndex() local
81 if (!swiper) { in DeleteChildByIndex()
84 swiper->RemoveChildByIndex(index); in DeleteChildByIndex()
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-container-swiper.md1 # swiper chapter
7 The **\<swiper>** component provides a container that allows users to switch among child components…
34 … No | Minimum number of cached items during delayed loading of the **\<swiper>** component. The …
47 …&gt; \| &lt;percentage&gt; | - | No | Relative position of the indicator in the swiper.|
78 …<swiper class="swiper" id="swiper" index="0" indicator="true" loop="true" digital="false" cachedsi…
89 </swiper>
104 .swiper {
150 this.$element('swiper').swipeTo({index: 2});
153 this.$element('swiper').showNext();
156 this.$element('swiper').showPrevious();
/ohos5.0/docs/en/device-dev/guide/
H A Ddevice-camera-visual-firstpage.md100 <swiper class="swiper" index="{{swiperPage}}" duration="500" onchange="swiperChange">
101 </swiper>
108 .swiper {
148 <swiper class="swiper" index="{{swiperPage}}" duration="500" onchange="swiperChange">
150 <stack class="swiper">
172 </swiper>
204 <swiper class="swiper" index="{{swiperPage}}" duration="500" onchange="swiperChange">
205 <stack class="swiper">
270 <stack class="swiper">
335 </swiper>
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js-lite/
H A Djs-lite-components-container-swiper.md1 # swiper chapter
3 The **\<swiper>** component provides a container that allows users to switch among child components…
63 <swiper class="container" index="{{index}}">
64 <div class="swiper-item primary-item">
67 <div class="swiper-item warning-item">
70 <div class="swiper-item success-item">
73 </swiper>
85 .swiper-item {
112 ![swiper](figures/swiper-lite.gif)
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stepper/
H A Dstepper_node.cpp54 auto swiper = GetChildAtIndex(GetChildIndexById(swiperId)); in DeleteChildFromGroup() local
55 CHECK_NULL_VOID(swiper); in DeleteChildFromGroup()
56 swiper->RemoveChildAtIndex(slot); in DeleteChildFromGroup()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Dcalendar_element.cpp175 auto swiper = controller->GetRenderSwiper(); in BuildCardCalendar() local
176 if (!swiper) { in BuildCardCalendar()
179 if (swiper->GetMoveStatus()) { in BuildCardCalendar()
182 if (controller->GetCurrentIndex() != swiper->GetCurrentIndex()) { in BuildCardCalendar()
288 auto swiper = AceType::DynamicCast<RenderSwiper>(display->GetParent().Upgrade()); in OnKeyEvent() local
289 if (swiper) { in OnKeyEvent()
290 if (swiper->GetMoveStatus()) { in OnKeyEvent()

12345