class for a container that is showing all items at a time stacked one after another.
More...
|
| | ContainerStack (StackLayout_t stackLayout=STACK_LAYOUT_VERTICAL_LEFT, uint8_t maxNumItems=DEFAULT_MAX_CONTAINER_ITEMS, uint16_t locX=0, uint16_t locY=0, uint16_t width=0, uint16_t height=0) |
| | Constructor of the ContainerStack.
|
| |
| virtual void | Draw (bool redraw) override |
| | Method used for drawing of the ContainerStack.
|
| |
| virtual bool | KeyInput (Keys_t key) override |
| | Process the given key.
|
| |
| virtual bool | TouchInput (uint16_t x, uint16_t y, TouchTypes touchType) override |
| | Process a touch input at the given point (x, y)
|
| |
|
void | InitItems () |
| | This method selects the first UIElement in the container that is of UI_CONTROL type.
|
| |
| virtual void | RecalculateDimensions () override |
| | Recalculate the Height and Width of the UIElement.
|
| |
| virtual void | RecalculateLayout () override |
| | Recalculate the UIElement layout (containers update the X- and Y-Location of all their items, all other items can do other layout update stuff)
|
| |
| | Container (uint8_t maxNumItems=DEFAULT_MAX_CONTAINER_ITEMS) |
| | Constructor of the Container.
|
| |
|
| ~Container () |
| | Destructor of the Container.
|
| |
|
virtual void | Draw () |
| | Virtual method used for drawing of the container UIElement.
|
| |
| UIElement * | GetSelectedItem () |
| | Get the selected item.
|
| |
| bool | AddItem (UIElement *item) |
| | Add a new element to the container and activate it as active child.
|
| |
|
void | ClearAllItems () |
| | Clear all items in the container.
|
| |
| bool | NextItem () |
| | Select the next item in the container.
|
| |
| bool | PreviousItem () |
| | Select the previous item in the container.
|
| |
| bool | NextControlItem () |
| | Select the next item in the container that is of UI_CONTROL type.
|
| |
| bool | PreviousControlItem () |
| | Select the previous item in the container that is of UI_CONTROL type.
|
| |
| void | GetItemsBoundingBox (uint16_t *x, uint16_t *y, uint16_t *w, uint16_t *h) |
| | Get a bounding box around all items in the Container.
|
| |
| | UIElement (UIElementType type) |
| | Constructor of the UIElement.
|
| |
| | UIElement (uint16_t locX, uint16_t locY, UIElementType type) |
| | Constructor of the UIElement.
|
| |
| bool | HitTest (uint16_t x, uint16_t y) |
| | Check if the given point (x, y) is inside this UIElement.
|
| |
|
|
UIElementType | Type |
| | Element type (control, indicator, container)
|
| |
|
uint16_t | LocX |
| | X Location of the upper left corner of the UIElement.
|
| |
|
uint16_t | LocY |
| | Y Location of the upper left corner of the UIElement.
|
| |
|
uint16_t | Width |
| | Drawing width of the UIElement.
|
| |
|
uint16_t | Height |
| | Drawing height of the UIElement.
|
| |
|
bool | Visible |
| | The UIElement is only drawn if the visibility is set to true.
|
| |
| bool | IsInEditMode |
| | Is the UIElement in edit mode?
|
| |
|
UIElement * | Parent |
| | Parent UIElement that this UIElement belongs to.
|
| |
| UIElement * | ActiveChild |
| | Child element that is currently active (receiving all key inputs).
|
| |
| uint8_t | _maxNumItems |
| | Maximum number of items, each container can hold.
|
| |
|
UIElement ** | _items |
| | Array holding pointers to all UIElement that are items of the container.
|
| |
|
uint8_t | _numItems |
| | Number of items in the container (number of valid items in the _items array).
|
| |
|
uint8_t | _selectedItemIndex |
| | Index of the selected container item.
|
| |
| bool | _lastDrawnVisible |
| | The Visible value that was last drawn.
|
| |
class for a container that is showing all items at a time stacked one after another.