class_window.rst 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the Window.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_Window:
  6. Window
  7. ======
  8. **Inherits:** :ref:`Viewport<class_Viewport>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Inherited By:** :ref:`AcceptDialog<class_AcceptDialog>`, :ref:`Popup<class_Popup>`
  10. Base class for all windows.
  11. Description
  12. -----------
  13. A node that creates a window.
  14. Properties
  15. ----------
  16. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  17. | :ref:`bool<class_bool>` | :ref:`always_on_top<class_Window_property_always_on_top>` | ``false`` |
  18. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  19. | :ref:`bool<class_bool>` | :ref:`auto_translate<class_Window_property_auto_translate>` | ``true`` |
  20. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  21. | :ref:`bool<class_bool>` | :ref:`borderless<class_Window_property_borderless>` | ``false`` |
  22. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  23. | :ref:`ContentScaleAspect<enum_Window_ContentScaleAspect>` | :ref:`content_scale_aspect<class_Window_property_content_scale_aspect>` | ``0`` |
  24. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  25. | :ref:`ContentScaleMode<enum_Window_ContentScaleMode>` | :ref:`content_scale_mode<class_Window_property_content_scale_mode>` | ``0`` |
  26. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  27. | :ref:`Vector2i<class_Vector2i>` | :ref:`content_scale_size<class_Window_property_content_scale_size>` | ``Vector2i(0, 0)`` |
  28. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  29. | :ref:`int<class_int>` | :ref:`current_screen<class_Window_property_current_screen>` | ``0`` |
  30. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  31. | :ref:`bool<class_bool>` | :ref:`exclusive<class_Window_property_exclusive>` | ``false`` |
  32. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  33. | :ref:`Vector2i<class_Vector2i>` | :ref:`max_size<class_Window_property_max_size>` | ``Vector2i(0, 0)`` |
  34. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  35. | :ref:`Vector2i<class_Vector2i>` | :ref:`min_size<class_Window_property_min_size>` | ``Vector2i(0, 0)`` |
  36. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  37. | :ref:`Mode<enum_Window_Mode>` | :ref:`mode<class_Window_property_mode>` | ``0`` |
  38. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  39. | :ref:`Vector2i<class_Vector2i>` | :ref:`position<class_Window_property_position>` | ``Vector2i(0, 0)`` |
  40. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  41. | :ref:`Vector2i<class_Vector2i>` | :ref:`size<class_Window_property_size>` | ``Vector2i(100, 100)`` |
  42. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  43. | :ref:`Theme<class_Theme>` | :ref:`theme<class_Window_property_theme>` | |
  44. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  45. | :ref:`StringName<class_StringName>` | :ref:`theme_type_variation<class_Window_property_theme_type_variation>` | ``&""`` |
  46. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  47. | :ref:`String<class_String>` | :ref:`title<class_Window_property_title>` | ``""`` |
  48. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  49. | :ref:`bool<class_bool>` | :ref:`transient<class_Window_property_transient>` | ``false`` |
  50. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  51. | :ref:`bool<class_bool>` | :ref:`transparent<class_Window_property_transparent>` | ``false`` |
  52. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  53. | :ref:`bool<class_bool>` | :ref:`unfocusable<class_Window_property_unfocusable>` | ``false`` |
  54. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  55. | :ref:`bool<class_bool>` | :ref:`unresizable<class_Window_property_unresizable>` | ``false`` |
  56. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  57. | :ref:`bool<class_bool>` | :ref:`visible<class_Window_property_visible>` | ``true`` |
  58. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  59. | :ref:`bool<class_bool>` | :ref:`wrap_controls<class_Window_property_wrap_controls>` | ``false`` |
  60. +-----------------------------------------------------------+-------------------------------------------------------------------------+------------------------+
  61. Methods
  62. -------
  63. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  64. | :ref:`bool<class_bool>` | :ref:`can_draw<class_Window_method_can_draw>` **(** **)** |const| |
  65. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  66. | void | :ref:`child_controls_changed<class_Window_method_child_controls_changed>` **(** **)** |
  67. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  68. | :ref:`Vector2<class_Vector2>` | :ref:`get_contents_minimum_size<class_Window_method_get_contents_minimum_size>` **(** **)** |const| |
  69. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | :ref:`bool<class_bool>` | :ref:`get_flag<class_Window_method_get_flag>` **(** :ref:`Flags<enum_Window_Flags>` flag **)** |const| |
  71. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  72. | :ref:`LayoutDirection<enum_Window_LayoutDirection>` | :ref:`get_layout_direction<class_Window_method_get_layout_direction>` **(** **)** |const| |
  73. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  74. | :ref:`Vector2i<class_Vector2i>` | :ref:`get_real_size<class_Window_method_get_real_size>` **(** **)** |const| |
  75. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  76. | :ref:`Color<class_Color>` | :ref:`get_theme_color<class_Window_method_get_theme_color>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const| |
  77. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  78. | :ref:`int<class_int>` | :ref:`get_theme_constant<class_Window_method_get_theme_constant>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const| |
  79. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  80. | :ref:`float<class_float>` | :ref:`get_theme_default_base_scale<class_Window_method_get_theme_default_base_scale>` **(** **)** |const| |
  81. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  82. | :ref:`Font<class_Font>` | :ref:`get_theme_default_font<class_Window_method_get_theme_default_font>` **(** **)** |const| |
  83. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  84. | :ref:`int<class_int>` | :ref:`get_theme_default_font_size<class_Window_method_get_theme_default_font_size>` **(** **)** |const| |
  85. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  86. | :ref:`Font<class_Font>` | :ref:`get_theme_font<class_Window_method_get_theme_font>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const| |
  87. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  88. | :ref:`int<class_int>` | :ref:`get_theme_font_size<class_Window_method_get_theme_font_size>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const| |
  89. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  90. | :ref:`Texture2D<class_Texture2D>` | :ref:`get_theme_icon<class_Window_method_get_theme_icon>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const| |
  91. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  92. | :ref:`StyleBox<class_StyleBox>` | :ref:`get_theme_stylebox<class_Window_method_get_theme_stylebox>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const| |
  93. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  94. | void | :ref:`grab_focus<class_Window_method_grab_focus>` **(** **)** |
  95. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  96. | :ref:`bool<class_bool>` | :ref:`has_focus<class_Window_method_has_focus>` **(** **)** |const| |
  97. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  98. | :ref:`bool<class_bool>` | :ref:`has_theme_color<class_Window_method_has_theme_color>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const| |
  99. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  100. | :ref:`bool<class_bool>` | :ref:`has_theme_constant<class_Window_method_has_theme_constant>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const| |
  101. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  102. | :ref:`bool<class_bool>` | :ref:`has_theme_font<class_Window_method_has_theme_font>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const| |
  103. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  104. | :ref:`bool<class_bool>` | :ref:`has_theme_font_size<class_Window_method_has_theme_font_size>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const| |
  105. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  106. | :ref:`bool<class_bool>` | :ref:`has_theme_icon<class_Window_method_has_theme_icon>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const| |
  107. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  108. | :ref:`bool<class_bool>` | :ref:`has_theme_stylebox<class_Window_method_has_theme_stylebox>` **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const| |
  109. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  110. | void | :ref:`hide<class_Window_method_hide>` **(** **)** |
  111. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  112. | :ref:`bool<class_bool>` | :ref:`is_embedded<class_Window_method_is_embedded>` **(** **)** |const| |
  113. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  114. | :ref:`bool<class_bool>` | :ref:`is_layout_rtl<class_Window_method_is_layout_rtl>` **(** **)** |const| |
  115. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  116. | :ref:`bool<class_bool>` | :ref:`is_maximize_allowed<class_Window_method_is_maximize_allowed>` **(** **)** |const| |
  117. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  118. | :ref:`bool<class_bool>` | :ref:`is_using_font_oversampling<class_Window_method_is_using_font_oversampling>` **(** **)** |const| |
  119. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  120. | void | :ref:`move_to_foreground<class_Window_method_move_to_foreground>` **(** **)** |
  121. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  122. | void | :ref:`popup<class_Window_method_popup>` **(** :ref:`Rect2i<class_Rect2i>` rect=Rect2i(0, 0, 0, 0) **)** |
  123. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  124. | void | :ref:`popup_centered<class_Window_method_popup_centered>` **(** :ref:`Vector2i<class_Vector2i>` minsize=Vector2i(0, 0) **)** |
  125. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  126. | void | :ref:`popup_centered_clamped<class_Window_method_popup_centered_clamped>` **(** :ref:`Vector2i<class_Vector2i>` minsize=Vector2i(0, 0), :ref:`float<class_float>` fallback_ratio=0.75 **)** |
  127. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  128. | void | :ref:`popup_centered_ratio<class_Window_method_popup_centered_ratio>` **(** :ref:`float<class_float>` ratio=0.8 **)** |
  129. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  130. | void | :ref:`popup_on_parent<class_Window_method_popup_on_parent>` **(** :ref:`Rect2i<class_Rect2i>` parent_rect **)** |
  131. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  132. | void | :ref:`request_attention<class_Window_method_request_attention>` **(** **)** |
  133. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  134. | void | :ref:`set_flag<class_Window_method_set_flag>` **(** :ref:`Flags<enum_Window_Flags>` flag, :ref:`bool<class_bool>` enabled **)** |
  135. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  136. | void | :ref:`set_ime_active<class_Window_method_set_ime_active>` **(** :ref:`bool<class_bool>` active **)** |
  137. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  138. | void | :ref:`set_ime_position<class_Window_method_set_ime_position>` **(** :ref:`Vector2i<class_Vector2i>` position **)** |
  139. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  140. | void | :ref:`set_layout_direction<class_Window_method_set_layout_direction>` **(** :ref:`LayoutDirection<enum_Window_LayoutDirection>` direction **)** |
  141. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  142. | void | :ref:`set_use_font_oversampling<class_Window_method_set_use_font_oversampling>` **(** :ref:`bool<class_bool>` enable **)** |
  143. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  144. | void | :ref:`show<class_Window_method_show>` **(** **)** |
  145. +-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  146. Theme Properties
  147. ----------------
  148. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  149. | :ref:`Texture2D<class_Texture2D>` | :ref:`close<class_Window_theme_icon_close>` | |
  150. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  151. | :ref:`int<class_int>` | :ref:`close_h_ofs<class_Window_theme_constant_close_h_ofs>` | ``18`` |
  152. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  153. | :ref:`Texture2D<class_Texture2D>` | :ref:`close_pressed<class_Window_theme_icon_close_pressed>` | |
  154. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  155. | :ref:`int<class_int>` | :ref:`close_v_ofs<class_Window_theme_constant_close_v_ofs>` | ``18`` |
  156. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  157. | :ref:`StyleBox<class_StyleBox>` | :ref:`embedded_border<class_Window_theme_style_embedded_border>` | |
  158. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  159. | :ref:`int<class_int>` | :ref:`resize_margin<class_Window_theme_constant_resize_margin>` | ``4`` |
  160. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  161. | :ref:`int<class_int>` | :ref:`scaleborder_size<class_Window_theme_constant_scaleborder_size>` | ``4`` |
  162. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  163. | :ref:`Color<class_Color>` | :ref:`title_color<class_Window_theme_color_title_color>` | ``Color(0, 0, 0, 1)`` |
  164. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  165. | :ref:`Font<class_Font>` | :ref:`title_font<class_Window_theme_font_title_font>` | |
  166. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  167. | :ref:`int<class_int>` | :ref:`title_font_size<class_Window_theme_font_size_title_font_size>` | |
  168. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  169. | :ref:`int<class_int>` | :ref:`title_height<class_Window_theme_constant_title_height>` | ``20`` |
  170. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  171. | :ref:`Color<class_Color>` | :ref:`title_outline_modulate<class_Window_theme_color_title_outline_modulate>` | ``Color(1, 1, 1, 1)`` |
  172. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  173. | :ref:`int<class_int>` | :ref:`title_outline_size<class_Window_theme_constant_title_outline_size>` | ``0`` |
  174. +-----------------------------------+--------------------------------------------------------------------------------+-----------------------+
  175. Signals
  176. -------
  177. .. _class_Window_signal_about_to_popup:
  178. - **about_to_popup** **(** **)**
  179. ----
  180. .. _class_Window_signal_close_requested:
  181. - **close_requested** **(** **)**
  182. ----
  183. .. _class_Window_signal_files_dropped:
  184. - **files_dropped** **(** :ref:`PackedStringArray<class_PackedStringArray>` files **)**
  185. ----
  186. .. _class_Window_signal_focus_entered:
  187. - **focus_entered** **(** **)**
  188. ----
  189. .. _class_Window_signal_focus_exited:
  190. - **focus_exited** **(** **)**
  191. ----
  192. .. _class_Window_signal_go_back_requested:
  193. - **go_back_requested** **(** **)**
  194. ----
  195. .. _class_Window_signal_mouse_entered:
  196. - **mouse_entered** **(** **)**
  197. ----
  198. .. _class_Window_signal_mouse_exited:
  199. - **mouse_exited** **(** **)**
  200. ----
  201. .. _class_Window_signal_visibility_changed:
  202. - **visibility_changed** **(** **)**
  203. ----
  204. .. _class_Window_signal_window_input:
  205. - **window_input** **(** :ref:`InputEvent<class_InputEvent>` event **)**
  206. Enumerations
  207. ------------
  208. .. _enum_Window_Mode:
  209. .. _class_Window_constant_MODE_WINDOWED:
  210. .. _class_Window_constant_MODE_MINIMIZED:
  211. .. _class_Window_constant_MODE_MAXIMIZED:
  212. .. _class_Window_constant_MODE_FULLSCREEN:
  213. enum **Mode**:
  214. - **MODE_WINDOWED** = **0** --- Windowed mode.
  215. - **MODE_MINIMIZED** = **1** --- Minimized window mode.
  216. - **MODE_MAXIMIZED** = **2** --- Maximized window mode.
  217. - **MODE_FULLSCREEN** = **3** --- Fullscreen window mode. Note that this is not *exclusive* fullscreen. On Windows and Linux, a borderless window is used to emulate fullscreen. On macOS, a new desktop is used to display the running project.
  218. Regardless of the platform, enabling fullscreen will change the window size to match the monitor's size. Therefore, make sure your project supports :doc:`multiple resolutions <../tutorials/rendering/multiple_resolutions>` when enabling fullscreen mode.
  219. ----
  220. .. _enum_Window_Flags:
  221. .. _class_Window_constant_FLAG_RESIZE_DISABLED:
  222. .. _class_Window_constant_FLAG_BORDERLESS:
  223. .. _class_Window_constant_FLAG_ALWAYS_ON_TOP:
  224. .. _class_Window_constant_FLAG_TRANSPARENT:
  225. .. _class_Window_constant_FLAG_NO_FOCUS:
  226. .. _class_Window_constant_FLAG_MAX:
  227. enum **Flags**:
  228. - **FLAG_RESIZE_DISABLED** = **0** --- The window's ability to be resized.
  229. - **FLAG_BORDERLESS** = **1** --- Borderless window.
  230. - **FLAG_ALWAYS_ON_TOP** = **2** --- Flag for making the window always on top of all other windows.
  231. - **FLAG_TRANSPARENT** = **3**
  232. - **FLAG_NO_FOCUS** = **4**
  233. - **FLAG_MAX** = **5**
  234. ----
  235. .. _enum_Window_ContentScaleMode:
  236. .. _class_Window_constant_CONTENT_SCALE_MODE_DISABLED:
  237. .. _class_Window_constant_CONTENT_SCALE_MODE_CANVAS_ITEMS:
  238. .. _class_Window_constant_CONTENT_SCALE_MODE_VIEWPORT:
  239. enum **ContentScaleMode**:
  240. - **CONTENT_SCALE_MODE_DISABLED** = **0**
  241. - **CONTENT_SCALE_MODE_CANVAS_ITEMS** = **1**
  242. - **CONTENT_SCALE_MODE_VIEWPORT** = **2**
  243. ----
  244. .. _enum_Window_ContentScaleAspect:
  245. .. _class_Window_constant_CONTENT_SCALE_ASPECT_IGNORE:
  246. .. _class_Window_constant_CONTENT_SCALE_ASPECT_KEEP:
  247. .. _class_Window_constant_CONTENT_SCALE_ASPECT_KEEP_WIDTH:
  248. .. _class_Window_constant_CONTENT_SCALE_ASPECT_KEEP_HEIGHT:
  249. .. _class_Window_constant_CONTENT_SCALE_ASPECT_EXPAND:
  250. enum **ContentScaleAspect**:
  251. - **CONTENT_SCALE_ASPECT_IGNORE** = **0**
  252. - **CONTENT_SCALE_ASPECT_KEEP** = **1**
  253. - **CONTENT_SCALE_ASPECT_KEEP_WIDTH** = **2**
  254. - **CONTENT_SCALE_ASPECT_KEEP_HEIGHT** = **3**
  255. - **CONTENT_SCALE_ASPECT_EXPAND** = **4**
  256. ----
  257. .. _enum_Window_LayoutDirection:
  258. .. _class_Window_constant_LAYOUT_DIRECTION_INHERITED:
  259. .. _class_Window_constant_LAYOUT_DIRECTION_LOCALE:
  260. .. _class_Window_constant_LAYOUT_DIRECTION_LTR:
  261. .. _class_Window_constant_LAYOUT_DIRECTION_RTL:
  262. enum **LayoutDirection**:
  263. - **LAYOUT_DIRECTION_INHERITED** = **0** --- Automatic layout direction, determined from the parent control layout direction.
  264. - **LAYOUT_DIRECTION_LOCALE** = **1** --- Automatic layout direction, determined from the current locale.
  265. - **LAYOUT_DIRECTION_LTR** = **2** --- Left-to-right layout direction.
  266. - **LAYOUT_DIRECTION_RTL** = **3** --- Right-to-left layout direction.
  267. Constants
  268. ---------
  269. .. _class_Window_constant_NOTIFICATION_VISIBILITY_CHANGED:
  270. - **NOTIFICATION_VISIBILITY_CHANGED** = **30**
  271. Property Descriptions
  272. ---------------------
  273. .. _class_Window_property_always_on_top:
  274. - :ref:`bool<class_bool>` **always_on_top**
  275. +-----------+-----------------+
  276. | *Default* | ``false`` |
  277. +-----------+-----------------+
  278. | *Setter* | set_flag(value) |
  279. +-----------+-----------------+
  280. | *Getter* | get_flag() |
  281. +-----------+-----------------+
  282. If ``true``, the window will be on top of all other windows.
  283. ----
  284. .. _class_Window_property_auto_translate:
  285. - :ref:`bool<class_bool>` **auto_translate**
  286. +-----------+---------------------------+
  287. | *Default* | ``true`` |
  288. +-----------+---------------------------+
  289. | *Setter* | set_auto_translate(value) |
  290. +-----------+---------------------------+
  291. | *Getter* | is_auto_translating() |
  292. +-----------+---------------------------+
  293. Toggles if any text should automatically change to its translated version depending on the current locale.
  294. ----
  295. .. _class_Window_property_borderless:
  296. - :ref:`bool<class_bool>` **borderless**
  297. +-----------+-----------------+
  298. | *Default* | ``false`` |
  299. +-----------+-----------------+
  300. | *Setter* | set_flag(value) |
  301. +-----------+-----------------+
  302. | *Getter* | get_flag() |
  303. +-----------+-----------------+
  304. If ``true``, the window will have no borders.
  305. ----
  306. .. _class_Window_property_content_scale_aspect:
  307. - :ref:`ContentScaleAspect<enum_Window_ContentScaleAspect>` **content_scale_aspect**
  308. +-----------+---------------------------------+
  309. | *Default* | ``0`` |
  310. +-----------+---------------------------------+
  311. | *Setter* | set_content_scale_aspect(value) |
  312. +-----------+---------------------------------+
  313. | *Getter* | get_content_scale_aspect() |
  314. +-----------+---------------------------------+
  315. ----
  316. .. _class_Window_property_content_scale_mode:
  317. - :ref:`ContentScaleMode<enum_Window_ContentScaleMode>` **content_scale_mode**
  318. +-----------+-------------------------------+
  319. | *Default* | ``0`` |
  320. +-----------+-------------------------------+
  321. | *Setter* | set_content_scale_mode(value) |
  322. +-----------+-------------------------------+
  323. | *Getter* | get_content_scale_mode() |
  324. +-----------+-------------------------------+
  325. ----
  326. .. _class_Window_property_content_scale_size:
  327. - :ref:`Vector2i<class_Vector2i>` **content_scale_size**
  328. +-----------+-------------------------------+
  329. | *Default* | ``Vector2i(0, 0)`` |
  330. +-----------+-------------------------------+
  331. | *Setter* | set_content_scale_size(value) |
  332. +-----------+-------------------------------+
  333. | *Getter* | get_content_scale_size() |
  334. +-----------+-------------------------------+
  335. ----
  336. .. _class_Window_property_current_screen:
  337. - :ref:`int<class_int>` **current_screen**
  338. +-----------+---------------------------+
  339. | *Default* | ``0`` |
  340. +-----------+---------------------------+
  341. | *Setter* | set_current_screen(value) |
  342. +-----------+---------------------------+
  343. | *Getter* | get_current_screen() |
  344. +-----------+---------------------------+
  345. The screen the window is currently on.
  346. ----
  347. .. _class_Window_property_exclusive:
  348. - :ref:`bool<class_bool>` **exclusive**
  349. +-----------+----------------------+
  350. | *Default* | ``false`` |
  351. +-----------+----------------------+
  352. | *Setter* | set_exclusive(value) |
  353. +-----------+----------------------+
  354. | *Getter* | is_exclusive() |
  355. +-----------+----------------------+
  356. ----
  357. .. _class_Window_property_max_size:
  358. - :ref:`Vector2i<class_Vector2i>` **max_size**
  359. +-----------+---------------------+
  360. | *Default* | ``Vector2i(0, 0)`` |
  361. +-----------+---------------------+
  362. | *Setter* | set_max_size(value) |
  363. +-----------+---------------------+
  364. | *Getter* | get_max_size() |
  365. +-----------+---------------------+
  366. ----
  367. .. _class_Window_property_min_size:
  368. - :ref:`Vector2i<class_Vector2i>` **min_size**
  369. +-----------+---------------------+
  370. | *Default* | ``Vector2i(0, 0)`` |
  371. +-----------+---------------------+
  372. | *Setter* | set_min_size(value) |
  373. +-----------+---------------------+
  374. | *Getter* | get_min_size() |
  375. +-----------+---------------------+
  376. ----
  377. .. _class_Window_property_mode:
  378. - :ref:`Mode<enum_Window_Mode>` **mode**
  379. +-----------+-----------------+
  380. | *Default* | ``0`` |
  381. +-----------+-----------------+
  382. | *Setter* | set_mode(value) |
  383. +-----------+-----------------+
  384. | *Getter* | get_mode() |
  385. +-----------+-----------------+
  386. Set's the window's current mode.
  387. **Note:** Fullscreen mode is not exclusive fullscreen on Windows and Linux.
  388. ----
  389. .. _class_Window_property_position:
  390. - :ref:`Vector2i<class_Vector2i>` **position**
  391. +-----------+---------------------+
  392. | *Default* | ``Vector2i(0, 0)`` |
  393. +-----------+---------------------+
  394. | *Setter* | set_position(value) |
  395. +-----------+---------------------+
  396. | *Getter* | get_position() |
  397. +-----------+---------------------+
  398. The window's position in pixels.
  399. ----
  400. .. _class_Window_property_size:
  401. - :ref:`Vector2i<class_Vector2i>` **size**
  402. +-----------+------------------------+
  403. | *Default* | ``Vector2i(100, 100)`` |
  404. +-----------+------------------------+
  405. | *Setter* | set_size(value) |
  406. +-----------+------------------------+
  407. | *Getter* | get_size() |
  408. +-----------+------------------------+
  409. The window's size in pixels.
  410. ----
  411. .. _class_Window_property_theme:
  412. - :ref:`Theme<class_Theme>` **theme**
  413. +----------+------------------+
  414. | *Setter* | set_theme(value) |
  415. +----------+------------------+
  416. | *Getter* | get_theme() |
  417. +----------+------------------+
  418. ----
  419. .. _class_Window_property_theme_type_variation:
  420. - :ref:`StringName<class_StringName>` **theme_type_variation**
  421. +-----------+---------------------------------+
  422. | *Default* | ``&""`` |
  423. +-----------+---------------------------------+
  424. | *Setter* | set_theme_type_variation(value) |
  425. +-----------+---------------------------------+
  426. | *Getter* | get_theme_type_variation() |
  427. +-----------+---------------------------------+
  428. ----
  429. .. _class_Window_property_title:
  430. - :ref:`String<class_String>` **title**
  431. +-----------+------------------+
  432. | *Default* | ``""`` |
  433. +-----------+------------------+
  434. | *Setter* | set_title(value) |
  435. +-----------+------------------+
  436. | *Getter* | get_title() |
  437. +-----------+------------------+
  438. The window's title.
  439. ----
  440. .. _class_Window_property_transient:
  441. - :ref:`bool<class_bool>` **transient**
  442. +-----------+----------------------+
  443. | *Default* | ``false`` |
  444. +-----------+----------------------+
  445. | *Setter* | set_transient(value) |
  446. +-----------+----------------------+
  447. | *Getter* | is_transient() |
  448. +-----------+----------------------+
  449. ----
  450. .. _class_Window_property_transparent:
  451. - :ref:`bool<class_bool>` **transparent**
  452. +-----------+-----------------+
  453. | *Default* | ``false`` |
  454. +-----------+-----------------+
  455. | *Setter* | set_flag(value) |
  456. +-----------+-----------------+
  457. | *Getter* | get_flag() |
  458. +-----------+-----------------+
  459. ----
  460. .. _class_Window_property_unfocusable:
  461. - :ref:`bool<class_bool>` **unfocusable**
  462. +-----------+-----------------+
  463. | *Default* | ``false`` |
  464. +-----------+-----------------+
  465. | *Setter* | set_flag(value) |
  466. +-----------+-----------------+
  467. | *Getter* | get_flag() |
  468. +-----------+-----------------+
  469. ----
  470. .. _class_Window_property_unresizable:
  471. - :ref:`bool<class_bool>` **unresizable**
  472. +-----------+-----------------+
  473. | *Default* | ``false`` |
  474. +-----------+-----------------+
  475. | *Setter* | set_flag(value) |
  476. +-----------+-----------------+
  477. | *Getter* | get_flag() |
  478. +-----------+-----------------+
  479. If ``true``, the window can't be resized.
  480. ----
  481. .. _class_Window_property_visible:
  482. - :ref:`bool<class_bool>` **visible**
  483. +-----------+--------------------+
  484. | *Default* | ``true`` |
  485. +-----------+--------------------+
  486. | *Setter* | set_visible(value) |
  487. +-----------+--------------------+
  488. | *Getter* | is_visible() |
  489. +-----------+--------------------+
  490. If ``true``, the window is visible.
  491. ----
  492. .. _class_Window_property_wrap_controls:
  493. - :ref:`bool<class_bool>` **wrap_controls**
  494. +-----------+--------------------------+
  495. | *Default* | ``false`` |
  496. +-----------+--------------------------+
  497. | *Setter* | set_wrap_controls(value) |
  498. +-----------+--------------------------+
  499. | *Getter* | is_wrapping_controls() |
  500. +-----------+--------------------------+
  501. Method Descriptions
  502. -------------------
  503. .. _class_Window_method_can_draw:
  504. - :ref:`bool<class_bool>` **can_draw** **(** **)** |const|
  505. Returns whether the window is being drawn to the screen.
  506. ----
  507. .. _class_Window_method_child_controls_changed:
  508. - void **child_controls_changed** **(** **)**
  509. ----
  510. .. _class_Window_method_get_contents_minimum_size:
  511. - :ref:`Vector2<class_Vector2>` **get_contents_minimum_size** **(** **)** |const|
  512. Returns the combined minimum size from the child :ref:`Control<class_Control>` nodes of the window.
  513. ----
  514. .. _class_Window_method_get_flag:
  515. - :ref:`bool<class_bool>` **get_flag** **(** :ref:`Flags<enum_Window_Flags>` flag **)** |const|
  516. Returns ``true`` if the flag is set.
  517. ----
  518. .. _class_Window_method_get_layout_direction:
  519. - :ref:`LayoutDirection<enum_Window_LayoutDirection>` **get_layout_direction** **(** **)** |const|
  520. Returns layout direction and text writing direction.
  521. ----
  522. .. _class_Window_method_get_real_size:
  523. - :ref:`Vector2i<class_Vector2i>` **get_real_size** **(** **)** |const|
  524. Returns the window's size including its border.
  525. ----
  526. .. _class_Window_method_get_theme_color:
  527. - :ref:`Color<class_Color>` **get_theme_color** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const|
  528. ----
  529. .. _class_Window_method_get_theme_constant:
  530. - :ref:`int<class_int>` **get_theme_constant** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const|
  531. ----
  532. .. _class_Window_method_get_theme_default_base_scale:
  533. - :ref:`float<class_float>` **get_theme_default_base_scale** **(** **)** |const|
  534. ----
  535. .. _class_Window_method_get_theme_default_font:
  536. - :ref:`Font<class_Font>` **get_theme_default_font** **(** **)** |const|
  537. ----
  538. .. _class_Window_method_get_theme_default_font_size:
  539. - :ref:`int<class_int>` **get_theme_default_font_size** **(** **)** |const|
  540. ----
  541. .. _class_Window_method_get_theme_font:
  542. - :ref:`Font<class_Font>` **get_theme_font** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const|
  543. Returns the :ref:`Font<class_Font>` at ``name`` if the theme has ``theme_type``.
  544. ----
  545. .. _class_Window_method_get_theme_font_size:
  546. - :ref:`int<class_int>` **get_theme_font_size** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const|
  547. Returns the font size at ``name`` if the theme has ``theme_type``.
  548. ----
  549. .. _class_Window_method_get_theme_icon:
  550. - :ref:`Texture2D<class_Texture2D>` **get_theme_icon** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const|
  551. ----
  552. .. _class_Window_method_get_theme_stylebox:
  553. - :ref:`StyleBox<class_StyleBox>` **get_theme_stylebox** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const|
  554. ----
  555. .. _class_Window_method_grab_focus:
  556. - void **grab_focus** **(** **)**
  557. Causes the window to grab focus, allowing it to receive user input.
  558. ----
  559. .. _class_Window_method_has_focus:
  560. - :ref:`bool<class_bool>` **has_focus** **(** **)** |const|
  561. Returns ``true`` if the window is focused.
  562. ----
  563. .. _class_Window_method_has_theme_color:
  564. - :ref:`bool<class_bool>` **has_theme_color** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const|
  565. ----
  566. .. _class_Window_method_has_theme_constant:
  567. - :ref:`bool<class_bool>` **has_theme_constant** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const|
  568. ----
  569. .. _class_Window_method_has_theme_font:
  570. - :ref:`bool<class_bool>` **has_theme_font** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const|
  571. Returns ``true`` if :ref:`Font<class_Font>` with ``name`` is in ``theme_type``.
  572. Returns ``false`` if the theme does not have ``theme_type``.
  573. ----
  574. .. _class_Window_method_has_theme_font_size:
  575. - :ref:`bool<class_bool>` **has_theme_font_size** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const|
  576. Returns ``true`` if font size with ``name`` is in ``theme_type``.
  577. Returns ``false`` if the theme does not have ``theme_type``.
  578. ----
  579. .. _class_Window_method_has_theme_icon:
  580. - :ref:`bool<class_bool>` **has_theme_icon** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const|
  581. ----
  582. .. _class_Window_method_has_theme_stylebox:
  583. - :ref:`bool<class_bool>` **has_theme_stylebox** **(** :ref:`StringName<class_StringName>` name, :ref:`StringName<class_StringName>` theme_type="" **)** |const|
  584. ----
  585. .. _class_Window_method_hide:
  586. - void **hide** **(** **)**
  587. ----
  588. .. _class_Window_method_is_embedded:
  589. - :ref:`bool<class_bool>` **is_embedded** **(** **)** |const|
  590. Returns ``true`` if the window is currently embedded in another window.
  591. ----
  592. .. _class_Window_method_is_layout_rtl:
  593. - :ref:`bool<class_bool>` **is_layout_rtl** **(** **)** |const|
  594. Returns ``true`` if layout is right-to-left.
  595. ----
  596. .. _class_Window_method_is_maximize_allowed:
  597. - :ref:`bool<class_bool>` **is_maximize_allowed** **(** **)** |const|
  598. ----
  599. .. _class_Window_method_is_using_font_oversampling:
  600. - :ref:`bool<class_bool>` **is_using_font_oversampling** **(** **)** |const|
  601. ----
  602. .. _class_Window_method_move_to_foreground:
  603. - void **move_to_foreground** **(** **)**
  604. ----
  605. .. _class_Window_method_popup:
  606. - void **popup** **(** :ref:`Rect2i<class_Rect2i>` rect=Rect2i(0, 0, 0, 0) **)**
  607. ----
  608. .. _class_Window_method_popup_centered:
  609. - void **popup_centered** **(** :ref:`Vector2i<class_Vector2i>` minsize=Vector2i(0, 0) **)**
  610. ----
  611. .. _class_Window_method_popup_centered_clamped:
  612. - void **popup_centered_clamped** **(** :ref:`Vector2i<class_Vector2i>` minsize=Vector2i(0, 0), :ref:`float<class_float>` fallback_ratio=0.75 **)**
  613. ----
  614. .. _class_Window_method_popup_centered_ratio:
  615. - void **popup_centered_ratio** **(** :ref:`float<class_float>` ratio=0.8 **)**
  616. ----
  617. .. _class_Window_method_popup_on_parent:
  618. - void **popup_on_parent** **(** :ref:`Rect2i<class_Rect2i>` parent_rect **)**
  619. ----
  620. .. _class_Window_method_request_attention:
  621. - void **request_attention** **(** **)**
  622. ----
  623. .. _class_Window_method_set_flag:
  624. - void **set_flag** **(** :ref:`Flags<enum_Window_Flags>` flag, :ref:`bool<class_bool>` enabled **)**
  625. Sets a specified window flag.
  626. ----
  627. .. _class_Window_method_set_ime_active:
  628. - void **set_ime_active** **(** :ref:`bool<class_bool>` active **)**
  629. ----
  630. .. _class_Window_method_set_ime_position:
  631. - void **set_ime_position** **(** :ref:`Vector2i<class_Vector2i>` position **)**
  632. ----
  633. .. _class_Window_method_set_layout_direction:
  634. - void **set_layout_direction** **(** :ref:`LayoutDirection<enum_Window_LayoutDirection>` direction **)**
  635. Sets layout direction and text writing direction. Right-to-left layouts are necessary for certain languages (e.g. Arabic and Hebrew).
  636. ----
  637. .. _class_Window_method_set_use_font_oversampling:
  638. - void **set_use_font_oversampling** **(** :ref:`bool<class_bool>` enable **)**
  639. ----
  640. .. _class_Window_method_show:
  641. - void **show** **(** **)**
  642. Theme Property Descriptions
  643. ---------------------------
  644. .. _class_Window_theme_icon_close:
  645. - :ref:`Texture2D<class_Texture2D>` **close**
  646. ----
  647. .. _class_Window_theme_constant_close_h_ofs:
  648. - :ref:`int<class_int>` **close_h_ofs**
  649. +-----------+--------+
  650. | *Default* | ``18`` |
  651. +-----------+--------+
  652. ----
  653. .. _class_Window_theme_icon_close_pressed:
  654. - :ref:`Texture2D<class_Texture2D>` **close_pressed**
  655. ----
  656. .. _class_Window_theme_constant_close_v_ofs:
  657. - :ref:`int<class_int>` **close_v_ofs**
  658. +-----------+--------+
  659. | *Default* | ``18`` |
  660. +-----------+--------+
  661. ----
  662. .. _class_Window_theme_style_embedded_border:
  663. - :ref:`StyleBox<class_StyleBox>` **embedded_border**
  664. ----
  665. .. _class_Window_theme_constant_resize_margin:
  666. - :ref:`int<class_int>` **resize_margin**
  667. +-----------+-------+
  668. | *Default* | ``4`` |
  669. +-----------+-------+
  670. ----
  671. .. _class_Window_theme_constant_scaleborder_size:
  672. - :ref:`int<class_int>` **scaleborder_size**
  673. +-----------+-------+
  674. | *Default* | ``4`` |
  675. +-----------+-------+
  676. ----
  677. .. _class_Window_theme_color_title_color:
  678. - :ref:`Color<class_Color>` **title_color**
  679. +-----------+-----------------------+
  680. | *Default* | ``Color(0, 0, 0, 1)`` |
  681. +-----------+-----------------------+
  682. ----
  683. .. _class_Window_theme_font_title_font:
  684. - :ref:`Font<class_Font>` **title_font**
  685. ----
  686. .. _class_Window_theme_font_size_title_font_size:
  687. - :ref:`int<class_int>` **title_font_size**
  688. The size of the title font.
  689. ----
  690. .. _class_Window_theme_constant_title_height:
  691. - :ref:`int<class_int>` **title_height**
  692. +-----------+--------+
  693. | *Default* | ``20`` |
  694. +-----------+--------+
  695. ----
  696. .. _class_Window_theme_color_title_outline_modulate:
  697. - :ref:`Color<class_Color>` **title_outline_modulate**
  698. +-----------+-----------------------+
  699. | *Default* | ``Color(1, 1, 1, 1)`` |
  700. +-----------+-----------------------+
  701. The color of the title outline.
  702. ----
  703. .. _class_Window_theme_constant_title_outline_size:
  704. - :ref:`int<class_int>` **title_outline_size**
  705. +-----------+-------+
  706. | *Default* | ``0`` |
  707. +-----------+-------+
  708. The size of the title outline.
  709. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  710. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  711. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  712. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  713. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  714. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`