:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/4.0/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/4.0/doc/classes/HSlider.xml. .. _class_HSlider: HSlider ======= **Inherits:** :ref:`Slider` **<** :ref:`Range` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` A horizontal slider that goes from left (min) to right (max). .. rst-class:: classref-introduction-group Description ----------- A horizontal slider, used to adjust a value by moving a grabber along a horizontal axis. It is a :ref:`Range`-based control and goes from left (min) to right (max). .. rst-class:: classref-reftable-group Theme Properties ---------------- .. table:: :widths: auto +-----------------------------------+---------------------------------------------------------------------------------+-------+ | :ref:`int` | :ref:`grabber_offset` | ``0`` | +-----------------------------------+---------------------------------------------------------------------------------+-------+ | :ref:`Texture2D` | :ref:`grabber` | | +-----------------------------------+---------------------------------------------------------------------------------+-------+ | :ref:`Texture2D` | :ref:`grabber_disabled` | | +-----------------------------------+---------------------------------------------------------------------------------+-------+ | :ref:`Texture2D` | :ref:`grabber_highlight` | | +-----------------------------------+---------------------------------------------------------------------------------+-------+ | :ref:`Texture2D` | :ref:`tick` | | +-----------------------------------+---------------------------------------------------------------------------------+-------+ | :ref:`StyleBox` | :ref:`grabber_area` | | +-----------------------------------+---------------------------------------------------------------------------------+-------+ | :ref:`StyleBox` | :ref:`grabber_area_highlight` | | +-----------------------------------+---------------------------------------------------------------------------------+-------+ | :ref:`StyleBox` | :ref:`slider` | | +-----------------------------------+---------------------------------------------------------------------------------+-------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Theme Property Descriptions --------------------------- .. _class_HSlider_theme_constant_grabber_offset: .. rst-class:: classref-themeproperty :ref:`int` **grabber_offset** = ``0`` Vertical offset of the grabber. .. rst-class:: classref-item-separator ---- .. _class_HSlider_theme_icon_grabber: .. rst-class:: classref-themeproperty :ref:`Texture2D` **grabber** The texture for the grabber (the draggable element). .. rst-class:: classref-item-separator ---- .. _class_HSlider_theme_icon_grabber_disabled: .. rst-class:: classref-themeproperty :ref:`Texture2D` **grabber_disabled** The texture for the grabber when it's disabled. .. rst-class:: classref-item-separator ---- .. _class_HSlider_theme_icon_grabber_highlight: .. rst-class:: classref-themeproperty :ref:`Texture2D` **grabber_highlight** The texture for the grabber when it's focused. .. rst-class:: classref-item-separator ---- .. _class_HSlider_theme_icon_tick: .. rst-class:: classref-themeproperty :ref:`Texture2D` **tick** The texture for the ticks, visible when :ref:`Slider.tick_count` is greater than 0. .. rst-class:: classref-item-separator ---- .. _class_HSlider_theme_style_grabber_area: .. rst-class:: classref-themeproperty :ref:`StyleBox` **grabber_area** The background of the area to the left of the grabber. .. rst-class:: classref-item-separator ---- .. _class_HSlider_theme_style_grabber_area_highlight: .. rst-class:: classref-themeproperty :ref:`StyleBox` **grabber_area_highlight** The background of the area to the left of the grabber that displays when it's being hovered or focused. .. rst-class:: classref-item-separator ---- .. _class_HSlider_theme_style_slider: .. rst-class:: classref-themeproperty :ref:`StyleBox` **slider** The background for the whole slider. Determines the height of the ``grabber_area``. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`