class_slider.rst 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_Slider:
  4. Slider
  5. ======
  6. **Inherits:** :ref:`Range<class_range>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Inherited By:** :ref:`HSlider<class_hslider>`, :ref:`VSlider<class_vslider>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Base class for GUI Sliders.
  12. Member Functions
  13. ----------------
  14. +--------------------------+----------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`int<class_int>` | :ref:`get_ticks<class_Slider_get_ticks>` **(** **)** const |
  16. +--------------------------+----------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`bool<class_bool>` | :ref:`get_ticks_on_borders<class_Slider_get_ticks_on_borders>` **(** **)** const |
  18. +--------------------------+----------------------------------------------------------------------------------------------------------------------+
  19. | void | :ref:`set_ticks<class_Slider_set_ticks>` **(** :ref:`int<class_int>` count **)** |
  20. +--------------------------+----------------------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`set_ticks_on_borders<class_Slider_set_ticks_on_borders>` **(** :ref:`bool<class_bool>` ticks_on_border **)** |
  22. +--------------------------+----------------------------------------------------------------------------------------------------------------------+
  23. Description
  24. -----------
  25. Base class for GUI Sliders.
  26. Member Function Description
  27. ---------------------------
  28. .. _class_Slider_get_ticks:
  29. - :ref:`int<class_int>` **get_ticks** **(** **)** const
  30. Return amounts of ticks to display on slider.
  31. .. _class_Slider_get_ticks_on_borders:
  32. - :ref:`bool<class_bool>` **get_ticks_on_borders** **(** **)** const
  33. Return true if ticks are visible on borders.
  34. .. _class_Slider_set_ticks:
  35. - void **set_ticks** **(** :ref:`int<class_int>` count **)**
  36. Set amount of ticks to display in slider.
  37. .. _class_Slider_set_ticks_on_borders:
  38. - void **set_ticks_on_borders** **(** :ref:`bool<class_bool>` ticks_on_border **)**
  39. Set true if ticks are visible on borders.