Add a lifecycle method for manual theme item caching to Control

This commit is contained in:
Yuri Sizov
2022-08-31 15:02:40 +03:00
parent 0c221f0284
commit 3b1aa240dc
52 changed files with 1592 additions and 910 deletions

View File

@ -36,7 +36,16 @@
class MarginContainer : public Container {
GDCLASS(MarginContainer, Container);
struct ThemeCache {
int margin_left = 0;
int margin_top = 0;
int margin_right = 0;
int margin_bottom = 0;
} theme_cache;
protected:
virtual void _update_theme_item_cache() override;
void _notification(int p_what);
public: