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

Container Class Reference

Basic visible object which can contain other objects. More...

#include <menu.h>

Inheritance diagram for Container:

VisibleObject List of all members.

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)

Detailed Description

Basic visible object which can contain other objects.

Definition at line 52 of file menu.h.


Constructor & Destructor Documentation

Container::Container void   ) 
 

Allocates a fixed amount of child pointers (MAX_CHILDS) since realloc() is not availible in avr-libc at the moment.

Definition at line 160 of file menu.cc.


Member Function Documentation

bool Container::Activate void   )  [virtual]
 

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

void Container::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 from VisibleObject.

Definition at line 208 of file menu.cc.

References VisibleObject::LoadProperties().

bool Container::Shift uint8_t  dir  )  [virtual]
 

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


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