summaryrefslogtreecommitdiff
path: root/doc/classes/StyleBox.xml
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2020-01-13 23:08:42 +0100
committerTomasz Chabora <kobewi4e@gmail.com>2020-01-14 13:19:39 +0100
commitc09b9c488fcc423d58ed26447b6e2614b106afdb (patch)
tree157c00a127d0f23febdb36a861dbf8f214c341a0 /doc/classes/StyleBox.xml
parent34ad33d9e0b211b2de5855373f8626af4fc0ce11 (diff)
Complete documentation of some more classes
Diffstat (limited to 'doc/classes/StyleBox.xml')
-rw-r--r--doc/classes/StyleBox.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/classes/StyleBox.xml b/doc/classes/StyleBox.xml
index 1d873ef0b1..1a11904792 100644
--- a/doc/classes/StyleBox.xml
+++ b/doc/classes/StyleBox.xml
@@ -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">