Merge pull request #44751 from madmiraal/rename-rect-grow_margin
Rename Rect2 and Rect2i grow_margin() to grow_side()
This commit is contained in:
commit
9addcb7603
12 changed files with 117 additions and 117 deletions
|
|
@ -1065,19 +1065,19 @@
|
|||
</member>
|
||||
<member name="offset_bottom" type="float" setter="set_offset" getter="get_offset" default="0.0">
|
||||
Distance between the node's bottom edge and its parent control, based on [member anchor_bottom].
|
||||
Margins are often controlled by one or multiple parent [Container] nodes, so you should not modify them manually if your node is a direct child of a [Container]. Margins update automatically when you move or resize the node.
|
||||
Offsets are often controlled by one or multiple parent [Container] nodes, so you should not modify them manually if your node is a direct child of a [Container]. Offsets update automatically when you move or resize the node.
|
||||
</member>
|
||||
<member name="offset_left" type="float" setter="set_offset" getter="get_offset" default="0.0">
|
||||
Distance between the node's left edge and its parent control, based on [member anchor_left].
|
||||
Margins are often controlled by one or multiple parent [Container] nodes, so you should not modify them manually if your node is a direct child of a [Container]. Margins update automatically when you move or resize the node.
|
||||
Offsets are often controlled by one or multiple parent [Container] nodes, so you should not modify them manually if your node is a direct child of a [Container]. Offsets update automatically when you move or resize the node.
|
||||
</member>
|
||||
<member name="offset_right" type="float" setter="set_offset" getter="get_offset" default="0.0">
|
||||
Distance between the node's right edge and its parent control, based on [member anchor_right].
|
||||
Margins are often controlled by one or multiple parent [Container] nodes, so you should not modify them manually if your node is a direct child of a [Container]. Margins update automatically when you move or resize the node.
|
||||
Offsets are often controlled by one or multiple parent [Container] nodes, so you should not modify them manually if your node is a direct child of a [Container]. Offsets update automatically when you move or resize the node.
|
||||
</member>
|
||||
<member name="offset_top" type="float" setter="set_offset" getter="get_offset" default="0.0">
|
||||
Distance between the node's top edge and its parent control, based on [member anchor_top].
|
||||
Margins are often controlled by one or multiple parent [Container] nodes, so you should not modify them manually if your node is a direct child of a [Container]. Margins update automatically when you move or resize the node.
|
||||
Offsets are often controlled by one or multiple parent [Container] nodes, so you should not modify them manually if your node is a direct child of a [Container]. Offsets update automatically when you move or resize the node.
|
||||
</member>
|
||||
<member name="mouse_default_cursor_shape" type="int" setter="set_default_cursor_shape" getter="get_default_cursor_shape" enum="Control.CursorShape" default="0">
|
||||
The default cursor shape for this control. Useful for Godot plugins and applications or games that use the system's mouse cursors.
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -108,10 +108,10 @@
|
|||
<method name="grow">
|
||||
<return type="Rect2i">
|
||||
</return>
|
||||
<argument index="0" name="by" type="int">
|
||||
<argument index="0" name="amount" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns a copy of the [Rect2i] grown a given amount of units towards all the sides.
|
||||
Returns a copy of the [Rect2i] grown by the specified [code]amount[/code] on all sides.
|
||||
</description>
|
||||
</method>
|
||||
<method name="grow_individual">
|
||||
|
|
@ -126,18 +126,18 @@
|
|||
<argument index="3" name="bottom" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns a copy of the [Rect2i] grown a given amount of units towards each direction individually.
|
||||
Returns a copy of the [Rect2i] grown by the specified amount on each side individually.
|
||||
</description>
|
||||
</method>
|
||||
<method name="grow_margin">
|
||||
<method name="grow_side">
|
||||
<return type="Rect2i">
|
||||
</return>
|
||||
<argument index="0" name="side" type="int" enum="Side">
|
||||
</argument>
|
||||
<argument index="1" name="by" type="int">
|
||||
<argument index="1" name="amount" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns a copy of the [Rect2i] grown a given amount of units on the specified [enum Side].
|
||||
Returns a copy of the [Rect2i] grown by the specified [code]amount[/code] on the specified [enum Side].
|
||||
</description>
|
||||
</method>
|
||||
<method name="has_no_area">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue