Dilbert
Firmware for the Dilbert interactive badge.
 All Classes Files Functions Variables Enumerations Macros Pages
StaticDisplayApp.h
Go to the documentation of this file.
1 
3 #ifndef _STATICDISPLAYAPP_H_
4 #define _STATICDISPLAYAPP_H_
5 
6 #include "App.h"
7 
13 class StaticDisplayApp : public App
14 {
15 public:
16  StaticDisplayApp(char *name);
17  virtual ~StaticDisplayApp();
18 
19  virtual void onEntry();
20  virtual void onExit();
21 
22  virtual bool handleButton(IButton *button);
23 
24 protected:
25  void redraw(uint8_t orientation);
26 
30  virtual void drawPortrait()
31  {
32  }
33 
37  virtual void drawLandscape()
38  {
39  }
40 };
41 
42 #endif
Used for displaying static content at any screen orientation.
Definition: StaticDisplayApp.h:13
virtual void onExit()
Called when the application exits.
Definition: StaticDisplayApp.cpp:29
virtual bool handleButton(IButton *button)
Handle button presses.
Definition: StaticDisplayApp.cpp:37
virtual void drawPortrait()
Draws the portrait version of the content.
Definition: StaticDisplayApp.h:30
void redraw(uint8_t orientation)
Redraws the content at a given orientation.
Definition: StaticDisplayApp.cpp:72
StaticDisplayApp(char *name)
Creates a new static content application.
Definition: StaticDisplayApp.cpp:9
char * name()
Gets the name of the application.
Definition: App.h:40
virtual void drawLandscape()
Draws the landscape version of the content.
Definition: StaticDisplayApp.h:37
virtual void onEntry()
Called when the application is entered.
Definition: StaticDisplayApp.cpp:21
Used to encapsulate an individual application.
Definition: App.h:15