.. 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//doc_classes. .. _class_StyleBoxTexture: StyleBoxTexture =============== **Inherits:** :ref:`StyleBox` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Texture Based 3x3 scale style. Member Functions ---------------- +-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_expand_margin_all` **(** :ref:`float` size **)** | +-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_expand_margin_individual` **(** :ref:`float` size_left, :ref:`float` size_top, :ref:`float` size_right, :ref:`float` size_bottom **)** | +-------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- .. _class_StyleBoxTexture_texture_changed: - **texture_changed** **(** **)** Member Variables ---------------- .. _class_StyleBoxTexture_axis_stretch_horizontal: - :ref:`AxisStretchMode` **axis_stretch_horizontal** .. _class_StyleBoxTexture_axis_stretch_vertical: - :ref:`AxisStretchMode` **axis_stretch_vertical** .. _class_StyleBoxTexture_draw_center: - :ref:`bool` **draw_center** .. _class_StyleBoxTexture_expand_margin_bottom: - :ref:`float` **expand_margin_bottom** .. _class_StyleBoxTexture_expand_margin_left: - :ref:`float` **expand_margin_left** .. _class_StyleBoxTexture_expand_margin_right: - :ref:`float` **expand_margin_right** .. _class_StyleBoxTexture_expand_margin_top: - :ref:`float` **expand_margin_top** .. _class_StyleBoxTexture_margin_bottom: - :ref:`float` **margin_bottom** .. _class_StyleBoxTexture_margin_left: - :ref:`float` **margin_left** .. _class_StyleBoxTexture_margin_right: - :ref:`float` **margin_right** .. _class_StyleBoxTexture_margin_top: - :ref:`float` **margin_top** .. _class_StyleBoxTexture_modulate_color: - :ref:`Color` **modulate_color** .. _class_StyleBoxTexture_normal_map: - :ref:`Resource` **normal_map** .. _class_StyleBoxTexture_region_rect: - :ref:`Rect2` **region_rect** .. _class_StyleBoxTexture_texture: - :ref:`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` size **)** .. _class_StyleBoxTexture_set_expand_margin_individual: - void **set_expand_margin_individual** **(** :ref:`float` size_left, :ref:`float` size_top, :ref:`float` size_right, :ref:`float` size_bottom **)**