mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-29 13:12:04 +00:00
add a .clang-format file (#9154)
This commit is contained in:
@@ -14,28 +14,27 @@ For features like the menu, and the battery icon.
|
||||
|
||||
#include "./Applet.h"
|
||||
|
||||
namespace NicheGraphics::InkHUD
|
||||
{
|
||||
namespace NicheGraphics::InkHUD {
|
||||
|
||||
class SystemApplet : public Applet
|
||||
{
|
||||
public:
|
||||
// System applets have the right to:
|
||||
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
|
||||
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
|
||||
|
||||
virtual void onReboot() { onShutdown(); } // - handle reboot specially
|
||||
virtual void onReboot() { onShutdown(); } // - handle reboot specially
|
||||
|
||||
// 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)
|
||||
// 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)
|
||||
private:
|
||||
// System applets are always running (active), but may not be visible (foreground)
|
||||
|
||||
void onActivate() override {}
|
||||
void onDeactivate() override {}
|
||||
void onActivate() override {}
|
||||
void onDeactivate() override {}
|
||||
};
|
||||
|
||||
}; // namespace NicheGraphics::InkHUD
|
||||
|
||||
Reference in New Issue
Block a user