|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <app_watchface.h>


Public Member Functions | |
| AppWatchface () | |
| ~AppWatchface () override=default | |
| const char * | getId () const override |
| const char * | getTitle () const override |
| void | onEnter () override |
| void | onExit () override |
| void | onEvent (const events::Event &event) override |
| void | render (hal::IDisplay &display, bool fullRefresh) override |
| Rect | getPartialBounds () const override |
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 | render (ui::Canvas &canvas) |
| virtual void | tick () |
Public Member Functions inherited from ersa::events::IEventListener | |
| virtual | ~IEventListener ()=default |
Static Public Member Functions | |
| static AppWatchface & | instance () |
Private Attributes | |
| uint32_t | shownMinute_ {UINT32_MAX} |
| uint8_t | shownDay_ {0} |
| bool | shownRtcHealthy_ {false} |
Default clock face showing local time, date, and companion status. It observes normalized app events and requests only the dynamic region for ordinary minute/media/call changes; the fixed footer is preserved to avoid unnecessary e-paper refresh and ghosting.
|
default |
Initialize cached render keys so first paint includes every field.
|
overridedefault |
|
inlineoverridevirtual |
Return the stable registry ID used for watchface navigation.
Implements ersa::app::Application.
|
inlineoverridevirtual |
Return the smallest display rectangle that may have changed. The UI uses this to limit partial e-paper refreshes and reduce visible flashing; return the whole panel when the changed region cannot be bounded. The default describes the 200 by 200 reference canvas and is conservative for the current product; other geometries should provide their own.
Reimplemented from ersa::app::Application.
|
inlineoverridevirtual |
Return the product-facing watchface label.
Implements ersa::app::Application.
|
static |
Return the single static instance registered by the app registry.
|
overridevirtual |
Mark the clock face active and request its initial render.
Reimplemented from ersa::app::Application.
|
overridevirtual |
Update cached display state for time, media, call, or notification events.
Reimplemented from ersa::app::Application.
|
overridevirtual |
Stop face-specific observation when navigating to another app.
Reimplemented from ersa::app::Application.
|
overridevirtual |
Draw the clock and dynamic companion information using display HAL calls.
Reimplemented from ersa::app::Application.
|
private |
|
private |
|
private |