You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
Add the base scale factor to the Theme resource
This commit is contained in:
@@ -1266,6 +1266,18 @@ bool Window::has_theme_constant(const StringName &p_name, const StringName &p_th
|
||||
return Control::has_theme_item_in_types(theme_owner, theme_owner_window, Theme::DATA_TYPE_CONSTANT, p_name, theme_types);
|
||||
}
|
||||
|
||||
float Window::get_theme_default_base_scale() const {
|
||||
return Control::fetch_theme_default_base_scale(theme_owner, theme_owner_window);
|
||||
}
|
||||
|
||||
Ref<Font> Window::get_theme_default_font() const {
|
||||
return Control::fetch_theme_default_font(theme_owner, theme_owner_window);
|
||||
}
|
||||
|
||||
int Window::get_theme_default_font_size() const {
|
||||
return Control::fetch_theme_default_font_size(theme_owner, theme_owner_window);
|
||||
}
|
||||
|
||||
Rect2i Window::get_parent_rect() const {
|
||||
ERR_FAIL_COND_V(!is_inside_tree(), Rect2i());
|
||||
if (is_embedded()) {
|
||||
@@ -1480,6 +1492,10 @@ void Window::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("has_theme_color", "name", "theme_type"), &Window::has_theme_color, DEFVAL(""));
|
||||
ClassDB::bind_method(D_METHOD("has_theme_constant", "name", "theme_type"), &Window::has_theme_constant, DEFVAL(""));
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_theme_default_base_scale"), &Window::get_theme_default_base_scale);
|
||||
ClassDB::bind_method(D_METHOD("get_theme_default_font"), &Window::get_theme_default_font);
|
||||
ClassDB::bind_method(D_METHOD("get_theme_default_font_size"), &Window::get_theme_default_font_size);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_layout_direction", "direction"), &Window::set_layout_direction);
|
||||
ClassDB::bind_method(D_METHOD("get_layout_direction"), &Window::get_layout_direction);
|
||||
ClassDB::bind_method(D_METHOD("is_layout_rtl"), &Window::is_layout_rtl);
|
||||
|
||||
Reference in New Issue
Block a user