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
5// ListElement keeps track of a currently highlighted piece, as well as handling scrolling as a unit
6class ListElement : public Element
7{
8public:
9 int highlighted = -1;
10 int initialTouchDown = -1;
11 int minYScroll = 0;
12 bool process(InputEvents* event);
13 bool handleInertiaScroll(InputEvents* event);
14 bool processUpDown(InputEvents* event);
15};
bool process(InputEvents *event)
process any input that is received for this element
Definition: ListElement.cpp:3