chore(color): Replace dynamic_cast with virtual functions, disable RTTI to reduce FLASH usage (#3885)
* Replace dynamic_cast with virtual functions and disable RTTI. * Cleanup TopBar class hierarchy. * Fix compiler warning.
This commit is contained in:
+3
@@ -201,6 +201,9 @@ class Window
|
||||
|
||||
inline lv_obj_t *getLvObj() { return lvobj; }
|
||||
|
||||
virtual bool isTopBar() { return false; }
|
||||
virtual bool isWidgetsContainer() { return false; }
|
||||
|
||||
protected:
|
||||
static std::list<Window*> trash;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user