summaryrefslogtreecommitdiff
path: root/scene/gui/margin_container.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/margin_container.h')
-rw-r--r--scene/gui/margin_container.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/scene/gui/margin_container.h b/scene/gui/margin_container.h
index f8a3c5bb11..5c33785170 100644
--- a/scene/gui/margin_container.h
+++ b/scene/gui/margin_container.h
@@ -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: