Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

VisibleObject Class Reference

Abstract root of all visible objects. More...

#include <menu.h>

Inheritance diagram for VisibleObject:

Container Icon Label Switch List of all members.

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

Detailed Description

Abstract root of all visible objects.

Definition at line 36 of file menu.h.


Member Function Documentation

bool VisibleObject::Activate void   )  [virtual]
 

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().

void VisibleObject::KeyCallback uint8_t  key  )  [virtual]
 

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.

Definition at line 148 of file menu.cc.

void VisibleObject::LoadProperties uint8_t  tag  )  [virtual]
 

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().

bool VisibleObject::Shift uint8_t  dir  )  [virtual]
 

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().


The documentation for this class was generated from the following files:
Generated on Thu Oct 16 13:13:41 2003 for OpenHomeMainPanel by doxygen 1.3.3