Class · aurore

aurore::SliderCell

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

class aurore::SliderCell : public aurore::DetailCell

Constructors 1

SliderCell()

Functions 3

void init(const std::string &title,float init,const std::function< void(float)> &callback)
Event< float > * getEvent()
virtual View * getDefaultFocus() override

Returns the default view to focus when focusing this view Typically the view itself or one of its children.

Returning nullptr means that the view is not focusable (and neither are its children)

By default, a view is focusable if the flag is set to true with setFocusable() and if the view is visible.

When pressing a key, the flow is :

  1. starting from the currently focused view's parent, traverse the tree upwards and repeatedly call getNextFocus() on every view until we find a next view to focus or meet the end of the tree
  2. if a view is found, getNextFocus() will internally call getDefaultFocus() for the selected child
  3. give focus to the result, if it exists

Overrides aurore::Box::getDefaultFocus

cell_slider.hpp:40

Also the functions of aurore::DetailCell (7), aurore::RecyclerCell (6), aurore::Box (53), aurore::View (221).

Static functions 1

static View * create()

Attributes 1

Slider * slider

Protected functions 1

virtual AccessibilityRole getDefaultAccessibilityRole() override

The view's own role and label when the app gave none.

Overrides aurore::DetailCell::getDefaultAccessibilityRole

cell_slider.hpp:45

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