Add a lifecycle method for manual theme item caching to Control
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user