class_spinbox.rst 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the SpinBox.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_SpinBox:
  5. SpinBox
  6. =======
  7. **Inherits:** :ref:`Range<class_range>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Numerical input text field.
  12. Member Functions
  13. ----------------
  14. +----------------------------------+------------------------------------------------------------------------------------------------+
  15. | :ref:`LineEdit<class_lineedit>` | :ref:`get_line_edit<class_SpinBox_get_line_edit>` **(** **)** |
  16. +----------------------------------+------------------------------------------------------------------------------------------------+
  17. | :ref:`String<class_string>` | :ref:`get_prefix<class_SpinBox_get_prefix>` **(** **)** const |
  18. +----------------------------------+------------------------------------------------------------------------------------------------+
  19. | :ref:`String<class_string>` | :ref:`get_suffix<class_SpinBox_get_suffix>` **(** **)** const |
  20. +----------------------------------+------------------------------------------------------------------------------------------------+
  21. | :ref:`bool<class_bool>` | :ref:`is_editable<class_SpinBox_is_editable>` **(** **)** const |
  22. +----------------------------------+------------------------------------------------------------------------------------------------+
  23. | void | :ref:`set_editable<class_SpinBox_set_editable>` **(** :ref:`bool<class_bool>` editable **)** |
  24. +----------------------------------+------------------------------------------------------------------------------------------------+
  25. | void | :ref:`set_prefix<class_SpinBox_set_prefix>` **(** :ref:`String<class_string>` prefix **)** |
  26. +----------------------------------+------------------------------------------------------------------------------------------------+
  27. | void | :ref:`set_suffix<class_SpinBox_set_suffix>` **(** :ref:`String<class_string>` suffix **)** |
  28. +----------------------------------+------------------------------------------------------------------------------------------------+
  29. Member Variables
  30. ----------------
  31. - :ref:`bool<class_bool>` **editable**
  32. - :ref:`String<class_string>` **prefix**
  33. - :ref:`String<class_string>` **suffix**
  34. Description
  35. -----------
  36. SpinBox is a numerical input text field. It allows entering integers and floats.
  37. Member Function Description
  38. ---------------------------
  39. .. _class_SpinBox_get_line_edit:
  40. - :ref:`LineEdit<class_lineedit>` **get_line_edit** **(** **)**
  41. .. _class_SpinBox_get_prefix:
  42. - :ref:`String<class_string>` **get_prefix** **(** **)** const
  43. .. _class_SpinBox_get_suffix:
  44. - :ref:`String<class_string>` **get_suffix** **(** **)** const
  45. Return the specific suffix.
  46. .. _class_SpinBox_is_editable:
  47. - :ref:`bool<class_bool>` **is_editable** **(** **)** const
  48. Return if the spinbox is editable.
  49. .. _class_SpinBox_set_editable:
  50. - void **set_editable** **(** :ref:`bool<class_bool>` editable **)**
  51. Set whether the spinbox is editable.
  52. .. _class_SpinBox_set_prefix:
  53. - void **set_prefix** **(** :ref:`String<class_string>` prefix **)**
  54. Set a prefix.
  55. .. _class_SpinBox_set_suffix:
  56. - void **set_suffix** **(** :ref:`String<class_string>` suffix **)**
  57. Set a specific suffix.