Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ersa::app::Watchface Class Referenceabstract

#include <watchface.h>

Inheritance diagram for ersa::app::Watchface:
Inheritance graph
[legend]
Collaboration diagram for ersa::app::Watchface:
Collaboration graph
[legend]

Public Member Functions

 ~Watchface () override=default
 
const char * getId () const override
 
const char * getTitle () const override
 
virtual void render (ui::Canvas &canvas) override=0
 
- Public Member Functions inherited from ersa::app::Application
virtual ~Application ()=default
 
virtual void onCreate ()
 
virtual void onStart ()
 
virtual void onResume ()
 
virtual void onPause ()
 
virtual void onStop ()
 
virtual void onDestroy ()
 
virtual void onEnter ()
 
virtual void onExit ()
 
void onEvent (const events::Event &event) override
 
virtual void render (hal::IDisplay &display, bool fullRefresh)
 
virtual Rect getPartialBounds () const
 
virtual void tick ()
 
- Public Member Functions inherited from ersa::events::IEventListener
virtual ~IEventListener ()=default
 

Detailed Description

Specialized application contract for the always-available watch screen.

Constructor & Destructor Documentation

◆ ~Watchface()

ersa::app::Watchface::~Watchface ( )
overridedefault

Allow destruction through the watchface base type.

Member Function Documentation

◆ getId()

const char * ersa::app::Watchface::getId ( ) const
inlineoverridevirtual

Watchfaces share one stable ID so navigation can return to the face.

Implements ersa::app::Application.

◆ getTitle()

const char * ersa::app::Watchface::getTitle ( ) const
inlineoverridevirtual

Default label used for the watchface entry in navigation.

Implements ersa::app::Application.

◆ render()

virtual void ersa::app::Watchface::render ( ui::Canvas &  canvas)
overridepure virtual

Draw the face into the generic canvas without choosing a panel driver.

Reimplemented from ersa::app::Application.


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