External module api (#2290)

* added external module debug view

* integrated module driver into i2c subsystem

* implemented i2c app loader

* added view mirror api

* fixed build

* added i2c to module api

* implemented standalone app touch event

* implemented focus management

* reverted formating change

* refactoring

* refactoring

* implemented events

* fixed memory usage
This commit is contained in:
Bernd Herzog 2024-10-14 13:07:41 +02:00 committed by GitHub
parent 5a0066963e
commit dcaa02c1e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 667 additions and 24 deletions

View file

@ -84,6 +84,9 @@ class Widget {
Widget* parent() const;
void set_parent(Widget* const widget);
virtual void on_after_attach() { return; };
virtual void on_before_detach() { return; };
bool hidden() const { return flags.hidden; }
void hidden(bool hide);
@ -97,8 +100,8 @@ class Widget {
virtual void paint(Painter& painter) = 0;
virtual void on_show(){};
virtual void on_hide(){};
virtual void on_show() { return; };
virtual void on_hide() { return; };
virtual bool on_key(const KeyEvent event);
virtual bool on_encoder(const EncoderEvent event);