Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
aurore::RecyclerDataSource Class Reference

#include <aurore/views/recycler.hpp>

Inheritance diagram for aurore::RecyclerDataSource:
aurore::Dropdown

Public Member Functions

virtual int numberOfSections (RecyclerFrame *recycler)
 
virtual int numberOfRows (RecyclerFrame *recycler, int section)
 
virtual RecyclerCell * cellForRow (RecyclerFrame *recycler, IndexPath index)
 
virtual RecyclerCell * cellForHeader (RecyclerFrame *recycler, int section)
 
virtual float heightForRow (RecyclerFrame *recycler, IndexPath index)
 
virtual float heightForHeader (RecyclerFrame *recycler, int section)
 
virtual std::string titleForHeader (RecyclerFrame *recycler, int section)
 
virtual void didSelectRowAt (RecyclerFrame *recycler, IndexPath index)
 
virtual ~RecyclerDataSource ()=default
 

Detailed Description

What a RecyclerFrame shows: the app subclasses it and gives it with RecyclerFrame::setDataSource().

Constructor & Destructor Documentation

◆ ~RecyclerDataSource()

virtual aurore::RecyclerDataSource::~RecyclerDataSource ( )
virtualdefault

Member Function Documentation

◆ cellForHeader()

virtual RecyclerCell * aurore::RecyclerDataSource::cellForHeader ( RecyclerFrame *  recycler,
int  section 
)
virtual

Asks the data source for a cell to display in the header of the specified section of the recycler frame.

◆ cellForRow()

virtual RecyclerCell * aurore::RecyclerDataSource::cellForRow ( RecyclerFrame *  recycler,
IndexPath  index 
)
inlinevirtual

Asks the data source for a cell to insert in a particular location of the recycler frame.

◆ didSelectRowAt()

virtual void aurore::RecyclerDataSource::didSelectRowAt ( RecyclerFrame *  recycler,
IndexPath  index 
)
inlinevirtual

Tells the data source a row is selected.

◆ heightForHeader()

virtual float aurore::RecyclerDataSource::heightForHeader ( RecyclerFrame *  recycler,
int  section 
)
virtual

Asks the data source for the height to use for the header of a particular section. Return -1 to use autoscaling.

◆ heightForRow()

virtual float aurore::RecyclerDataSource::heightForRow ( RecyclerFrame *  recycler,
IndexPath  index 
)
inlinevirtual

Asks the data source for the height to use for a row in a specified location. Return -1 to use autoscaling.

◆ numberOfRows()

virtual int aurore::RecyclerDataSource::numberOfRows ( RecyclerFrame *  recycler,
int  section 
)
inlinevirtual

Tells the data source to return the number of rows in a recycler frame.

◆ numberOfSections()

virtual int aurore::RecyclerDataSource::numberOfSections ( RecyclerFrame *  recycler)
inlinevirtual

Asks the data source to return the number of sections in the recycler frame.

◆ titleForHeader()

virtual std::string aurore::RecyclerDataSource::titleForHeader ( RecyclerFrame *  recycler,
int  section 
)
inlinevirtual

Asks the data source for the title of the header of the specified section of the recycler frame.


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