Class · aurore
aurore::ContextMenu
On this page
#include <aurore/views/context_menu.hpp>
class aurore::ContextMenu : public aurore::BoxConstructors 1
Functions 10
Is this view translucent?
If you override it please return
|| View::isTranslucent() to keep the fadeIn transition
Overrides aurore::View::isTranslucent
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
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
Also the functions of aurore::Box (53), aurore::View (221).
Static functions 1
Read from Aurore's headers by Doxygen at each build · library/include