Home
last modified time | relevance | path

Searched refs:scrollEvent (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dscroll_model_impl.cpp73 auto onScroll = EventMarker([scrollEvent = std::move(event)](const BaseEventInfo* info) { in SetOnScroll()
75 if (!eventInfo || !scrollEvent) { in SetOnScroll()
80 scrollEvent(x, y); in SetOnScroll()
87 auto onScrollEdge = EventMarker([scrollEvent = std::move(event)](const BaseEventInfo* info) { in SetOnScrollEdge()
89 if (!eventInfo || !scrollEvent) { in SetOnScrollEdge()
93 scrollEvent(NG::ScrollEdge::TOP); in SetOnScrollEdge()
95 scrollEvent(NG::ScrollEdge::BOTTOM); in SetOnScrollEdge()
105 auto onScrollEnd = EventMarker([scrollEvent = std::move(event)](const BaseEventInfo* info) { in SetOnScrollEnd()
106 if (scrollEvent) { in SetOnScrollEnd()
107 scrollEvent(); in SetOnScrollEnd()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Dscroll_position_controller.h128 ScrollEvent event, const ScrollEventFunc& scrollEvent) in SetScrollEvent() argument
132 scrollTop_ = scrollEvent; in SetScrollEvent()
135 scrollBottom_ = scrollEvent; in SetScrollEvent()
138 scrollEnd_ = scrollEvent; in SetScrollEvent()
141 scrollTouchUp_ = scrollEvent; in SetScrollEvent()
144 scrollPosition_ = scrollEvent; in SetScrollEvent()
147 scrollEdge_ = scrollEvent; in SetScrollEvent()
H A Dscrollable.cpp110 AccessibilityEvent scrollEvent; in Initialize() local
134 AccessibilityEvent scrollEvent; in Initialize() local
208 AccessibilityEvent scrollEvent; in Initialize() local
209 scrollEvent.nodeId = scroll->nodeId_; in Initialize()
210 scrollEvent.eventType = "scrollend"; in Initialize()
691 AccessibilityEvent scrollEvent; in StartScrollAnimation() local
844 AccessibilityEvent scrollEvent; in ProcessScrollSnapSpringMotion() local
846 scrollEvent.eventType = "scrollend"; in ProcessScrollSnapSpringMotion()
952 AccessibilityEvent scrollEvent; in OnAnimateStop() local
953 scrollEvent.nodeId = nodeId_; in OnAnimateStop()
[all …]
H A Drender_scroll.cpp746 AccessibilityEvent scrollEvent; in AnimateTo() local
747 scrollEvent.nodeId = GetAccessibilityNodeId(); in AnimateTo()
748 scrollEvent.eventType = "scrollstart"; in AnimateTo()
749 context->SendEventToAccessibility(scrollEvent); in AnimateTo()
774 AccessibilityEvent scrollEvent; in AnimateTo() local
775 scrollEvent.nodeId = scroll->GetAccessibilityNodeId(); in AnimateTo()
776 scrollEvent.eventType = "scrollend"; in AnimateTo()
777 context->SendEventToAccessibility(scrollEvent); in AnimateTo()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dobserver_handler.h74 ScrollEventType scrollEvent; member
77 ScrollEventInfo(std::string id, int32_t uniqueId, ScrollEventType scrollEvent, float offset) in ScrollEventInfo()
78 : id(std::move(id)), uniqueId(uniqueId), scrollEvent(scrollEvent), offset(offset) in ScrollEventInfo()
148 …oid NotifyScrollEventStateChange(const WeakPtr<AceType>& weakPattern, ScrollEventType scrollEvent);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-observer.md394 ## observer.on('scrollEvent')<sup>12+</sup>
396 on(type: 'scrollEvent', callback: Callback\<ScrollEventInfo\>): void
415 ## observer.off('scrollEvent')<sup>12+</sup>
417 off(type: 'scrollEvent', callback?: Callback\<ScrollEventInfo\>): void
436 ## observer.on('scrollEvent')<sup>12+</sup>
438 on(type: 'scrollEvent', options: ObserverOptions, callback: Callback\<ScrollEventInfo\>): void
458 ## observer.off('scrollEvent')<sup>12+</sup>
513 observer.on('scrollEvent', (info) => {
519 observer.off('scrollEvent');
526 observer.on('scrollEvent', this.options, (info) => {
[all …]
H A Djs-apis-arkui-UIContext.md2673 ### on('scrollEvent')<sup>12+</sup>
2675 on(type: 'scrollEvent', callback: Callback\<observer.ScrollEventInfo\>): void
2694 ### off('scrollEvent')<sup>12+</sup>
2696 off(type: 'scrollEvent', callback?: Callback\<observer.ScrollEventInfo\>): void
2715 ### on('scrollEvent')<sup>12+</sup>
2717 on(type: 'scrollEvent', options: observer.ObserverOptions, callback: Callback\<observer.ScrollEvent…
2737 ### off('scrollEvent')<sup>12+</sup>
2792 this.observer.on('scrollEvent', (info) => {
2798 this.observer.off('scrollEvent');
2805 this.observer.on('scrollEvent', { id:"testId" }, (info) => {
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-observer.md306 ## observer.on('scrollEvent')<sup>12+</sup>
308 on(type: 'scrollEvent', callback: Callback\<ScrollEventInfo\>): void
327 ## observer.off('scrollEvent')<sup>12+</sup>
329 off(type: 'scrollEvent', callback?: Callback\<ScrollEventInfo\>): void
348 ## observer.on('scrollEvent')<sup>12+</sup>
350 on(type: 'scrollEvent', options: ObserverOptions, callback: Callback\<ScrollEventInfo\>): void
370 ## observer.off('scrollEvent')<sup>12+</sup>
425 observer.on('scrollEvent', (info) => {
431 observer.off('scrollEvent');
438 observer.on('scrollEvent', this.options, (info) => {
[all …]
H A Djs-apis-arkui-UIContext.md2670 ### on('scrollEvent')<sup>12+</sup>
2672 on(type: 'scrollEvent', callback: Callback\<observer.ScrollEventInfo\>): void
2691 ### off('scrollEvent')<sup>12+</sup>
2693 off(type: 'scrollEvent', callback?: Callback\<observer.ScrollEventInfo\>): void
2712 ### on('scrollEvent')<sup>12+</sup>
2714 on(type: 'scrollEvent', options: observer.ObserverOptions, callback: Callback\<observer.ScrollEvent…
2734 ### off('scrollEvent')<sup>12+</sup>
2789 this.observer.on('scrollEvent', (info) => {
2795 this.observer.off('scrollEvent');
2802 this.observer.on('scrollEvent', { id:"testId" }, (info) => {
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/base/
H A Dobserver_test_ng.cpp150 ASSERT_EQ(info->scrollEvent, ScrollEventType::SCROLL_START);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list.cpp2301 AccessibilityEvent scrollEvent; in OnPaintFinish() local
2302 scrollEvent.nodeId = GetAccessibilityNodeId(); in OnPaintFinish()
2303 scrollEvent.eventType = "scrollend"; in OnPaintFinish()
2304 context->SendEventToAccessibility(scrollEvent); in OnPaintFinish()