diff options
Diffstat (limited to 'scene/gui/label.h')
-rw-r--r-- | scene/gui/label.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/scene/gui/label.h b/scene/gui/label.h index 65831cab6e..41d7049b22 100644 --- a/scene/gui/label.h +++ b/scene/gui/label.h @@ -67,17 +67,33 @@ private: Ref<LabelSettings> settings; + struct ThemeCache { + Ref<StyleBox> normal_style; + Ref<Font> font; + + int font_size = 0; + int line_spacing = 0; + Color font_color; + Color font_shadow_color; + Point2 font_shadow_offset; + Color font_outline_color; + int font_outline_size; + int font_shadow_outline_size; + } theme_cache; + void _update_visible(); void _shape(); void _invalidate(); protected: - void _notification(int p_what); + virtual void _update_theme_item_cache() override; + void _notification(int p_what); static void _bind_methods(); public: virtual Size2 get_minimum_size() const override; + virtual PackedStringArray get_configuration_warnings() const override; void set_horizontal_alignment(HorizontalAlignment p_alignment); HorizontalAlignment get_horizontal_alignment() const; |