Add more documentations for this classes:

* BoxContainer
* CenterContainer
* ScrollContainer
* SplitContainer
* Vector2
* StringArray
* FileDiloags

(cherry picked from commit a518792d89)
This commit is contained in:
Geequlim 2016-04-29 22:27:16 +08:00 committed by Rémi Verschelde
parent 227604a566
commit b4adb0d338
1 changed files with 39 additions and 1 deletions

View File

@ -5523,27 +5523,34 @@
<argument index="0" name="begin" type="bool">
</argument>
<description>
Add a control to the box as a spacer.
If [i]begin[/i] is true the spacer control will be inserted in front of other children.
</description>
</method>
<method name="get_alignment" qualifiers="const">
<return type="int">
</return>
<description>
Return the alignment of children in the container.
</description>
</method>
<method name="set_alignment">
<argument index="0" name="alignment" type="int">
</argument>
<description>
Set the alignment of children in the container(Must be one of ALIGN_BEGIN, ALIGN_CENTER or ALIGN_END).
</description>
</method>
</methods>
<constants>
<constant name="ALIGN_BEGIN" value="0">
Align children with beginning of the container.
</constant>
<constant name="ALIGN_CENTER" value="1">
Align children with center of the container.
</constant>
<constant name="ALIGN_END" value="2">
Align children with end of the container.
</constant>
</constants>
</class>
@ -11086,24 +11093,28 @@ Returns an empty String "" at the end of the list.
<argument index="0" name="access" type="int">
</argument>
<description>
Set the file access permission of the dialog(Must be one of [ACCESS_RESOURCES], [ACCESS_USERDATA] or [ACCESS_FILESYSTEM]).
</description>
</method>
<method name="get_access" qualifiers="const">
<return type="int">
</return>
<description>
Return the file access permission of the dialog.
</description>
</method>
<method name="set_show_hidden_files">
<argument index="0" name="show" type="bool">
</argument>
<description>
Set the dialog should show hidden files.
</description>
</method>
<method name="is_showing_hidden_files" qualifiers="const">
<return type="bool">
</return>
<description>
Return true if the diaog allows show hidden files.
</description>
</method>
<method name="invalidate">
@ -11116,12 +11127,14 @@ Returns an empty String "" at the end of the list.
<argument index="0" name="paths" type="StringArray">
</argument>
<description>
Event emitted when the user selects multiple files.
</description>
</signal>
<signal name="dir_selected">
<argument index="0" name="dir" type="String">
</argument>
<description>
Event emitted when the user selects a directory.
</description>
</signal>
<signal name="file_selected">
@ -11146,10 +11159,13 @@ Returns an empty String "" at the end of the list.
The dialog will warn when a file exists.
</constant>
<constant name="ACCESS_RESOURCES" value="0">
The dialog allows the selection of file and directory.
</constant>
<constant name="ACCESS_USERDATA" value="1">
The dialog allows ascess files under [Resource] path(res://) .
</constant>
<constant name="ACCESS_FILESYSTEM" value="2">
The dialog allows ascess files in whole file system.
</constant>
</constants>
<theme_items>
@ -30628,48 +30644,56 @@ This method controls whether the position between two cached points is interpola
<argument index="0" name="enable" type="bool">
</argument>
<description>
Set allows horizontal scrool.
</description>
</method>
<method name="is_h_scroll_enabled" qualifiers="const">
<return type="bool">
</return>
<description>
Return true if horizontal scrool is allowed.
</description>
</method>
<method name="set_enable_v_scroll">
<argument index="0" name="enable" type="bool">
</argument>
<description>
Set allows vertical scrool.
</description>
</method>
<method name="is_v_scroll_enabled" qualifiers="const">
<return type="bool">
</return>
<description>
Return true if vertical scrool is allowed.
</description>
</method>
<method name="set_h_scroll">
<argument index="0" name="val" type="int">
</argument>
<description>
Set horizontal scroll value.
</description>
</method>
<method name="get_h_scroll" qualifiers="const">
<return type="int">
</return>
<description>
Return current horizontal scroll value.
</description>
</method>
<method name="set_v_scroll">
<argument index="0" name="val" type="int">
</argument>
<description>
Set vertical scroll value.
</description>
</method>
<method name="get_v_scroll" qualifiers="const">
<return type="int">
</return>
<description>
Return current vertical scroll value.
</description>
</method>
</methods>
@ -32919,19 +32943,21 @@ This method controls whether the position between two cached points is interpola
<return type="bool">
</return>
<description>
Return if the split is collapsed.
Return true if the split is collapsed.
</description>
</method>
<method name="set_dragger_visibility">
<argument index="0" name="mode" type="int">
</argument>
<description>
Set visibility of the split dragger([i]mode[/i] must be one of [DRAGGER_VISIBLE], [DRAGGER_HIDDEN] or [DRAGGER_HIDDEN_COLLAPSED]).
</description>
</method>
<method name="get_dragger_visibility" qualifiers="const">
<return type="int">
</return>
<description>
Return visibility of the split dragger(One of [DRAGGER_VISIBLE], [DRAGGER_HIDDEN] or [DRAGGER_HIDDEN_COLLAPSED]).
</description>
</method>
</methods>
@ -32940,15 +32966,19 @@ This method controls whether the position between two cached points is interpola
<argument index="0" name="offset" type="int">
</argument>
<description>
Emmited when the dragger is gragged by user.
</description>
</signal>
</signals>
<constants>
<constant name="DRAGGER_VISIBLE" value="0">
The split dragger is visible.
</constant>
<constant name="DRAGGER_HIDDEN" value="1">
The split dragger is invisible.
</constant>
<constant name="DRAGGER_HIDDEN_COLLAPSED" value="2">
The split dragger is invisible and collapsed.
</constant>
</constants>
</class>
@ -34530,12 +34560,14 @@ This method controls whether the position between two cached points is interpola
<argument index="0" name="string" type="String">
</argument>
<description>
Append a string element at end of the array.
</description>
</method>
<method name="resize">
<argument index="0" name="idx" type="int">
</argument>
<description>
Reset the size of the array.
</description>
</method>
<method name="set">
@ -34550,6 +34582,7 @@ This method controls whether the position between two cached points is interpola
<return type="int">
</return>
<description>
Return the size of the array.
</description>
</method>
<method name="StringArray">
@ -39022,6 +39055,7 @@ This method controls whether the position between two cached points is interpola
<return type="Vector2">
</return>
<description>
Remove the fractional part of x and y.
</description>
</method>
<method name="get_aspect">
@ -39120,12 +39154,16 @@ This method controls whether the position between two cached points is interpola
</methods>
<members>
<member name="x" type="float">
The X axis value when treated as point(The first value in the pair).
</member>
<member name="y" type="float">
The Y axis value when treated as point(The second value in the pair).
</member>
<member name="width" type="float">
The width value when treated as size(The first value in the pair).
</member>
<member name="height" type="float">
The height value when treated as size(The second value in the pair).
</member>
</members>
<constants>