mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2025-12-31 09:49:22 +03:00
296 lines
15 KiB
ReStructuredText
296 lines
15 KiB
ReStructuredText
:github_url: hide
|
||
|
||
.. _class_GraphFrame:
|
||
|
||
GraphFrame
|
||
==========
|
||
|
||
**Експериментальний:** 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>`
|
||
|
||
GraphFrame — це спеціальний :ref:`GraphElement<class_GraphElement>`, який можна використовувати для організації інших :ref:`GraphElement<class_GraphElement>` всередині :ref:`GraphEdit<class_GraphEdit>`.
|
||
|
||
.. rst-class:: classref-introduction-group
|
||
|
||
Опис
|
||
--------
|
||
|
||
GraphFrame — це спеціальний :ref:`GraphElement<class_GraphElement>`, до якого можна приєднати інші :ref:`GraphElement<class_GraphElement>`. Його можна налаштувати на автоматичне змінення розміру, щоб охопити всі прикріплені елементи :ref:`GraphElement<class_GraphElement>`. Якщо фрейм переміщується, усі прикріплені :ref:`GraphElement<class_GraphElement>` всередині нього також будуть переміщені.
|
||
|
||
GraphFrame завжди зберігається позаду рівня з’єднання та інших :ref:`GraphElement<class_GraphElement>` всередині :ref:`GraphEdit<class_GraphEdit>`.
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Властивості
|
||
----------------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`autoshrink_enabled<class_GraphFrame_property_autoshrink_enabled>` | ``true`` |
|
||
+----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`autoshrink_margin<class_GraphFrame_property_autoshrink_margin>` | ``40`` |
|
||
+----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||
| :ref:`int<class_int>` | :ref:`drag_margin<class_GraphFrame_property_drag_margin>` | ``16`` |
|
||
+----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||
| :ref:`MouseFilter<enum_Control_MouseFilter>` | mouse_filter | ``0`` (overrides :ref:`Control<class_Control_property_mouse_filter>`) |
|
||
+----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`tint_color<class_GraphFrame_property_tint_color>` | ``Color(0.3, 0.3, 0.3, 0.75)`` |
|
||
+----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||
| :ref:`bool<class_bool>` | :ref:`tint_color_enabled<class_GraphFrame_property_tint_color_enabled>` | ``false`` |
|
||
+----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||
| :ref:`String<class_String>` | :ref:`title<class_GraphFrame_property_title>` | ``""`` |
|
||
+----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Методи
|
||
------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+-------------------------------------------+---------------------------------------------------------------------------+
|
||
| :ref:`HBoxContainer<class_HBoxContainer>` | :ref:`get_titlebar_hbox<class_GraphFrame_method_get_titlebar_hbox>`\ (\ ) |
|
||
+-------------------------------------------+---------------------------------------------------------------------------+
|
||
|
||
.. rst-class:: classref-reftable-group
|
||
|
||
Властивості теми
|
||
--------------------------------
|
||
|
||
.. table::
|
||
:widths: auto
|
||
|
||
+---------------------------------+--------------------------------------------------------------------------+-----------------------------------+
|
||
| :ref:`Color<class_Color>` | :ref:`resizer_color<class_GraphFrame_theme_color_resizer_color>` | ``Color(0.875, 0.875, 0.875, 1)`` |
|
||
+---------------------------------+--------------------------------------------------------------------------+-----------------------------------+
|
||
| :ref:`StyleBox<class_StyleBox>` | :ref:`panel<class_GraphFrame_theme_style_panel>` | |
|
||
+---------------------------------+--------------------------------------------------------------------------+-----------------------------------+
|
||
| :ref:`StyleBox<class_StyleBox>` | :ref:`panel_selected<class_GraphFrame_theme_style_panel_selected>` | |
|
||
+---------------------------------+--------------------------------------------------------------------------+-----------------------------------+
|
||
| :ref:`StyleBox<class_StyleBox>` | :ref:`titlebar<class_GraphFrame_theme_style_titlebar>` | |
|
||
+---------------------------------+--------------------------------------------------------------------------+-----------------------------------+
|
||
| :ref:`StyleBox<class_StyleBox>` | :ref:`titlebar_selected<class_GraphFrame_theme_style_titlebar_selected>` | |
|
||
+---------------------------------+--------------------------------------------------------------------------+-----------------------------------+
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Сигнали
|
||
--------------
|
||
|
||
.. _class_GraphFrame_signal_autoshrink_changed:
|
||
|
||
.. rst-class:: classref-signal
|
||
|
||
**autoshrink_changed**\ (\ ) :ref:`🔗<class_GraphFrame_signal_autoshrink_changed>`
|
||
|
||
Увімкнути, коли :ref:`autoshrink_enabled<class_GraphFrame_property_autoshrink_enabled>` або :ref:`autoshrink_margin<class_GraphFrame_property_autoshrink_margin>` зміни.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Описи властивостей
|
||
------------------------------------
|
||
|
||
.. _class_GraphFrame_property_autoshrink_enabled:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **autoshrink_enabled** = ``true`` :ref:`🔗<class_GraphFrame_property_autoshrink_enabled>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_autoshrink_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_autoshrink_enabled**\ (\ )
|
||
|
||
Якщо ``true``, прямокутник фрейму буде налаштовано автоматично, щоб охопити всі приєднані :ref:`GraphElement<class_GraphElement>`.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GraphFrame_property_autoshrink_margin:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **autoshrink_margin** = ``40`` :ref:`🔗<class_GraphFrame_property_autoshrink_margin>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_autoshrink_margin**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_autoshrink_margin**\ (\ )
|
||
|
||
Поле навколо приєднаних вузлів, яке використовується для обчислення розміру кадру, коли :ref:`autoshrink_enabled<class_GraphFrame_property_autoshrink_enabled>` має значення ``true``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GraphFrame_property_drag_margin:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`int<class_int>` **drag_margin** = ``16`` :ref:`🔗<class_GraphFrame_property_drag_margin>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_drag_margin**\ (\ value\: :ref:`int<class_int>`\ )
|
||
- :ref:`int<class_int>` **get_drag_margin**\ (\ )
|
||
|
||
Поле всередині рамки, яке можна використовувати для перетягування рамки.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GraphFrame_property_tint_color:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`Color<class_Color>` **tint_color** = ``Color(0.3, 0.3, 0.3, 0.75)`` :ref:`🔗<class_GraphFrame_property_tint_color>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_tint_color**\ (\ value\: :ref:`Color<class_Color>`\ )
|
||
- :ref:`Color<class_Color>` **get_tint_color**\ (\ )
|
||
|
||
Колір рамки, коли :ref:`tint_color_enabled<class_GraphFrame_property_tint_color_enabled>` має значення ``true``.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GraphFrame_property_tint_color_enabled:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`bool<class_bool>` **tint_color_enabled** = ``false`` :ref:`🔗<class_GraphFrame_property_tint_color_enabled>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_tint_color_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||
- :ref:`bool<class_bool>` **is_tint_color_enabled**\ (\ )
|
||
|
||
Якщо ``true``, то колір відтінку буде використовуватися для розфарбовування каркасу.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GraphFrame_property_title:
|
||
|
||
.. rst-class:: classref-property
|
||
|
||
:ref:`String<class_String>` **title** = ``""`` :ref:`🔗<class_GraphFrame_property_title>`
|
||
|
||
.. rst-class:: classref-property-setget
|
||
|
||
- |void| **set_title**\ (\ value\: :ref:`String<class_String>`\ )
|
||
- :ref:`String<class_String>` **get_title**\ (\ )
|
||
|
||
Назва кадру.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Описи методів
|
||
--------------------------
|
||
|
||
.. _class_GraphFrame_method_get_titlebar_hbox:
|
||
|
||
.. rst-class:: classref-method
|
||
|
||
:ref:`HBoxContainer<class_HBoxContainer>` **get_titlebar_hbox**\ (\ ) :ref:`🔗<class_GraphFrame_method_get_titlebar_hbox>`
|
||
|
||
Повертає :ref:`HBoxContainer<class_HBoxContainer>`, який використовується для рядка заголовка, містить лише :ref:`Label<class_Label>` для відображення заголовка за замовчуванням.
|
||
|
||
Це можна використовувати для додавання настроюваних елементів керування до рядка заголовка, наприклад кнопок опцій або закриття.
|
||
|
||
.. rst-class:: classref-section-separator
|
||
|
||
----
|
||
|
||
.. rst-class:: classref-descriptions-group
|
||
|
||
Описи тематичної нерухомості
|
||
--------------------------------------------------------
|
||
|
||
.. _class_GraphFrame_theme_color_resizer_color:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`Color<class_Color>` **resizer_color** = ``Color(0.875, 0.875, 0.875, 1)`` :ref:`🔗<class_GraphFrame_theme_color_resizer_color>`
|
||
|
||
Модуляція кольору, застосована до піктограми зміни розміру.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GraphFrame_theme_style_panel:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`StyleBox<class_StyleBox>` **panel** :ref:`🔗<class_GraphFrame_theme_style_panel>`
|
||
|
||
За замовчуванням :ref:`StyleBox<class_StyleBox>` використовується для фону **GraphFrame**.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GraphFrame_theme_style_panel_selected:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`StyleBox<class_StyleBox>` **panel_selected** :ref:`🔗<class_GraphFrame_theme_style_panel_selected>`
|
||
|
||
:ref:`StyleBox<class_StyleBox>` використовується для фону **GraphFrame**, коли він обраний.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GraphFrame_theme_style_titlebar:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`StyleBox<class_StyleBox>` **titlebar** :ref:`🔗<class_GraphFrame_theme_style_titlebar>`
|
||
|
||
:ref:`StyleBox<class_StyleBox>` використовується для заголовків **GraphFrame**.
|
||
|
||
.. rst-class:: classref-item-separator
|
||
|
||
----
|
||
|
||
.. _class_GraphFrame_theme_style_titlebar_selected:
|
||
|
||
.. rst-class:: classref-themeproperty
|
||
|
||
:ref:`StyleBox<class_StyleBox>` **titlebar_selected** :ref:`🔗<class_GraphFrame_theme_style_titlebar_selected>`
|
||
|
||
:ref:`StyleBox<class_StyleBox>` використовується для заголовків **GraphFrame**, коли він обраний.
|
||
|
||
.. |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 (Значення не повертається.)`
|