11 const static uint8_t MaxItems = 10;
22 int16_t
add(
const String s);
30 bool remove(
const uint8_t idx,
bool compactAfter=
true);
36 void draw(uint16_t xOffset=0, uint16_t yOffset=0);
45 int16_t
find(
const String s, uint8_t n=1);
82 int16_t
findGap(uint8_t startAt=0);
119 String *_items[MaxItems];
121 uint16_t _lineHeight;
123 uint8_t _screenLines;
124 uint8_t _screenStart;
uint8_t rowsFrom(uint8_t idx)
void compact()
Make used items contiguous (remove gaps)
int16_t findPreceding(uint8_t from=MaxItems)
int16_t add(const String s)
uint8_t scrollDown(uint8_t rows)
int16_t findGap(uint8_t startAt=0)
int16_t findNext(uint8_t from=0)
void draw(uint16_t xOffset=0, uint16_t yOffset=0)
bool isCompacted()
Sort the items contained in the list box using quicksort.
int16_t find(const String s, uint8_t n=1)
uint8_t scrollUp(uint8_t rows)
bool isOnScreen(uint8_t idx)
bool scrollTo(uint8_t idx)