|
|
@@ -50,6 +50,8 @@ Properties
|
|
|
+-----------------------------------------------------------------------+-----------------------------------------------------------------------------------+---------------------------------------------------------------------+
|
|
|
| :ref:`bool<class_bool>` | :ref:`select_with_rmb<class_TabBar_property_select_with_rmb>` | ``false`` |
|
|
|
+-----------------------------------------------------------------------+-----------------------------------------------------------------------------------+---------------------------------------------------------------------+
|
|
|
+ | :ref:`bool<class_bool>` | :ref:`switch_on_drag_hover<class_TabBar_property_switch_on_drag_hover>` | ``true`` |
|
|
|
+ +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------+---------------------------------------------------------------------+
|
|
|
| :ref:`AlignmentMode<enum_TabBar_AlignmentMode>` | :ref:`tab_alignment<class_TabBar_property_tab_alignment>` | ``0`` |
|
|
|
+-----------------------------------------------------------------------+-----------------------------------------------------------------------------------+---------------------------------------------------------------------+
|
|
|
| :ref:`CloseButtonDisplayPolicy<enum_TabBar_CloseButtonDisplayPolicy>` | :ref:`tab_close_display_policy<class_TabBar_property_tab_close_display_policy>` | ``0`` |
|
|
|
@@ -141,65 +143,67 @@ Theme Properties
|
|
|
.. table::
|
|
|
:widths: auto
|
|
|
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Color<class_Color>` | :ref:`drop_mark_color<class_TabBar_theme_color_drop_mark_color>` | ``Color(1, 1, 1, 1)`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Color<class_Color>` | :ref:`font_disabled_color<class_TabBar_theme_color_font_disabled_color>` | ``Color(0.875, 0.875, 0.875, 0.5)`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Color<class_Color>` | :ref:`font_hovered_color<class_TabBar_theme_color_font_hovered_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Color<class_Color>` | :ref:`font_outline_color<class_TabBar_theme_color_font_outline_color>` | ``Color(0, 0, 0, 1)`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Color<class_Color>` | :ref:`font_selected_color<class_TabBar_theme_color_font_selected_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Color<class_Color>` | :ref:`font_unselected_color<class_TabBar_theme_color_font_unselected_color>` | ``Color(0.7, 0.7, 0.7, 1)`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Color<class_Color>` | :ref:`icon_disabled_color<class_TabBar_theme_color_icon_disabled_color>` | ``Color(1, 1, 1, 1)`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Color<class_Color>` | :ref:`icon_hovered_color<class_TabBar_theme_color_icon_hovered_color>` | ``Color(1, 1, 1, 1)`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Color<class_Color>` | :ref:`icon_selected_color<class_TabBar_theme_color_icon_selected_color>` | ``Color(1, 1, 1, 1)`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Color<class_Color>` | :ref:`icon_unselected_color<class_TabBar_theme_color_icon_unselected_color>` | ``Color(1, 1, 1, 1)`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`int<class_int>` | :ref:`h_separation<class_TabBar_theme_constant_h_separation>` | ``4`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`int<class_int>` | :ref:`icon_max_width<class_TabBar_theme_constant_icon_max_width>` | ``0`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`int<class_int>` | :ref:`outline_size<class_TabBar_theme_constant_outline_size>` | ``0`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`int<class_int>` | :ref:`tab_separation<class_TabBar_theme_constant_tab_separation>` | ``0`` |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Font<class_Font>` | :ref:`font<class_TabBar_theme_font_font>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`int<class_int>` | :ref:`font_size<class_TabBar_theme_font_size_font_size>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Texture2D<class_Texture2D>` | :ref:`close<class_TabBar_theme_icon_close>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Texture2D<class_Texture2D>` | :ref:`decrement<class_TabBar_theme_icon_decrement>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Texture2D<class_Texture2D>` | :ref:`decrement_highlight<class_TabBar_theme_icon_decrement_highlight>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Texture2D<class_Texture2D>` | :ref:`drop_mark<class_TabBar_theme_icon_drop_mark>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Texture2D<class_Texture2D>` | :ref:`increment<class_TabBar_theme_icon_increment>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`Texture2D<class_Texture2D>` | :ref:`increment_highlight<class_TabBar_theme_icon_increment_highlight>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`StyleBox<class_StyleBox>` | :ref:`button_highlight<class_TabBar_theme_style_button_highlight>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`StyleBox<class_StyleBox>` | :ref:`button_pressed<class_TabBar_theme_style_button_pressed>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_disabled<class_TabBar_theme_style_tab_disabled>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_focus<class_TabBar_theme_style_tab_focus>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_hovered<class_TabBar_theme_style_tab_hovered>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_selected<class_TabBar_theme_style_tab_selected>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
- | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_unselected<class_TabBar_theme_style_tab_unselected>` | |
|
|
|
- +-----------------------------------+------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Color<class_Color>` | :ref:`drop_mark_color<class_TabBar_theme_color_drop_mark_color>` | ``Color(1, 1, 1, 1)`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Color<class_Color>` | :ref:`font_disabled_color<class_TabBar_theme_color_font_disabled_color>` | ``Color(0.875, 0.875, 0.875, 0.5)`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Color<class_Color>` | :ref:`font_hovered_color<class_TabBar_theme_color_font_hovered_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Color<class_Color>` | :ref:`font_outline_color<class_TabBar_theme_color_font_outline_color>` | ``Color(0, 0, 0, 1)`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Color<class_Color>` | :ref:`font_selected_color<class_TabBar_theme_color_font_selected_color>` | ``Color(0.95, 0.95, 0.95, 1)`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Color<class_Color>` | :ref:`font_unselected_color<class_TabBar_theme_color_font_unselected_color>` | ``Color(0.7, 0.7, 0.7, 1)`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Color<class_Color>` | :ref:`icon_disabled_color<class_TabBar_theme_color_icon_disabled_color>` | ``Color(1, 1, 1, 1)`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Color<class_Color>` | :ref:`icon_hovered_color<class_TabBar_theme_color_icon_hovered_color>` | ``Color(1, 1, 1, 1)`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Color<class_Color>` | :ref:`icon_selected_color<class_TabBar_theme_color_icon_selected_color>` | ``Color(1, 1, 1, 1)`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Color<class_Color>` | :ref:`icon_unselected_color<class_TabBar_theme_color_icon_unselected_color>` | ``Color(1, 1, 1, 1)`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`int<class_int>` | :ref:`h_separation<class_TabBar_theme_constant_h_separation>` | ``4`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`int<class_int>` | :ref:`hover_switch_wait_msec<class_TabBar_theme_constant_hover_switch_wait_msec>` | ``500`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`int<class_int>` | :ref:`icon_max_width<class_TabBar_theme_constant_icon_max_width>` | ``0`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`int<class_int>` | :ref:`outline_size<class_TabBar_theme_constant_outline_size>` | ``0`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`int<class_int>` | :ref:`tab_separation<class_TabBar_theme_constant_tab_separation>` | ``0`` |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Font<class_Font>` | :ref:`font<class_TabBar_theme_font_font>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`int<class_int>` | :ref:`font_size<class_TabBar_theme_font_size_font_size>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Texture2D<class_Texture2D>` | :ref:`close<class_TabBar_theme_icon_close>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Texture2D<class_Texture2D>` | :ref:`decrement<class_TabBar_theme_icon_decrement>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Texture2D<class_Texture2D>` | :ref:`decrement_highlight<class_TabBar_theme_icon_decrement_highlight>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Texture2D<class_Texture2D>` | :ref:`drop_mark<class_TabBar_theme_icon_drop_mark>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Texture2D<class_Texture2D>` | :ref:`increment<class_TabBar_theme_icon_increment>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`Texture2D<class_Texture2D>` | :ref:`increment_highlight<class_TabBar_theme_icon_increment_highlight>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`StyleBox<class_StyleBox>` | :ref:`button_highlight<class_TabBar_theme_style_button_highlight>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`StyleBox<class_StyleBox>` | :ref:`button_pressed<class_TabBar_theme_style_button_pressed>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_disabled<class_TabBar_theme_style_tab_disabled>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_focus<class_TabBar_theme_style_tab_focus>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_hovered<class_TabBar_theme_style_tab_hovered>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_selected<class_TabBar_theme_style_tab_selected>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
+ | :ref:`StyleBox<class_StyleBox>` | :ref:`tab_unselected<class_TabBar_theme_style_tab_unselected>` | |
|
|
|
+ +-----------------------------------+-----------------------------------------------------------------------------------+-------------------------------------+
|
|
|
|
|
|
.. rst-class:: classref-section-separator
|
|
|
|
|
|
@@ -568,6 +572,23 @@ If ``true``, enables selecting a tab with the right mouse button.
|
|
|
|
|
|
----
|
|
|
|
|
|
+.. _class_TabBar_property_switch_on_drag_hover:
|
|
|
+
|
|
|
+.. rst-class:: classref-property
|
|
|
+
|
|
|
+:ref:`bool<class_bool>` **switch_on_drag_hover** = ``true`` :ref:`🔗<class_TabBar_property_switch_on_drag_hover>`
|
|
|
+
|
|
|
+.. rst-class:: classref-property-setget
|
|
|
+
|
|
|
+- |void| **set_switch_on_drag_hover**\ (\ value\: :ref:`bool<class_bool>`\ )
|
|
|
+- :ref:`bool<class_bool>` **get_switch_on_drag_hover**\ (\ )
|
|
|
+
|
|
|
+If ``true``, hovering over a tab while dragging something will switch to that tab. Does not have effect when hovering another tab to rearrange. The delay for when this happens is dictated by :ref:`hover_switch_wait_msec<class_TabBar_theme_constant_hover_switch_wait_msec>`.
|
|
|
+
|
|
|
+.. rst-class:: classref-item-separator
|
|
|
+
|
|
|
+----
|
|
|
+
|
|
|
.. _class_TabBar_property_tab_alignment:
|
|
|
|
|
|
.. rst-class:: classref-property
|
|
|
@@ -1166,6 +1187,18 @@ The horizontal separation between the elements inside tabs.
|
|
|
|
|
|
----
|
|
|
|
|
|
+.. _class_TabBar_theme_constant_hover_switch_wait_msec:
|
|
|
+
|
|
|
+.. rst-class:: classref-themeproperty
|
|
|
+
|
|
|
+:ref:`int<class_int>` **hover_switch_wait_msec** = ``500`` :ref:`🔗<class_TabBar_theme_constant_hover_switch_wait_msec>`
|
|
|
+
|
|
|
+During a drag-and-drop, this is how many milliseconds to wait before switching the tab.
|
|
|
+
|
|
|
+.. rst-class:: classref-item-separator
|
|
|
+
|
|
|
+----
|
|
|
+
|
|
|
.. _class_TabBar_theme_constant_icon_max_width:
|
|
|
|
|
|
.. rst-class:: classref-themeproperty
|