Files
godot-docs-l10n/classes/ru/class_graphnode.rst
Rémi Verschelde c3f2364c10 Sync classref with 4.6 branch
Lots of translations invalidated (fuzzied) as we just synced Weblate.
2025-12-19 16:39:51 +01:00

863 lines
78 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:github_url: hide
.. _class_GraphNode:
GraphNode
=========
**Экспериментальное:** This class may be changed or removed in future versions.
**Наследует:** :ref:`GraphElement<class_GraphElement>` **<** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
Контейнер с портами подключения, представляющий узел в :ref:`GraphEdit<class_GraphEdit>`.
.. rst-class:: classref-introduction-group
Описание
----------------
**GraphNode** позволяет создавать узлы для графика :ref:`GraphEdit<class_GraphEdit>` с настраиваемым содержимым на основе его дочерних элементов управления. **GraphNode** является производным от :ref:`Container<class_Container>` и отвечает за размещение своих дочерних элементов на экране. Это работает аналогично :ref:`VBoxContainer<class_VBoxContainer>`. Дочерние элементы, в свою очередь, предоставляют **GraphNode** так называемые слоты, каждый из которых может иметь порт подключения с любой стороны.
Каждый слот **GraphNode** определяется своим индексом и может предоставлять узлу до двух портов: один слева и один справа. По соглашению левый порт также называется **входным портом**, а правый порт называется **выходным портом**. Каждый порт можно включить и настроить индивидуально, используя разные типы и цвета. Тип — это произвольное значение, которое вы можете определить, используя собственные соображения. Родительский :ref:`GraphEdit<class_GraphEdit>` будет получать эту информацию при каждом запросе на подключение и отключение.
Слоты можно настроить в доке инспектора, как только вы добавите хотя бы один дочерний :ref:`Control<class_Control>`. Свойства сгруппированы по индексу каждого слота в разделе «Slot».
\ **Примечание:** Хотя GraphNode настроен с использованием слотов и индексов слотов, соединения устанавливаются между портами, которые включены. Из-за этого :ref:`GraphEdit<class_GraphEdit>` использует индекс порта, а не индекс слота. Вы можете использовать :ref:`get_input_port_slot()<class_GraphNode_method_get_input_port_slot>` и :ref:`get_output_port_slot()<class_GraphNode_method_get_output_port_slot>`, чтобы получить индекс слота из индекса порта.
.. rst-class:: classref-reftable-group
Свойства
----------------
.. table::
:widths: auto
+----------------------------------------------+------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
| :ref:`FocusMode<enum_Control_FocusMode>` | focus_mode | ``3`` (overrides :ref:`Control<class_Control_property_focus_mode>`) |
+----------------------------------------------+------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`ignore_invalid_connection_type<class_GraphNode_property_ignore_invalid_connection_type>` | ``false`` |
+----------------------------------------------+------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
| :ref:`MouseFilter<enum_Control_MouseFilter>` | mouse_filter | ``0`` (overrides :ref:`Control<class_Control_property_mouse_filter>`) |
+----------------------------------------------+------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
| :ref:`FocusMode<enum_Control_FocusMode>` | :ref:`slots_focus_mode<class_GraphNode_property_slots_focus_mode>` | ``3`` |
+----------------------------------------------+------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
| :ref:`String<class_String>` | :ref:`title<class_GraphNode_property_title>` | ``""`` |
+----------------------------------------------+------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
.. rst-class:: classref-reftable-group
Методы
------------
.. table::
:widths: auto
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`_draw_port<class_GraphNode_private_method__draw_port>`\ (\ slot_index\: :ref:`int<class_int>`, position\: :ref:`Vector2i<class_Vector2i>`, left\: :ref:`bool<class_bool>`, color\: :ref:`Color<class_Color>`\ ) |virtual| |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`clear_all_slots<class_GraphNode_method_clear_all_slots>`\ (\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`clear_slot<class_GraphNode_method_clear_slot>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Color<class_Color>` | :ref:`get_input_port_color<class_GraphNode_method_get_input_port_color>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_input_port_count<class_GraphNode_method_get_input_port_count>`\ (\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Vector2<class_Vector2>` | :ref:`get_input_port_position<class_GraphNode_method_get_input_port_position>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_input_port_slot<class_GraphNode_method_get_input_port_slot>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_input_port_type<class_GraphNode_method_get_input_port_type>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Color<class_Color>` | :ref:`get_output_port_color<class_GraphNode_method_get_output_port_color>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_output_port_count<class_GraphNode_method_get_output_port_count>`\ (\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Vector2<class_Vector2>` | :ref:`get_output_port_position<class_GraphNode_method_get_output_port_position>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_output_port_slot<class_GraphNode_method_get_output_port_slot>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_output_port_type<class_GraphNode_method_get_output_port_type>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Color<class_Color>` | :ref:`get_slot_color_left<class_GraphNode_method_get_slot_color_left>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Color<class_Color>` | :ref:`get_slot_color_right<class_GraphNode_method_get_slot_color_right>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`get_slot_custom_icon_left<class_GraphNode_method_get_slot_custom_icon_left>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`get_slot_custom_icon_right<class_GraphNode_method_get_slot_custom_icon_right>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Variant<class_Variant>` | :ref:`get_slot_metadata_left<class_GraphNode_method_get_slot_metadata_left>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`Variant<class_Variant>` | :ref:`get_slot_metadata_right<class_GraphNode_method_get_slot_metadata_right>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_slot_type_left<class_GraphNode_method_get_slot_type_left>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`get_slot_type_right<class_GraphNode_method_get_slot_type_right>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`HBoxContainer<class_HBoxContainer>` | :ref:`get_titlebar_hbox<class_GraphNode_method_get_titlebar_hbox>`\ (\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_slot_draw_stylebox<class_GraphNode_method_is_slot_draw_stylebox>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_slot_enabled_left<class_GraphNode_method_is_slot_enabled_left>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`is_slot_enabled_right<class_GraphNode_method_is_slot_enabled_right>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_slot<class_GraphNode_method_set_slot>`\ (\ slot_index\: :ref:`int<class_int>`, enable_left_port\: :ref:`bool<class_bool>`, type_left\: :ref:`int<class_int>`, color_left\: :ref:`Color<class_Color>`, enable_right_port\: :ref:`bool<class_bool>`, type_right\: :ref:`int<class_int>`, color_right\: :ref:`Color<class_Color>`, custom_icon_left\: :ref:`Texture2D<class_Texture2D>` = null, custom_icon_right\: :ref:`Texture2D<class_Texture2D>` = null, draw_stylebox\: :ref:`bool<class_bool>` = true\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_slot_color_left<class_GraphNode_method_set_slot_color_left>`\ (\ slot_index\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_slot_color_right<class_GraphNode_method_set_slot_color_right>`\ (\ slot_index\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_slot_custom_icon_left<class_GraphNode_method_set_slot_custom_icon_left>`\ (\ slot_index\: :ref:`int<class_int>`, custom_icon\: :ref:`Texture2D<class_Texture2D>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_slot_custom_icon_right<class_GraphNode_method_set_slot_custom_icon_right>`\ (\ slot_index\: :ref:`int<class_int>`, custom_icon\: :ref:`Texture2D<class_Texture2D>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_slot_draw_stylebox<class_GraphNode_method_set_slot_draw_stylebox>`\ (\ slot_index\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_slot_enabled_left<class_GraphNode_method_set_slot_enabled_left>`\ (\ slot_index\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_slot_enabled_right<class_GraphNode_method_set_slot_enabled_right>`\ (\ slot_index\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_slot_metadata_left<class_GraphNode_method_set_slot_metadata_left>`\ (\ slot_index\: :ref:`int<class_int>`, value\: :ref:`Variant<class_Variant>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_slot_metadata_right<class_GraphNode_method_set_slot_metadata_right>`\ (\ slot_index\: :ref:`int<class_int>`, value\: :ref:`Variant<class_Variant>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_slot_type_left<class_GraphNode_method_set_slot_type_left>`\ (\ slot_index\: :ref:`int<class_int>`, type\: :ref:`int<class_int>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref:`set_slot_type_right<class_GraphNode_method_set_slot_type_right>`\ (\ slot_index\: :ref:`int<class_int>`, type\: :ref:`int<class_int>`\ ) |
+-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
.. rst-class:: classref-reftable-group
Свойства темы
--------------------------
.. table::
:widths: auto
+-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
| :ref:`Color<class_Color>` | :ref:`resizer_color<class_GraphNode_theme_color_resizer_color>` | ``Color(0.875, 0.875, 0.875, 1)`` |
+-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
| :ref:`int<class_int>` | :ref:`port_h_offset<class_GraphNode_theme_constant_port_h_offset>` | ``0`` |
+-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
| :ref:`int<class_int>` | :ref:`separation<class_GraphNode_theme_constant_separation>` | ``2`` |
+-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`port<class_GraphNode_theme_icon_port>` | |
+-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`panel<class_GraphNode_theme_style_panel>` | |
+-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`panel_focus<class_GraphNode_theme_style_panel_focus>` | |
+-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`panel_selected<class_GraphNode_theme_style_panel_selected>` | |
+-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`slot<class_GraphNode_theme_style_slot>` | |
+-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`slot_selected<class_GraphNode_theme_style_slot_selected>` | |
+-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`titlebar<class_GraphNode_theme_style_titlebar>` | |
+-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
| :ref:`StyleBox<class_StyleBox>` | :ref:`titlebar_selected<class_GraphNode_theme_style_titlebar_selected>` | |
+-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Сигналы
--------------
.. _class_GraphNode_signal_slot_sizes_changed:
.. rst-class:: classref-signal
**slot_sizes_changed**\ (\ ) :ref:`🔗<class_GraphNode_signal_slot_sizes_changed>`
Генерируется, когда размер любого слота мог измениться.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_signal_slot_updated:
.. rst-class:: classref-signal
**slot_updated**\ (\ slot_index\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_signal_slot_updated>`
Генерируется при обновлении любого слота GraphNode.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описания свойств
--------------------------------
.. _class_GraphNode_property_ignore_invalid_connection_type:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **ignore_invalid_connection_type** = ``false`` :ref:`🔗<class_GraphNode_property_ignore_invalid_connection_type>`
.. rst-class:: classref-property-setget
- |void| **set_ignore_invalid_connection_type**\ (\ value\: :ref:`bool<class_bool>`\ )
- :ref:`bool<class_bool>` **is_ignoring_valid_connection_type**\ (\ )
Если ``true``, вы можете подключить порты с разными типами, даже если подключение не было явно разрешено в родительском :ref:`GraphEdit<class_GraphEdit>`.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_property_slots_focus_mode:
.. rst-class:: classref-property
:ref:`FocusMode<enum_Control_FocusMode>` **slots_focus_mode** = ``3`` :ref:`🔗<class_GraphNode_property_slots_focus_mode>`
.. rst-class:: classref-property-setget
- |void| **set_slots_focus_mode**\ (\ value\: :ref:`FocusMode<enum_Control_FocusMode>`\ )
- :ref:`FocusMode<enum_Control_FocusMode>` **get_slots_focus_mode**\ (\ )
Определяет, как можно фокусировать слоты подключения.
- Если установлено значение :ref:`Control.FOCUS_CLICK<class_Control_constant_FOCUS_CLICK>`, соединения можно устанавливать только с помощью мыши.
- Если установлено значение :ref:`Control.FOCUS_ALL<class_Control_constant_FOCUS_ALL>`, слоты также можно фокусировать с помощью действий ввода :ref:`ProjectSettings.input/ui_up<class_ProjectSettings_property_input/ui_up>` и :ref:`ProjectSettings.input/ui_down<class_ProjectSettings_property_input/ui_down>`, а также подключать с помощью действий ввода :ref:`ProjectSettings.input/ui_left<class_ProjectSettings_property_input/ui_left>` и :ref:`ProjectSettings.input/ui_right<class_ProjectSettings_property_input/ui_right>`.
- Если установлено значение :ref:`Control.FOCUS_ACCESSIBILITY<class_Control_constant_FOCUS_ACCESSIBILITY>`, действия ввода слотов доступны только при активном средстве чтения с экрана.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_property_title:
.. rst-class:: classref-property
:ref:`String<class_String>` **title** = ``""`` :ref:`🔗<class_GraphNode_property_title>`
.. rst-class:: classref-property-setget
- |void| **set_title**\ (\ value\: :ref:`String<class_String>`\ )
- :ref:`String<class_String>` **get_title**\ (\ )
Текст, отображаемый в строке заголовка GraphNode.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описания метода
------------------------------
.. _class_GraphNode_private_method__draw_port:
.. rst-class:: classref-method
|void| **_draw_port**\ (\ slot_index\: :ref:`int<class_int>`, position\: :ref:`Vector2i<class_Vector2i>`, left\: :ref:`bool<class_bool>`, color\: :ref:`Color<class_Color>`\ ) |virtual| :ref:`🔗<class_GraphNode_private_method__draw_port>`
.. container:: contribute
There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_clear_all_slots:
.. rst-class:: classref-method
|void| **clear_all_slots**\ (\ ) :ref:`🔗<class_GraphNode_method_clear_all_slots>`
Отключает все слоты GraphNode. Это удалит все порты ввода/вывода из GraphNode.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_clear_slot:
.. rst-class:: classref-method
|void| **clear_slot**\ (\ slot_index\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_clear_slot>`
Отключает слот с заданным ``slot_index``. Это удалит соответствующий входной и выходной порт из GraphNode.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_input_port_color:
.. rst-class:: classref-method
:ref:`Color<class_Color>` **get_input_port_color**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_input_port_color>`
Возвращает :ref:`Color<class_Color>` входного порта с заданным ``port_idx``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_input_port_count:
.. rst-class:: classref-method
:ref:`int<class_int>` **get_input_port_count**\ (\ ) :ref:`🔗<class_GraphNode_method_get_input_port_count>`
Возвращает количество слотов с включенным входным портом.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_input_port_position:
.. rst-class:: classref-method
:ref:`Vector2<class_Vector2>` **get_input_port_position**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_input_port_position>`
Возвращает позицию входного порта с заданным ``port_idx``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_input_port_slot:
.. rst-class:: classref-method
:ref:`int<class_int>` **get_input_port_slot**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_input_port_slot>`
Возвращает соответствующий индекс слота входного порта с заданным ``port_idx``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_input_port_type:
.. rst-class:: classref-method
:ref:`int<class_int>` **get_input_port_type**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_input_port_type>`
Возвращает тип входного порта с заданным ``port_idx``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_output_port_color:
.. rst-class:: classref-method
:ref:`Color<class_Color>` **get_output_port_color**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_output_port_color>`
Возвращает :ref:`Color<class_Color>` выходного порта с заданным ``port_idx``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_output_port_count:
.. rst-class:: classref-method
:ref:`int<class_int>` **get_output_port_count**\ (\ ) :ref:`🔗<class_GraphNode_method_get_output_port_count>`
Возвращает количество слотов с включенным выходным портом.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_output_port_position:
.. rst-class:: classref-method
:ref:`Vector2<class_Vector2>` **get_output_port_position**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_output_port_position>`
Возвращает позицию выходного порта с заданным ``port_idx``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_output_port_slot:
.. rst-class:: classref-method
:ref:`int<class_int>` **get_output_port_slot**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_output_port_slot>`
Возвращает соответствующий индекс слота выходного порта с заданным ``port_idx``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_output_port_type:
.. rst-class:: classref-method
:ref:`int<class_int>` **get_output_port_type**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_output_port_type>`
Возвращает тип выходного порта с заданным ``port_idx``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_slot_color_left:
.. rst-class:: classref-method
:ref:`Color<class_Color>` **get_slot_color_left**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_color_left>`
Возвращает левый (входной) :ref:`Color<class_Color>` слота с заданным ``slot_index``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_slot_color_right:
.. rst-class:: classref-method
:ref:`Color<class_Color>` **get_slot_color_right**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_color_right>`
Возвращает правый (выходной) :ref:`Color<class_Color>` слота с заданным ``slot_index``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_slot_custom_icon_left:
.. rst-class:: classref-method
:ref:`Texture2D<class_Texture2D>` **get_slot_custom_icon_left**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_custom_icon_left>`
Возвращает левую (входную) пользовательскую :ref:`Texture2D<class_Texture2D>` слота с заданным ``slot_index``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_slot_custom_icon_right:
.. rst-class:: classref-method
:ref:`Texture2D<class_Texture2D>` **get_slot_custom_icon_right**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_custom_icon_right>`
Возвращает правую (выходную) пользовательскую :ref:`Texture2D<class_Texture2D>` слота с заданным ``slot_index``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_slot_metadata_left:
.. rst-class:: classref-method
:ref:`Variant<class_Variant>` **get_slot_metadata_left**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_metadata_left>`
Returns the left (input) metadata of the slot with the given ``slot_index``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_slot_metadata_right:
.. rst-class:: classref-method
:ref:`Variant<class_Variant>` **get_slot_metadata_right**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_metadata_right>`
Returns the right (output) metadata of the slot with the given ``slot_index``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_slot_type_left:
.. rst-class:: classref-method
:ref:`int<class_int>` **get_slot_type_left**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_type_left>`
Возвращает левый (входной) тип слота с заданным ``slot_index``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_slot_type_right:
.. rst-class:: classref-method
:ref:`int<class_int>` **get_slot_type_right**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_type_right>`
Возвращает правильный (выходной) тип слота с заданным ``slot_index``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_get_titlebar_hbox:
.. rst-class:: classref-method
:ref:`HBoxContainer<class_HBoxContainer>` **get_titlebar_hbox**\ (\ ) :ref:`🔗<class_GraphNode_method_get_titlebar_hbox>`
Возвращает :ref:`HBoxContainer<class_HBoxContainer>`, используемый для заголовка, содержащий только :ref:`Label<class_Label>` для отображения заголовка по умолчанию. Это можно использовать для добавления пользовательских элементов управления в заголовок, например, кнопок выбора или закрытия.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_is_slot_draw_stylebox:
.. rst-class:: classref-method
:ref:`bool<class_bool>` **is_slot_draw_stylebox**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_is_slot_draw_stylebox>`
Возвращает ``true``, если отрисовывается фон :ref:`StyleBox<class_StyleBox>` слота с заданным ``slot_index``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_is_slot_enabled_left:
.. rst-class:: classref-method
:ref:`bool<class_bool>` **is_slot_enabled_left**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_is_slot_enabled_left>`
Возвращает ``true``, если включена левая (входная) сторона слота с заданным ``slot_index``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_is_slot_enabled_right:
.. rst-class:: classref-method
:ref:`bool<class_bool>` **is_slot_enabled_right**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_is_slot_enabled_right>`
Возвращает ``true``, если правая (выходная) сторона слота с заданным ``slot_index`` включена.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_set_slot:
.. rst-class:: classref-method
|void| **set_slot**\ (\ slot_index\: :ref:`int<class_int>`, enable_left_port\: :ref:`bool<class_bool>`, type_left\: :ref:`int<class_int>`, color_left\: :ref:`Color<class_Color>`, enable_right_port\: :ref:`bool<class_bool>`, type_right\: :ref:`int<class_int>`, color_right\: :ref:`Color<class_Color>`, custom_icon_left\: :ref:`Texture2D<class_Texture2D>` = null, custom_icon_right\: :ref:`Texture2D<class_Texture2D>` = null, draw_stylebox\: :ref:`bool<class_bool>` = true\ ) :ref:`🔗<class_GraphNode_method_set_slot>`
Устанавливает свойства слота с заданным ``slot_index``.
Если ``enable_left_port``/``enable_right_port`` равно ``true``, появится порт, и слот можно будет подключить с этой стороны.
С ``type_left``/``type_right`` каждому порту можно назначить произвольный тип. Два порта можно подключить, если они имеют один и тот же тип или если соединение между их типами разрешено в родительском :ref:`GraphEdit<class_GraphEdit>` (см. :ref:`GraphEdit.add_valid_connection_type()<class_GraphEdit_method_add_valid_connection_type>`). Помните, что :ref:`GraphEdit<class_GraphEdit>` имеет последнее слово в принятии соединения. Совместимость типов просто позволяет испускать сигнал :ref:`GraphEdit.connection_request<class_GraphEdit_signal_connection_request>`.
Порты можно дополнительно настраивать с помощью ``color_left``/``color_right`` и ``custom_icon_left``/``custom_icon_right``. Параметр цвета добавляет оттенок к значку. Пользовательский значок может использоваться для переопределения точки порта по умолчанию.
Кроме того, ``draw_stylebox`` может использоваться для включения или отключения рисования фонового stylebox для каждого слота. См. :ref:`slot<class_GraphNode_theme_style_slot>`.
Отдельные свойства также можно задать с помощью одного из методов ``set_slot_*``.
\ **Примечание:** Этот метод задает только свойства слота. Чтобы создать сам слот, добавьте дочерний элемент, полученный от :ref:`Control<class_Control>`, к GraphNode.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_set_slot_color_left:
.. rst-class:: classref-method
|void| **set_slot_color_left**\ (\ slot_index\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_color_left>`
Устанавливает :ref:`Color<class_Color>` левой (входной) стороны слота с заданным ``slot_index`` на ``color``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_set_slot_color_right:
.. rst-class:: classref-method
|void| **set_slot_color_right**\ (\ slot_index\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_color_right>`
Устанавливает :ref:`Color<class_Color>` правой (выходной) стороны слота с заданным ``slot_index`` на ``color``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_set_slot_custom_icon_left:
.. rst-class:: classref-method
|void| **set_slot_custom_icon_left**\ (\ slot_index\: :ref:`int<class_int>`, custom_icon\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_custom_icon_left>`
Устанавливает пользовательскую :ref:`Texture2D<class_Texture2D>` левой (входной) стороны слота с заданным ``slot_index`` на ``custom_icon``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_set_slot_custom_icon_right:
.. rst-class:: classref-method
|void| **set_slot_custom_icon_right**\ (\ slot_index\: :ref:`int<class_int>`, custom_icon\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_custom_icon_right>`
Устанавливает пользовательскую :ref:`Texture2D<class_Texture2D>` правой (выходной) стороны слота с заданным ``slot_index`` на ``custom_icon``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_set_slot_draw_stylebox:
.. rst-class:: classref-method
|void| **set_slot_draw_stylebox**\ (\ slot_index\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_draw_stylebox>`
Переключает фон :ref:`StyleBox<class_StyleBox>` слота с заданным ``slot_index``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_set_slot_enabled_left:
.. rst-class:: classref-method
|void| **set_slot_enabled_left**\ (\ slot_index\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_enabled_left>`
Переключает левую (входную) сторону слота с заданным ``slot_index``. Если ``enable`` равен ``true``, порт появится на левой стороне, и слот можно будет подключить с этой стороны.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_set_slot_enabled_right:
.. rst-class:: classref-method
|void| **set_slot_enabled_right**\ (\ slot_index\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_enabled_right>`
Переключает правую (выходную) сторону слота с заданным ``slot_index``. Если ``enable`` равен ``true``, порт появится на правой стороне, и слот можно будет подключить с этой стороны.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_set_slot_metadata_left:
.. rst-class:: classref-method
|void| **set_slot_metadata_left**\ (\ slot_index\: :ref:`int<class_int>`, value\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_metadata_left>`
Sets the custom metadata for the left (input) side of the slot with the given ``slot_index`` to ``value``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_set_slot_metadata_right:
.. rst-class:: classref-method
|void| **set_slot_metadata_right**\ (\ slot_index\: :ref:`int<class_int>`, value\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_metadata_right>`
Sets the custom metadata for the right (output) side of the slot with the given ``slot_index`` to ``value``.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_set_slot_type_left:
.. rst-class:: classref-method
|void| **set_slot_type_left**\ (\ slot_index\: :ref:`int<class_int>`, type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_type_left>`
Устанавливает левый (входной) тип слота с заданным ``slot_index`` на ``type``. Если значение отрицательное, все соединения будут запрещены для создания через пользовательский ввод.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_method_set_slot_type_right:
.. rst-class:: classref-method
|void| **set_slot_type_right**\ (\ slot_index\: :ref:`int<class_int>`, type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_type_right>`
Устанавливает правильный (выходной) тип слота с заданным ``slot_index`` на ``type``. Если значение отрицательное, все соединения будут запрещены для создания через пользовательский ввод.
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Описания свойств темы
------------------------------------------
.. _class_GraphNode_theme_color_resizer_color:
.. rst-class:: classref-themeproperty
:ref:`Color<class_Color>` **resizer_color** = ``Color(0.875, 0.875, 0.875, 1)`` :ref:`🔗<class_GraphNode_theme_color_resizer_color>`
Цветовая модуляция, примененная к значку изменения размера.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_theme_constant_port_h_offset:
.. rst-class:: classref-themeproperty
:ref:`int<class_int>` **port_h_offset** = ``0`` :ref:`🔗<class_GraphNode_theme_constant_port_h_offset>`
Горизонтальное смещение портов.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_theme_constant_separation:
.. rst-class:: classref-themeproperty
:ref:`int<class_int>` **separation** = ``2`` :ref:`🔗<class_GraphNode_theme_constant_separation>`
Вертикальное расстояние между портами.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_theme_icon_port:
.. rst-class:: classref-themeproperty
:ref:`Texture2D<class_Texture2D>` **port** :ref:`🔗<class_GraphNode_theme_icon_port>`
Значок, используемый для обозначения портов.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_theme_style_panel:
.. rst-class:: classref-themeproperty
:ref:`StyleBox<class_StyleBox>` **panel** :ref:`🔗<class_GraphNode_theme_style_panel>`
Фон по умолчанию для области слота **GraphNode**.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_theme_style_panel_focus:
.. rst-class:: classref-themeproperty
:ref:`StyleBox<class_StyleBox>` **panel_focus** :ref:`🔗<class_GraphNode_theme_style_panel_focus>`
:ref:`StyleBox<class_StyleBox>` используется, когда **GraphNode** находится в фокусе (при использовании со вспомогательными приложениями).
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_theme_style_panel_selected:
.. rst-class:: classref-themeproperty
:ref:`StyleBox<class_StyleBox>` **panel_selected** :ref:`🔗<class_GraphNode_theme_style_panel_selected>`
:ref:`StyleBox<class_StyleBox>`, используемый для области слота при выборе.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_theme_style_slot:
.. rst-class:: classref-themeproperty
:ref:`StyleBox<class_StyleBox>` **slot** :ref:`🔗<class_GraphNode_theme_style_slot>`
:ref:`StyleBox<class_StyleBox>`, используемый для каждого слота **GraphNode**.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_theme_style_slot_selected:
.. rst-class:: classref-themeproperty
:ref:`StyleBox<class_StyleBox>` **slot_selected** :ref:`🔗<class_GraphNode_theme_style_slot_selected>`
:ref:`StyleBox<class_StyleBox>` используется, когда слот находится в фокусе (при использовании со вспомогательными приложениями).
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_theme_style_titlebar:
.. rst-class:: classref-themeproperty
:ref:`StyleBox<class_StyleBox>` **titlebar** :ref:`🔗<class_GraphNode_theme_style_titlebar>`
:ref:`StyleBox<class_StyleBox>`, используемый для заголовка **GraphNode**.
.. rst-class:: classref-item-separator
----
.. _class_GraphNode_theme_style_titlebar_selected:
.. rst-class:: classref-themeproperty
:ref:`StyleBox<class_StyleBox>` **titlebar_selected** :ref:`🔗<class_GraphNode_theme_style_titlebar_selected>`
:ref:`StyleBox<class_StyleBox>`, используемый для заголовка **GraphNode**, когда он выбран.
.. |virtual| replace:: :abbr:`virtual (Этот метод обычно должен быть переопределен пользователем, чтобы иметь какой-либо эффект.)`
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
.. |const| replace:: :abbr:`const (Этот метод не имеет побочных эффектов. Он не изменяет ни одну из переменных-членов экземпляра.)`
.. |vararg| replace:: :abbr:`vararg (Этот метод принимает любое количество аргументов после описанных здесь.)`
.. |constructor| replace:: :abbr:`constructor (Этот метод используется для создания типа.)`
.. |static| replace:: :abbr:`static (Этот метод не нуждается в вызове экземпляра, поэтому его можно вызвать напрямую, используя имя класса.)`
.. |operator| replace:: :abbr:`operator (Этот метод описывает допустимый оператор для использования с этим типом в качестве левого операнда.)`
.. |bitfield| replace:: :abbr:`BitField (Это значение является целым числом, составленным как битовая маска следующих флагов.)`
.. |void| replace:: :abbr:`void (Нет возвращаемого значения.)`