class_vslider.rst 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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.0/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.0/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. | :ref:`SizeFlags<enum_Control_SizeFlags>` | size_flags_horizontal | ``0`` (overrides :ref:`Control<class_Control_property_size_flags_horizontal>`) |
  22. +------------------------------------------+-----------------------+--------------------------------------------------------------------------------+
  23. | :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:`grabber_offset<class_VSlider_theme_constant_grabber_offset>` | ``0`` |
  32. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  33. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber<class_VSlider_theme_icon_grabber>` | |
  34. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  35. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber_disabled<class_VSlider_theme_icon_grabber_disabled>` | |
  36. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  37. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber_highlight<class_VSlider_theme_icon_grabber_highlight>` | |
  38. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  39. | :ref:`Texture2D<class_Texture2D>` | :ref:`tick<class_VSlider_theme_icon_tick>` | |
  40. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  41. | :ref:`StyleBox<class_StyleBox>` | :ref:`grabber_area<class_VSlider_theme_style_grabber_area>` | |
  42. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  43. | :ref:`StyleBox<class_StyleBox>` | :ref:`grabber_area_highlight<class_VSlider_theme_style_grabber_area_highlight>` | |
  44. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  45. | :ref:`StyleBox<class_StyleBox>` | :ref:`slider<class_VSlider_theme_style_slider>` | |
  46. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  47. .. rst-class:: classref-section-separator
  48. ----
  49. .. rst-class:: classref-descriptions-group
  50. Theme Property Descriptions
  51. ---------------------------
  52. .. _class_VSlider_theme_constant_grabber_offset:
  53. .. rst-class:: classref-themeproperty
  54. :ref:`int<class_int>` **grabber_offset** = ``0``
  55. Horizontal offset of the grabber.
  56. .. rst-class:: classref-item-separator
  57. ----
  58. .. _class_VSlider_theme_icon_grabber:
  59. .. rst-class:: classref-themeproperty
  60. :ref:`Texture2D<class_Texture2D>` **grabber**
  61. The texture for the grabber (the draggable element).
  62. .. rst-class:: classref-item-separator
  63. ----
  64. .. _class_VSlider_theme_icon_grabber_disabled:
  65. .. rst-class:: classref-themeproperty
  66. :ref:`Texture2D<class_Texture2D>` **grabber_disabled**
  67. The texture for the grabber when it's disabled.
  68. .. rst-class:: classref-item-separator
  69. ----
  70. .. _class_VSlider_theme_icon_grabber_highlight:
  71. .. rst-class:: classref-themeproperty
  72. :ref:`Texture2D<class_Texture2D>` **grabber_highlight**
  73. The texture for the grabber when it's focused.
  74. .. rst-class:: classref-item-separator
  75. ----
  76. .. _class_VSlider_theme_icon_tick:
  77. .. rst-class:: classref-themeproperty
  78. :ref:`Texture2D<class_Texture2D>` **tick**
  79. The texture for the ticks, visible when :ref:`Slider.tick_count<class_Slider_property_tick_count>` is greater than 0.
  80. .. rst-class:: classref-item-separator
  81. ----
  82. .. _class_VSlider_theme_style_grabber_area:
  83. .. rst-class:: classref-themeproperty
  84. :ref:`StyleBox<class_StyleBox>` **grabber_area**
  85. The background of the area below the grabber.
  86. .. rst-class:: classref-item-separator
  87. ----
  88. .. _class_VSlider_theme_style_grabber_area_highlight:
  89. .. rst-class:: classref-themeproperty
  90. :ref:`StyleBox<class_StyleBox>` **grabber_area_highlight**
  91. The background of the area below the grabber that displays when it's being hovered or focused.
  92. .. rst-class:: classref-item-separator
  93. ----
  94. .. _class_VSlider_theme_style_slider:
  95. .. rst-class:: classref-themeproperty
  96. :ref:`StyleBox<class_StyleBox>` **slider**
  97. The background for the whole slider. Determines the width of the ``grabber_area``.
  98. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  99. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  100. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  101. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  102. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  103. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`