.. 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:`float` | :ref:`get_expand_margin_size` **(** :ref:`int` margin **)** const | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_h_axis_stretch_mode` **(** **)** const | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_margin_size` **(** :ref:`int` margin **)** const | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_modulate` **(** **)** const | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Resource` | :ref:`get_normal_map` **(** **)** const | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2` | :ref:`get_region_rect` **(** **)** const | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Resource` | :ref:`get_texture` **(** **)** const | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_v_axis_stretch_mode` **(** **)** const | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_draw_center_enabled` **(** **)** const | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_draw_center` **(** :ref:`bool` enable **)** | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | 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 **)** | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_expand_margin_size` **(** :ref:`int` margin, :ref:`float` size **)** | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_h_axis_stretch_mode` **(** :ref:`int` mode **)** | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_margin_size` **(** :ref:`int` margin, :ref:`float` size **)** | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_modulate` **(** :ref:`Color` color **)** | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_normal_map` **(** :ref:`Resource` normal_map **)** | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_region_rect` **(** :ref:`Rect2` region **)** | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_texture` **(** :ref:`Resource` texture **)** | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_v_axis_stretch_mode` **(** :ref:`int` mode **)** | +----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Signals ------- - **texture_changed** **(** **)** Member Variables ---------------- - :ref:`int` **axis_stretch_horizontal** - :ref:`int` **axis_stretch_vertical** - :ref:`bool` **draw_center** - :ref:`float` **expand_margin_bottom** - :ref:`float` **expand_margin_left** - :ref:`float` **expand_margin_right** - :ref:`float` **expand_margin_top** - :ref:`float` **margin_bottom** - :ref:`float` **margin_left** - :ref:`float` **margin_right** - :ref:`float` **margin_top** - :ref:`Color` **modulate_color** - :ref:`Resource` **normal_map** - :ref:`Rect2` **region_rect** - :ref:`Resource` **texture** Numeric Constants ----------------- - **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_get_expand_margin_size: - :ref:`float` **get_expand_margin_size** **(** :ref:`int` margin **)** const .. _class_StyleBoxTexture_get_h_axis_stretch_mode: - :ref:`int` **get_h_axis_stretch_mode** **(** **)** const .. _class_StyleBoxTexture_get_margin_size: - :ref:`float` **get_margin_size** **(** :ref:`int` margin **)** const .. _class_StyleBoxTexture_get_modulate: - :ref:`Color` **get_modulate** **(** **)** const .. _class_StyleBoxTexture_get_normal_map: - :ref:`Resource` **get_normal_map** **(** **)** const .. _class_StyleBoxTexture_get_region_rect: - :ref:`Rect2` **get_region_rect** **(** **)** const .. _class_StyleBoxTexture_get_texture: - :ref:`Resource` **get_texture** **(** **)** const .. _class_StyleBoxTexture_get_v_axis_stretch_mode: - :ref:`int` **get_v_axis_stretch_mode** **(** **)** const .. _class_StyleBoxTexture_is_draw_center_enabled: - :ref:`bool` **is_draw_center_enabled** **(** **)** const .. _class_StyleBoxTexture_set_draw_center: - void **set_draw_center** **(** :ref:`bool` enable **)** .. _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 **)** .. _class_StyleBoxTexture_set_expand_margin_size: - void **set_expand_margin_size** **(** :ref:`int` margin, :ref:`float` size **)** .. _class_StyleBoxTexture_set_h_axis_stretch_mode: - void **set_h_axis_stretch_mode** **(** :ref:`int` mode **)** .. _class_StyleBoxTexture_set_margin_size: - void **set_margin_size** **(** :ref:`int` margin, :ref:`float` size **)** .. _class_StyleBoxTexture_set_modulate: - void **set_modulate** **(** :ref:`Color` color **)** .. _class_StyleBoxTexture_set_normal_map: - void **set_normal_map** **(** :ref:`Resource` normal_map **)** .. _class_StyleBoxTexture_set_region_rect: - void **set_region_rect** **(** :ref:`Rect2` region **)** .. _class_StyleBoxTexture_set_texture: - void **set_texture** **(** :ref:`Resource` texture **)** .. _class_StyleBoxTexture_set_v_axis_stretch_mode: - void **set_v_axis_stretch_mode** **(** :ref:`int` mode **)**