class_hslider.rst 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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/HSlider.xml.
  6. .. _class_HSlider:
  7. HSlider
  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 horizontal slider that goes from left (min) to right (max).
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A horizontal slider, used to adjust a value by moving a grabber along a horizontal axis. It is a :ref:`Range<class_Range>`-based control and goes from left (min) to right (max).
  15. .. rst-class:: classref-reftable-group
  16. Theme Properties
  17. ----------------
  18. .. table::
  19. :widths: auto
  20. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  21. | :ref:`int<class_int>` | :ref:`center_grabber<class_HSlider_theme_constant_center_grabber>` | ``0`` |
  22. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  23. | :ref:`int<class_int>` | :ref:`grabber_offset<class_HSlider_theme_constant_grabber_offset>` | ``0`` |
  24. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  25. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber<class_HSlider_theme_icon_grabber>` | |
  26. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  27. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber_disabled<class_HSlider_theme_icon_grabber_disabled>` | |
  28. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  29. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber_highlight<class_HSlider_theme_icon_grabber_highlight>` | |
  30. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  31. | :ref:`Texture2D<class_Texture2D>` | :ref:`tick<class_HSlider_theme_icon_tick>` | |
  32. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  33. | :ref:`StyleBox<class_StyleBox>` | :ref:`grabber_area<class_HSlider_theme_style_grabber_area>` | |
  34. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  35. | :ref:`StyleBox<class_StyleBox>` | :ref:`grabber_area_highlight<class_HSlider_theme_style_grabber_area_highlight>` | |
  36. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  37. | :ref:`StyleBox<class_StyleBox>` | :ref:`slider<class_HSlider_theme_style_slider>` | |
  38. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  39. .. rst-class:: classref-section-separator
  40. ----
  41. .. rst-class:: classref-descriptions-group
  42. Theme Property Descriptions
  43. ---------------------------
  44. .. _class_HSlider_theme_constant_center_grabber:
  45. .. rst-class:: classref-themeproperty
  46. :ref:`int<class_int>` **center_grabber** = ``0``
  47. 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.
  48. .. rst-class:: classref-item-separator
  49. ----
  50. .. _class_HSlider_theme_constant_grabber_offset:
  51. .. rst-class:: classref-themeproperty
  52. :ref:`int<class_int>` **grabber_offset** = ``0``
  53. Vertical offset of the grabber.
  54. .. rst-class:: classref-item-separator
  55. ----
  56. .. _class_HSlider_theme_icon_grabber:
  57. .. rst-class:: classref-themeproperty
  58. :ref:`Texture2D<class_Texture2D>` **grabber**
  59. The texture for the grabber (the draggable element).
  60. .. rst-class:: classref-item-separator
  61. ----
  62. .. _class_HSlider_theme_icon_grabber_disabled:
  63. .. rst-class:: classref-themeproperty
  64. :ref:`Texture2D<class_Texture2D>` **grabber_disabled**
  65. The texture for the grabber when it's disabled.
  66. .. rst-class:: classref-item-separator
  67. ----
  68. .. _class_HSlider_theme_icon_grabber_highlight:
  69. .. rst-class:: classref-themeproperty
  70. :ref:`Texture2D<class_Texture2D>` **grabber_highlight**
  71. The texture for the grabber when it's focused.
  72. .. rst-class:: classref-item-separator
  73. ----
  74. .. _class_HSlider_theme_icon_tick:
  75. .. rst-class:: classref-themeproperty
  76. :ref:`Texture2D<class_Texture2D>` **tick**
  77. The texture for the ticks, visible when :ref:`Slider.tick_count<class_Slider_property_tick_count>` is greater than 0.
  78. .. rst-class:: classref-item-separator
  79. ----
  80. .. _class_HSlider_theme_style_grabber_area:
  81. .. rst-class:: classref-themeproperty
  82. :ref:`StyleBox<class_StyleBox>` **grabber_area**
  83. The background of the area to the left of the grabber.
  84. .. rst-class:: classref-item-separator
  85. ----
  86. .. _class_HSlider_theme_style_grabber_area_highlight:
  87. .. rst-class:: classref-themeproperty
  88. :ref:`StyleBox<class_StyleBox>` **grabber_area_highlight**
  89. The background of the area to the left of the grabber that displays when it's being hovered or focused.
  90. .. rst-class:: classref-item-separator
  91. ----
  92. .. _class_HSlider_theme_style_slider:
  93. .. rst-class:: classref-themeproperty
  94. :ref:`StyleBox<class_StyleBox>` **slider**
  95. The background for the whole slider. Determines the height of the ``grabber_area``.
  96. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  97. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  98. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  99. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  100. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  101. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  102. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`