You.i Engine
CYIScrollController::ScrollListener Class Reference

Detailed Description

A ScrollListener can be added to a CYIScrollController using CYIScrollController::SetScrollListener() in order to be notified of the controller's scrolls.

Note
In every method of the ScrollListener the calling CYIScrollController passes itself as pControl.

#include <view/YiScrollController.h>

Inheritance diagram for CYIScrollController::ScrollListener:

Public Member Functions

virtual ~ScrollListener ()
 
virtual void OnScrollStarted (CYIScrollController *)
 
virtual void OnScrollEnded (CYIScrollController *)
 
virtual void OnScrollAuto (CYIScrollController *)
 
virtual void OnScrolled (CYIScrollController *, YI_SCROLLED_INFO)
 

Constructor & Destructor Documentation

◆ ~ScrollListener()

virtual CYIScrollController::ScrollListener::~ScrollListener ( )
inlinevirtual

Member Function Documentation

◆ OnScrollAuto()

virtual void CYIScrollController::ScrollListener::OnScrollAuto ( CYIScrollController )
inlinevirtual

Called when a scroll is generated by animation.

See also
CYIScrollController::MoveByAnimate

Reimplemented in CYIScrollingView.

◆ OnScrolled()

virtual void CYIScrollController::ScrollListener::OnScrolled ( CYIScrollController ,
YI_SCROLLED_INFO   
)
inlinevirtual

Called when a scroll gesture updates. This is called after CYIScrollController::GestureUpdate and every frame when the scroll controller is animating to a new position.

Reimplemented in CYIScrollingView.

◆ OnScrollEnded()

virtual void CYIScrollController::ScrollListener::OnScrollEnded ( CYIScrollController )
inlinevirtual

Called when a scroll gesture ends.

Reimplemented in CYIScrollingView.

◆ OnScrollStarted()

virtual void CYIScrollController::ScrollListener::OnScrollStarted ( CYIScrollController )
inlinevirtual

Called when a scroll gesture starts.

Reimplemented in CYIScrollingView.


The documentation for this class was generated from the following file: