1 #ifndef AETHER_LIST_HPP 2 #define AETHER_LIST_HPP 4 #include "Aether/base/Scrollable.hpp" 17 bool waitUntilVisible;
26 bool hasVisibleItem();
74 void update(
unsigned int dt);
bool handleEvent(InputEvent *e)
Attempts to handle event.
bool wrapAround()
Returns whether the list is configured to wrap around.
A list is a scrollable with some values changed to match how a list functions within Horizon...
Definition: List.hpp:11
Padding
Enum class for amount of padding in a scrollable.
Definition: Types.hpp:47
void setWrapAround(bool b)
Set whether the list 'wraps around' from top to bottom and vice versa.
void update(unsigned int dt)
Updates info as necessary.
int w()
Returns width of element.
int x()
Returns x-coordinate of element.
int h()
Returns height of element.
Base namespace for all Aether related classes and functions.
void setInactive()
A list needs to stop scrolling when it is set inactive.
List(int x, int y, int w, int h, Padding p=Padding::Default)
Construct a new List object. The scrollbar is shown by default.
Button
Enum class for buttons Avoids confusion with SDL/libnx names.
Definition: Types.hpp:12
int y()
Returns y-coordinate of element.