| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 | :github_url: hide.. DO NOT EDIT THIS FILE!!!.. Generated automatically from Godot engine sources... Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py... XML source: https://github.com/godotengine/godot/tree/master/doc/classes/ProgressBar.xml... _class_ProgressBar:ProgressBar===========**Inherits:** :ref:`Range<class_Range>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`A control used for visual representation of a percentage... rst-class:: classref-introduction-groupDescription-----------A control used for visual representation of a percentage. Shows the fill percentage in the center. Can also be used to show indeterminate progress. For more fill modes, use :ref:`TextureProgressBar<class_TextureProgressBar>` instead... rst-class:: classref-reftable-groupProperties----------.. table::   :widths: auto   +-------------------------+----------------------------------------------------------------------------------------------+-----------+   | :ref:`bool<class_bool>` | :ref:`editor_preview_indeterminate<class_ProgressBar_property_editor_preview_indeterminate>` |           |   +-------------------------+----------------------------------------------------------------------------------------------+-----------+   | :ref:`int<class_int>`   | :ref:`fill_mode<class_ProgressBar_property_fill_mode>`                                       | ``0``     |   +-------------------------+----------------------------------------------------------------------------------------------+-----------+   | :ref:`bool<class_bool>` | :ref:`indeterminate<class_ProgressBar_property_indeterminate>`                               | ``false`` |   +-------------------------+----------------------------------------------------------------------------------------------+-----------+   | :ref:`bool<class_bool>` | :ref:`show_percentage<class_ProgressBar_property_show_percentage>`                           | ``true``  |   +-------------------------+----------------------------------------------------------------------------------------------+-----------+.. rst-class:: classref-reftable-groupTheme Properties----------------.. table::   :widths: auto   +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+   | :ref:`Color<class_Color>`       | :ref:`font_color<class_ProgressBar_theme_color_font_color>`                 | ``Color(0.95, 0.95, 0.95, 1)`` |   +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+   | :ref:`Color<class_Color>`       | :ref:`font_outline_color<class_ProgressBar_theme_color_font_outline_color>` | ``Color(0, 0, 0, 1)``          |   +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+   | :ref:`int<class_int>`           | :ref:`outline_size<class_ProgressBar_theme_constant_outline_size>`          | ``0``                          |   +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+   | :ref:`Font<class_Font>`         | :ref:`font<class_ProgressBar_theme_font_font>`                              |                                |   +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+   | :ref:`int<class_int>`           | :ref:`font_size<class_ProgressBar_theme_font_size_font_size>`               |                                |   +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+   | :ref:`StyleBox<class_StyleBox>` | :ref:`background<class_ProgressBar_theme_style_background>`                 |                                |   +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+   | :ref:`StyleBox<class_StyleBox>` | :ref:`fill<class_ProgressBar_theme_style_fill>`                             |                                |   +---------------------------------+-----------------------------------------------------------------------------+--------------------------------+.. rst-class:: classref-section-separator----.. rst-class:: classref-descriptions-groupEnumerations------------.. _enum_ProgressBar_FillMode:.. rst-class:: classref-enumerationenum **FillMode**: :ref:`🔗<enum_ProgressBar_FillMode>`.. _class_ProgressBar_constant_FILL_BEGIN_TO_END:.. rst-class:: classref-enumeration-constant:ref:`FillMode<enum_ProgressBar_FillMode>` **FILL_BEGIN_TO_END** = ``0``The progress bar fills from begin to end horizontally, according to the language direction. If :ref:`Control.is_layout_rtl()<class_Control_method_is_layout_rtl>` returns ``false``, it fills from left to right, and if it returns ``true``, it fills from right to left... _class_ProgressBar_constant_FILL_END_TO_BEGIN:.. rst-class:: classref-enumeration-constant:ref:`FillMode<enum_ProgressBar_FillMode>` **FILL_END_TO_BEGIN** = ``1``The progress bar fills from end to begin horizontally, according to the language direction. If :ref:`Control.is_layout_rtl()<class_Control_method_is_layout_rtl>` returns ``false``, it fills from right to left, and if it returns ``true``, it fills from left to right... _class_ProgressBar_constant_FILL_TOP_TO_BOTTOM:.. rst-class:: classref-enumeration-constant:ref:`FillMode<enum_ProgressBar_FillMode>` **FILL_TOP_TO_BOTTOM** = ``2``The progress fills from top to bottom... _class_ProgressBar_constant_FILL_BOTTOM_TO_TOP:.. rst-class:: classref-enumeration-constant:ref:`FillMode<enum_ProgressBar_FillMode>` **FILL_BOTTOM_TO_TOP** = ``3``The progress fills from bottom to top... rst-class:: classref-section-separator----.. rst-class:: classref-descriptions-groupProperty Descriptions---------------------.. _class_ProgressBar_property_editor_preview_indeterminate:.. rst-class:: classref-property:ref:`bool<class_bool>` **editor_preview_indeterminate** :ref:`🔗<class_ProgressBar_property_editor_preview_indeterminate>`.. rst-class:: classref-property-setget- |void| **set_editor_preview_indeterminate**\ (\ value\: :ref:`bool<class_bool>`\ )- :ref:`bool<class_bool>` **is_editor_preview_indeterminate_enabled**\ (\ )If ``false``, the :ref:`indeterminate<class_ProgressBar_property_indeterminate>` animation will be paused in the editor... rst-class:: classref-item-separator----.. _class_ProgressBar_property_fill_mode:.. rst-class:: classref-property:ref:`int<class_int>` **fill_mode** = ``0`` :ref:`🔗<class_ProgressBar_property_fill_mode>`.. rst-class:: classref-property-setget- |void| **set_fill_mode**\ (\ value\: :ref:`int<class_int>`\ )- :ref:`int<class_int>` **get_fill_mode**\ (\ )The fill direction. See :ref:`FillMode<enum_ProgressBar_FillMode>` for possible values... rst-class:: classref-item-separator----.. _class_ProgressBar_property_indeterminate:.. rst-class:: classref-property:ref:`bool<class_bool>` **indeterminate** = ``false`` :ref:`🔗<class_ProgressBar_property_indeterminate>`.. rst-class:: classref-property-setget- |void| **set_indeterminate**\ (\ value\: :ref:`bool<class_bool>`\ )- :ref:`bool<class_bool>` **is_indeterminate**\ (\ )When set to ``true``, the progress bar indicates that something is happening with an animation, but does not show the fill percentage or value... rst-class:: classref-item-separator----.. _class_ProgressBar_property_show_percentage:.. rst-class:: classref-property:ref:`bool<class_bool>` **show_percentage** = ``true`` :ref:`🔗<class_ProgressBar_property_show_percentage>`.. rst-class:: classref-property-setget- |void| **set_show_percentage**\ (\ value\: :ref:`bool<class_bool>`\ )- :ref:`bool<class_bool>` **is_percentage_shown**\ (\ )If ``true``, the fill percentage is displayed on the bar... rst-class:: classref-section-separator----.. rst-class:: classref-descriptions-groupTheme Property Descriptions---------------------------.. _class_ProgressBar_theme_color_font_color:.. rst-class:: classref-themeproperty:ref:`Color<class_Color>` **font_color** = ``Color(0.95, 0.95, 0.95, 1)`` :ref:`🔗<class_ProgressBar_theme_color_font_color>`The color of the text... rst-class:: classref-item-separator----.. _class_ProgressBar_theme_color_font_outline_color:.. rst-class:: classref-themeproperty:ref:`Color<class_Color>` **font_outline_color** = ``Color(0, 0, 0, 1)`` :ref:`🔗<class_ProgressBar_theme_color_font_outline_color>`The tint of text outline of the **ProgressBar**... rst-class:: classref-item-separator----.. _class_ProgressBar_theme_constant_outline_size:.. rst-class:: classref-themeproperty:ref:`int<class_int>` **outline_size** = ``0`` :ref:`🔗<class_ProgressBar_theme_constant_outline_size>`The size of the text outline.\ **Note:** If using a font with :ref:`FontFile.multichannel_signed_distance_field<class_FontFile_property_multichannel_signed_distance_field>` enabled, its :ref:`FontFile.msdf_pixel_range<class_FontFile_property_msdf_pixel_range>` must be set to at least *twice* the value of :ref:`outline_size<class_ProgressBar_theme_constant_outline_size>` for outline rendering to look correct. Otherwise, the outline may appear to be cut off earlier than intended... rst-class:: classref-item-separator----.. _class_ProgressBar_theme_font_font:.. rst-class:: classref-themeproperty:ref:`Font<class_Font>` **font** :ref:`🔗<class_ProgressBar_theme_font_font>`Font used to draw the fill percentage if :ref:`show_percentage<class_ProgressBar_property_show_percentage>` is ``true``... rst-class:: classref-item-separator----.. _class_ProgressBar_theme_font_size_font_size:.. rst-class:: classref-themeproperty:ref:`int<class_int>` **font_size** :ref:`🔗<class_ProgressBar_theme_font_size_font_size>`Font size used to draw the fill percentage if :ref:`show_percentage<class_ProgressBar_property_show_percentage>` is ``true``... rst-class:: classref-item-separator----.. _class_ProgressBar_theme_style_background:.. rst-class:: classref-themeproperty:ref:`StyleBox<class_StyleBox>` **background** :ref:`🔗<class_ProgressBar_theme_style_background>`The style of the background... rst-class:: classref-item-separator----.. _class_ProgressBar_theme_style_fill:.. rst-class:: classref-themeproperty:ref:`StyleBox<class_StyleBox>` **fill** :ref:`🔗<class_ProgressBar_theme_style_fill>`The style of the progress (i.e. the part that fills the bar)... |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`.. |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.)`.. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`.. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`.. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`.. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`.. |void| replace:: :abbr:`void (No return value.)`
 |