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

Switch Class Reference

Switch widget. More...

#include <switch.h>

Inheritance diagram for Switch:

VisibleObject List of all members.

Public Member Functions

virtual bool Activate (void)
 Object is activated, that is it gains the focus.

virtual void Deactivate (void)
 Object looses focus.

virtual void Display (void)

Protected Member Functions

void KeyCallback (uint8_t key)
 Callback function for menu hooks.


Detailed Description

Switch widget.

Definition at line 46 of file switch.h.


Member Function Documentation

bool Switch::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 from VisibleObject.

Definition at line 58 of file switch.cc.

References VisibleObject::Activate(), keys_set_leds(), and keys_set_repeat_mask().

void Switch::KeyCallback uint8_t  key  )  [protected, 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 from VisibleObject.

Definition at line 91 of file switch.cc.


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