mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-11 12:27:28 +00:00
41 lines
1.0 KiB
C
41 lines
1.0 KiB
C
|
|
#ifdef MESHTASTIC_INCLUDE_INKHUD
|
||
|
|
|
||
|
|
/*
|
||
|
|
|
||
|
|
An applet with nonstandard behavior, which will require special handling
|
||
|
|
|
||
|
|
For features like the menu, and the battery icon.
|
||
|
|
|
||
|
|
*/
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "configuration.h"
|
||
|
|
|
||
|
|
#include "./Applet.h"
|
||
|
|
|
||
|
|
namespace NicheGraphics::InkHUD
|
||
|
|
{
|
||
|
|
|
||
|
|
class SystemApplet : public Applet
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
// System applets have the right to:
|
||
|
|
|
||
|
|
bool handleInput = false; // - respond to input from the user button
|
||
|
|
bool lockRendering = false; // - prevent other applets from being rendered during an update
|
||
|
|
bool lockRequests = false; // - prevent other applets from triggering display updates
|
||
|
|
|
||
|
|
// Other system applets may take precedence over our own system applet though
|
||
|
|
// The order an applet is passed to WindowManager::addSystemApplet determines this hierarchy (added earlier = higher rank)
|
||
|
|
|
||
|
|
private:
|
||
|
|
// System applets are always running (active), but may not be visible (foreground)
|
||
|
|
|
||
|
|
void onActivate() override {}
|
||
|
|
void onDeactivate() override {}
|
||
|
|
};
|
||
|
|
|
||
|
|
}; // namespace NicheGraphics::InkHUD
|
||
|
|
|
||
|
|
#endif
|