Class · aurore
aurore::HRecyclerFrame
#include <aurore/views/recycling_grid.hpp>
class aurore::HRecyclerFrame : public aurore::HScrollingFrame, public aurore::RecyclingViewConstructors 1
Functions 15
virtual void draw( NVGcontext *vg,float x,float y,float width,float height,Style style,FrameContext *ctx) overrideCalled by frame() to draw the view onscreen. Views should not draw outside of their bounds (they may be clipped if they do so).
Overrides aurore::Box::draw
Called on every view of the screens when the theme changes (Application::getThemeChangedEvent): the colours given by key (setThemeColor) take their new values, the state styles read their "@theme/" values again. A view that keeps other colours of its own looks them up again here, then calls the base. A Box goes on to its children.
Overrides aurore::Box::onThemeChanged
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 :
- 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
- if a view is found, getNextFocus() will internally call getDefaultFocus() for the selected child
- give focus to the result, if it exists
Overrides aurore::Box::getDefaultFocus
Sets the padding of the view, aka the internal space to give between this view boundaries and its children.
Only does one layout pass instead of four when using the four methods separately.
Overrides aurore::Box::setPadding
Sets the padding of the view, aka the internal space to give between this view boundaries and its children.
Only does one layout pass instead of four when using the four methods separately.
Overrides aurore::Box::setPadding
Sets the padding of the view, aka the internal space to give between this view boundaries and its children.
Overrides aurore::Box::setPaddingTop
Sets the padding of the view, aka the internal space to give between this view boundaries and its children.
Overrides aurore::Box::setPaddingRight
Sets the padding of the view, aka the internal space to give between this view boundaries and its children.
Overrides aurore::Box::setPaddingBottom
Sets the padding of the view, aka the internal space to give between this view boundaries and its children.
Overrides aurore::Box::setPaddingLeft
virtual Box * getFrameBox() override Also the functions of aurore::HScrollingFrame (23), aurore::Box (53), aurore::View (221).
Static functions 1
Protected functions 2
Read from Aurore's headers by Doxygen at each build · library/include