#include <menu.h>
Inheritance diagram for VisibleObject:
Public Member Functions | |
virtual void | KeyCallback (uint8_t key) |
Callback function for menu hooks. | |
virtual bool | Activate (void) |
Object is activated, that is it gains the focus. | |
virtual void | Deactivate (void) |
Object looses focus. | |
virtual void | Display (void)=NULL |
virtual void | LoadProperties (uint8_t tag) |
Parse a tag-id. | |
virtual bool | Shift (uint8_t dir) |
Protected Attributes | |
uint8_t | x |
uint8_t | y |
uint8_t | active |
Definition at line 36 of file menu.h.
|
Object is activated, that is it gains the focus. Derived objects will overwrite this function to install menu hooks and set keypad leds. Reimplemented in Label, Icon, Container, and Switch. Definition at line 93 of file menu.cc. Referenced by Switch::Activate(), Container::Activate(), and Container::Shift(). |
|
Callback function for menu hooks. If an object installed a menu hook then this method will be called if the appropriate key was pressed. Reimplemented in Switch. |
|
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 in Label, Icon, and Container. Definition at line 116 of file menu.cc. Referenced by Icon::LoadProperties(), Label::LoadProperties(), and Container::LoadProperties(). |
|
Shift the focus up or down. Only meaningful for objects containing other objects. If the focus could not be shifted the method returns false, otherwise true. Reimplemented in Container. Definition at line 137 of file menu.cc. Referenced by Container::Shift(). |