class_progressbar.rst 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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/ProgressBar.xml.
  6. .. _class_ProgressBar:
  7. ProgressBar
  8. ===========
  9. **Inherits:** :ref:`Range<class_Range>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. General-purpose progress bar.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. General-purpose progress bar. Shows fill percentage from right to left.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +---------------------------+--------------------------------------------------------------------+------------------------------------------------------------------------------+
  21. | :ref:`bool<class_bool>` | :ref:`percent_visible<class_ProgressBar_property_percent_visible>` | ``true`` |
  22. +---------------------------+--------------------------------------------------------------------+------------------------------------------------------------------------------+
  23. | :ref:`int<class_int>` | size_flags_vertical | ``0`` (overrides :ref:`Control<class_Control_property_size_flags_vertical>`) |
  24. +---------------------------+--------------------------------------------------------------------+------------------------------------------------------------------------------+
  25. | :ref:`float<class_float>` | step | ``0.01`` (overrides :ref:`Range<class_Range_property_step>`) |
  26. +---------------------------+--------------------------------------------------------------------+------------------------------------------------------------------------------+
  27. .. rst-class:: classref-reftable-group
  28. Theme Properties
  29. ----------------
  30. .. table::
  31. :widths: auto
  32. +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
  33. | :ref:`Color<class_Color>` | :ref:`font_color<class_ProgressBar_theme_color_font_color>` | ``Color( 0.94, 0.94, 0.94, 1 )`` |
  34. +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
  35. | :ref:`Color<class_Color>` | :ref:`font_color_shadow<class_ProgressBar_theme_color_font_color_shadow>` | ``Color( 0, 0, 0, 1 )`` |
  36. +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
  37. | :ref:`Font<class_Font>` | :ref:`font<class_ProgressBar_theme_font_font>` | |
  38. +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
  39. | :ref:`StyleBox<class_StyleBox>` | :ref:`bg<class_ProgressBar_theme_style_bg>` | |
  40. +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
  41. | :ref:`StyleBox<class_StyleBox>` | :ref:`fg<class_ProgressBar_theme_style_fg>` | |
  42. +---------------------------------+---------------------------------------------------------------------------+----------------------------------+
  43. .. rst-class:: classref-section-separator
  44. ----
  45. .. rst-class:: classref-descriptions-group
  46. Property Descriptions
  47. ---------------------
  48. .. _class_ProgressBar_property_percent_visible:
  49. .. rst-class:: classref-property
  50. :ref:`bool<class_bool>` **percent_visible** = ``true``
  51. .. rst-class:: classref-property-setget
  52. - void **set_percent_visible** **(** :ref:`bool<class_bool>` value **)**
  53. - :ref:`bool<class_bool>` **is_percent_visible** **(** **)**
  54. If ``true``, the fill percentage is displayed on the bar.
  55. .. rst-class:: classref-section-separator
  56. ----
  57. .. rst-class:: classref-descriptions-group
  58. Theme Property Descriptions
  59. ---------------------------
  60. .. _class_ProgressBar_theme_color_font_color:
  61. .. rst-class:: classref-themeproperty
  62. :ref:`Color<class_Color>` **font_color** = ``Color( 0.94, 0.94, 0.94, 1 )``
  63. The color of the text.
  64. .. rst-class:: classref-item-separator
  65. ----
  66. .. _class_ProgressBar_theme_color_font_color_shadow:
  67. .. rst-class:: classref-themeproperty
  68. :ref:`Color<class_Color>` **font_color_shadow** = ``Color( 0, 0, 0, 1 )``
  69. The color of the text's shadow.
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_ProgressBar_theme_font_font:
  73. .. rst-class:: classref-themeproperty
  74. :ref:`Font<class_Font>` **font**
  75. Font used to draw the fill percentage if :ref:`percent_visible<class_ProgressBar_property_percent_visible>` is ``true``.
  76. .. rst-class:: classref-item-separator
  77. ----
  78. .. _class_ProgressBar_theme_style_bg:
  79. .. rst-class:: classref-themeproperty
  80. :ref:`StyleBox<class_StyleBox>` **bg**
  81. The style of the background.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_ProgressBar_theme_style_fg:
  85. .. rst-class:: classref-themeproperty
  86. :ref:`StyleBox<class_StyleBox>` **fg**
  87. The style of the progress (i.e. the part that fills the bar).
  88. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  89. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  90. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  91. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`