.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_StyleBoxTexture: StyleBoxTexture =============== **Inherits:** :ref:`StyleBox` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Texture Based 3x3 scale style. Member Functions ---------------- +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_draw_center` **(** **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_expand_margin_size` **(** :ref:`int` margin **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_margin_size` **(** :ref:`int` margin **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2` | :ref:`get_region_rect` **(** **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Texture` | :ref:`get_texture` **(** **)** const | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_draw_center` **(** :ref:`bool` enable **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_expand_margin_size` **(** :ref:`int` margin, :ref:`float` size **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_margin_size` **(** :ref:`int` margin, :ref:`float` size **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_region_rect` **(** :ref:`Rect2` region **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_texture` **(** :ref:`Texture` texture **)** | +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- - **texture_changed** **(** **)** 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_get_draw_center: - :ref:`bool` **get_draw_center** **(** **)** const .. _class_StyleBoxTexture_get_expand_margin_size: - :ref:`float` **get_expand_margin_size** **(** :ref:`int` margin **)** const .. _class_StyleBoxTexture_get_margin_size: - :ref:`float` **get_margin_size** **(** :ref:`int` margin **)** const .. _class_StyleBoxTexture_get_region_rect: - :ref:`Rect2` **get_region_rect** **(** **)** const .. _class_StyleBoxTexture_get_texture: - :ref:`Texture` **get_texture** **(** **)** const .. _class_StyleBoxTexture_set_draw_center: - void **set_draw_center** **(** :ref:`bool` enable **)** .. _class_StyleBoxTexture_set_expand_margin_size: - void **set_expand_margin_size** **(** :ref:`int` margin, :ref:`float` size **)** .. _class_StyleBoxTexture_set_margin_size: - void **set_margin_size** **(** :ref:`int` margin, :ref:`float` size **)** .. _class_StyleBoxTexture_set_region_rect: - void **set_region_rect** **(** :ref:`Rect2` region **)** .. _class_StyleBoxTexture_set_texture: - void **set_texture** **(** :ref:`Texture` texture **)**