summaryrefslogtreecommitdiffstats
path: root/scene/gui/panel.h
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2022-08-31 15:02:40 +0300
committerYuri Sizov <yuris@humnom.net>2022-09-01 16:35:36 +0300
commit3b1aa240dc2415c454062e769d4edcc81544e1f8 (patch)
treee66119340a0b02cc975416290be914237ae4ee4b /scene/gui/panel.h
parent0c221f0284909a1156a1c98de5104e07c1cce0b9 (diff)
downloadredot-engine-3b1aa240dc2415c454062e769d4edcc81544e1f8.tar.gz
Add a lifecycle method for manual theme item caching to Control
Diffstat (limited to 'scene/gui/panel.h')
-rw-r--r--scene/gui/panel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/gui/panel.h b/scene/gui/panel.h
index 5d2e912680..f9bd721681 100644
--- a/scene/gui/panel.h
+++ b/scene/gui/panel.h
@@ -36,7 +36,13 @@
class Panel : public Control {
GDCLASS(Panel, Control);
+ struct ThemeCache {
+ Ref<StyleBox> panel_style;
+ } theme_cache;
+
protected:
+ virtual void _update_theme_item_cache() override;
+
void _notification(int p_what);
public: