class_hslider.rst 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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/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:`grabber_offset<class_HSlider_theme_constant_grabber_offset>` | ``0`` |
  22. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  23. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber<class_HSlider_theme_icon_grabber>` | |
  24. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  25. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber_disabled<class_HSlider_theme_icon_grabber_disabled>` | |
  26. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  27. | :ref:`Texture2D<class_Texture2D>` | :ref:`grabber_highlight<class_HSlider_theme_icon_grabber_highlight>` | |
  28. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  29. | :ref:`Texture2D<class_Texture2D>` | :ref:`tick<class_HSlider_theme_icon_tick>` | |
  30. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  31. | :ref:`StyleBox<class_StyleBox>` | :ref:`grabber_area<class_HSlider_theme_style_grabber_area>` | |
  32. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  33. | :ref:`StyleBox<class_StyleBox>` | :ref:`grabber_area_highlight<class_HSlider_theme_style_grabber_area_highlight>` | |
  34. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  35. | :ref:`StyleBox<class_StyleBox>` | :ref:`slider<class_HSlider_theme_style_slider>` | |
  36. +-----------------------------------+---------------------------------------------------------------------------------+-------+
  37. .. rst-class:: classref-section-separator
  38. ----
  39. .. rst-class:: classref-descriptions-group
  40. Theme Property Descriptions
  41. ---------------------------
  42. .. _class_HSlider_theme_constant_grabber_offset:
  43. .. rst-class:: classref-themeproperty
  44. :ref:`int<class_int>` **grabber_offset** = ``0``
  45. Vertical offset of the grabber.
  46. .. rst-class:: classref-item-separator
  47. ----
  48. .. _class_HSlider_theme_icon_grabber:
  49. .. rst-class:: classref-themeproperty
  50. :ref:`Texture2D<class_Texture2D>` **grabber**
  51. The texture for the grabber (the draggable element).
  52. .. rst-class:: classref-item-separator
  53. ----
  54. .. _class_HSlider_theme_icon_grabber_disabled:
  55. .. rst-class:: classref-themeproperty
  56. :ref:`Texture2D<class_Texture2D>` **grabber_disabled**
  57. The texture for the grabber when it's disabled.
  58. .. rst-class:: classref-item-separator
  59. ----
  60. .. _class_HSlider_theme_icon_grabber_highlight:
  61. .. rst-class:: classref-themeproperty
  62. :ref:`Texture2D<class_Texture2D>` **grabber_highlight**
  63. The texture for the grabber when it's focused.
  64. .. rst-class:: classref-item-separator
  65. ----
  66. .. _class_HSlider_theme_icon_tick:
  67. .. rst-class:: classref-themeproperty
  68. :ref:`Texture2D<class_Texture2D>` **tick**
  69. The texture for the ticks, visible when :ref:`Slider.tick_count<class_Slider_property_tick_count>` is greater than 0.
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_HSlider_theme_style_grabber_area:
  73. .. rst-class:: classref-themeproperty
  74. :ref:`StyleBox<class_StyleBox>` **grabber_area**
  75. The background of the area to the left of the grabber.
  76. .. rst-class:: classref-item-separator
  77. ----
  78. .. _class_HSlider_theme_style_grabber_area_highlight:
  79. .. rst-class:: classref-themeproperty
  80. :ref:`StyleBox<class_StyleBox>` **grabber_area_highlight**
  81. The background of the area to the left of the grabber that displays when it's being hovered or focused.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_HSlider_theme_style_slider:
  85. .. rst-class:: classref-themeproperty
  86. :ref:`StyleBox<class_StyleBox>` **slider**
  87. The background for the whole slider. Determines the height of the ``grabber_area``.
  88. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  89. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  90. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  91. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  92. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  93. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`