Class · aurore

aurore::RecyclerDataSource

On this page
aurore/views/recycler.hpp
#include <aurore/views/recycler.hpp>

class aurore::RecyclerDataSource

Description

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

Constructors 1

virtual ~RecyclerDataSource() =default

Functions 8

virtual int numberOfSections(RecyclerFrame *recycler)

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

recycler.hpp:141
virtual int numberOfRows(RecyclerFrame *recycler, int section)

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

recycler.hpp:146
virtual RecyclerCell * cellForRow(RecyclerFrame *recycler,IndexPath index)

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

recycler.hpp:151
virtual RecyclerCell * cellForHeader(RecyclerFrame *recycler,int section)

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

recycler.hpp:156
virtual float heightForRow(RecyclerFrame *recycler, IndexPath index)

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

recycler.hpp:162
virtual float heightForHeader(RecyclerFrame *recycler, int section)

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

recycler.hpp:168
virtual std::string titleForHeader(RecyclerFrame *recycler,int section)

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

recycler.hpp:173
virtual void didSelectRowAt(RecyclerFrame *recycler, IndexPath index)

Tells the data source a row is selected.

recycler.hpp:178

Read from Aurore's headers by Doxygen at each build · library/include