Class · aurore

aurore::RecyclerCell

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

class aurore::RecyclerCell : public aurore::Box

Description

A cell of a RecyclerFrame, reused as the list scrolls: subclass it, fill it in RecyclerDataSource::cellForRow().

Constructors 2

RecyclerCell()

An empty cell.

recycler.hpp:69
~RecyclerCell()

Functions 6

IndexPath getIndexPath() const

Cell's position inside recycler frame

recycler.hpp:75
void setIndexPath(IndexPath value)

DO NOT USE! FOR INTERNAL USAGE ONLY!

recycler.hpp:80
virtual void prepareForReuse()

Prepares a reusable cell for reuse by the recycler frame's data source.

recycler.hpp:90
virtual void onFocusGained() override

Fired when focus is gained.

Overrides aurore::Box::onFocusGained

recycler.hpp:95
virtual void onFocusLost() override

Fired when focus is lost.

Overrides aurore::Box::onFocusLost

recycler.hpp:96
virtual void onTextScaleChanged() override

Called on every view of the screens when the text scale changes (Application::setTextScale): a view that measures text marks itself dirty here.

Overrides aurore::View::onTextScaleChanged

recycler.hpp:97

Also the functions of aurore::Box (53), aurore::View (221).

Static functions 1

static RecyclerCell * create()

Makes an empty cell (registerCell's default).

recycler.hpp:93

Attributes 1

std::string reuseIdentifier

A string used to identify a cell that is reusable.

recycler.hpp:85

Protected functions 1

void growWithText()

The height set grows with the text (Application::setTextScale), as a minimum height: a larger text keeps the cell's padding. DetailCell and RadioCell (and the cells made from them) do it.

recycler.hpp:103

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