|
@@ -17,18 +17,22 @@
|
|
|
<argument index="1" name="rect" type="Rect2">
|
|
|
</argument>
|
|
|
<description>
|
|
|
+ Draws this stylebox using a [CanvasItem] with given [RID].
|
|
|
+ You can get a [RID] value using [method Object.get_instance_id] on a [CanvasItem]-derived node.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="get_center_size" qualifiers="const">
|
|
|
<return type="Vector2">
|
|
|
</return>
|
|
|
<description>
|
|
|
+ Returns the size of this [StyleBox] without the margins.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="get_current_item_drawn" qualifiers="const">
|
|
|
<return type="CanvasItem">
|
|
|
</return>
|
|
|
<description>
|
|
|
+ Returns the [CanvasItem] that handles its [constant CanvasItem.NOTIFICATION_DRAW] or [method CanvasItem._draw] callback at this moment.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="get_default_margin" qualifiers="const">
|
|
@@ -37,6 +41,7 @@
|
|
|
<argument index="0" name="margin" type="int" enum="Margin">
|
|
|
</argument>
|
|
|
<description>
|
|
|
+ Returns the default value of the specified [enum Margin].
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="get_margin" qualifiers="const">
|
|
@@ -45,7 +50,7 @@
|
|
|
<argument index="0" name="margin" type="int" enum="Margin">
|
|
|
</argument>
|
|
|
<description>
|
|
|
- Returns the content margin offset for the specified margin.
|
|
|
+ Returns the content margin offset for the specified [enum Margin].
|
|
|
Positive values reduce size inwards, unlike [Control]'s margin values.
|
|
|
</description>
|
|
|
</method>
|
|
@@ -71,6 +76,7 @@
|
|
|
<argument index="1" name="offset" type="float">
|
|
|
</argument>
|
|
|
<description>
|
|
|
+ Sets the default value of the specified [enum Margin] to given [code]offset[/code] in pixels.
|
|
|
</description>
|
|
|
</method>
|
|
|
<method name="test_mask" qualifiers="const">
|