mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-08 14:42:33 -04:00
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:
parent
5a0066963e
commit
dcaa02c1e1
18 changed files with 667 additions and 24 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue