summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorFireForge <isaacr.7.2005@gmail.com>2022-03-11 22:38:44 -0600
committerYuri Sizov <yuris@humnom.net>2022-09-07 16:37:36 +0300
commitdd7ee37c8ae65fe31ff18d3d8d8b1a448093dcef (patch)
tree855d20d4cb71500118d3827c056a9beb18ab8ad6 /doc
parent019253512d75eb5e012772921ace6c092d8f5380 (diff)
Add set_default_margin_all/individual to StyleBox
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/StyleBox.xml17
-rw-r--r--doc/classes/StyleBoxTexture.xml17
2 files changed, 34 insertions, 0 deletions
diff --git a/doc/classes/StyleBox.xml b/doc/classes/StyleBox.xml
index d9c19a0c86..337835db37 100644
--- a/doc/classes/StyleBox.xml
+++ b/doc/classes/StyleBox.xml
@@ -97,6 +97,23 @@
Sets the default value of the specified [enum Side] to [param offset] pixels.
</description>
</method>
+ <method name="set_default_margin_all">
+ <return type="void" />
+ <param index="0" name="offset" type="float" />
+ <description>
+ Sets the default margin to [param offset] pixels for all sides.
+ </description>
+ </method>
+ <method name="set_default_margin_individual">
+ <return type="void" />
+ <param index="0" name="offset_left" type="float" />
+ <param index="1" name="offset_top" type="float" />
+ <param index="2" name="offset_right" type="float" />
+ <param index="3" name="offset_bottom" type="float" />
+ <description>
+ Sets the default margin for each side to [param offset_left], [param offset_top], [param offset_right], and [param offset_bottom] pixels.
+ </description>
+ </method>
<method name="test_mask" qualifiers="const">
<return type="bool" />
<param index="0" name="point" type="Vector2" />
diff --git a/doc/classes/StyleBoxTexture.xml b/doc/classes/StyleBoxTexture.xml
index 7db70e630d..44da651fe8 100644
--- a/doc/classes/StyleBoxTexture.xml
+++ b/doc/classes/StyleBoxTexture.xml
@@ -56,6 +56,23 @@
Sets the margin to [param size] pixels for the specified [enum Side].
</description>
</method>
+ <method name="set_margin_size_all">
+ <return type="void" />
+ <param index="0" name="size" type="float" />
+ <description>
+ Sets the margin to [param size] pixels for all sides.
+ </description>
+ </method>
+ <method name="set_margin_size_individual">
+ <return type="void" />
+ <param index="0" name="size_left" type="float" />
+ <param index="1" name="size_top" type="float" />
+ <param index="2" name="size_right" type="float" />
+ <param index="3" name="size_bottom" type="float" />
+ <description>
+ Sets the margin for each side to [param size_left], [param size_top], [param size_right], and [param size_bottom] pixels.
+ </description>
+ </method>
</methods>
<members>
<member name="axis_stretch_horizontal" type="int" setter="set_h_axis_stretch_mode" getter="get_h_axis_stretch_mode" enum="StyleBoxTexture.AxisStretchMode" default="0">