Sync classes.xml with current sources

Also fix a typo in the binding of Control::set_drag_forwarding.
This commit is contained in:
Rémi Verschelde
2016-05-09 22:20:35 +02:00
parent 0dfc4a2029
commit bc31be9812
2 changed files with 128 additions and 34 deletions

View File

@@ -2680,6 +2680,22 @@
Get the list of names of the animations stored in the player. Get the list of names of the animations stored in the player.
</description> </description>
</method> </method>
<method name="animation_set_next">
<argument index="0" name="anim_from" type="String">
</argument>
<argument index="1" name="anim_to" type="String">
</argument>
<description>
</description>
</method>
<method name="animation_get_next" qualifiers="const">
<return type="String">
</return>
<argument index="0" name="anim_from" type="String">
</argument>
<description>
</description>
</method>
<method name="set_blend_time"> <method name="set_blend_time">
<argument index="0" name="anim_from" type="String"> <argument index="0" name="anim_from" type="String">
</argument> </argument>
@@ -6766,9 +6782,9 @@
</argument> </argument>
<argument index="1" name="colors" type="ColorArray"> <argument index="1" name="colors" type="ColorArray">
</argument> </argument>
<argument index="2" name="uvs" type="Vector2Array" default="Array()"> <argument index="2" name="uvs" type="Vector2Array">
</argument> </argument>
<argument index="3" name="texture" type="Texture" default="Object()"> <argument index="3" name="texture" type="Texture" default="NULL">
</argument> </argument>
<argument index="4" name="width" type="float" default="1"> <argument index="4" name="width" type="float" default="1">
</argument> </argument>
@@ -6781,9 +6797,9 @@
</argument> </argument>
<argument index="1" name="colors" type="ColorArray"> <argument index="1" name="colors" type="ColorArray">
</argument> </argument>
<argument index="2" name="uvs" type="Vector2Array" default="Array()"> <argument index="2" name="uvs" type="Vector2Array" default="Vector2Array()">
</argument> </argument>
<argument index="3" name="texture" type="Texture" default="Object()"> <argument index="3" name="texture" type="Texture" default="NULL">
</argument> </argument>
<description> <description>
Draw a polygon of any amount of points, convex or concave. Draw a polygon of any amount of points, convex or concave.
@@ -6794,9 +6810,9 @@
</argument> </argument>
<argument index="1" name="color" type="Color"> <argument index="1" name="color" type="Color">
</argument> </argument>
<argument index="2" name="uvs" type="Vector2Array" default="Array()"> <argument index="2" name="uvs" type="Vector2Array" default="Vector2Array()">
</argument> </argument>
<argument index="3" name="texture" type="Texture" default="Object()"> <argument index="3" name="texture" type="Texture" default="NULL">
</argument> </argument>
<description> <description>
Draw a colored polygon of any amount of points, convex or concave. Draw a colored polygon of any amount of points, convex or concave.
@@ -7118,7 +7134,7 @@
</description> </description>
</method> </method>
<method name="set_rotation"> <method name="set_rotation">
<argument index="0" name="rotation" type="float"> <argument index="0" name="radians" type="float">
</argument> </argument>
<description> <description>
Set the base rotation for this layer (helper). Set the base rotation for this layer (helper).
@@ -7131,6 +7147,18 @@
Return the base rotation for this layer (helper). Return the base rotation for this layer (helper).
</description> </description>
</method> </method>
<method name="set_rotationd">
<argument index="0" name="degrees" type="float">
</argument>
<description>
</description>
</method>
<method name="get_rotationd" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="set_scale"> <method name="set_scale">
<argument index="0" name="scale" type="Vector2"> <argument index="0" name="scale" type="Vector2">
</argument> </argument>
@@ -7146,7 +7174,7 @@
</description> </description>
</method> </method>
<method name="get_world_2d" qualifiers="const"> <method name="get_world_2d" qualifiers="const">
<return type="Canvas"> <return type="World2D">
</return> </return>
<description> <description>
Return the [World2D] used by this layer. Return the [World2D] used by this layer.
@@ -8779,7 +8807,13 @@
</description> </description>
</method> </method>
<method name="set_rotation"> <method name="set_rotation">
<argument index="0" name="rotation" type="float"> <argument index="0" name="radians" type="float">
</argument>
<description>
</description>
</method>
<method name="set_rotation_deg">
<argument index="0" name="degrees" type="float">
</argument> </argument>
<description> <description>
</description> </description>
@@ -8832,6 +8866,12 @@
<description> <description>
</description> </description>
</method> </method>
<method name="get_rotation_deg" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="get_scale" qualifiers="const"> <method name="get_scale" qualifiers="const">
<return type="Vector2"> <return type="Vector2">
</return> </return>
@@ -9175,6 +9215,12 @@
<description> <description>
</description> </description>
</method> </method>
<method name="set_drag_forwarding">
<argument index="0" name="target" type="Control">
</argument>
<description>
</description>
</method>
<method name="set_drag_preview"> <method name="set_drag_preview">
<argument index="0" name="control" type="Control"> <argument index="0" name="control" type="Control">
</argument> </argument>
@@ -14065,6 +14111,20 @@ Returns an empty String "" at the end of the list.
<description> <description>
</description> </description>
</method> </method>
<method name="request_raw">
<return type="int">
</return>
<argument index="0" name="method" type="int">
</argument>
<argument index="1" name="url" type="String">
</argument>
<argument index="2" name="headers" type="StringArray">
</argument>
<argument index="3" name="body" type="RawArray" default="&quot;&quot;">
</argument>
<description>
</description>
</method>
<method name="request"> <method name="request">
<return type="int"> <return type="int">
</return> </return>
@@ -14688,6 +14748,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
<description> <description>
</description> </description>
</method> </method>
<method name="fix_alpha_edges">
<description>
</description>
</method>
<method name="get_data"> <method name="get_data">
<return type="RawArray"> <return type="RawArray">
</return> </return>
@@ -15208,13 +15272,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
</signals> </signals>
<constants> <constants>
<constant name="MOUSE_MODE_VISIBLE" value="0"> <constant name="MOUSE_MODE_VISIBLE" value="0">
Makes the mouse cursor visible if it is hidden. Makes the mouse cursor visible if it is hidden.
</constant> </constant>
<constant name="MOUSE_MODE_HIDDEN" value="1"> <constant name="MOUSE_MODE_HIDDEN" value="1">
Makes the mouse cursor hidden if it is visible. Makes the mouse cursor hidden if it is visible.
</constant> </constant>
<constant name="MOUSE_MODE_CAPTURED" value="2"> <constant name="MOUSE_MODE_CAPTURED" value="2">
Captures the mouse. The mouse will be hidden and unable to leave the game window. But it will still register movement and mouse button presses. Captures the mouse. The mouse will be hidden and unable to leave the game window. But it will still register movement and mouse button presses.
</constant> </constant>
</constants> </constants>
</class> </class>
@@ -16377,7 +16441,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
<method name="add_item"> <method name="add_item">
<argument index="0" name="text" type="String"> <argument index="0" name="text" type="String">
</argument> </argument>
<argument index="1" name="icon" type="Texture" default="Object()"> <argument index="1" name="icon" type="Texture" default="NULL">
</argument> </argument>
<argument index="2" name="selectable" type="bool" default="true"> <argument index="2" name="selectable" type="bool" default="true">
</argument> </argument>
@@ -17963,38 +18027,38 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
</class> </class>
<class name="LinkButton" inherits="BaseButton" category="Core"> <class name="LinkButton" inherits="BaseButton" category="Core">
<brief_description> <brief_description>
Simple button used to represent a link to some resource Simple button used to represent a link to some resource
</brief_description> </brief_description>
<description> <description>
This kind of buttons are primarily used when the interaction with the button causes a context change (like linking to a web page). This kind of buttons are primarily used when the interaction with the button causes a context change (like linking to a web page).
</description> </description>
<methods> <methods>
<method name="set_text"> <method name="set_text">
<argument index="0" name="text" type="String"> <argument index="0" name="text" type="String">
</argument> </argument>
<description> <description>
Sets the text of the button. Sets the text of the button.
</description> </description>
</method> </method>
<method name="get_text" qualifiers="const"> <method name="get_text" qualifiers="const">
<return type="String"> <return type="String">
</return> </return>
<description> <description>
Returns the text of the button. Returns the text of the button.
</description> </description>
</method> </method>
<method name="set_underline_mode"> <method name="set_underline_mode">
<argument index="0" name="underline_mode" type="int"> <argument index="0" name="underline_mode" type="int">
</argument> </argument>
<description> <description>
Sets the underline mode for this button, the argument must be one of the [LinkButton] constants (see constants section). Sets the underline mode for this button, the argument must be one of the [LinkButton] constants (see constants section).
</description> </description>
</method> </method>
<method name="get_underline_mode" qualifiers="const"> <method name="get_underline_mode" qualifiers="const">
<return type="int"> <return type="int">
</return> </return>
<description> <description>
Returns the underline mode for this button. Returns the underline mode for this button.
</description> </description>
</method> </method>
</methods> </methods>
@@ -20246,7 +20310,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
</description> </description>
</method> </method>
<method name="get_parent" qualifiers="const"> <method name="get_parent" qualifiers="const">
<return type="Parent"> <return type="Node">
</return> </return>
<description> <description>
Return the parent [Node] of the current [Node], or an empty Object if the node lacks a parent. Return the parent [Node] of the current [Node], or an empty Object if the node lacks a parent.
@@ -20639,12 +20703,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
</description> </description>
</method> </method>
<method name="set_rot"> <method name="set_rot">
<argument index="0" name="rot" type="float"> <argument index="0" name="radians" type="float">
</argument> </argument>
<description> <description>
Set the rotation of the 2D node. Set the rotation of the 2D node.
</description> </description>
</method> </method>
<method name="set_rotd">
<argument index="0" name="degrees" type="float">
</argument>
<description>
</description>
</method>
<method name="set_scale"> <method name="set_scale">
<argument index="0" name="scale" type="Vector2"> <argument index="0" name="scale" type="Vector2">
</argument> </argument>
@@ -20666,6 +20736,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
Return the rotation of the 2D node. Return the rotation of the 2D node.
</description> </description>
</method> </method>
<method name="get_rotd" qualifiers="const">
<return type="float">
</return>
<description>
</description>
</method>
<method name="get_scale" qualifiers="const"> <method name="get_scale" qualifiers="const">
<return type="Vector2"> <return type="Vector2">
</return> </return>
@@ -21029,7 +21105,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
<argument index="0" name="size" type="Vector2"> <argument index="0" name="size" type="Vector2">
</argument> </argument>
<description> <description>
Sets the window size to the specified size. Sets the window size to the specified size.
</description> </description>
</method> </method>
<method name="set_window_fullscreen"> <method name="set_window_fullscreen">
@@ -21107,7 +21183,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
<return type="int"> <return type="int">
</return> </return>
<description> <description>
Returns the current screen orientation, the return value will be one of the SCREEN_ORIENTATION constants in this class. Returns the current screen orientation, the return value will be one of the SCREEN_ORIENTATION constants in this class.
</description> </description>
</method> </method>
<method name="set_keep_screen_on"> <method name="set_keep_screen_on">
@@ -25033,7 +25109,7 @@ This method controls whether the position between two cached points is interpola
</argument> </argument>
<argument index="1" name="param" type="int"> <argument index="1" name="param" type="int">
</argument> </argument>
<argument index="2" name="value" type="float" default="RID()"> <argument index="2" name="value" type="float">
</argument> </argument>
<description> <description>
</description> </description>
@@ -33787,7 +33863,7 @@ This method controls whether the position between two cached points is interpola
</description> </description>
</method> </method>
<method name="set_rotation"> <method name="set_rotation">
<argument index="0" name="rotation" type="Vector3"> <argument index="0" name="rotation_rad" type="Vector3">
</argument> </argument>
<description> <description>
</description> </description>
@@ -33798,6 +33874,18 @@ This method controls whether the position between two cached points is interpola
<description> <description>
</description> </description>
</method> </method>
<method name="set_rotation_deg">
<argument index="0" name="rotation_deg" type="Vector3">
</argument>
<description>
</description>
</method>
<method name="get_rotation_deg" qualifiers="const">
<return type="Vector3">
</return>
<description>
</description>
</method>
<method name="set_scale"> <method name="set_scale">
<argument index="0" name="scale" type="Vector3"> <argument index="0" name="scale" type="Vector3">
</argument> </argument>
@@ -34183,13 +34271,13 @@ This method controls whether the position between two cached points is interpola
</description> </description>
<methods> <methods>
<method name="set_stream"> <method name="set_stream">
<argument index="0" name="stream" type="Stream"> <argument index="0" name="stream" type="AudioStream">
</argument> </argument>
<description> <description>
</description> </description>
</method> </method>
<method name="get_stream" qualifiers="const"> <method name="get_stream" qualifiers="const">
<return type="Stream"> <return type="AudioStream">
</return> </return>
<description> <description>
</description> </description>
@@ -36479,11 +36567,11 @@ This method controls whether the position between two cached points is interpola
<method name="add_triangle_fan"> <method name="add_triangle_fan">
<argument index="0" name="vertexes" type="Vector3Array"> <argument index="0" name="vertexes" type="Vector3Array">
</argument> </argument>
<argument index="1" name="uvs" type="Vector2Array" default="[Vector2Array]"> <argument index="1" name="uvs" type="Vector2Array" default="Vector2Array()">
</argument> </argument>
<argument index="2" name="colors" type="ColorArray" default="ColorArray([ColorArray])"> <argument index="2" name="colors" type="ColorArray" default="ColorArray([ColorArray])">
</argument> </argument>
<argument index="3" name="uv2s" type="Vector2Array" default="[Vector2Array]"> <argument index="3" name="uv2s" type="Vector2Array" default="Vector2Array()">
</argument> </argument>
<argument index="4" name="normals" type="Vector3Array" default="Vector3Array()"> <argument index="4" name="normals" type="Vector3Array" default="Vector3Array()">
</argument> </argument>
@@ -36513,7 +36601,7 @@ This method controls whether the position between two cached points is interpola
<method name="commit"> <method name="commit">
<return type="Mesh"> <return type="Mesh">
</return> </return>
<argument index="0" name="existing" type="Mesh" default="Object()"> <argument index="0" name="existing" type="Mesh" default="NULL">
</argument> </argument>
<description> <description>
</description> </description>
@@ -39130,7 +39218,7 @@ This method controls whether the position between two cached points is interpola
<method name="create_item"> <method name="create_item">
<return type="TreeItem"> <return type="TreeItem">
</return> </return>
<argument index="0" name="parent" type="TreeItem" default="Object()"> <argument index="0" name="parent" type="TreeItem" default="NULL">
</argument> </argument>
<description> <description>
</description> </description>
@@ -41264,13 +41352,13 @@ This method controls whether the position between two cached points is interpola
</description> </description>
<methods> <methods>
<method name="set_stream"> <method name="set_stream">
<argument index="0" name="stream" type="Stream"> <argument index="0" name="stream" type="VideoStream">
</argument> </argument>
<description> <description>
</description> </description>
</method> </method>
<method name="get_stream" qualifiers="const"> <method name="get_stream" qualifiers="const">
<return type="Stream"> <return type="VideoStream">
</return> </return>
<description> <description>
</description> </description>
@@ -42087,6 +42175,12 @@ This method controls whether the position between two cached points is interpola
<description> <description>
</description> </description>
</method> </method>
<method name="texture_set_shrink_all_x2_on_set_data">
<argument index="0" name="shrink" type="bool">
</argument>
<description>
</description>
</method>
<method name="shader_create"> <method name="shader_create">
<return type="RID"> <return type="RID">
</return> </return>

View File

@@ -2320,7 +2320,7 @@ void Control::_bind_methods() {
ObjectTypeDB::bind_method(_MD("grab_click_focus"),&Control::grab_click_focus); ObjectTypeDB::bind_method(_MD("grab_click_focus"),&Control::grab_click_focus);
ObjectTypeDB::bind_method(_MD("set_drag_forwarding;","target:Control"),&Control::set_drag_forwarding); ObjectTypeDB::bind_method(_MD("set_drag_forwarding","target:Control"),&Control::set_drag_forwarding);
ObjectTypeDB::bind_method(_MD("set_drag_preview","control:Control"),&Control::set_drag_preview); ObjectTypeDB::bind_method(_MD("set_drag_preview","control:Control"),&Control::set_drag_preview);
ObjectTypeDB::bind_method(_MD("warp_mouse","to_pos"),&Control::warp_mouse); ObjectTypeDB::bind_method(_MD("warp_mouse","to_pos"),&Control::warp_mouse);