Rename Rect2 and Rect2i grow_margin() to grow_side()

This commit is contained in:
Marcel Admiraal 2020-12-28 09:11:58 +00:00
parent be509bf5e4
commit b628912af0
12 changed files with 117 additions and 117 deletions

View file

@ -110,10 +110,10 @@
<method name="grow">
<return type="Rect2">
</return>
<argument index="0" name="by" type="float">
<argument index="0" name="amount" type="float">
</argument>
<description>
Returns a copy of the [Rect2] grown a given amount of units towards all the sides.
Returns a copy of the [Rect2] grown by the specified [code]amount[/code] on all sides.
</description>
</method>
<method name="grow_individual">
@ -128,18 +128,18 @@
<argument index="3" name="bottom" type="float">
</argument>
<description>
Returns a copy of the [Rect2] grown a given amount of units towards each direction individually.
Returns a copy of the [Rect2] grown by the specified amount on each side individually.
</description>
</method>
<method name="grow_margin">
<method name="grow_side">
<return type="Rect2">
</return>
<argument index="0" name="side" type="int" enum="Side">
</argument>
<argument index="1" name="by" type="float">
<argument index="1" name="amount" type="float">
</argument>
<description>
Returns a copy of the [Rect2] grown a given amount of units on the specified [enum Side].
Returns a copy of the [Rect2] grown by the specified [code]amount[/code] on the specified [enum Side].
</description>
</method>
<method name="has_no_area">