.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the StyleBoxTexture.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.

.. _class_StyleBoxTexture:

StyleBoxTexture
===============

**Inherits:** :ref:`StyleBox<class_stylebox>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`

**Category:** Core

Brief Description
-----------------

Texture Based 3x3 scale style.

Member Functions
----------------

+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void  | :ref:`set_expand_margin_all<class_StyleBoxTexture_set_expand_margin_all>` **(** :ref:`float<class_float>` size **)**                                                                                                                                     |
+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| void  | :ref:`set_expand_margin_individual<class_StyleBoxTexture_set_expand_margin_individual>` **(** :ref:`float<class_float>` size_left, :ref:`float<class_float>` size_top, :ref:`float<class_float>` size_right, :ref:`float<class_float>` size_bottom **)** |
+-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Signals
-------

.. _class_StyleBoxTexture_texture_changed:

- **texture_changed** **(** **)**


Member Variables
----------------

  .. _class_StyleBoxTexture_axis_stretch_horizontal:

- :ref:`AxisStretchMode<enum_styleboxtexture_axisstretchmode>` **axis_stretch_horizontal**

  .. _class_StyleBoxTexture_axis_stretch_vertical:

- :ref:`AxisStretchMode<enum_styleboxtexture_axisstretchmode>` **axis_stretch_vertical**

  .. _class_StyleBoxTexture_draw_center:

- :ref:`bool<class_bool>` **draw_center**

  .. _class_StyleBoxTexture_expand_margin_bottom:

- :ref:`float<class_float>` **expand_margin_bottom**

  .. _class_StyleBoxTexture_expand_margin_left:

- :ref:`float<class_float>` **expand_margin_left**

  .. _class_StyleBoxTexture_expand_margin_right:

- :ref:`float<class_float>` **expand_margin_right**

  .. _class_StyleBoxTexture_expand_margin_top:

- :ref:`float<class_float>` **expand_margin_top**

  .. _class_StyleBoxTexture_margin_bottom:

- :ref:`float<class_float>` **margin_bottom**

  .. _class_StyleBoxTexture_margin_left:

- :ref:`float<class_float>` **margin_left**

  .. _class_StyleBoxTexture_margin_right:

- :ref:`float<class_float>` **margin_right**

  .. _class_StyleBoxTexture_margin_top:

- :ref:`float<class_float>` **margin_top**

  .. _class_StyleBoxTexture_modulate_color:

- :ref:`Color<class_color>` **modulate_color**

  .. _class_StyleBoxTexture_normal_map:

- :ref:`Resource<class_resource>` **normal_map**

  .. _class_StyleBoxTexture_region_rect:

- :ref:`Rect2<class_rect2>` **region_rect**

  .. _class_StyleBoxTexture_texture:

- :ref:`Resource<class_resource>` **texture**


Enums
-----

  .. _enum_StyleBoxTexture_AxisStretchMode:

enum **AxisStretchMode**

- **AXIS_STRETCH_MODE_STRETCH** = **0**
- **AXIS_STRETCH_MODE_TILE** = **1**
- **AXIS_STRETCH_MODE_TILE_FIT** = **2**


Description
-----------

Texture Based 3x3 scale style. This stylebox performs a 3x3 scaling of a texture, where only the center cell is fully stretched. This allows for the easy creation of bordered styles.

Member Function Description
---------------------------

.. _class_StyleBoxTexture_set_expand_margin_all:

- void **set_expand_margin_all** **(** :ref:`float<class_float>` size **)**

.. _class_StyleBoxTexture_set_expand_margin_individual:

- void **set_expand_margin_individual** **(** :ref:`float<class_float>` size_left, :ref:`float<class_float>` size_top, :ref:`float<class_float>` size_right, :ref:`float<class_float>` size_bottom **)**


