class_editorspinslider.rst 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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/4.0/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.0/doc/classes/EditorSpinSlider.xml.
  6. .. _class_EditorSpinSlider:
  7. EditorSpinSlider
  8. ================
  9. **Inherits:** :ref:`Range<class_Range>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Godot editor's control for editing numeric values.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This :ref:`Control<class_Control>` node is used in the editor's Inspector dock to allow editing of numeric values. Can be used with :ref:`EditorInspectorPlugin<class_EditorInspectorPlugin>` to recreate the same behavior.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
  21. | :ref:`bool<class_bool>` | :ref:`flat<class_EditorSpinSlider_property_flat>` | ``false`` |
  22. +------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
  23. | :ref:`FocusMode<enum_Control_FocusMode>` | focus_mode | ``2`` (overrides :ref:`Control<class_Control_property_focus_mode>`) |
  24. +------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
  25. | :ref:`bool<class_bool>` | :ref:`hide_slider<class_EditorSpinSlider_property_hide_slider>` | ``false`` |
  26. +------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
  27. | :ref:`String<class_String>` | :ref:`label<class_EditorSpinSlider_property_label>` | ``""`` |
  28. +------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
  29. | :ref:`bool<class_bool>` | :ref:`read_only<class_EditorSpinSlider_property_read_only>` | ``false`` |
  30. +------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
  31. | :ref:`SizeFlags<enum_Control_SizeFlags>` | size_flags_vertical | ``1`` (overrides :ref:`Control<class_Control_property_size_flags_vertical>`) |
  32. +------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
  33. | :ref:`float<class_float>` | step | ``1.0`` (overrides :ref:`Range<class_Range_property_step>`) |
  34. +------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
  35. | :ref:`String<class_String>` | :ref:`suffix<class_EditorSpinSlider_property_suffix>` | ``""`` |
  36. +------------------------------------------+-----------------------------------------------------------------+------------------------------------------------------------------------------+
  37. .. rst-class:: classref-section-separator
  38. ----
  39. .. rst-class:: classref-descriptions-group
  40. Signals
  41. -------
  42. .. _class_EditorSpinSlider_signal_grabbed:
  43. .. rst-class:: classref-signal
  44. **grabbed** **(** **)**
  45. Emitted when the spinner/slider is grabbed.
  46. .. rst-class:: classref-item-separator
  47. ----
  48. .. _class_EditorSpinSlider_signal_ungrabbed:
  49. .. rst-class:: classref-signal
  50. **ungrabbed** **(** **)**
  51. Emitted when the spinner/slider is ungrabbed.
  52. .. rst-class:: classref-item-separator
  53. ----
  54. .. _class_EditorSpinSlider_signal_value_focus_entered:
  55. .. rst-class:: classref-signal
  56. **value_focus_entered** **(** **)**
  57. Emitted when the value form gains focus.
  58. .. rst-class:: classref-item-separator
  59. ----
  60. .. _class_EditorSpinSlider_signal_value_focus_exited:
  61. .. rst-class:: classref-signal
  62. **value_focus_exited** **(** **)**
  63. Emitted when the value form loses focus.
  64. .. rst-class:: classref-section-separator
  65. ----
  66. .. rst-class:: classref-descriptions-group
  67. Property Descriptions
  68. ---------------------
  69. .. _class_EditorSpinSlider_property_flat:
  70. .. rst-class:: classref-property
  71. :ref:`bool<class_bool>` **flat** = ``false``
  72. .. rst-class:: classref-property-setget
  73. - void **set_flat** **(** :ref:`bool<class_bool>` value **)**
  74. - :ref:`bool<class_bool>` **is_flat** **(** **)**
  75. If ``true``, the slider will not draw background.
  76. .. rst-class:: classref-item-separator
  77. ----
  78. .. _class_EditorSpinSlider_property_hide_slider:
  79. .. rst-class:: classref-property
  80. :ref:`bool<class_bool>` **hide_slider** = ``false``
  81. .. rst-class:: classref-property-setget
  82. - void **set_hide_slider** **(** :ref:`bool<class_bool>` value **)**
  83. - :ref:`bool<class_bool>` **is_hiding_slider** **(** **)**
  84. If ``true``, the slider is hidden.
  85. .. rst-class:: classref-item-separator
  86. ----
  87. .. _class_EditorSpinSlider_property_label:
  88. .. rst-class:: classref-property
  89. :ref:`String<class_String>` **label** = ``""``
  90. .. rst-class:: classref-property-setget
  91. - void **set_label** **(** :ref:`String<class_String>` value **)**
  92. - :ref:`String<class_String>` **get_label** **(** **)**
  93. The text that displays to the left of the value.
  94. .. rst-class:: classref-item-separator
  95. ----
  96. .. _class_EditorSpinSlider_property_read_only:
  97. .. rst-class:: classref-property
  98. :ref:`bool<class_bool>` **read_only** = ``false``
  99. .. rst-class:: classref-property-setget
  100. - void **set_read_only** **(** :ref:`bool<class_bool>` value **)**
  101. - :ref:`bool<class_bool>` **is_read_only** **(** **)**
  102. If ``true``, the slider can't be interacted with.
  103. .. rst-class:: classref-item-separator
  104. ----
  105. .. _class_EditorSpinSlider_property_suffix:
  106. .. rst-class:: classref-property
  107. :ref:`String<class_String>` **suffix** = ``""``
  108. .. rst-class:: classref-property-setget
  109. - void **set_suffix** **(** :ref:`String<class_String>` value **)**
  110. - :ref:`String<class_String>` **get_suffix** **(** **)**
  111. The suffix to display after the value (in a faded color). This should generally be a plural word. You may have to use an abbreviation if the suffix is too long to be displayed.
  112. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  113. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  114. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  115. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  116. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  117. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`