godot/scene/resources/theme.cpp

/**************************************************************************/
/*  theme.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.h"

#include "core/string/print_string.h"
#include "scene/theme/theme_db.h"

// Dynamic properties.
bool Theme::_set(const StringName &p_name, const Variant &p_value) {}

bool Theme::_get(const StringName &p_name, Variant &r_ret) const {}

void Theme::_get_property_list(List<PropertyInfo> *p_list) const {}

// Static helpers.
bool Theme::is_valid_type_name(const String &p_name) {}

bool Theme::is_valid_item_name(const String &p_name) {}

// Fallback values for theme item types, configurable per theme.
void Theme::set_default_base_scale(float p_base_scale) {}

float Theme::get_default_base_scale() const {}

bool Theme::has_default_base_scale() const {}

void Theme::set_default_font(const Ref<Font> &p_default_font) {}

Ref<Font> Theme::get_default_font() const {}

bool Theme::has_default_font() const {}

void Theme::set_default_font_size(int p_font_size) {}

int Theme::get_default_font_size() const {}

bool Theme::has_default_font_size() const {}

// Icons.
void Theme::set_icon(const StringName &p_name, const StringName &p_theme_type, const Ref<Texture2D> &p_icon) {}

Ref<Texture2D> Theme::get_icon(const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_icon(const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_icon_nocheck(const StringName &p_name, const StringName &p_theme_type) const {}

void Theme::rename_icon(const StringName &p_old_name, const StringName &p_name, const StringName &p_theme_type) {}

void Theme::clear_icon(const StringName &p_name, const StringName &p_theme_type) {}

void Theme::get_icon_list(const StringName &p_theme_type, List<StringName> *p_list) const {}

void Theme::add_icon_type(const StringName &p_theme_type) {}

void Theme::remove_icon_type(const StringName &p_theme_type) {}

void Theme::get_icon_type_list(List<StringName> *p_list) const {}

// Styleboxes.
void Theme::set_stylebox(const StringName &p_name, const StringName &p_theme_type, const Ref<StyleBox> &p_style) {}

Ref<StyleBox> Theme::get_stylebox(const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_stylebox(const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_stylebox_nocheck(const StringName &p_name, const StringName &p_theme_type) const {}

void Theme::rename_stylebox(const StringName &p_old_name, const StringName &p_name, const StringName &p_theme_type) {}

void Theme::clear_stylebox(const StringName &p_name, const StringName &p_theme_type) {}

void Theme::get_stylebox_list(const StringName &p_theme_type, List<StringName> *p_list) const {}

void Theme::add_stylebox_type(const StringName &p_theme_type) {}

void Theme::remove_stylebox_type(const StringName &p_theme_type) {}

void Theme::get_stylebox_type_list(List<StringName> *p_list) const {}

// Fonts.
void Theme::set_font(const StringName &p_name, const StringName &p_theme_type, const Ref<Font> &p_font) {}

Ref<Font> Theme::get_font(const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_font(const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_font_nocheck(const StringName &p_name, const StringName &p_theme_type) const {}

void Theme::rename_font(const StringName &p_old_name, const StringName &p_name, const StringName &p_theme_type) {}

void Theme::clear_font(const StringName &p_name, const StringName &p_theme_type) {}

void Theme::get_font_list(const StringName &p_theme_type, List<StringName> *p_list) const {}

void Theme::add_font_type(const StringName &p_theme_type) {}

void Theme::remove_font_type(const StringName &p_theme_type) {}

void Theme::get_font_type_list(List<StringName> *p_list) const {}

// Font sizes.
void Theme::set_font_size(const StringName &p_name, const StringName &p_theme_type, int p_font_size) {}

int Theme::get_font_size(const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_font_size(const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_font_size_nocheck(const StringName &p_name, const StringName &p_theme_type) const {}

void Theme::rename_font_size(const StringName &p_old_name, const StringName &p_name, const StringName &p_theme_type) {}

void Theme::clear_font_size(const StringName &p_name, const StringName &p_theme_type) {}

void Theme::get_font_size_list(const StringName &p_theme_type, List<StringName> *p_list) const {}

void Theme::add_font_size_type(const StringName &p_theme_type) {}

void Theme::remove_font_size_type(const StringName &p_theme_type) {}

void Theme::get_font_size_type_list(List<StringName> *p_list) const {}

// Colors.
void Theme::set_color(const StringName &p_name, const StringName &p_theme_type, const Color &p_color) {}

Color Theme::get_color(const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_color(const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_color_nocheck(const StringName &p_name, const StringName &p_theme_type) const {}

void Theme::rename_color(const StringName &p_old_name, const StringName &p_name, const StringName &p_theme_type) {}

void Theme::clear_color(const StringName &p_name, const StringName &p_theme_type) {}

void Theme::get_color_list(const StringName &p_theme_type, List<StringName> *p_list) const {}

void Theme::add_color_type(const StringName &p_theme_type) {}

void Theme::remove_color_type(const StringName &p_theme_type) {}

void Theme::get_color_type_list(List<StringName> *p_list) const {}

// Theme constants.
void Theme::set_constant(const StringName &p_name, const StringName &p_theme_type, int p_constant) {}

int Theme::get_constant(const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_constant(const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_constant_nocheck(const StringName &p_name, const StringName &p_theme_type) const {}

void Theme::rename_constant(const StringName &p_old_name, const StringName &p_name, const StringName &p_theme_type) {}

void Theme::clear_constant(const StringName &p_name, const StringName &p_theme_type) {}

void Theme::get_constant_list(const StringName &p_theme_type, List<StringName> *p_list) const {}

void Theme::add_constant_type(const StringName &p_theme_type) {}

void Theme::remove_constant_type(const StringName &p_theme_type) {}

void Theme::get_constant_type_list(List<StringName> *p_list) const {}

// Generic methods for managing theme items.
void Theme::set_theme_item(DataType p_data_type, const StringName &p_name, const StringName &p_theme_type, const Variant &p_value) {}

Variant Theme::get_theme_item(DataType p_data_type, const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_theme_item(DataType p_data_type, const StringName &p_name, const StringName &p_theme_type) const {}

bool Theme::has_theme_item_nocheck(DataType p_data_type, const StringName &p_name, const StringName &p_theme_type) const {}

void Theme::rename_theme_item(DataType p_data_type, const StringName &p_old_name, const StringName &p_name, const StringName &p_theme_type) {}

void Theme::clear_theme_item(DataType p_data_type, const StringName &p_name, const StringName &p_theme_type) {}

void Theme::get_theme_item_list(DataType p_data_type, const StringName &p_theme_type, List<StringName> *p_list) const {}

void Theme::add_theme_item_type(DataType p_data_type, const StringName &p_theme_type) {}

void Theme::remove_theme_item_type(DataType p_data_type, const StringName &p_theme_type) {}

void Theme::get_theme_item_type_list(DataType p_data_type, List<StringName> *p_list) const {}

// Theme type variations.
void Theme::set_type_variation(const StringName &p_theme_type, const StringName &p_base_type) {}

bool Theme::is_type_variation(const StringName &p_theme_type, const StringName &p_base_type) const {}

void Theme::clear_type_variation(const StringName &p_theme_type) {}

StringName Theme::get_type_variation_base(const StringName &p_theme_type) const {}

void Theme::get_type_variation_list(const StringName &p_base_type, List<StringName> *p_list) const {}

// Theme types.
void Theme::add_type(const StringName &p_theme_type) {}

void Theme::remove_type(const StringName &p_theme_type) {}

void Theme::get_type_list(List<StringName> *p_list) const {}

void Theme::get_type_dependencies(const StringName &p_base_type, const StringName &p_type_variation, Vector<StringName> &r_result) {}

// Internal methods for getting lists as a Vector of String (compatible with public API).
Vector<String> Theme::_get_icon_list(const String &p_theme_type) const {}

Vector<String> Theme::_get_icon_type_list() const {}

Vector<String> Theme::_get_stylebox_list(const String &p_theme_type) const {}

Vector<String> Theme::_get_stylebox_type_list() const {}

Vector<String> Theme::_get_font_list(const String &p_theme_type) const {}

Vector<String> Theme::_get_font_type_list() const {}

Vector<String> Theme::_get_font_size_list(const String &p_theme_type) const {}

Vector<String> Theme::_get_font_size_type_list() const {}

Vector<String> Theme::_get_color_list(const String &p_theme_type) const {}

Vector<String> Theme::_get_color_type_list() const {}

Vector<String> Theme::_get_constant_list(const String &p_theme_type) const {}

Vector<String> Theme::_get_constant_type_list() const {}

Vector<String> Theme::_get_theme_item_list(DataType p_data_type, const String &p_theme_type) const {}

Vector<String> Theme::_get_theme_item_type_list(DataType p_data_type) const {}

Vector<String> Theme::_get_type_variation_list(const StringName &p_theme_type) const {}

Vector<String> Theme::_get_type_list() const {}

// Theme bulk manipulations.
void Theme::_emit_theme_changed(bool p_notify_list_changed) {}

void Theme::_freeze_change_propagation() {}

void Theme::_unfreeze_and_propagate_changes() {}

void Theme::merge_with(const Ref<Theme> &p_other) {}

void Theme::clear() {}

void Theme::reset_state() {}

void Theme::_bind_methods() {}

Theme::Theme() {}

Theme::~Theme() {}