You.i Engine
CYIScrollingView::PagingStrategy Class Referenceabstract

Detailed Description

A class that accepts scrolling data from CYIScrollingView and implements logic for determining the current page of the view.

Note
CYIPageWidthPagingStrategy and CYIPageCountPagingStrategy are available subclasses which implement basic scrolling view paging strategies.

#include <view/YiScrollingView.h>

Inheritance diagram for CYIScrollingView::PagingStrategy:

Public Member Functions

 PagingStrategy ()
 
virtual ~PagingStrategy ()
 

Protected Member Functions

virtual size_t GetPage ()=0
 
virtual size_t GetPageCount ()=0
 
float GetScrollPosition () const
 
float GetScrollRegionSize () const
 

Friends

class CYIScrollingView
 

Constructor & Destructor Documentation

◆ PagingStrategy()

CYIScrollingView::PagingStrategy::PagingStrategy ( )

◆ ~PagingStrategy()

virtual CYIScrollingView::PagingStrategy::~PagingStrategy ( )
virtual

Member Function Documentation

◆ GetPage()

virtual size_t CYIScrollingView::PagingStrategy::GetPage ( )
protectedpure virtual

◆ GetPageCount()

virtual size_t CYIScrollingView::PagingStrategy::GetPageCount ( )
protectedpure virtual

◆ GetScrollPosition()

float CYIScrollingView::PagingStrategy::GetScrollPosition ( ) const
protected

◆ GetScrollRegionSize()

float CYIScrollingView::PagingStrategy::GetScrollRegionSize ( ) const
protected

Friends And Related Function Documentation

◆ CYIScrollingView

friend class CYIScrollingView
friend

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