diff options
author | Yuri Sizov <yuris@humnom.net> | 2022-08-31 15:02:40 +0300 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2022-09-01 16:35:36 +0300 |
commit | 3b1aa240dc2415c454062e769d4edcc81544e1f8 (patch) | |
tree | e66119340a0b02cc975416290be914237ae4ee4b /scene/gui/spin_box.h | |
parent | 0c221f0284909a1156a1c98de5104e07c1cce0b9 (diff) |
Add a lifecycle method for manual theme item caching to Control
Diffstat (limited to 'scene/gui/spin_box.h')
-rw-r--r-- | scene/gui/spin_box.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/gui/spin_box.h b/scene/gui/spin_box.h index 3fcb85ac99..c2f2ac3f5a 100644 --- a/scene/gui/spin_box.h +++ b/scene/gui/spin_box.h @@ -69,9 +69,14 @@ class SpinBox : public Range { inline void _adjust_width_for_icon(const Ref<Texture2D> &icon); + struct ThemeCache { + Ref<Texture2D> updown_icon; + } theme_cache; + protected: virtual void gui_input(const Ref<InputEvent> &p_event) override; + virtual void _update_theme_item_cache() override; void _notification(int p_what); static void _bind_methods(); |