6#ifndef CONTAINERLIST_H_
7#define CONTAINERLIST_H_
11#define DEFAULT_CONTAINERLIST_SCROLLBAR_WIDTH 10
12#define DEFAULT_CONTAINERLIST_SCROLLBAR_MARGIN 2
41 virtual void Draw(
bool redraw)
override;
Containing the base class for container elements.
#define DEFAULT_MAX_CONTAINER_ITEMS
Default maximum number of items, each container can hold.
Definition Container.h:11
#define DEFAULT_CONTAINERLIST_SCROLLBAR_WIDTH
Default width in pixel of the scroll bar on the right side of the container.
Definition ContainerList.h:11
#define DEFAULT_CONTAINERLIST_SCROLLBAR_MARGIN
Default margin in pixel between the scroll bar frame and the container list outline.
Definition ContainerList.h:12
enum Keys Keys_t
Available input keys.
TouchTypes
Available touch types.
Definition TouchTypes.h:13
virtual void Draw()
Virtual method used for drawing of the container UIElement.
Definition Container.h:43
Container(uint8_t maxNumItems=DEFAULT_MAX_CONTAINER_ITEMS)
Constructor of the Container.
Definition Container.cpp:7
virtual bool KeyInput(Keys_t key) override
Process the given key.
Definition ContainerList.cpp:73
uint8_t _scrollBarWidth
Width in pixel of the scroll bar on the right side of the container.
Definition ContainerList.h:21
uint8_t _scrollBarMargin
Margin in pixel between the scroll bar frame and the container list outline.
Definition ContainerList.h:22
virtual void RecalculateLayout() override
Recalculate the UIElement layout (containers update the X- and Y-Location of all their items,...
Definition ContainerList.cpp:129
virtual void RecalculateDimensions() override
Recalculate the Height and Width of the UIElement.
Definition ContainerList.cpp:115
uint8_t _lastDrawnItemIndex
Index of the last item.
Definition ContainerList.h:20
ContainerList(uint8_t maxNumItems=DEFAULT_MAX_CONTAINER_ITEMS, uint8_t scrollBarWidth=DEFAULT_CONTAINERLIST_SCROLLBAR_WIDTH, uint8_t scrollBarMargin=DEFAULT_CONTAINERLIST_SCROLLBAR_MARGIN, uint16_t locX=0, uint16_t locY=0, uint16_t width=0, uint16_t height=0)
Constructor of the ContainerList.
Definition ContainerList.cpp:8
virtual bool TouchInput(uint16_t x, uint16_t y, TouchTypes touchType) override
Process a touch input at the given point (x, y)
Definition ContainerList.cpp:86