class_filedialog.rst 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038
  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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/FileDialog.xml.
  6. .. _class_FileDialog:
  7. FileDialog
  8. ==========
  9. **Inherits:** :ref:`ConfirmationDialog<class_ConfirmationDialog>` **<** :ref:`AcceptDialog<class_AcceptDialog>` **<** :ref:`Window<class_Window>` **<** :ref:`Viewport<class_Viewport>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A dialog for selecting files or directories in the filesystem.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. **FileDialog** is a preset dialog used to choose files and directories in the filesystem. It supports filter masks. **FileDialog** automatically sets its window title according to the :ref:`file_mode<class_FileDialog_property_file_mode>`. If you want to use a custom title, disable this by setting :ref:`mode_overrides_title<class_FileDialog_property_mode_overrides_title>` to ``false``.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  21. | :ref:`Access<enum_FileDialog_Access>` | :ref:`access<class_FileDialog_property_access>` | ``0`` |
  22. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  23. | :ref:`String<class_String>` | :ref:`current_dir<class_FileDialog_property_current_dir>` | |
  24. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  25. | :ref:`String<class_String>` | :ref:`current_file<class_FileDialog_property_current_file>` | |
  26. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  27. | :ref:`String<class_String>` | :ref:`current_path<class_FileDialog_property_current_path>` | |
  28. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  29. | :ref:`bool<class_bool>` | dialog_hide_on_ok | ``false`` (overrides :ref:`AcceptDialog<class_AcceptDialog_property_dialog_hide_on_ok>`) |
  30. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  31. | :ref:`DisplayMode<enum_FileDialog_DisplayMode>` | :ref:`display_mode<class_FileDialog_property_display_mode>` | ``0`` |
  32. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  33. | :ref:`FileMode<enum_FileDialog_FileMode>` | :ref:`file_mode<class_FileDialog_property_file_mode>` | ``4`` |
  34. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  35. | :ref:`String<class_String>` | :ref:`filename_filter<class_FileDialog_property_filename_filter>` | ``""`` |
  36. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  37. | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`filters<class_FileDialog_property_filters>` | ``PackedStringArray()`` |
  38. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  39. | :ref:`bool<class_bool>` | :ref:`mode_overrides_title<class_FileDialog_property_mode_overrides_title>` | ``true`` |
  40. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  41. | :ref:`int<class_int>` | :ref:`option_count<class_FileDialog_property_option_count>` | ``0`` |
  42. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  43. | :ref:`String<class_String>` | :ref:`root_subfolder<class_FileDialog_property_root_subfolder>` | ``""`` |
  44. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  45. | :ref:`bool<class_bool>` | :ref:`show_hidden_files<class_FileDialog_property_show_hidden_files>` | ``false`` |
  46. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  47. | :ref:`Vector2i<class_Vector2i>` | size | ``Vector2i(640, 360)`` (overrides :ref:`Window<class_Window_property_size>`) |
  48. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  49. | :ref:`String<class_String>` | title | ``"Save a File"`` (overrides :ref:`Window<class_Window_property_title>`) |
  50. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  51. | :ref:`bool<class_bool>` | :ref:`use_native_dialog<class_FileDialog_property_use_native_dialog>` | ``false`` |
  52. +---------------------------------------------------+-----------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
  53. .. rst-class:: classref-reftable-group
  54. Methods
  55. -------
  56. .. table::
  57. :widths: auto
  58. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | |void| | :ref:`add_filter<class_FileDialog_method_add_filter>`\ (\ filter\: :ref:`String<class_String>`, description\: :ref:`String<class_String>` = ""\ ) |
  60. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | |void| | :ref:`add_option<class_FileDialog_method_add_option>`\ (\ name\: :ref:`String<class_String>`, values\: :ref:`PackedStringArray<class_PackedStringArray>`, default_value_index\: :ref:`int<class_int>`\ ) |
  62. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | |void| | :ref:`clear_filename_filter<class_FileDialog_method_clear_filename_filter>`\ (\ ) |
  64. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | |void| | :ref:`clear_filters<class_FileDialog_method_clear_filters>`\ (\ ) |
  66. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | |void| | :ref:`deselect_all<class_FileDialog_method_deselect_all>`\ (\ ) |
  68. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | :ref:`LineEdit<class_LineEdit>` | :ref:`get_line_edit<class_FileDialog_method_get_line_edit>`\ (\ ) |
  70. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | :ref:`int<class_int>` | :ref:`get_option_default<class_FileDialog_method_get_option_default>`\ (\ option\: :ref:`int<class_int>`\ ) |const| |
  72. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | :ref:`String<class_String>` | :ref:`get_option_name<class_FileDialog_method_get_option_name>`\ (\ option\: :ref:`int<class_int>`\ ) |const| |
  74. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`get_option_values<class_FileDialog_method_get_option_values>`\ (\ option\: :ref:`int<class_int>`\ ) |const| |
  76. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | :ref:`Dictionary<class_Dictionary>` | :ref:`get_selected_options<class_FileDialog_method_get_selected_options>`\ (\ ) |const| |
  78. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | :ref:`VBoxContainer<class_VBoxContainer>` | :ref:`get_vbox<class_FileDialog_method_get_vbox>`\ (\ ) |
  80. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | |void| | :ref:`invalidate<class_FileDialog_method_invalidate>`\ (\ ) |
  82. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | |void| | :ref:`set_option_default<class_FileDialog_method_set_option_default>`\ (\ option\: :ref:`int<class_int>`, default_value_index\: :ref:`int<class_int>`\ ) |
  84. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | |void| | :ref:`set_option_name<class_FileDialog_method_set_option_name>`\ (\ option\: :ref:`int<class_int>`, name\: :ref:`String<class_String>`\ ) |
  86. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | |void| | :ref:`set_option_values<class_FileDialog_method_set_option_values>`\ (\ option\: :ref:`int<class_int>`, values\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) |
  88. +---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  89. .. rst-class:: classref-reftable-group
  90. Theme Properties
  91. ----------------
  92. .. table::
  93. :widths: auto
  94. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  95. | :ref:`Color<class_Color>` | :ref:`file_disabled_color<class_FileDialog_theme_color_file_disabled_color>` | ``Color(1, 1, 1, 0.25)`` |
  96. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  97. | :ref:`Color<class_Color>` | :ref:`file_icon_color<class_FileDialog_theme_color_file_icon_color>` | ``Color(1, 1, 1, 1)`` |
  98. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  99. | :ref:`Color<class_Color>` | :ref:`folder_icon_color<class_FileDialog_theme_color_folder_icon_color>` | ``Color(1, 1, 1, 1)`` |
  100. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  101. | :ref:`int<class_int>` | :ref:`thumbnail_size<class_FileDialog_theme_constant_thumbnail_size>` | ``64`` |
  102. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  103. | :ref:`Texture2D<class_Texture2D>` | :ref:`back_folder<class_FileDialog_theme_icon_back_folder>` | |
  104. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  105. | :ref:`Texture2D<class_Texture2D>` | :ref:`create_folder<class_FileDialog_theme_icon_create_folder>` | |
  106. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  107. | :ref:`Texture2D<class_Texture2D>` | :ref:`favorite<class_FileDialog_theme_icon_favorite>` | |
  108. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  109. | :ref:`Texture2D<class_Texture2D>` | :ref:`favorite_down<class_FileDialog_theme_icon_favorite_down>` | |
  110. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  111. | :ref:`Texture2D<class_Texture2D>` | :ref:`favorite_up<class_FileDialog_theme_icon_favorite_up>` | |
  112. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  113. | :ref:`Texture2D<class_Texture2D>` | :ref:`file<class_FileDialog_theme_icon_file>` | |
  114. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  115. | :ref:`Texture2D<class_Texture2D>` | :ref:`file_thumbnail<class_FileDialog_theme_icon_file_thumbnail>` | |
  116. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  117. | :ref:`Texture2D<class_Texture2D>` | :ref:`folder<class_FileDialog_theme_icon_folder>` | |
  118. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  119. | :ref:`Texture2D<class_Texture2D>` | :ref:`folder_thumbnail<class_FileDialog_theme_icon_folder_thumbnail>` | |
  120. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  121. | :ref:`Texture2D<class_Texture2D>` | :ref:`forward_folder<class_FileDialog_theme_icon_forward_folder>` | |
  122. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  123. | :ref:`Texture2D<class_Texture2D>` | :ref:`list_mode<class_FileDialog_theme_icon_list_mode>` | |
  124. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  125. | :ref:`Texture2D<class_Texture2D>` | :ref:`parent_folder<class_FileDialog_theme_icon_parent_folder>` | |
  126. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  127. | :ref:`Texture2D<class_Texture2D>` | :ref:`reload<class_FileDialog_theme_icon_reload>` | |
  128. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  129. | :ref:`Texture2D<class_Texture2D>` | :ref:`sort<class_FileDialog_theme_icon_sort>` | |
  130. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  131. | :ref:`Texture2D<class_Texture2D>` | :ref:`thumbnail_mode<class_FileDialog_theme_icon_thumbnail_mode>` | |
  132. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  133. | :ref:`Texture2D<class_Texture2D>` | :ref:`toggle_filename_filter<class_FileDialog_theme_icon_toggle_filename_filter>` | |
  134. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  135. | :ref:`Texture2D<class_Texture2D>` | :ref:`toggle_hidden<class_FileDialog_theme_icon_toggle_hidden>` | |
  136. +-----------------------------------+-----------------------------------------------------------------------------------+--------------------------+
  137. .. rst-class:: classref-section-separator
  138. ----
  139. .. rst-class:: classref-descriptions-group
  140. Signals
  141. -------
  142. .. _class_FileDialog_signal_dir_selected:
  143. .. rst-class:: classref-signal
  144. **dir_selected**\ (\ dir\: :ref:`String<class_String>`\ ) :ref:`🔗<class_FileDialog_signal_dir_selected>`
  145. Emitted when the user selects a directory.
  146. .. rst-class:: classref-item-separator
  147. ----
  148. .. _class_FileDialog_signal_file_selected:
  149. .. rst-class:: classref-signal
  150. **file_selected**\ (\ path\: :ref:`String<class_String>`\ ) :ref:`🔗<class_FileDialog_signal_file_selected>`
  151. Emitted when the user selects a file by double-clicking it or pressing the **OK** button.
  152. .. rst-class:: classref-item-separator
  153. ----
  154. .. _class_FileDialog_signal_filename_filter_changed:
  155. .. rst-class:: classref-signal
  156. **filename_filter_changed**\ (\ filter\: :ref:`String<class_String>`\ ) :ref:`🔗<class_FileDialog_signal_filename_filter_changed>`
  157. Emitted when the filter for file names changes.
  158. .. rst-class:: classref-item-separator
  159. ----
  160. .. _class_FileDialog_signal_files_selected:
  161. .. rst-class:: classref-signal
  162. **files_selected**\ (\ paths\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) :ref:`🔗<class_FileDialog_signal_files_selected>`
  163. Emitted when the user selects multiple files.
  164. .. rst-class:: classref-section-separator
  165. ----
  166. .. rst-class:: classref-descriptions-group
  167. Enumerations
  168. ------------
  169. .. _enum_FileDialog_FileMode:
  170. .. rst-class:: classref-enumeration
  171. enum **FileMode**: :ref:`🔗<enum_FileDialog_FileMode>`
  172. .. _class_FileDialog_constant_FILE_MODE_OPEN_FILE:
  173. .. rst-class:: classref-enumeration-constant
  174. :ref:`FileMode<enum_FileDialog_FileMode>` **FILE_MODE_OPEN_FILE** = ``0``
  175. The dialog allows selecting one, and only one file.
  176. .. _class_FileDialog_constant_FILE_MODE_OPEN_FILES:
  177. .. rst-class:: classref-enumeration-constant
  178. :ref:`FileMode<enum_FileDialog_FileMode>` **FILE_MODE_OPEN_FILES** = ``1``
  179. The dialog allows selecting multiple files.
  180. .. _class_FileDialog_constant_FILE_MODE_OPEN_DIR:
  181. .. rst-class:: classref-enumeration-constant
  182. :ref:`FileMode<enum_FileDialog_FileMode>` **FILE_MODE_OPEN_DIR** = ``2``
  183. The dialog only allows selecting a directory, disallowing the selection of any file.
  184. .. _class_FileDialog_constant_FILE_MODE_OPEN_ANY:
  185. .. rst-class:: classref-enumeration-constant
  186. :ref:`FileMode<enum_FileDialog_FileMode>` **FILE_MODE_OPEN_ANY** = ``3``
  187. The dialog allows selecting one file or directory.
  188. .. _class_FileDialog_constant_FILE_MODE_SAVE_FILE:
  189. .. rst-class:: classref-enumeration-constant
  190. :ref:`FileMode<enum_FileDialog_FileMode>` **FILE_MODE_SAVE_FILE** = ``4``
  191. The dialog will warn when a file exists.
  192. .. rst-class:: classref-item-separator
  193. ----
  194. .. _enum_FileDialog_Access:
  195. .. rst-class:: classref-enumeration
  196. enum **Access**: :ref:`🔗<enum_FileDialog_Access>`
  197. .. _class_FileDialog_constant_ACCESS_RESOURCES:
  198. .. rst-class:: classref-enumeration-constant
  199. :ref:`Access<enum_FileDialog_Access>` **ACCESS_RESOURCES** = ``0``
  200. The dialog only allows accessing files under the :ref:`Resource<class_Resource>` path (``res://``).
  201. .. _class_FileDialog_constant_ACCESS_USERDATA:
  202. .. rst-class:: classref-enumeration-constant
  203. :ref:`Access<enum_FileDialog_Access>` **ACCESS_USERDATA** = ``1``
  204. The dialog only allows accessing files under user data path (``user://``).
  205. .. _class_FileDialog_constant_ACCESS_FILESYSTEM:
  206. .. rst-class:: classref-enumeration-constant
  207. :ref:`Access<enum_FileDialog_Access>` **ACCESS_FILESYSTEM** = ``2``
  208. The dialog allows accessing files on the whole file system.
  209. .. rst-class:: classref-item-separator
  210. ----
  211. .. _enum_FileDialog_DisplayMode:
  212. .. rst-class:: classref-enumeration
  213. enum **DisplayMode**: :ref:`🔗<enum_FileDialog_DisplayMode>`
  214. .. _class_FileDialog_constant_DISPLAY_THUMBNAILS:
  215. .. rst-class:: classref-enumeration-constant
  216. :ref:`DisplayMode<enum_FileDialog_DisplayMode>` **DISPLAY_THUMBNAILS** = ``0``
  217. The dialog displays files as a grid of thumbnails. Use :ref:`thumbnail_size<class_FileDialog_theme_constant_thumbnail_size>` to adjust their size.
  218. .. _class_FileDialog_constant_DISPLAY_LIST:
  219. .. rst-class:: classref-enumeration-constant
  220. :ref:`DisplayMode<enum_FileDialog_DisplayMode>` **DISPLAY_LIST** = ``1``
  221. The dialog displays files as a list of filenames.
  222. .. rst-class:: classref-section-separator
  223. ----
  224. .. rst-class:: classref-descriptions-group
  225. Property Descriptions
  226. ---------------------
  227. .. _class_FileDialog_property_access:
  228. .. rst-class:: classref-property
  229. :ref:`Access<enum_FileDialog_Access>` **access** = ``0`` :ref:`🔗<class_FileDialog_property_access>`
  230. .. rst-class:: classref-property-setget
  231. - |void| **set_access**\ (\ value\: :ref:`Access<enum_FileDialog_Access>`\ )
  232. - :ref:`Access<enum_FileDialog_Access>` **get_access**\ (\ )
  233. The file system access scope.
  234. \ **Warning:** In Web builds, FileDialog cannot access the host file system. In sandboxed Linux and macOS environments, :ref:`use_native_dialog<class_FileDialog_property_use_native_dialog>` is automatically used to allow limited access to host file system.
  235. .. rst-class:: classref-item-separator
  236. ----
  237. .. _class_FileDialog_property_current_dir:
  238. .. rst-class:: classref-property
  239. :ref:`String<class_String>` **current_dir** :ref:`🔗<class_FileDialog_property_current_dir>`
  240. .. rst-class:: classref-property-setget
  241. - |void| **set_current_dir**\ (\ value\: :ref:`String<class_String>`\ )
  242. - :ref:`String<class_String>` **get_current_dir**\ (\ )
  243. The current working directory of the file dialog.
  244. \ **Note:** For native file dialogs, this property is only treated as a hint and may not be respected by specific OS implementations.
  245. .. rst-class:: classref-item-separator
  246. ----
  247. .. _class_FileDialog_property_current_file:
  248. .. rst-class:: classref-property
  249. :ref:`String<class_String>` **current_file** :ref:`🔗<class_FileDialog_property_current_file>`
  250. .. rst-class:: classref-property-setget
  251. - |void| **set_current_file**\ (\ value\: :ref:`String<class_String>`\ )
  252. - :ref:`String<class_String>` **get_current_file**\ (\ )
  253. The currently selected file of the file dialog.
  254. .. rst-class:: classref-item-separator
  255. ----
  256. .. _class_FileDialog_property_current_path:
  257. .. rst-class:: classref-property
  258. :ref:`String<class_String>` **current_path** :ref:`🔗<class_FileDialog_property_current_path>`
  259. .. rst-class:: classref-property-setget
  260. - |void| **set_current_path**\ (\ value\: :ref:`String<class_String>`\ )
  261. - :ref:`String<class_String>` **get_current_path**\ (\ )
  262. The currently selected file path of the file dialog.
  263. .. rst-class:: classref-item-separator
  264. ----
  265. .. _class_FileDialog_property_display_mode:
  266. .. rst-class:: classref-property
  267. :ref:`DisplayMode<enum_FileDialog_DisplayMode>` **display_mode** = ``0`` :ref:`🔗<class_FileDialog_property_display_mode>`
  268. .. rst-class:: classref-property-setget
  269. - |void| **set_display_mode**\ (\ value\: :ref:`DisplayMode<enum_FileDialog_DisplayMode>`\ )
  270. - :ref:`DisplayMode<enum_FileDialog_DisplayMode>` **get_display_mode**\ (\ )
  271. Display mode of the dialog's file list.
  272. .. rst-class:: classref-item-separator
  273. ----
  274. .. _class_FileDialog_property_file_mode:
  275. .. rst-class:: classref-property
  276. :ref:`FileMode<enum_FileDialog_FileMode>` **file_mode** = ``4`` :ref:`🔗<class_FileDialog_property_file_mode>`
  277. .. rst-class:: classref-property-setget
  278. - |void| **set_file_mode**\ (\ value\: :ref:`FileMode<enum_FileDialog_FileMode>`\ )
  279. - :ref:`FileMode<enum_FileDialog_FileMode>` **get_file_mode**\ (\ )
  280. The dialog's open or save mode, which affects the selection behavior.
  281. .. rst-class:: classref-item-separator
  282. ----
  283. .. _class_FileDialog_property_filename_filter:
  284. .. rst-class:: classref-property
  285. :ref:`String<class_String>` **filename_filter** = ``""`` :ref:`🔗<class_FileDialog_property_filename_filter>`
  286. .. rst-class:: classref-property-setget
  287. - |void| **set_filename_filter**\ (\ value\: :ref:`String<class_String>`\ )
  288. - :ref:`String<class_String>` **get_filename_filter**\ (\ )
  289. The filter for file names (case-insensitive). When set to a non-empty string, only files that contains the substring will be shown. :ref:`filename_filter<class_FileDialog_property_filename_filter>` can be edited by the user with the filter button at the top of the file dialog.
  290. See also :ref:`filters<class_FileDialog_property_filters>`, which should be used to restrict the file types that can be selected instead of :ref:`filename_filter<class_FileDialog_property_filename_filter>` which is meant to be set by the user.
  291. .. rst-class:: classref-item-separator
  292. ----
  293. .. _class_FileDialog_property_filters:
  294. .. rst-class:: classref-property
  295. :ref:`PackedStringArray<class_PackedStringArray>` **filters** = ``PackedStringArray()`` :ref:`🔗<class_FileDialog_property_filters>`
  296. .. rst-class:: classref-property-setget
  297. - |void| **set_filters**\ (\ value\: :ref:`PackedStringArray<class_PackedStringArray>`\ )
  298. - :ref:`PackedStringArray<class_PackedStringArray>` **get_filters**\ (\ )
  299. The available file type filters. Each filter string in the array should be formatted like this: ``*.png,*.jpg,*.jpeg;Image Files;image/png,image/jpeg``. The description text of the filter is optional and can be omitted. Both file extensions and MIME type should be always set.
  300. \ **Note:** Embedded file dialog and Windows file dialog support only file extensions, while Android, Linux, and macOS file dialogs also support MIME types.
  301. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedStringArray<class_PackedStringArray>` for more details.
  302. .. rst-class:: classref-item-separator
  303. ----
  304. .. _class_FileDialog_property_mode_overrides_title:
  305. .. rst-class:: classref-property
  306. :ref:`bool<class_bool>` **mode_overrides_title** = ``true`` :ref:`🔗<class_FileDialog_property_mode_overrides_title>`
  307. .. rst-class:: classref-property-setget
  308. - |void| **set_mode_overrides_title**\ (\ value\: :ref:`bool<class_bool>`\ )
  309. - :ref:`bool<class_bool>` **is_mode_overriding_title**\ (\ )
  310. If ``true``, changing the :ref:`file_mode<class_FileDialog_property_file_mode>` property will set the window title accordingly (e.g. setting :ref:`file_mode<class_FileDialog_property_file_mode>` to :ref:`FILE_MODE_OPEN_FILE<class_FileDialog_constant_FILE_MODE_OPEN_FILE>` will change the window title to "Open a File").
  311. .. rst-class:: classref-item-separator
  312. ----
  313. .. _class_FileDialog_property_option_count:
  314. .. rst-class:: classref-property
  315. :ref:`int<class_int>` **option_count** = ``0`` :ref:`🔗<class_FileDialog_property_option_count>`
  316. .. rst-class:: classref-property-setget
  317. - |void| **set_option_count**\ (\ value\: :ref:`int<class_int>`\ )
  318. - :ref:`int<class_int>` **get_option_count**\ (\ )
  319. The number of additional :ref:`OptionButton<class_OptionButton>`\ s and :ref:`CheckBox<class_CheckBox>`\ es in the dialog.
  320. .. rst-class:: classref-item-separator
  321. ----
  322. .. _class_FileDialog_property_root_subfolder:
  323. .. rst-class:: classref-property
  324. :ref:`String<class_String>` **root_subfolder** = ``""`` :ref:`🔗<class_FileDialog_property_root_subfolder>`
  325. .. rst-class:: classref-property-setget
  326. - |void| **set_root_subfolder**\ (\ value\: :ref:`String<class_String>`\ )
  327. - :ref:`String<class_String>` **get_root_subfolder**\ (\ )
  328. If non-empty, the given sub-folder will be "root" of this **FileDialog**, i.e. user won't be able to go to its parent directory.
  329. \ **Note:** This property is ignored by native file dialogs.
  330. .. rst-class:: classref-item-separator
  331. ----
  332. .. _class_FileDialog_property_show_hidden_files:
  333. .. rst-class:: classref-property
  334. :ref:`bool<class_bool>` **show_hidden_files** = ``false`` :ref:`🔗<class_FileDialog_property_show_hidden_files>`
  335. .. rst-class:: classref-property-setget
  336. - |void| **set_show_hidden_files**\ (\ value\: :ref:`bool<class_bool>`\ )
  337. - :ref:`bool<class_bool>` **is_showing_hidden_files**\ (\ )
  338. If ``true``, the dialog will show hidden files.
  339. \ **Note:** This property is ignored by native file dialogs on Android and Linux.
  340. .. rst-class:: classref-item-separator
  341. ----
  342. .. _class_FileDialog_property_use_native_dialog:
  343. .. rst-class:: classref-property
  344. :ref:`bool<class_bool>` **use_native_dialog** = ``false`` :ref:`🔗<class_FileDialog_property_use_native_dialog>`
  345. .. rst-class:: classref-property-setget
  346. - |void| **set_use_native_dialog**\ (\ value\: :ref:`bool<class_bool>`\ )
  347. - :ref:`bool<class_bool>` **get_use_native_dialog**\ (\ )
  348. If ``true``, and if supported by the current :ref:`DisplayServer<class_DisplayServer>`, OS native dialog will be used instead of custom one.
  349. \ **Note:** On Android, it is only supported when using :ref:`ACCESS_FILESYSTEM<class_FileDialog_constant_ACCESS_FILESYSTEM>`. For access mode :ref:`ACCESS_RESOURCES<class_FileDialog_constant_ACCESS_RESOURCES>` and :ref:`ACCESS_USERDATA<class_FileDialog_constant_ACCESS_USERDATA>`, the system will fall back to custom FileDialog.
  350. \ **Note:** On Linux and macOS, sandboxed apps always use native dialogs to access the host file system.
  351. \ **Note:** On macOS, sandboxed apps will save security-scoped bookmarks to retain access to the opened folders across multiple sessions. Use :ref:`OS.get_granted_permissions()<class_OS_method_get_granted_permissions>` to get a list of saved bookmarks.
  352. \ **Note:** Native dialogs are isolated from the base process, file dialog properties can't be modified once the dialog is shown.
  353. .. rst-class:: classref-section-separator
  354. ----
  355. .. rst-class:: classref-descriptions-group
  356. Method Descriptions
  357. -------------------
  358. .. _class_FileDialog_method_add_filter:
  359. .. rst-class:: classref-method
  360. |void| **add_filter**\ (\ filter\: :ref:`String<class_String>`, description\: :ref:`String<class_String>` = ""\ ) :ref:`🔗<class_FileDialog_method_add_filter>`
  361. Adds a comma-delimited file name ``filter`` option to the **FileDialog** with an optional ``description``, which restricts what files can be picked.
  362. A ``filter`` should be of the form ``"filename.extension"``, where filename and extension can be ``*`` to match any string. Filters starting with ``.`` (i.e. empty filenames) are not allowed.
  363. For example, a ``filter`` of ``"*.png, *.jpg"`` and a ``description`` of ``"Images"`` results in filter text "Images (\*.png, \*.jpg)".
  364. .. rst-class:: classref-item-separator
  365. ----
  366. .. _class_FileDialog_method_add_option:
  367. .. rst-class:: classref-method
  368. |void| **add_option**\ (\ name\: :ref:`String<class_String>`, values\: :ref:`PackedStringArray<class_PackedStringArray>`, default_value_index\: :ref:`int<class_int>`\ ) :ref:`🔗<class_FileDialog_method_add_option>`
  369. Adds an additional :ref:`OptionButton<class_OptionButton>` to the file dialog. If ``values`` is empty, a :ref:`CheckBox<class_CheckBox>` is added instead.
  370. \ ``default_value_index`` should be an index of the value in the ``values``. If ``values`` is empty it should be either ``1`` (checked), or ``0`` (unchecked).
  371. .. rst-class:: classref-item-separator
  372. ----
  373. .. _class_FileDialog_method_clear_filename_filter:
  374. .. rst-class:: classref-method
  375. |void| **clear_filename_filter**\ (\ ) :ref:`🔗<class_FileDialog_method_clear_filename_filter>`
  376. Clear the filter for file names.
  377. .. rst-class:: classref-item-separator
  378. ----
  379. .. _class_FileDialog_method_clear_filters:
  380. .. rst-class:: classref-method
  381. |void| **clear_filters**\ (\ ) :ref:`🔗<class_FileDialog_method_clear_filters>`
  382. Clear all the added filters in the dialog.
  383. .. rst-class:: classref-item-separator
  384. ----
  385. .. _class_FileDialog_method_deselect_all:
  386. .. rst-class:: classref-method
  387. |void| **deselect_all**\ (\ ) :ref:`🔗<class_FileDialog_method_deselect_all>`
  388. Clear all currently selected items in the dialog.
  389. .. rst-class:: classref-item-separator
  390. ----
  391. .. _class_FileDialog_method_get_line_edit:
  392. .. rst-class:: classref-method
  393. :ref:`LineEdit<class_LineEdit>` **get_line_edit**\ (\ ) :ref:`🔗<class_FileDialog_method_get_line_edit>`
  394. Returns the LineEdit for the selected file.
  395. \ **Warning:** This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their :ref:`CanvasItem.visible<class_CanvasItem_property_visible>` property.
  396. .. rst-class:: classref-item-separator
  397. ----
  398. .. _class_FileDialog_method_get_option_default:
  399. .. rst-class:: classref-method
  400. :ref:`int<class_int>` **get_option_default**\ (\ option\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_FileDialog_method_get_option_default>`
  401. Returns the default value index of the :ref:`OptionButton<class_OptionButton>` or :ref:`CheckBox<class_CheckBox>` with index ``option``.
  402. .. rst-class:: classref-item-separator
  403. ----
  404. .. _class_FileDialog_method_get_option_name:
  405. .. rst-class:: classref-method
  406. :ref:`String<class_String>` **get_option_name**\ (\ option\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_FileDialog_method_get_option_name>`
  407. Returns the name of the :ref:`OptionButton<class_OptionButton>` or :ref:`CheckBox<class_CheckBox>` with index ``option``.
  408. .. rst-class:: classref-item-separator
  409. ----
  410. .. _class_FileDialog_method_get_option_values:
  411. .. rst-class:: classref-method
  412. :ref:`PackedStringArray<class_PackedStringArray>` **get_option_values**\ (\ option\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_FileDialog_method_get_option_values>`
  413. Returns an array of values of the :ref:`OptionButton<class_OptionButton>` with index ``option``.
  414. .. rst-class:: classref-item-separator
  415. ----
  416. .. _class_FileDialog_method_get_selected_options:
  417. .. rst-class:: classref-method
  418. :ref:`Dictionary<class_Dictionary>` **get_selected_options**\ (\ ) |const| :ref:`🔗<class_FileDialog_method_get_selected_options>`
  419. Returns a :ref:`Dictionary<class_Dictionary>` with the selected values of the additional :ref:`OptionButton<class_OptionButton>`\ s and/or :ref:`CheckBox<class_CheckBox>`\ es. :ref:`Dictionary<class_Dictionary>` keys are names and values are selected value indices.
  420. .. rst-class:: classref-item-separator
  421. ----
  422. .. _class_FileDialog_method_get_vbox:
  423. .. rst-class:: classref-method
  424. :ref:`VBoxContainer<class_VBoxContainer>` **get_vbox**\ (\ ) :ref:`🔗<class_FileDialog_method_get_vbox>`
  425. Returns the vertical box container of the dialog, custom controls can be added to it.
  426. \ **Warning:** This is a required internal node, removing and freeing it may cause a crash. If you wish to hide it or any of its children, use their :ref:`CanvasItem.visible<class_CanvasItem_property_visible>` property.
  427. \ **Note:** Changes to this node are ignored by native file dialogs, use :ref:`add_option()<class_FileDialog_method_add_option>` to add custom elements to the dialog instead.
  428. .. rst-class:: classref-item-separator
  429. ----
  430. .. _class_FileDialog_method_invalidate:
  431. .. rst-class:: classref-method
  432. |void| **invalidate**\ (\ ) :ref:`🔗<class_FileDialog_method_invalidate>`
  433. Invalidate and update the current dialog content list.
  434. \ **Note:** This method does nothing on native file dialogs.
  435. .. rst-class:: classref-item-separator
  436. ----
  437. .. _class_FileDialog_method_set_option_default:
  438. .. rst-class:: classref-method
  439. |void| **set_option_default**\ (\ option\: :ref:`int<class_int>`, default_value_index\: :ref:`int<class_int>`\ ) :ref:`🔗<class_FileDialog_method_set_option_default>`
  440. Sets the default value index of the :ref:`OptionButton<class_OptionButton>` or :ref:`CheckBox<class_CheckBox>` with index ``option``.
  441. .. rst-class:: classref-item-separator
  442. ----
  443. .. _class_FileDialog_method_set_option_name:
  444. .. rst-class:: classref-method
  445. |void| **set_option_name**\ (\ option\: :ref:`int<class_int>`, name\: :ref:`String<class_String>`\ ) :ref:`🔗<class_FileDialog_method_set_option_name>`
  446. Sets the name of the :ref:`OptionButton<class_OptionButton>` or :ref:`CheckBox<class_CheckBox>` with index ``option``.
  447. .. rst-class:: classref-item-separator
  448. ----
  449. .. _class_FileDialog_method_set_option_values:
  450. .. rst-class:: classref-method
  451. |void| **set_option_values**\ (\ option\: :ref:`int<class_int>`, values\: :ref:`PackedStringArray<class_PackedStringArray>`\ ) :ref:`🔗<class_FileDialog_method_set_option_values>`
  452. Sets the option values of the :ref:`OptionButton<class_OptionButton>` with index ``option``.
  453. .. rst-class:: classref-section-separator
  454. ----
  455. .. rst-class:: classref-descriptions-group
  456. Theme Property Descriptions
  457. ---------------------------
  458. .. _class_FileDialog_theme_color_file_disabled_color:
  459. .. rst-class:: classref-themeproperty
  460. :ref:`Color<class_Color>` **file_disabled_color** = ``Color(1, 1, 1, 0.25)`` :ref:`🔗<class_FileDialog_theme_color_file_disabled_color>`
  461. The color tint for disabled files (when the **FileDialog** is used in open folder mode).
  462. .. rst-class:: classref-item-separator
  463. ----
  464. .. _class_FileDialog_theme_color_file_icon_color:
  465. .. rst-class:: classref-themeproperty
  466. :ref:`Color<class_Color>` **file_icon_color** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_FileDialog_theme_color_file_icon_color>`
  467. The color modulation applied to the file icon.
  468. .. rst-class:: classref-item-separator
  469. ----
  470. .. _class_FileDialog_theme_color_folder_icon_color:
  471. .. rst-class:: classref-themeproperty
  472. :ref:`Color<class_Color>` **folder_icon_color** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_FileDialog_theme_color_folder_icon_color>`
  473. The color modulation applied to the folder icon.
  474. .. rst-class:: classref-item-separator
  475. ----
  476. .. _class_FileDialog_theme_constant_thumbnail_size:
  477. .. rst-class:: classref-themeproperty
  478. :ref:`int<class_int>` **thumbnail_size** = ``64`` :ref:`🔗<class_FileDialog_theme_constant_thumbnail_size>`
  479. The size of thumbnail icons when :ref:`DISPLAY_THUMBNAILS<class_FileDialog_constant_DISPLAY_THUMBNAILS>` is enabled.
  480. .. rst-class:: classref-item-separator
  481. ----
  482. .. _class_FileDialog_theme_icon_back_folder:
  483. .. rst-class:: classref-themeproperty
  484. :ref:`Texture2D<class_Texture2D>` **back_folder** :ref:`🔗<class_FileDialog_theme_icon_back_folder>`
  485. Custom icon for the back arrow.
  486. .. rst-class:: classref-item-separator
  487. ----
  488. .. _class_FileDialog_theme_icon_create_folder:
  489. .. rst-class:: classref-themeproperty
  490. :ref:`Texture2D<class_Texture2D>` **create_folder** :ref:`🔗<class_FileDialog_theme_icon_create_folder>`
  491. Custom icon for the create folder button.
  492. .. rst-class:: classref-item-separator
  493. ----
  494. .. _class_FileDialog_theme_icon_favorite:
  495. .. rst-class:: classref-themeproperty
  496. :ref:`Texture2D<class_Texture2D>` **favorite** :ref:`🔗<class_FileDialog_theme_icon_favorite>`
  497. Custom icon for favorite folder button.
  498. .. rst-class:: classref-item-separator
  499. ----
  500. .. _class_FileDialog_theme_icon_favorite_down:
  501. .. rst-class:: classref-themeproperty
  502. :ref:`Texture2D<class_Texture2D>` **favorite_down** :ref:`🔗<class_FileDialog_theme_icon_favorite_down>`
  503. Custom icon for button to move down a favorite entry.
  504. .. rst-class:: classref-item-separator
  505. ----
  506. .. _class_FileDialog_theme_icon_favorite_up:
  507. .. rst-class:: classref-themeproperty
  508. :ref:`Texture2D<class_Texture2D>` **favorite_up** :ref:`🔗<class_FileDialog_theme_icon_favorite_up>`
  509. Custom icon for button to move up a favorite entry.
  510. .. rst-class:: classref-item-separator
  511. ----
  512. .. _class_FileDialog_theme_icon_file:
  513. .. rst-class:: classref-themeproperty
  514. :ref:`Texture2D<class_Texture2D>` **file** :ref:`🔗<class_FileDialog_theme_icon_file>`
  515. Custom icon for files.
  516. .. rst-class:: classref-item-separator
  517. ----
  518. .. _class_FileDialog_theme_icon_file_thumbnail:
  519. .. rst-class:: classref-themeproperty
  520. :ref:`Texture2D<class_Texture2D>` **file_thumbnail** :ref:`🔗<class_FileDialog_theme_icon_file_thumbnail>`
  521. Icon for files when in thumbnail mode.
  522. .. rst-class:: classref-item-separator
  523. ----
  524. .. _class_FileDialog_theme_icon_folder:
  525. .. rst-class:: classref-themeproperty
  526. :ref:`Texture2D<class_Texture2D>` **folder** :ref:`🔗<class_FileDialog_theme_icon_folder>`
  527. Custom icon for folders.
  528. .. rst-class:: classref-item-separator
  529. ----
  530. .. _class_FileDialog_theme_icon_folder_thumbnail:
  531. .. rst-class:: classref-themeproperty
  532. :ref:`Texture2D<class_Texture2D>` **folder_thumbnail** :ref:`🔗<class_FileDialog_theme_icon_folder_thumbnail>`
  533. Icon for folders when in thumbnail mode.
  534. .. rst-class:: classref-item-separator
  535. ----
  536. .. _class_FileDialog_theme_icon_forward_folder:
  537. .. rst-class:: classref-themeproperty
  538. :ref:`Texture2D<class_Texture2D>` **forward_folder** :ref:`🔗<class_FileDialog_theme_icon_forward_folder>`
  539. Custom icon for the forward arrow.
  540. .. rst-class:: classref-item-separator
  541. ----
  542. .. _class_FileDialog_theme_icon_list_mode:
  543. .. rst-class:: classref-themeproperty
  544. :ref:`Texture2D<class_Texture2D>` **list_mode** :ref:`🔗<class_FileDialog_theme_icon_list_mode>`
  545. Icon for the button that enables list mode.
  546. .. rst-class:: classref-item-separator
  547. ----
  548. .. _class_FileDialog_theme_icon_parent_folder:
  549. .. rst-class:: classref-themeproperty
  550. :ref:`Texture2D<class_Texture2D>` **parent_folder** :ref:`🔗<class_FileDialog_theme_icon_parent_folder>`
  551. Custom icon for the parent folder arrow.
  552. .. rst-class:: classref-item-separator
  553. ----
  554. .. _class_FileDialog_theme_icon_reload:
  555. .. rst-class:: classref-themeproperty
  556. :ref:`Texture2D<class_Texture2D>` **reload** :ref:`🔗<class_FileDialog_theme_icon_reload>`
  557. Custom icon for the reload button.
  558. .. rst-class:: classref-item-separator
  559. ----
  560. .. _class_FileDialog_theme_icon_sort:
  561. .. rst-class:: classref-themeproperty
  562. :ref:`Texture2D<class_Texture2D>` **sort** :ref:`🔗<class_FileDialog_theme_icon_sort>`
  563. Custom icon for the sorting options menu.
  564. .. rst-class:: classref-item-separator
  565. ----
  566. .. _class_FileDialog_theme_icon_thumbnail_mode:
  567. .. rst-class:: classref-themeproperty
  568. :ref:`Texture2D<class_Texture2D>` **thumbnail_mode** :ref:`🔗<class_FileDialog_theme_icon_thumbnail_mode>`
  569. Icon for the button that enables thumbnail mode.
  570. .. rst-class:: classref-item-separator
  571. ----
  572. .. _class_FileDialog_theme_icon_toggle_filename_filter:
  573. .. rst-class:: classref-themeproperty
  574. :ref:`Texture2D<class_Texture2D>` **toggle_filename_filter** :ref:`🔗<class_FileDialog_theme_icon_toggle_filename_filter>`
  575. Custom icon for the toggle button for the filter for file names.
  576. .. rst-class:: classref-item-separator
  577. ----
  578. .. _class_FileDialog_theme_icon_toggle_hidden:
  579. .. rst-class:: classref-themeproperty
  580. :ref:`Texture2D<class_Texture2D>` **toggle_hidden** :ref:`🔗<class_FileDialog_theme_icon_toggle_hidden>`
  581. Custom icon for the toggle hidden button.
  582. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  583. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  584. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  585. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  586. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  587. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  588. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  589. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  590. .. |void| replace:: :abbr:`void (No return value.)`