Chesto
0.9
A declarative and element-based library for creating GUIs on homebrew'd consoles
src
ListElement.hpp
1
#pragma once
2
3
#include "Element.hpp"
4
5
namespace
Chesto {
6
7
// ListElement keeps track of a currently highlighted piece, as well as handling scrolling as a unit
8
class
ListElement
:
public
Element
9
{
10
public
:
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
Chesto::Element
Definition:
Element.hpp:29
Chesto::InputEvents
Definition:
InputEvents.hpp:78
Chesto::ListElement
Definition:
ListElement.hpp:9
Chesto::ListElement::process
bool process(InputEvents *event)
process any input that is received for this element
Definition:
ListElement.cpp:5
Generated by
1.9.4