Home
last modified time | relevance | path

Searched refs:OnScrollListener (Results 1 - 4 of 4) sorted by relevance

/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_scroll_view.h59 class OnScrollListener : public HeapBase { class in OHOS::UIScrollView
62 * @brief A constructor used to create an <b>OnScrollListener</b> instance with the default scroll state
67 OnScrollListener() : state_(SCROLL_STATE_STOP) {} in OnScrollListener() function in OHOS::UIScrollView::OnScrollListener
70 * @brief A destructor used to delete the <b>OnScrollListener</b> instance.
74 virtual ~OnScrollListener() {} in ~OnScrollListener()
228 * @param scrollListener Indicates the listener to register. For details, see {@link OnScrollListener}.
232 void RegisterScrollListener(OnScrollListener* scrollListener) in RegisterScrollListener()
247 OnScrollListener* scrollListener_;
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_scroll_view.cpp61 if (scrollListener_ && (scrollListener_->GetScrollState() == OnScrollListener::SCROLL_STATE_MOVE)) { in OnDragEndEvent()
63 scrollListener_->SetScrollState(OnScrollListener::SCROLL_STATE_STOP); in OnDragEndEvent()
172 if ((scrollListener_ != nullptr) && (scrollListener_->GetScrollState() == OnScrollListener::SCROLL_STATE_MOVE)) { in ScrollBy()
174 scrollListener_->SetScrollState(OnScrollListener::SCROLL_STATE_STOP); in ScrollBy()
246 (scrollListener_->GetScrollState() == OnScrollListener::SCROLL_STATE_STOP)) { in MoveOffset()
248 scrollListener_->SetScrollState(OnScrollListener::SCROLL_STATE_MOVE); in MoveOffset()
306 if ((scrollListener_ != nullptr) && (scrollListener_->GetScrollState() == OnScrollListener::SCROLL_STATE_MOVE)) { in StopAnimator()
308 scrollListener_->SetScrollState(OnScrollListener::SCROLL_STATE_STOP); in StopAnimator()
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_scroll_view_unit_test.cpp63 UIScrollView::OnScrollListener* scrollListener = new UIScrollView::OnScrollListener(); in HWTEST_F()
68 uint8_t state = UIScrollView::OnScrollListener::SCROLL_STATE_MOVE; in HWTEST_F()
72 state = UIScrollView::OnScrollListener::SCROLL_STATE_STOP; in HWTEST_F()
/foundation/arkui/ui_lite/test/uitest/test_ui_scroll_view/
H A Dui_test_ui_scroll_view.cpp38 class TestOnScrollListener : public UIScrollView::OnScrollListener {

Completed in 3 milliseconds