Home
last modified time | relevance | path

Searched refs:scroll (Results 1 - 25 of 61) sorted by relevance

123

/foundation/arkui/ui_lite/test/uitest/test_ui_scroll_view/
H A Dui_test_ui_scroll_view.cpp22 scroll->SetXScrollBarVisible(visible); \
115 UIScrollView* scroll = new UIScrollView(); in UIKitUIScrollViewTestbar001() local
116 scroll->SetIntercept(true); in UIKitUIScrollViewTestbar001()
117 scroll->SetStyle(STYLE_BACKGROUND_COLOR, Color::Red().full); in UIKitUIScrollViewTestbar001()
118 scroll->SetPosition(positionX_, positionY_, g_scrollW, g_scrollH); in UIKitUIScrollViewTestbar001()
120 scroll->SetYScrollBarVisible(true); in UIKitUIScrollViewTestbar001()
121 scroll->SetReboundSize(50); // 50: rebound size in UIKitUIScrollViewTestbar001()
122 container_->Add(scroll); in UIKitUIScrollViewTestbar001()
126 scroll->Add(button1); in UIKitUIScrollViewTestbar001()
127 SetLastPos(scroll); in UIKitUIScrollViewTestbar001()
142 UIScrollView* scroll = new UIScrollView(); UIKitUIScrollViewTestbar002() local
167 UIScrollView* scroll = new UIScrollView(); UIKitUIScrollViewTestbar003() local
197 UIScrollView* scroll = new UIScrollView(); UIKitUIScrollViewTestbar004() local
223 UIScrollView* scroll = new UIScrollView(); UIKitUIScrollViewTestScrollableSet001() local
252 UIScrollView* scroll = new UIScrollView(); UIKitUIScrollViewTestScrollableSet002() local
280 UIScrollView* scroll = new UIScrollView(); UIKitUIScrollViewTestScrollBlankSet001() local
308 UIScrollView* scroll = new UIScrollView(); UIKitUIScrollViewTestScrolllistener001() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Dscroll_position_controller.cpp16 #include "core/components/scroll/scroll_position_controller.h"
18 #include "core/components/scroll/render_scroll.h"
23 : BaseEventInfo("scroll"), type_(type), scrollX_(scrollX), scrollY_(scrollY), scrollState_(scrollState) in ScrollEventInfo()
38 return std::string("\"scroll\",{\"scrollX\":") in ToJSONString()
55 auto scroll = AceType::DynamicCast<RenderScroll>(node); in ScrollToIndex() local
56 if (scroll) { in ScrollToIndex()
57 scroll->JumpToIndex(index); in ScrollToIndex()
66 auto scroll = AceType::DynamicCast<RenderScroll>(node); in JumpTo() local
67 if (scroll) { in JumpTo()
68 scroll in JumpTo()
78 auto scroll = AceType::DynamicCast<RenderScroll>(node); AnimateTo() local
92 auto scroll = AceType::DynamicCast<RenderScroll>(node); AnimateTo() local
107 auto scroll = AceType::DynamicCast<RenderScroll>(node); AnimateToTarget() local
119 auto scroll = AceType::DynamicCast<RenderScroll>(node); ScrollBy() local
131 auto scroll = AceType::DynamicCast<RenderScroll>(node); ScrollArrow() local
149 auto scroll = AceType::DynamicCast<RenderScroll>(node); GetCurrentPosition() local
162 auto scroll = AceType::DynamicCast<RenderScroll>(node); GetScrollDirection() local
174 auto scroll = AceType::DynamicCast<RenderScroll>(node); ScrollToEdge() local
185 auto scroll = AceType::DynamicCast<RenderScroll>(node); ScrollPage() local
195 auto scroll = AceType::DynamicCast<RenderScroll>(node); GetCurrentOffset() local
[all...]
H A Drender_scroll.cpp16 #include "core/components/scroll/render_scroll.h"
219 // scroll to top in UpdateOffset()
222 // scroll to bottom in UpdateOffset()
297 // scroll to top in CanScrollVertically()
300 // scroll to bottom in CanScrollVertically()
319 // scroll up in ScrollPageCheck()
325 // scroll down in ScrollPageCheck()
339 // scroll up in ScrollPageByChild()
348 // scroll down in ScrollPageByChild()
429 auto scroll in ResetEdgeEffect()
840 auto scroll = AceType::DynamicCast<ScrollComponent>(component); Update() local
[all...]
H A Drender_single_child_scroll.cpp16 #include "core/components/scroll/render_single_child_scroll.h"
29 RefPtr<ScrollComponent> scroll = AceType::DynamicCast<ScrollComponent>(component); in Update() local
30 if (!scroll) { in Update()
34 rightToLeft_ = scroll->GetTextDirection() == TextDirection::RTL; in Update()
35 enable_ = scroll->GetEnable(); in Update()
36 onScrollBegin_ = scroll->GetOnScrollBegin(); in Update()
38 auto axis = scroll->GetAxisDirection(); in Update()
45 padding_ = scroll->GetPadding(); in Update()
46 scrollPage_ = scroll->GetScrollPage(); in Update()
48 positionController_ = scroll in Update()
[all...]
H A Dscrollable.cpp16 #include "core/components/scroll/scrollable.h"
109 auto scroll = weakScroll.Upgrade(); in Initialize()
110 if (scroll) { in Initialize()
111 // Send event to accessibility when scroll start. in Initialize()
112 auto context = scroll->GetContext().Upgrade(); in Initialize()
115 scrollEvent.nodeId = scroll->nodeId_; in Initialize()
119 scroll->isDragging_ = true; in Initialize()
120 scroll->HandleDragStart(info); in Initialize()
125 auto scroll = weakScroll.Upgrade(); in Initialize()
126 if (scroll) { in Initialize()
[all...]
H A Dscroll_bar_controller.cpp16 #include "core/components/scroll/scroll_bar_controller.h"
19 #include "core/components/scroll/render_scroll.h"
33 constexpr int32_t BAR_EXPAND_DURATION = 150; // 150ms, scroll bar width expands from 4dp to 8dp
34 constexpr int32_t BAR_SHRINK_DURATION = 250; // 250ms, scroll bar width shrinks from 4dp to 8dp
165 auto scroll = AceType::DynamicCast<RenderScroll>(scroll_.Upgrade()); in MarkScrollRender() local
166 if (scroll) { in MarkScrollRender()
167 scroll->MarkNeedRender(); in MarkScrollRender()
231 // UpdateScrollPosition return false, means reach to scroll limit. in ProcessScrollMotion()
233 auto scroll = AceType::DynamicCast<RenderScroll>(scroll_.Upgrade()); in ProcessScrollMotion() local
234 if (scroll) { in ProcessScrollMotion()
247 auto scroll = AceType::DynamicCast<RenderScroll>(scroll_.Upgrade()); UpdateScrollPosition() local
315 auto scroll = AceType::DynamicCast<RenderScroll>(scroll_.Upgrade()); CheckScroll() local
[all...]
H A Dscroll_fade_effect.cpp16 #include "core/components/scroll/scroll_fade_effect.h"
33 auto scroll = scroll_.Upgrade(); in ResetFadeEffect() local
34 fadeController_ = AceType::MakeRefPtr<ScrollFadeController>(scroll ? scroll->GetContext() : nullptr); in ResetFadeEffect()
54 // under scroll in CalculateOverScroll()
59 // over scroll in CalculateOverScroll()
139 auto scroll = scroll_.Upgrade(); in SetOpacityAndScale() local
140 if (scroll) { in SetOpacityAndScale()
141 scroll->MarkNeedRender(); in SetOpacityAndScale()
H A Dscroll_element.cpp16 #include "core/components/scroll/scroll_element.h"
25 RefPtr<ScrollComponent> scroll = AceType::DynamicCast<ScrollComponent>(component_); in PerformBuild() local
26 if (scroll) { in PerformBuild()
28 UpdateChild(child, scroll->GetChild()); in PerformBuild()
H A Dscroll_controller.h19 #include "core/components/scroll/scroll_controller_base.h"
31 void SetScrollNode(const WeakPtr<RenderNode>& scroll) in SetScrollNode() argument
33 scroll_ = scroll; in SetScrollNode()
H A Dscroll_edge_effect.h19 #include "core/components/scroll/scroll_edge_effect_base.h"
33 void SetScrollNode(const WeakPtr<RenderNode>& scroll) in SetScrollNode() argument
35 scroll_ = scroll; in SetScrollNode()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable.cpp142 auto scroll = weakScroll.Upgrade(); in SetOnActionStart()
143 CHECK_NULL_VOID(scroll); in SetOnActionStart()
144 scroll->isDragging_ = true; in SetOnActionStart()
145 scroll->HandleDragStart(info); in SetOnActionStart()
154 auto scroll = weakScroll.Upgrade(); in SetOnActionUpdate()
155 CHECK_NULL_VOID(scroll); in SetOnActionUpdate()
156 scroll->HandleDragUpdate(info); in SetOnActionUpdate()
165 auto scroll = weakScroll.Upgrade(); in SetOnActionEnd()
166 CHECK_NULL_VOID(scroll); in SetOnActionEnd()
167 scroll in SetOnActionEnd()
[all...]
H A Dscrollable_controller.h19 #include "core/components/scroll/scroll_controller_base.h"
31 void SetScrollPattern(const WeakPtr<ScrollablePattern>& scroll) in SetScrollPattern() argument
33 scroll_ = scroll; in SetScrollPattern()
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dscroll_layer.cpp40 UIScrollView *scroll = new UIScrollView(); in AddScrollLayer() local
41 if (scroll == nullptr) { in AddScrollLayer()
42 HILOG_ERROR(HILOG_MODULE_ACE, "Scroll Layer: Create scroll view failed."); in AddScrollLayer()
45 scroll->SetPosition(0, 0); in AddScrollLayer()
46 scroll->SetWidth(GetHorizontalResolution()); in AddScrollLayer()
47 scroll->SetHeight(GetVerticalResolution()); in AddScrollLayer()
48 scroll->SetXScrollBarVisible(false); in AddScrollLayer()
49 scroll->SetYScrollBarVisible(false); in AddScrollLayer()
50 scroll->SetThrowDrag(true); in AddScrollLayer()
51 scroll in AddScrollLayer()
[all...]
/foundation/arkui/ui_lite/test/unittest/rotate/
H A Dui_rotate_input_unit_test.cpp45 UIScrollView* scroll = new UIScrollView(); in HWTEST_F() local
46 scroll->SetRotateFactor(10); // 10 : rotate factor in HWTEST_F()
47 EXPECT_EQ(scroll->GetRotateFactor(), 10); in HWTEST_F()
48 delete scroll; in HWTEST_F()
115 UIScrollView* scroll = new UIScrollView(); in HWTEST_F() local
116 scroll->RequestFocus(); in HWTEST_F()
117 EXPECT_EQ(scroll, FocusManager::GetInstance()->GetFocusedView()); in HWTEST_F()
118 scroll->ClearFocus(); in HWTEST_F()
119 delete scroll; in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/pattern/scrollable/
H A Dscrollable_property_test_ng.cpp45 auto scroll = FrameNode::CreateFrameNode(V2::SCROLL_ETS_TAG, 0, AceType::MakeRefPtr<PartiallyMockedScrollable>()); in HWTEST_F() local
46 ASSERT_NE(scroll, nullptr); in HWTEST_F()
47 auto scrollPnTest = scroll->GetPattern<ScrollablePattern>(); in HWTEST_F()
68 auto scroll = FrameNode::CreateFrameNode(V2::SCROLL_ETS_TAG, 0, AceType::MakeRefPtr<PartiallyMockedScrollable>()); in HWTEST_F() local
69 ASSERT_NE(scroll, nullptr); in HWTEST_F()
70 auto scrollPnTest = scroll->GetPattern<ScrollablePattern>(); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components/select_popup/
H A Drosen_render_select_popup.cpp45 auto scroll = renderScroll_; in GetOptionTop() local
46 if (!scroll) { in GetOptionTop()
50 return scroll->GetGlobalOffset().GetY(); in GetOptionTop()
55 auto scroll = renderScroll_; in GetOptionBottom() local
56 if (!scroll) { in GetOptionBottom()
60 return scroll->GetGlobalOffset().GetY() + scroll->GetLayoutSize().Height(); in GetOptionBottom()
/foundation/arkui/ace_engine/frameworks/core/common/
H A Dtext_field_manager.cpp41 const auto& scroll = AceType::DynamicCast<RenderScroll>(scrollElement->GetRenderNode()); in MovePage() local
42 CHECK_NULL_VOID(scroll); in MovePage()
45 scroll->SetNeedMove(true); in MovePage()
49 scroll->SetNeedMove(false); in MovePage()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_paint_method.cpp16 #include "core/components_ng/pattern/scroll/scroll_paint_method.h"
23 auto scroll = weak.Upgrade(); in GetForegroundDrawFunction()
24 CHECK_NULL_VOID(scroll); in GetForegroundDrawFunction()
25 scroll->PaintScrollEffect(canvas, paintWrapper); in GetForegroundDrawFunction()
H A Dscroll_pattern.cpp16 #include "core/components_ng/pattern/scroll/scroll_pattern.h"
363 void ScrollPattern::HandleScrollPosition(float scroll) in HandleScrollPosition() argument
372 Dimension scrollPx(scroll, DimensionUnit::PX); in HandleScrollPosition()
382 float ScrollPattern::FireTwoDimensionOnWillScroll(float scroll) in FireTwoDimensionOnWillScroll() argument
385 CHECK_NULL_RETURN(eventHub, scroll); in FireTwoDimensionOnWillScroll()
387 CHECK_NULL_RETURN(onScroll, scroll); in FireTwoDimensionOnWillScroll()
390 Dimension scrollPx(scroll, DimensionUnit::PX); in FireTwoDimensionOnWillScroll()
400 CHECK_NULL_RETURN(context, scroll); in FireTwoDimensionOnWillScroll()
408 void ScrollPattern::FireOnDidScroll(float scroll) in FireOnDidScroll() argument
410 FireObserverOnDidScroll(scroll); in FireOnDidScroll()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Drender_list.cpp21 #include "core/components/scroll/render_multi_child_scroll.h"
91 // list parent is scroll in Update()
119 RefPtr<RenderMultiChildScroll> scroll = AceType::DynamicCast<RenderMultiChildScroll>(parentNode); in RefreshOffset() local
120 if (!scroll) { in RefreshOffset()
121 LOGE("Parent scroll is null, RefreshOffset failed."); in RefreshOffset()
124 scroll->RefreshOffset(offset); in RefreshOffset()
130 RefPtr<RenderMultiChildScroll> scroll = AceType::DynamicCast<RenderMultiChildScroll>(parentNode); in RefreshScrollExtent() local
131 if (!scroll) { in RefreshScrollExtent()
132 LOGE("Parent scroll is null, RefreshScrollExtent failed."); in RefreshScrollExtent()
135 scroll in RefreshScrollExtent()
642 auto scroll = AceType::DynamicCast<RenderMultiChildScroll>(GetParent().Upgrade()); UpdateAccessibilityAttr() local
679 RefPtr<RenderMultiChildScroll> scroll = AceType::DynamicCast<RenderMultiChildScroll>(parent); HandleActionScroll() local
722 RefPtr<RenderMultiChildScroll> scroll = AceType::DynamicCast<RenderMultiChildScroll>(parent); TouchTest() local
[all...]
H A Dlist_layout_manager.cpp20 #include "core/components/scroll/render_multi_child_scroll.h"
359 RefPtr<RenderMultiChildScroll> scroll = AceType::DynamicCast<RenderMultiChildScroll>(parentNode); in FlushChainAnimation() local
360 if (!scroll) { in FlushChainAnimation()
364 bool overScroll = scroll->IsSpringMotionRunning(); in FlushChainAnimation()
465 RefPtr<RenderMultiChildScroll> scroll = AceType::DynamicCast<RenderMultiChildScroll>(parentNode); in MoveItemToViewPort() local
466 if (!scroll) { in MoveItemToViewPort()
471 double animationOffset = scroll->NormalizeToPx(FOCUS_BOUNDARY); in MoveItemToViewPort()
472 scroll->MoveItemToViewPort(position, size, animationOffset + focusEffectWidth); in MoveItemToViewPort()
479 RefPtr<RenderMultiChildScroll> scroll = AceType::DynamicCast<RenderMultiChildScroll>(parentNode); in MoveItemGroupToViewPort() local
480 if (!scroll) { in MoveItemGroupToViewPort()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dsub_menu_layout_algorithm.cpp150 auto scroll = AceType::DynamicCast<FrameNode>(parentMenu->GetParent()); in GetSubMenuPosition() local
151 CHECK_NULL_RETURN(scroll, position); in GetSubMenuPosition()
152 while (scroll && (scroll->GetTag() != V2::SCROLL_ETS_TAG)) { in GetSubMenuPosition()
153 scroll = AceType::DynamicCast<FrameNode>(scroll->GetParent()); in GetSubMenuPosition()
155 CHECK_NULL_RETURN(scroll, position); in GetSubMenuPosition()
156 auto scrollGeometryNode = scroll->GetGeometryNode(); in GetSubMenuPosition()
158 auto scrollTop = scroll->GetPaintRectOffset().GetY(); in GetSubMenuPosition()
162 return scroll in GetSubMenuPosition()
[all...]
H A Dmenu_pattern.cpp38 #include "core/components_ng/pattern/scroll/scroll_pattern.h"
287 auto scroll = AceType::DynamicCast<FrameNode>(node); in OnModifyDone() local
288 CHECK_NULL_VOID(scroll); in OnModifyDone()
289 auto hub = scroll->GetEventHub<EventHub>(); in OnModifyDone()
299 auto scroll = FrameNode::CreateFrameNode( in CreateMenuScroll() local
301 CHECK_NULL_RETURN(scroll, nullptr); in CreateMenuScroll()
302 auto props = scroll->GetLayoutProperty<ScrollLayoutProperty>(); in CreateMenuScroll()
314 node->MountToParent(scroll); in CreateMenuScroll()
316 auto renderContext = scroll->GetRenderContext(); in CreateMenuScroll()
325 return scroll; in CreateMenuScroll()
338 auto scroll = CreateMenuScroll(column); FireBuilder() local
645 auto scroll = host->GetFirstChild(); HideStackExpandMenu() local
862 auto scroll = menu->GetChildren().front(); GetMenuColumn() local
922 auto scroll = DynamicCast<FrameNode>(host->GetFirstChild()); ResetTheme() local
950 auto scroll = DynamicCast<FrameNode>(host->GetFirstChild()); ResetScrollTheme() local
1255 auto scroll = outterMenu->GetFirstChild(); GetMenuOffset() local
1333 auto scroll = host->GetFirstChild(); GetImageNode() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/
H A Drender_collapsing_navigation_bar.cpp210 auto scroll = weakScroll.Upgrade(); in Initialize()
211 if (scroll) { in Initialize()
212 scroll->HandleDragStart(info); in Initialize()
216 auto scroll = weakScroll.Upgrade(); in Initialize()
217 if (scroll) { in Initialize()
218 scroll->HandleDragUpdate(info); in Initialize()
222 auto scroll = weakScroll.Upgrade(); in Initialize()
223 if (scroll) { in Initialize()
224 scroll->HandleDragEnd(); in Initialize()
/foundation/arkui/ace_engine/frameworks/core/components/dialog/action_sheet/
H A Daction_sheet_component.cpp19 #include "core/components/scroll/scroll_component.h"
60 auto scroll = AceType::MakeRefPtr<ScrollComponent>(focusCollaboration); in BuildChild() local
61 box->SetChild(scroll); in BuildChild()
140 auto scroll = AceType::MakeRefPtr<ScrollComponent>(content_); in BuildContent() local
141 contentPadding->SetChild(scroll); in BuildContent()

Completed in 222 milliseconds

123