Chesto 0.9
A declarative and element-based library for creating GUIs on homebrew'd consoles
ListElement.hpp
1#pragma once
2
3#include "Element.hpp"
4
5namespace Chesto {
6
7// ListElement keeps track of a currently highlighted piece, as well as handling scrolling as a unit
8class ListElement : public Element
9{
10public:
11 int highlighted = -1;
12 int initialTouchDown = -1;
13 int minYScroll = 0;
14 bool process(InputEvents* event);
15 bool handleInertiaScroll(InputEvents* event);
16 bool processUpDown(InputEvents* event);
17};
18
19} // namespace Chesto
bool process(InputEvents *event)
process any input that is received for this element
Definition: ListElement.cpp:5