summaryrefslogtreecommitdiff
path: root/doc/base
diff options
context:
space:
mode:
authorEvgeny Zuev <evgeny.zuev@xored.com>2017-08-21 11:01:06 +0700
committerEvgeny Zuev <evgeny.zuev@xored.com>2017-08-22 13:46:59 +0700
commit1a2622d344d8e4f58de15096d2f38f6c4bd0644f (patch)
tree556817d2e141fa162d80c0872e70a294699663f4 /doc/base
parentc8d655f239de57e8f3258917cb281a6cc0a8fca1 (diff)
Add stretching to `TextureProgress`
Now `TextureProgress` has `nine_patch_stretch` flag. With this flag enabled, it's being rendered as 9-path using `stretch_margin_*` properties as texture margins. Stretching doesn't support `FILL_CLOCKWISE` and `FILL_COUNTER_CLOCKWISE` fill modes.
Diffstat (limited to 'doc/base')
-rw-r--r--doc/base/classes.xml42
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index 570d90f81e..26c0b81428 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -46114,6 +46114,13 @@
<description>
</description>
</method>
+ <method name="get_nine_patch_stretch">
+ <return type="bool">
+ </return>
+ <description>
+ Returns true if textures are stretched as nine-patches or false otherwise.
+ </description>
+ </method>
<method name="get_over_texture" qualifiers="const">
<return type="Object">
</return>
@@ -46138,6 +46145,15 @@
<description>
</description>
</method>
+ <method name="get_stretch_margin" qualifiers="const">
+ <return type="int">
+ </return>
+ <argument index="0" name="margin" type="int">
+ </argument>
+ <description>
+ Return nine-patch texture offset for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM).
+ </description>
+ </method>
<method name="get_under_texture" qualifiers="const">
<return type="Object">
</return>
@@ -46156,6 +46172,13 @@
<description>
</description>
</method>
+ <method name="set_nine_patch_stretch">
+ <argument index="0" name="stretch" type="bool">
+ </argument>
+ <description>
+ Set if textures should be stretched as nine-patches.
+ </description>
+ </method>
<method name="set_over_texture">
<argument index="0" name="tex" type="Object">
</argument>
@@ -46180,6 +46203,15 @@
<description>
</description>
</method>
+ <method name="set_stretch_margin">
+ <argument index="0" name="margin" type="int">
+ </argument>
+ <argument index="1" name="size" type="int">
+ </argument>
+ <description>
+ Set nine-patch texture offset for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM).
+ </description>
+ </method>
<method name="set_under_texture">
<argument index="0" name="tex" type="Object">
</argument>
@@ -46202,6 +46234,16 @@
</member>
<member name="texture_under" type="Texture" setter="set_under_texture" getter="get_under_texture" brief="">
</member>
+ <member name="nine_patch_stretch" type="bool" setter="set_nine_patch_stretch" getter="get_nine_patch_stretch" brief="">
+ </member>
+ <member name="stretch_margin_left" type="int" setter="set_stretch_margin" getter="get_stretch_margin" brief="">
+ </member>
+ <member name="stretch_margin_top" type="int" setter="set_stretch_margin" getter="get_stretch_margin" brief="">
+ </member>
+ <member name="stretch_margin_right" type="int" setter="set_stretch_margin" getter="get_stretch_margin" brief="">
+ </member>
+ <member name="stretch_margin_bottom" type="int" setter="set_stretch_margin" getter="get_stretch_margin" brief="">
+ </member>
</members>
<constants>
<constant name="FILL_LEFT_TO_RIGHT" value="0">