class_scrollbar.rst 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/ScrollBar.xml.
  6. .. _class_ScrollBar:
  7. ScrollBar
  8. =========
  9. **Inherits:** :ref:`Range<class_Range>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`HScrollBar<class_HScrollBar>`, :ref:`VScrollBar<class_VScrollBar>`
  11. Base class for scroll bars.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Scrollbars are a :ref:`Range<class_Range>`-based :ref:`Control<class_Control>`, that display a draggable area (the size of the page). Horizontal (:ref:`HScrollBar<class_HScrollBar>`) and Vertical (:ref:`VScrollBar<class_VScrollBar>`) versions are available.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +---------------------------+----------------------------------------------------------+------------------------------------------------------------------------------+
  22. | :ref:`float<class_float>` | :ref:`custom_step<class_ScrollBar_property_custom_step>` | ``-1.0`` |
  23. +---------------------------+----------------------------------------------------------+------------------------------------------------------------------------------+
  24. | :ref:`int<class_int>` | size_flags_vertical | ``0`` (overrides :ref:`Control<class_Control_property_size_flags_vertical>`) |
  25. +---------------------------+----------------------------------------------------------+------------------------------------------------------------------------------+
  26. | :ref:`float<class_float>` | step | ``0.0`` (overrides :ref:`Range<class_Range_property_step>`) |
  27. +---------------------------+----------------------------------------------------------+------------------------------------------------------------------------------+
  28. .. rst-class:: classref-section-separator
  29. ----
  30. .. rst-class:: classref-descriptions-group
  31. Signals
  32. -------
  33. .. _class_ScrollBar_signal_scrolling:
  34. .. rst-class:: classref-signal
  35. **scrolling** **(** **)**
  36. Emitted when the scrollbar is being scrolled.
  37. .. rst-class:: classref-section-separator
  38. ----
  39. .. rst-class:: classref-descriptions-group
  40. Property Descriptions
  41. ---------------------
  42. .. _class_ScrollBar_property_custom_step:
  43. .. rst-class:: classref-property
  44. :ref:`float<class_float>` **custom_step** = ``-1.0``
  45. .. rst-class:: classref-property-setget
  46. - void **set_custom_step** **(** :ref:`float<class_float>` value **)**
  47. - :ref:`float<class_float>` **get_custom_step** **(** **)**
  48. Overrides the step used when clicking increment and decrement buttons or when using arrow keys when the **ScrollBar** is focused.
  49. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  50. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  51. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  52. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`