mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-05 14:10:19 +03:00
Currently including `zh_CN` and `es` which both have very high completion ratios. Others will be added once they reach a significant percentage too. These RST files will be used by godot-docs in place of its `classes` folder after we sync with https://github.com/godotengine/godot-docs/pull/5458. The update workflow is manual for now (example for `zh_CN`): - Build `godotengine/godot` in the branch we currently track (now `3.x`) - Run `godot --doctool -l zh_CN` - Run `cd doc && make rst LANGARG=zh_CN` - Copy `doc/_build/rst/*` to `classes/zh_CN/` here - Make sure to have `classes/zh_CN/index.rst` copied from `docs/classes`
63 lines
3.2 KiB
ReStructuredText
63 lines
3.2 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the ScrollBar.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_ScrollBar:
|
|
|
|
ScrollBar
|
|
=========
|
|
|
|
**Inherits:** :ref:`Range<class_Range>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
|
|
|
|
**Inherited By:** :ref:`HScrollBar<class_HScrollBar>`, :ref:`VScrollBar<class_VScrollBar>`
|
|
|
|
Clase base para barras de desplazamiento.
|
|
|
|
Descripción
|
|
----------------------
|
|
|
|
Las barras de desplazamiento son un :ref:`Control<class_Control>` basado en :ref:`Range<class_Range>`, que muestra un área arrastrable (el tamaño de la página). Están disponibles las versiones Horizontal (:ref:`HScrollBar<class_HScrollBar>`) y Vertical (:ref:`VScrollBar<class_VScrollBar>`).
|
|
|
|
Propiedades
|
|
----------------------
|
|
|
|
+---------------------------+----------------------------------------------------------+------------------------------------------------------------------------------+
|
|
| :ref:`float<class_float>` | :ref:`custom_step<class_ScrollBar_property_custom_step>` | ``-1.0`` |
|
|
+---------------------------+----------------------------------------------------------+------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | size_flags_vertical | ``0`` (overrides :ref:`Control<class_Control_property_size_flags_vertical>`) |
|
|
+---------------------------+----------------------------------------------------------+------------------------------------------------------------------------------+
|
|
| :ref:`float<class_float>` | step | ``0.0`` (overrides :ref:`Range<class_Range_property_step>`) |
|
|
+---------------------------+----------------------------------------------------------+------------------------------------------------------------------------------+
|
|
|
|
Señales
|
|
--------------
|
|
|
|
.. _class_ScrollBar_signal_scrolling:
|
|
|
|
- **scrolling** **(** **)**
|
|
|
|
Emitido cuando la barra de desplazamiento se está desplazando.
|
|
|
|
Descripciones de Propiedades
|
|
--------------------------------------------------------
|
|
|
|
.. _class_ScrollBar_property_custom_step:
|
|
|
|
- :ref:`float<class_float>` **custom_step**
|
|
|
|
+-----------+------------------------+
|
|
| *Default* | ``-1.0`` |
|
|
+-----------+------------------------+
|
|
| *Setter* | set_custom_step(value) |
|
|
+-----------+------------------------+
|
|
| *Getter* | get_custom_step() |
|
|
+-----------+------------------------+
|
|
|
|
Sobreescribe el paso utilizado cuando se hace clic en los botones de incremento y disminución o cuando se utilizan las teclas de flecha cuando la ``ScrollBar`` está enfocada.
|
|
|
|
.. |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.)`
|