:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the Slider.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_Slider: Slider ====== **Inherits:** :ref:`Range` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Inherited By:** :ref:`HSlider`, :ref:`VSlider` **Category:** Core Brief Description ----------------- Base class for GUI sliders. Properties ---------- +------------------------------------------+-----------------------------------------------------------------+-------+ | :ref:`bool` | :ref:`editable` | true | +------------------------------------------+-----------------------------------------------------------------+-------+ | :ref:`FocusMode` | :ref:`focus_mode` | 2 | +------------------------------------------+-----------------------------------------------------------------+-------+ | :ref:`bool` | :ref:`scrollable` | true | +------------------------------------------+-----------------------------------------------------------------+-------+ | :ref:`int` | :ref:`tick_count` | 0 | +------------------------------------------+-----------------------------------------------------------------+-------+ | :ref:`bool` | :ref:`ticks_on_borders` | false | +------------------------------------------+-----------------------------------------------------------------+-------+ Description ----------- Base class for GUI sliders. Property Descriptions --------------------- .. _class_Slider_property_editable: - :ref:`bool` **editable** +-----------+---------------------+ | *Default* | true | +-----------+---------------------+ | *Setter* | set_editable(value) | +-----------+---------------------+ | *Getter* | is_editable() | +-----------+---------------------+ If ``true``, the slider can be interacted with. If ``false``, the value can be changed only by code. .. _class_Slider_property_focus_mode: - :ref:`FocusMode` **focus_mode** +-----------+-----------------------+ | *Default* | 2 | +-----------+-----------------------+ | *Setter* | set_focus_mode(value) | +-----------+-----------------------+ | *Getter* | get_focus_mode() | +-----------+-----------------------+ .. _class_Slider_property_scrollable: - :ref:`bool` **scrollable** +-----------+-----------------------+ | *Default* | true | +-----------+-----------------------+ | *Setter* | set_scrollable(value) | +-----------+-----------------------+ | *Getter* | is_scrollable() | +-----------+-----------------------+ If ``true``, the value can be changed using the mouse wheel. .. _class_Slider_property_tick_count: - :ref:`int` **tick_count** +-----------+------------------+ | *Default* | 0 | +-----------+------------------+ | *Setter* | set_ticks(value) | +-----------+------------------+ | *Getter* | get_ticks() | +-----------+------------------+ Number of ticks displayed on the slider, including border ticks. Ticks are uniformly-distributed value markers. .. _class_Slider_property_ticks_on_borders: - :ref:`bool` **ticks_on_borders** +-----------+-----------------------------+ | *Default* | false | +-----------+-----------------------------+ | *Setter* | set_ticks_on_borders(value) | +-----------+-----------------------------+ | *Getter* | get_ticks_on_borders() | +-----------+-----------------------------+ If ``true``, the slider will display ticks for minimum and maximum values.