52 std::vector<std::string> values;
57 int numberOfRows(
RecyclerFrame* recycler,
int section)
override;
73 void show(std::function<
void(
void)> cb,
bool animate,
float animationDuration)
override;
74 void hide(std::function<
void(
void)> cb,
bool animated,
float animationDuration)
override;
81 return &cellFocusDidChangeEvent;
#define AURORE_BIND(type, name, id)
Definition bind.hpp:39
Definition animation.hpp:42
Definition applet_frame.hpp:39
Generic FlexBox layout.
Definition box.hpp:74
Definition dropdown.hpp:43
float getShowAnimationDuration(TransitionAnimation animation) override
Event< RecyclerCell * > * getCellFocusDidChangeEvent()
Definition dropdown.hpp:79
void hide(std::function< void(void)> cb, bool animated, float animationDuration) override
std::string getDefaultAccessibilityLabel() override
A focusable box says the texts shown in it (getAccessibilityText).
Definition dropdown.hpp:68
Dropdown(std::string title, std::vector< std::string > values, ValueSelectedEvent::Callback cb, int selected=0, ValueSelectedEvent::Callback dismissCb=[](int) {})
void show(std::function< void(void)> cb, bool animate, float animationDuration) override
AccessibilityRole getDefaultAccessibilityRole() override
Definition dropdown.hpp:67
bool isTranslucent() override
Definition dropdown.hpp:84
virtual View * getParentNavigationDecision(View *from, View *newFocus, FocusDirection direction) override
virtual AppletFrame * getAppletFrame() override
The AppletFrame the view is in, or nullptr.
std::function< void(Ts...)> Callback
Definition event.hpp:43
Definition recycler.hpp:66
Definition recycler.hpp:136
Definition recycler.hpp:199
virtual bool isTranslucent()
Definition actions.hpp:25
TransitionAnimation
Definition view.hpp:153
AccessibilityRole
Definition view_style.hpp:78
FocusDirection
Focus direction when navigating.
Definition view.hpp:96
Event< int > ValueSelectedEvent
Definition dropdown.hpp:38
Definition recycler.hpp:35