diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-04 16:12:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 16:12:52 +0200 |
commit | 865b62b1cddbb7989bc520eed2d8428c6923fee9 (patch) | |
tree | 5e021d90f23d64a161bec950593766d1b8aaa365 /scene/gui/control.h | |
parent | 2a09e119864432b0074941eb7eba802c08faa72a (diff) | |
parent | bdbb7b3999cddc821489d11350ad21bf89af5a42 (diff) |
Merge pull request #53341 from pycbouh/gui-editor-scale-encapsulation
Diffstat (limited to 'scene/gui/control.h')
-rw-r--r-- | scene/gui/control.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/gui/control.h b/scene/gui/control.h index 87ff3918cb..bdc06319ea 100644 --- a/scene/gui/control.h +++ b/scene/gui/control.h @@ -509,6 +509,14 @@ public: bool has_theme_color(const StringName &p_name, const StringName &p_theme_type = StringName()) const; bool has_theme_constant(const StringName &p_name, const StringName &p_theme_type = StringName()) const; + static float fetch_theme_default_base_scale(Control *p_theme_owner, Window *p_theme_owner_window); + static Ref<Font> fetch_theme_default_font(Control *p_theme_owner, Window *p_theme_owner_window); + static int fetch_theme_default_font_size(Control *p_theme_owner, Window *p_theme_owner_window); + + float get_theme_default_base_scale() const; + Ref<Font> get_theme_default_font() const; + int get_theme_default_font_size() const; + /* TOOLTIP */ void set_tooltip(const String &p_tooltip); |