summaryrefslogtreecommitdiff
path: root/doc/classes/Window.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/Window.xml')
-rw-r--r--doc/classes/Window.xml277
1 files changed, 104 insertions, 173 deletions
diff --git a/doc/classes/Window.xml b/doc/classes/Window.xml
index 9c320747d1..d7b156cc57 100644
--- a/doc/classes/Window.xml
+++ b/doc/classes/Window.xml
@@ -8,307 +8,239 @@
</tutorials>
<methods>
<method name="can_draw" qualifiers="const">
- <return type="bool">
- </return>
+ <return type="bool" />
<description>
</description>
</method>
<method name="child_controls_changed">
- <return type="void">
- </return>
+ <return type="void" />
<description>
</description>
</method>
+ <method name="get_contents_minimum_size" qualifiers="const">
+ <return type="Vector2" />
+ <description>
+ Returns the combined minimum size from the child [Control] nodes of the window.
+ </description>
+ </method>
<method name="get_flag" qualifiers="const">
- <return type="bool">
- </return>
- <argument index="0" name="flag" type="int" enum="Window.Flags">
- </argument>
+ <return type="bool" />
+ <argument index="0" name="flag" type="int" enum="Window.Flags" />
<description>
</description>
</method>
<method name="get_layout_direction" qualifiers="const">
- <return type="int" enum="Window.LayoutDirection">
- </return>
+ <return type="int" enum="Window.LayoutDirection" />
<description>
Returns layout direction and text writing direction.
</description>
</method>
<method name="get_real_size" qualifiers="const">
- <return type="Vector2i">
- </return>
+ <return type="Vector2i" />
<description>
</description>
</method>
<method name="get_theme_color" qualifiers="const">
- <return type="Color">
- </return>
- <argument index="0" name="name" type="StringName">
- </argument>
- <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;">
- </argument>
+ <return type="Color" />
+ <argument index="0" name="name" type="StringName" />
+ <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;" />
<description>
</description>
</method>
<method name="get_theme_constant" qualifiers="const">
- <return type="int">
- </return>
- <argument index="0" name="name" type="StringName">
- </argument>
- <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;">
- </argument>
+ <return type="int" />
+ <argument index="0" name="name" type="StringName" />
+ <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;" />
<description>
</description>
</method>
<method name="get_theme_font" qualifiers="const">
- <return type="Font">
- </return>
- <argument index="0" name="name" type="StringName">
- </argument>
- <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;">
- </argument>
+ <return type="Font" />
+ <argument index="0" name="name" type="StringName" />
+ <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;" />
<description>
Returns the [Font] at [code]name[/code] if the theme has [code]theme_type[/code].
</description>
</method>
<method name="get_theme_font_size" qualifiers="const">
- <return type="int">
- </return>
- <argument index="0" name="name" type="StringName">
- </argument>
- <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;">
- </argument>
+ <return type="int" />
+ <argument index="0" name="name" type="StringName" />
+ <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;" />
<description>
Returns the font size at [code]name[/code] if the theme has [code]theme_type[/code].
</description>
</method>
<method name="get_theme_icon" qualifiers="const">
- <return type="Texture2D">
- </return>
- <argument index="0" name="name" type="StringName">
- </argument>
- <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;">
- </argument>
+ <return type="Texture2D" />
+ <argument index="0" name="name" type="StringName" />
+ <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;" />
<description>
</description>
</method>
<method name="get_theme_stylebox" qualifiers="const">
- <return type="StyleBox">
- </return>
- <argument index="0" name="name" type="StringName">
- </argument>
- <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;">
- </argument>
+ <return type="StyleBox" />
+ <argument index="0" name="name" type="StringName" />
+ <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;" />
<description>
</description>
</method>
<method name="grab_focus">
- <return type="void">
- </return>
+ <return type="void" />
<description>
</description>
</method>
<method name="has_focus" qualifiers="const">
- <return type="bool">
- </return>
+ <return type="bool" />
<description>
</description>
</method>
<method name="has_theme_color" qualifiers="const">
- <return type="bool">
- </return>
- <argument index="0" name="name" type="StringName">
- </argument>
- <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;">
- </argument>
+ <return type="bool" />
+ <argument index="0" name="name" type="StringName" />
+ <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;" />
<description>
</description>
</method>
<method name="has_theme_constant" qualifiers="const">
- <return type="bool">
- </return>
- <argument index="0" name="name" type="StringName">
- </argument>
- <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;">
- </argument>
+ <return type="bool" />
+ <argument index="0" name="name" type="StringName" />
+ <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;" />
<description>
</description>
</method>
<method name="has_theme_font" qualifiers="const">
- <return type="bool">
- </return>
- <argument index="0" name="name" type="StringName">
- </argument>
- <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;">
- </argument>
+ <return type="bool" />
+ <argument index="0" name="name" type="StringName" />
+ <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;" />
<description>
Returns [code]true[/code] if [Font] with [code]name[/code] is in [code]theme_type[/code].
Returns [code]false[/code] if the theme does not have [code]theme_type[/code].
</description>
</method>
<method name="has_theme_font_size" qualifiers="const">
- <return type="bool">
- </return>
- <argument index="0" name="name" type="StringName">
- </argument>
- <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;">
- </argument>
+ <return type="bool" />
+ <argument index="0" name="name" type="StringName" />
+ <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;" />
<description>
Returns [code]true[/code] if font size with [code]name[/code] is in [code]theme_type[/code].
Returns [code]false[/code] if the theme does not have [code]theme_type[/code].
</description>
</method>
<method name="has_theme_icon" qualifiers="const">
- <return type="bool">
- </return>
- <argument index="0" name="name" type="StringName">
- </argument>
- <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;">
- </argument>
+ <return type="bool" />
+ <argument index="0" name="name" type="StringName" />
+ <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;" />
<description>
</description>
</method>
<method name="has_theme_stylebox" qualifiers="const">
- <return type="bool">
- </return>
- <argument index="0" name="name" type="StringName">
- </argument>
- <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;">
- </argument>
+ <return type="bool" />
+ <argument index="0" name="name" type="StringName" />
+ <argument index="1" name="theme_type" type="StringName" default="&quot;&quot;" />
<description>
</description>
</method>
<method name="hide">
- <return type="void">
- </return>
+ <return type="void" />
<description>
</description>
</method>
<method name="is_embedded" qualifiers="const">
- <return type="bool">
- </return>
+ <return type="bool" />
<description>
</description>
</method>
<method name="is_layout_rtl" qualifiers="const">
- <return type="bool">
- </return>
+ <return type="bool" />
<description>
Returns [code]true[/code] if layout is right-to-left.
</description>
</method>
<method name="is_maximize_allowed" qualifiers="const">
- <return type="bool">
- </return>
+ <return type="bool" />
<description>
</description>
</method>
<method name="is_using_font_oversampling" qualifiers="const">
- <return type="bool">
- </return>
+ <return type="bool" />
<description>
</description>
</method>
<method name="move_to_foreground">
- <return type="void">
- </return>
+ <return type="void" />
<description>
</description>
</method>
<method name="popup">
- <return type="void">
- </return>
- <argument index="0" name="rect" type="Rect2i" default="Rect2i( 0, 0, 0, 0 )">
- </argument>
+ <return type="void" />
+ <argument index="0" name="rect" type="Rect2i" default="Rect2i(0, 0, 0, 0)" />
<description>
</description>
</method>
<method name="popup_centered">
- <return type="void">
- </return>
- <argument index="0" name="minsize" type="Vector2i" default="Vector2i( 0, 0 )">
- </argument>
+ <return type="void" />
+ <argument index="0" name="minsize" type="Vector2i" default="Vector2i(0, 0)" />
<description>
</description>
</method>
<method name="popup_centered_clamped">
- <return type="void">
- </return>
- <argument index="0" name="minsize" type="Vector2i" default="Vector2i( 0, 0 )">
- </argument>
- <argument index="1" name="fallback_ratio" type="float" default="0.75">
- </argument>
+ <return type="void" />
+ <argument index="0" name="minsize" type="Vector2i" default="Vector2i(0, 0)" />
+ <argument index="1" name="fallback_ratio" type="float" default="0.75" />
<description>
</description>
</method>
<method name="popup_centered_ratio">
- <return type="void">
- </return>
- <argument index="0" name="ratio" type="float" default="0.8">
- </argument>
+ <return type="void" />
+ <argument index="0" name="ratio" type="float" default="0.8" />
<description>
</description>
</method>
<method name="popup_on_parent">
- <return type="void">
- </return>
- <argument index="0" name="parent_rect" type="Rect2i">
- </argument>
+ <return type="void" />
+ <argument index="0" name="parent_rect" type="Rect2i" />
<description>
</description>
</method>
<method name="request_attention">
- <return type="void">
- </return>
+ <return type="void" />
<description>
</description>
</method>
<method name="set_flag">
- <return type="void">
- </return>
- <argument index="0" name="flag" type="int" enum="Window.Flags">
- </argument>
- <argument index="1" name="enabled" type="bool">
- </argument>
+ <return type="void" />
+ <argument index="0" name="flag" type="int" enum="Window.Flags" />
+ <argument index="1" name="enabled" type="bool" />
<description>
</description>
</method>
<method name="set_ime_active">
- <return type="void">
- </return>
- <argument index="0" name="active" type="bool">
- </argument>
+ <return type="void" />
+ <argument index="0" name="active" type="bool" />
<description>
</description>
</method>
<method name="set_ime_position">
- <return type="void">
- </return>
- <argument index="0" name="position" type="Vector2i">
- </argument>
+ <return type="void" />
+ <argument index="0" name="position" type="Vector2i" />
<description>
</description>
</method>
<method name="set_layout_direction">
- <return type="void">
- </return>
- <argument index="0" name="direction" type="int" enum="Window.LayoutDirection">
- </argument>
+ <return type="void" />
+ <argument index="0" name="direction" type="int" enum="Window.LayoutDirection" />
<description>
Sets layout direction and text writing direction. Right-to-left layouts are necessary for certain languages (e.g. Arabic and Hebrew).
</description>
</method>
<method name="set_use_font_oversampling">
- <return type="void">
- </return>
- <argument index="0" name="enable" type="bool">
- </argument>
+ <return type="void" />
+ <argument index="0" name="enable" type="bool" />
<description>
</description>
</method>
<method name="show">
- <return type="void">
- </return>
+ <return type="void" />
<description>
</description>
</method>
@@ -316,31 +248,34 @@
<members>
<member name="always_on_top" type="bool" setter="set_flag" getter="get_flag" default="false">
</member>
+ <member name="auto_translate" type="bool" setter="set_auto_translate" getter="is_auto_translating" default="true">
+ Toggles if any text should automatically change to its translated version depending on the current locale.
+ </member>
<member name="borderless" type="bool" setter="set_flag" getter="get_flag" default="false">
</member>
<member name="content_scale_aspect" type="int" setter="set_content_scale_aspect" getter="get_content_scale_aspect" enum="Window.ContentScaleAspect" default="0">
</member>
<member name="content_scale_mode" type="int" setter="set_content_scale_mode" getter="get_content_scale_mode" enum="Window.ContentScaleMode" default="0">
</member>
- <member name="content_scale_size" type="Vector2i" setter="set_content_scale_size" getter="get_content_scale_size" default="Vector2i( 0, 0 )">
+ <member name="content_scale_size" type="Vector2i" setter="set_content_scale_size" getter="get_content_scale_size" default="Vector2i(0, 0)">
</member>
<member name="current_screen" type="int" setter="set_current_screen" getter="get_current_screen" default="0">
</member>
<member name="exclusive" type="bool" setter="set_exclusive" getter="is_exclusive" default="false">
</member>
- <member name="max_size" type="Vector2i" setter="set_max_size" getter="get_max_size" default="Vector2i( 0, 0 )">
+ <member name="max_size" type="Vector2i" setter="set_max_size" getter="get_max_size" default="Vector2i(0, 0)">
</member>
- <member name="min_size" type="Vector2i" setter="set_min_size" getter="get_min_size" default="Vector2i( 0, 0 )">
+ <member name="min_size" type="Vector2i" setter="set_min_size" getter="get_min_size" default="Vector2i(0, 0)">
</member>
<member name="mode" type="int" setter="set_mode" getter="get_mode" enum="Window.Mode" default="0">
</member>
- <member name="position" type="Vector2i" setter="set_position" getter="get_position" default="Vector2i( 0, 0 )">
+ <member name="position" type="Vector2i" setter="set_position" getter="get_position" default="Vector2i(0, 0)">
</member>
- <member name="size" type="Vector2i" setter="set_size" getter="get_size" default="Vector2i( 100, 100 )">
+ <member name="size" type="Vector2i" setter="set_size" getter="get_size" default="Vector2i(100, 100)">
</member>
<member name="theme" type="Theme" setter="set_theme" getter="get_theme">
</member>
- <member name="theme_custom_type" type="StringName" setter="set_theme_custom_type" getter="get_theme_custom_type" default="&amp;&quot;&quot;">
+ <member name="theme_type_variation" type="StringName" setter="set_theme_type_variation" getter="get_theme_type_variation" default="&amp;&quot;&quot;">
</member>
<member name="title" type="String" setter="set_title" getter="get_title" default="&quot;&quot;">
</member>
@@ -367,8 +302,7 @@
</description>
</signal>
<signal name="files_dropped">
- <argument index="0" name="files" type="PackedStringArray">
- </argument>
+ <argument index="0" name="files" type="PackedStringArray" />
<description>
</description>
</signal>
@@ -397,8 +331,7 @@
</description>
</signal>
<signal name="window_input">
- <argument index="0" name="event" type="InputEvent">
- </argument>
+ <argument index="0" name="event" type="InputEvent" />
<description>
</description>
</signal>
@@ -458,36 +391,34 @@
</constant>
</constants>
<theme_items>
- <theme_item name="close" type="Texture2D">
+ <theme_item name="close" data_type="icon" type="Texture2D">
</theme_item>
- <theme_item name="close_h_ofs" type="int" default="18">
+ <theme_item name="close_h_ofs" data_type="constant" type="int" default="18">
</theme_item>
- <theme_item name="close_highlight" type="Texture2D">
+ <theme_item name="close_pressed" data_type="icon" type="Texture2D">
</theme_item>
- <theme_item name="close_v_ofs" type="int" default="18">
+ <theme_item name="close_v_ofs" data_type="constant" type="int" default="18">
</theme_item>
- <theme_item name="panel" type="StyleBox">
+ <theme_item name="embedded_border" data_type="style" type="StyleBox">
</theme_item>
- <theme_item name="resize_margin" type="int" default="4">
+ <theme_item name="resize_margin" data_type="constant" type="int" default="4">
</theme_item>
- <theme_item name="scaleborder_size" type="int" default="4">
+ <theme_item name="scaleborder_size" data_type="constant" type="int" default="4">
</theme_item>
- <theme_item name="title_color" type="Color" default="Color( 0, 0, 0, 1 )">
+ <theme_item name="title_color" data_type="color" type="Color" default="Color(0, 0, 0, 1)">
</theme_item>
- <theme_item name="title_font" type="Font">
+ <theme_item name="title_font" data_type="font" type="Font">
</theme_item>
- <theme_item name="title_font_size" type="int">
+ <theme_item name="title_font_size" data_type="font_size" type="int">
The size of the title font.
</theme_item>
- <theme_item name="title_height" type="int" default="20">
+ <theme_item name="title_height" data_type="constant" type="int" default="20">
</theme_item>
- <theme_item name="title_outline_modulate" type="Color" default="Color( 1, 1, 1, 1 )">
+ <theme_item name="title_outline_modulate" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
The color of the title outline.
</theme_item>
- <theme_item name="title_outline_size" type="int" default="0">
+ <theme_item name="title_outline_size" data_type="constant" type="int" default="0">
The size of the title outline.
</theme_item>
- <theme_item name="window_panel" type="StyleBox">
- </theme_item>
</theme_items>
</class>