#include <menu.h>
Inheritance diagram for Container:
Public Member Functions | |
Container () | |
virtual bool | Activate (void) |
Activate the container. | |
virtual void | Deactivate (void) |
Object looses focus. | |
virtual void | Display (void) |
Simply displays all owned objects. | |
virtual void | LoadProperties (uint8_t tag) |
Parse a tag-id. | |
virtual bool | Shift (uint8_t dir) |
Shift the focus to the next or previous owned object. | |
Protected Member Functions | |
void | AddChild (VisibleObject *child) |
Definition at line 52 of file menu.h.
|
Allocates a fixed amount of child pointers (MAX_CHILDS) since realloc() is not availible in avr-libc at the moment. |
|
Activate the container. A container itself cannot be activated. Only if a child exists and it could be activated this function will return true. Reimplemented from VisibleObject. Definition at line 171 of file menu.cc. References VisibleObject::Activate(). |
|
Parse a tag-id. This method is responsible for parsing tags coming from an application image. Custom objects should overwrite this method to analyse their specific tags. The menu loader will call this function for every tag. If a custom object does not recognize a tag then it should be passed to it's parent class. Reimplemented from VisibleObject. Definition at line 208 of file menu.cc. References VisibleObject::LoadProperties(). |
|
Shift the focus to the next or previous owned object. First it is tried if the current active child can shift the focus. If this fails the focus is passed to another child. If no other child could be activated the method returns false. Reimplemented from VisibleObject. Definition at line 233 of file menu.cc. References VisibleObject::Activate(), VisibleObject::Deactivate(), VisibleObject::Display(), and VisibleObject::Shift(). |