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

Used for displaying static content at any screen orientation. More...

#include <StaticDisplayApp.h>

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

Public Member Functions

 StaticDisplayApp (char *name)
 Creates a new static content application. More...
 
virtual void onEntry ()
 Called when the application is entered. More...
 
virtual void onExit ()
 Called when the application exits. More...
 
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 run ()
 Called in a loop while the application is active. More...
 
virtual void exit ()
 Exits the application.
 
virtual void destroy ()
 Destroys the application. More...
 

Protected Member Functions

void redraw (uint8_t orientation)
 Redraws the content at a given orientation. More...
 
virtual void drawPortrait ()
 Draws the portrait version of the content.
 
virtual void drawLandscape ()
 Draws the landscape version of the content.
 

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

Used for displaying static content at any screen orientation.

Author
Dan Nixon

Constructor & Destructor Documentation

StaticDisplayApp::StaticDisplayApp ( char *  name)

Creates a new static content application.

Parameters
nameName of the app

Member Function Documentation

bool StaticDisplayApp::handleButton ( IButton *  button)
virtual

Handle button presses.

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

Reimplemented from App.

void StaticDisplayApp::onEntry ( )
virtual

Called when the application is entered.

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

Reimplemented from App.

void StaticDisplayApp::onExit ( )
virtual

Called when the application exits.

Perform any state cleanup here.

Reimplemented from App.

void StaticDisplayApp::redraw ( uint8_t  orientation)
protected

Redraws the content at a given orientation.

Parameters
orientationOrientation to draw at

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