mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Sync classref with current source
This commit is contained in:
@@ -124,118 +124,158 @@ Method Descriptions
|
||||
|
||||
- void **clear** **(** **)**
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_clear_color:
|
||||
|
||||
- void **clear_color** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)**
|
||||
|
||||
Clears the :ref:`Color<class_Color>` at ``name`` if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_clear_constant:
|
||||
|
||||
- void **clear_constant** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)**
|
||||
|
||||
Clears the constant at ``name`` if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_clear_font:
|
||||
|
||||
- void **clear_font** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)**
|
||||
|
||||
Clears the :ref:`Font<class_Font>` at ``name`` if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_clear_icon:
|
||||
|
||||
- void **clear_icon** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)**
|
||||
|
||||
Clears the icon at ``name`` if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_clear_stylebox:
|
||||
|
||||
- void **clear_stylebox** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)**
|
||||
|
||||
Clears :ref:`StyleBox<class_StyleBox>` at ``name`` if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_copy_default_theme:
|
||||
|
||||
- void **copy_default_theme** **(** **)**
|
||||
|
||||
Sets the Theme's values to a copy of the default theme values.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_copy_theme:
|
||||
|
||||
- void **copy_theme** **(** :ref:`Theme<class_Theme>` other **)**
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_get_color:
|
||||
|
||||
- :ref:`Color<class_Color>` **get_color** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)** const
|
||||
|
||||
Returns the :ref:`Color<class_Color>` at ``name`` if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_get_color_list:
|
||||
|
||||
- :ref:`PoolStringArray<class_PoolStringArray>` **get_color_list** **(** :ref:`String<class_String>` type **)** const
|
||||
|
||||
Returns all the :ref:`Color<class_Color>`\ s as a :ref:`PoolStringArray<class_PoolStringArray>` filled with each :ref:`Color<class_Color>`'s name, for use in :ref:`get_color<class_Theme_method_get_color>`, if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_get_constant:
|
||||
|
||||
- :ref:`int<class_int>` **get_constant** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)** const
|
||||
|
||||
Returns the constant at ``name`` if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_get_constant_list:
|
||||
|
||||
- :ref:`PoolStringArray<class_PoolStringArray>` **get_constant_list** **(** :ref:`String<class_String>` type **)** const
|
||||
|
||||
Returns all the constants as a :ref:`PoolStringArray<class_PoolStringArray>` filled with each constant's name, for use in :ref:`get_constant<class_Theme_method_get_constant>`, if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_get_font:
|
||||
|
||||
- :ref:`Font<class_Font>` **get_font** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)** const
|
||||
|
||||
Returns the :ref:`Font<class_Font>` at ``name`` if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_get_font_list:
|
||||
|
||||
- :ref:`PoolStringArray<class_PoolStringArray>` **get_font_list** **(** :ref:`String<class_String>` type **)** const
|
||||
|
||||
Returns all the :ref:`Font<class_Font>`\ s as a :ref:`PoolStringArray<class_PoolStringArray>` filled with each :ref:`Font<class_Font>`'s name, for use in :ref:`get_font<class_Theme_method_get_font>`, if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_get_icon:
|
||||
|
||||
- :ref:`Texture<class_Texture>` **get_icon** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)** const
|
||||
|
||||
Returns the icon :ref:`Texture<class_Texture>` at ``name`` if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_get_icon_list:
|
||||
|
||||
- :ref:`PoolStringArray<class_PoolStringArray>` **get_icon_list** **(** :ref:`String<class_String>` type **)** const
|
||||
|
||||
Returns all the icons as a :ref:`PoolStringArray<class_PoolStringArray>` filled with each :ref:`Texture<class_Texture>`'s name, for use in :ref:`get_icon<class_Theme_method_get_icon>`, if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_get_stylebox:
|
||||
|
||||
- :ref:`StyleBox<class_StyleBox>` **get_stylebox** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)** const
|
||||
|
||||
Returns the icon :ref:`StyleBox<class_StyleBox>` at ``name`` if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_get_stylebox_list:
|
||||
|
||||
- :ref:`PoolStringArray<class_PoolStringArray>` **get_stylebox_list** **(** :ref:`String<class_String>` type **)** const
|
||||
|
||||
Returns all the :ref:`StyleBox<class_StyleBox>`\ s as a :ref:`PoolStringArray<class_PoolStringArray>` filled with each :ref:`StyleBox<class_StyleBox>`'s name, for use in :ref:`get_stylebox<class_Theme_method_get_stylebox>`, if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_get_stylebox_types:
|
||||
|
||||
- :ref:`PoolStringArray<class_PoolStringArray>` **get_stylebox_types** **(** **)** const
|
||||
|
||||
Returns all the :ref:`StyleBox<class_StyleBox>` types as a :ref:`PoolStringArray<class_PoolStringArray>` filled with each :ref:`StyleBox<class_StyleBox>`'s type, for use in :ref:`get_stylebox<class_Theme_method_get_stylebox>` and/or :ref:`get_stylebox_list<class_Theme_method_get_stylebox_list>`, if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_get_type_list:
|
||||
|
||||
- :ref:`PoolStringArray<class_PoolStringArray>` **get_type_list** **(** :ref:`String<class_String>` type **)** const
|
||||
|
||||
Returns all the types in ``type`` as a :ref:`PoolStringArray<class_PoolStringArray>` for use in any of the get\_\* functions, if the Theme has ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_has_color:
|
||||
|
||||
- :ref:`bool<class_bool>` **has_color** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)** const
|
||||
@@ -244,6 +284,8 @@ Returns ``true`` if :ref:`Color<class_Color>` with ``name`` is in ``type``.
|
||||
|
||||
Returns ``false`` if the Theme does not have ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_has_constant:
|
||||
|
||||
- :ref:`bool<class_bool>` **has_constant** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)** const
|
||||
@@ -252,6 +294,8 @@ Returns ``true`` if constant with ``name`` is in ``type``.
|
||||
|
||||
Returns ``false`` if the Theme does not have ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_has_font:
|
||||
|
||||
- :ref:`bool<class_bool>` **has_font** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)** const
|
||||
@@ -260,6 +304,8 @@ Returns ``true`` if :ref:`Font<class_Font>` with ``name`` is in ``type``.
|
||||
|
||||
Returns ``false`` if the Theme does not have ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_has_icon:
|
||||
|
||||
- :ref:`bool<class_bool>` **has_icon** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)** const
|
||||
@@ -268,6 +314,8 @@ Returns ``true`` if icon :ref:`Texture<class_Texture>` with ``name`` is in ``typ
|
||||
|
||||
Returns ``false`` if the Theme does not have ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_has_stylebox:
|
||||
|
||||
- :ref:`bool<class_bool>` **has_stylebox** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type **)** const
|
||||
@@ -276,6 +324,8 @@ Returns ``true`` if :ref:`StyleBox<class_StyleBox>` with ``name`` is in ``type``
|
||||
|
||||
Returns ``false`` if the Theme does not have ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_set_color:
|
||||
|
||||
- void **set_color** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type, :ref:`Color<class_Color>` color **)**
|
||||
@@ -284,6 +334,8 @@ Sets the Theme's :ref:`Color<class_Color>` to ``color`` at ``name`` in ``type``.
|
||||
|
||||
Does nothing if the Theme does not have ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_set_constant:
|
||||
|
||||
- void **set_constant** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type, :ref:`int<class_int>` constant **)**
|
||||
@@ -292,6 +344,8 @@ Sets the Theme's constant to ``constant`` at ``name`` in ``type``.
|
||||
|
||||
Does nothing if the Theme does not have ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_set_font:
|
||||
|
||||
- void **set_font** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type, :ref:`Font<class_Font>` font **)**
|
||||
@@ -300,6 +354,8 @@ Sets the Theme's :ref:`Font<class_Font>` to ``font`` at ``name`` in ``type``.
|
||||
|
||||
Does nothing if the Theme does not have ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_set_icon:
|
||||
|
||||
- void **set_icon** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type, :ref:`Texture<class_Texture>` texture **)**
|
||||
@@ -308,6 +364,8 @@ Sets the Theme's icon :ref:`Texture<class_Texture>` to ``texture`` at ``name`` i
|
||||
|
||||
Does nothing if the Theme does not have ``type``.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Theme_method_set_stylebox:
|
||||
|
||||
- void **set_stylebox** **(** :ref:`String<class_String>` name, :ref:`String<class_String>` type, :ref:`StyleBox<class_StyleBox>` texture **)**
|
||||
|
||||
Reference in New Issue
Block a user