class_vslider.rst 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.1/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.1/doc/classes/VSlider.xml.
  6. .. _class_VSlider:
  7. VSlider
  8. =======
  9. **Inherits:** :ref:`Slider<class_Slider>` **<** :ref:`Range<class_Range>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A vertical slider that goes from bottom (min) to top (max).
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A vertical slider, used to adjust a value by moving a grabber along a vertical axis. It is a :ref:`Range<class_Range>`-based control and goes from bottom (min) to top (max). Note that this direction is the opposite of :ref:`VScrollBar<class_VScrollBar>`'s.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +--------------------------------------------------------+-----------------------+--------------------------------------------------------------------------------+
  21. | |bitfield|\<:ref:`SizeFlags<enum_Control_SizeFlags>`\> | size_flags_horizontal | ``0`` (overrides :ref:`Control<class_Control_property_size_flags_horizontal>`) |
  22. +--------------------------------------------------------+-----------------------+--------------------------------------------------------------------------------+
  23. | |bitfield|\<:ref:`SizeFlags<enum_Control_SizeFlags>`\> | size_flags_vertical | ``1`` (overrides :ref:`Control<class_Control_property_size_flags_vertical>`) |
  24. +--------------------------------------------------------+-----------------------+--------------------------------------------------------------------------------+
  25. .. rst-class:: classref-reftable-group
  26. Theme Properties
  27. ----------------
  28. .. table::
  29. :widths: auto
  30. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  31. | :ref:`int<class_int>` | :ref:`center_grabber<class_VSlider_theme_constant_center_grabber>` | ``0`` |
  32. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  33. | :ref:`int<class_int>` | :ref:`grabber_offset<class_VSlider_theme_constant_grabber_offset>` | ``0`` |
  34. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  35. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber<class_VSlider_theme_icon_grabber>` | |
  36. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  37. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber_disabled<class_VSlider_theme_icon_grabber_disabled>` | |
  38. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  39. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber_highlight<class_VSlider_theme_icon_grabber_highlight>` | |
  40. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  41. | :ref:`Texture2D<class_Texture2D>` | :ref:`tick<class_VSlider_theme_icon_tick>` | |
  42. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  43. | :ref:`StyleBox<class_StyleBox>` | :ref:`grabber_area<class_VSlider_theme_style_grabber_area>` | |
  44. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  45. | :ref:`StyleBox<class_StyleBox>` | :ref:`grabber_area_highlight<class_VSlider_theme_style_grabber_area_highlight>` | |
  46. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  47. | :ref:`StyleBox<class_StyleBox>` | :ref:`slider<class_VSlider_theme_style_slider>` | |
  48. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  49. .. rst-class:: classref-section-separator
  50. ----
  51. .. rst-class:: classref-descriptions-group
  52. Theme Property Descriptions
  53. ---------------------------
  54. .. _class_VSlider_theme_constant_center_grabber:
  55. .. rst-class:: classref-themeproperty
  56. :ref:`int<class_int>` **center_grabber** = ``0``
  57. Boolean constant. If ``1``, the grabber texture size will be ignored and it will fit within slider's bounds based only on its center position.
  58. .. rst-class:: classref-item-separator
  59. ----
  60. .. _class_VSlider_theme_constant_grabber_offset:
  61. .. rst-class:: classref-themeproperty
  62. :ref:`int<class_int>` **grabber_offset** = ``0``
  63. Horizontal offset of the grabber.
  64. .. rst-class:: classref-item-separator
  65. ----
  66. .. _class_VSlider_theme_icon_grabber:
  67. .. rst-class:: classref-themeproperty
  68. :ref:`Texture2D<class_Texture2D>` **grabber**
  69. The texture for the grabber (the draggable element).
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_VSlider_theme_icon_grabber_disabled:
  73. .. rst-class:: classref-themeproperty
  74. :ref:`Texture2D<class_Texture2D>` **grabber_disabled**
  75. The texture for the grabber when it's disabled.
  76. .. rst-class:: classref-item-separator
  77. ----
  78. .. _class_VSlider_theme_icon_grabber_highlight:
  79. .. rst-class:: classref-themeproperty
  80. :ref:`Texture2D<class_Texture2D>` **grabber_highlight**
  81. The texture for the grabber when it's focused.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_VSlider_theme_icon_tick:
  85. .. rst-class:: classref-themeproperty
  86. :ref:`Texture2D<class_Texture2D>` **tick**
  87. The texture for the ticks, visible when :ref:`Slider.tick_count<class_Slider_property_tick_count>` is greater than 0.
  88. .. rst-class:: classref-item-separator
  89. ----
  90. .. _class_VSlider_theme_style_grabber_area:
  91. .. rst-class:: classref-themeproperty
  92. :ref:`StyleBox<class_StyleBox>` **grabber_area**
  93. The background of the area below the grabber.
  94. .. rst-class:: classref-item-separator
  95. ----
  96. .. _class_VSlider_theme_style_grabber_area_highlight:
  97. .. rst-class:: classref-themeproperty
  98. :ref:`StyleBox<class_StyleBox>` **grabber_area_highlight**
  99. The background of the area below the grabber that displays when it's being hovered or focused.
  100. .. rst-class:: classref-item-separator
  101. ----
  102. .. _class_VSlider_theme_style_slider:
  103. .. rst-class:: classref-themeproperty
  104. :ref:`StyleBox<class_StyleBox>` **slider**
  105. The background for the whole slider. Determines the width of the ``grabber_area``.
  106. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  107. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  108. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  109. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  110. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  111. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  112. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`