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
// ListElement keeps track of a currently highlighted piece, as well as handling scrolling as a unit
6
class
ListElement
:
public
Element
7
{
8
public
:
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
};
Element
Definition:
Element.hpp:32
InputEvents
Definition:
InputEvents.hpp:80
ListElement
Definition:
ListElement.hpp:7
ListElement::process
bool process(InputEvents *event)
process any input that is received for this element
Definition:
ListElement.cpp:3
Generated by
1.9.4