mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
To tell potential contributors that they should NOT edit those files but instead should work on the class.xml source of the main Godot repo
66 lines
2.5 KiB
ReStructuredText
66 lines
2.5 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
|
|
|
|
.. _class_Slider:
|
|
|
|
Slider
|
|
======
|
|
|
|
**Inherits:** :ref:`Range<class_range>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
|
|
|
|
**Inherited By:** :ref:`HSlider<class_hslider>`, :ref:`VSlider<class_vslider>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Base class for GUI Sliders.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+--------------------------+----------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_ticks<class_Slider_set_ticks>` **(** :ref:`int<class_int>` count **)** |
|
|
+--------------------------+----------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | :ref:`get_ticks<class_Slider_get_ticks>` **(** **)** const |
|
|
+--------------------------+----------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | :ref:`get_ticks_on_borders<class_Slider_get_ticks_on_borders>` **(** **)** const |
|
|
+--------------------------+----------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_ticks_on_borders<class_Slider_set_ticks_on_borders>` **(** :ref:`bool<class_bool>` ticks_on_border **)** |
|
|
+--------------------------+----------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Description
|
|
-----------
|
|
|
|
Base class for GUI Sliders.
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_Slider_set_ticks:
|
|
|
|
- void **set_ticks** **(** :ref:`int<class_int>` count **)**
|
|
|
|
Set amount of ticks to display in slider.
|
|
|
|
.. _class_Slider_get_ticks:
|
|
|
|
- :ref:`int<class_int>` **get_ticks** **(** **)** const
|
|
|
|
Return amounts of ticks to display on slider.
|
|
|
|
.. _class_Slider_get_ticks_on_borders:
|
|
|
|
- :ref:`bool<class_bool>` **get_ticks_on_borders** **(** **)** const
|
|
|
|
Return true if ticks are visible on borders.
|
|
|
|
.. _class_Slider_set_ticks_on_borders:
|
|
|
|
- void **set_ticks_on_borders** **(** :ref:`bool<class_bool>` ticks_on_border **)**
|
|
|
|
Set true if ticks are visible on borders.
|
|
|
|
|