godot/scene/theme/theme_db.cpp

/**************************************************************************/
/*  theme_db.cpp                                                          */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "theme_db.h"

#include "core/config/project_settings.h"
#include "core/io/resource_loader.h"
#include "scene/gui/control.h"
#include "scene/main/node.h"
#include "scene/main/window.h"
#include "scene/resources/font.h"
#include "scene/resources/style_box.h"
#include "scene/resources/texture.h"
#include "scene/theme/default_theme.h"
#include "servers/text_server.h"

// Default engine theme creation and configuration.

void ThemeDB::initialize_theme() {}

void ThemeDB::initialize_theme_noproject() {}

void ThemeDB::finalize_theme() {}

// Global Theme resources.

void ThemeDB::set_default_theme(const Ref<Theme> &p_default) {}

Ref<Theme> ThemeDB::get_default_theme() {}

void ThemeDB::set_project_theme(const Ref<Theme> &p_project_default) {}

Ref<Theme> ThemeDB::get_project_theme() {}

// Universal fallback values for theme item types.

void ThemeDB::set_fallback_base_scale(float p_base_scale) {}

float ThemeDB::get_fallback_base_scale() {}

void ThemeDB::set_fallback_font(const Ref<Font> &p_font) {}

Ref<Font> ThemeDB::get_fallback_font() {}

void ThemeDB::set_fallback_font_size(int p_font_size) {}

int ThemeDB::get_fallback_font_size() {}

void ThemeDB::set_fallback_icon(const Ref<Texture2D> &p_icon) {}

Ref<Texture2D> ThemeDB::get_fallback_icon() {}

void ThemeDB::set_fallback_stylebox(const Ref<StyleBox> &p_stylebox) {}

Ref<StyleBox> ThemeDB::get_fallback_stylebox() {}

void ThemeDB::get_native_type_dependencies(const StringName &p_base_type, Vector<StringName> &r_result) {}

// Global theme contexts.

ThemeContext *ThemeDB::create_theme_context(Node *p_node, Vector<Ref<Theme>> &p_themes) {}

void ThemeDB::destroy_theme_context(Node *p_node) {}

void ThemeDB::_propagate_theme_context(Node *p_from_node, ThemeContext *p_context) {}

void ThemeDB::_init_default_theme_context() {}

void ThemeDB::_finalize_theme_contexts() {}

ThemeContext *ThemeDB::get_theme_context(Node *p_node) const {}

ThemeContext *ThemeDB::get_default_theme_context() const {}

ThemeContext *ThemeDB::get_nearest_theme_context(Node *p_for_node) const {}

// Theme item binding.

void ThemeDB::bind_class_item(Theme::DataType p_data_type, const StringName &p_class_name, const StringName &p_prop_name, const StringName &p_item_name, ThemeItemSetter p_setter) {}

void ThemeDB::bind_class_external_item(Theme::DataType p_data_type, const StringName &p_class_name, const StringName &p_prop_name, const StringName &p_item_name, const StringName &p_type_name, ThemeItemSetter p_setter) {}

void ThemeDB::update_class_instance_items(Node *p_instance) {}

void ThemeDB::get_class_items(const StringName &p_class_name, List<ThemeItemBind> *r_list, bool p_include_inherited, Theme::DataType p_filter_type) {}

void ThemeDB::_sort_theme_items() {}

// Object methods.

void ThemeDB::_bind_methods() {}

// Memory management, reference, and initialization.

ThemeDB *ThemeDB::singleton =;

ThemeDB *ThemeDB::get_singleton() {}

ThemeDB::ThemeDB() {}

ThemeDB::~ThemeDB() {}

void ThemeContext::_emit_changed() {}

void ThemeContext::set_themes(Vector<Ref<Theme>> &p_themes) {}

const Vector<Ref<Theme>> ThemeContext::get_themes() const {}

Ref<Theme> ThemeContext::get_fallback_theme() const {}

void ThemeContext::_bind_methods() {}