Dilbert
Firmware for the Dilbert interactive badge.
 All Classes Files Functions Variables Enumerations Macros Pages
Public Member Functions | Static Public Attributes | List of all members
StarsApp Class Reference

Displays Starfield. More...

#include <StarsApp.h>

Inheritance diagram for StarsApp:
Inheritance graph
[legend]
Collaboration diagram for StarsApp:
Collaboration graph
[legend]

Public Member Functions

virtual void onEntry ()
 Called when the application is entered. More...
 
virtual void run ()
 
virtual bool handleButton (IButton *button)
 Handle button presses. More...
 
- Public Member Functions inherited from App
 App (char *name)
 Creates a new instance of a badge application. More...
 
char * name ()
 Gets the name of the application. More...
 
void setBackgroundColour (uint16_t colour)
 Sets the background fill colour of the display for this application. More...
 
virtual void create ()
 Creates the application. More...
 
virtual void exit ()
 Exits the application.
 
virtual void onExit ()
 Called when the application exits. More...
 
virtual void destroy ()
 Destroys the application. More...
 

Static Public Attributes

static const int STAR_COUNT = 100
 

Additional Inherited Members

- Protected Attributes inherited from App
Dilbertm_badge
 Pointer to badge driver.
 
AppManagerm_manager
 Pointer to application manager.
 
char * m_name
 Name of application.
 
bool m_ready
 If the application has been created.
 
uint16_t m_backgroundColour
 Background colour.
 

Detailed Description

Displays Starfield.

Author
Iain Yarnall

Member Function Documentation

virtual bool StarsApp::handleButton ( IButton *  button)
inlinevirtual

Handle button presses.

Parameters
buttonButton that has changed
Returns
True if the button was handled in this function

Reimplemented from App.

virtual void StarsApp::onEntry ( )
inlinevirtual

Called when the application is entered.

Initial state should be set here, particularly for the display.

Reimplemented from App.

virtual void StarsApp::run ( )
inlinevirtual

Reimplemented from App.


The documentation for this class was generated from the following file: