Texture Based 3x3 scale style.
    public class StyleBoxTexture : StyleBox

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.

Inheritance Chain

Constructors

    public StyleBoxTexture()

Signals

    "texture_changed" ()

Properties

    public AxisStretchMode AxisStretchHorizontal { get; set; }

    public AxisStretchMode AxisStretchVertical { get; set; }

    public bool DrawCenter { get; set; }

    public float ExpandMarginBottom { get; set; }

Expands the bottom margin of this style box when drawing, causing it be drawn larger than requested.

    public float ExpandMarginLeft { get; set; }

Expands the left margin of this style box when drawing, causing it be drawn larger than requested.

    public float ExpandMarginRight { get; set; }

Expands the right margin of this style box when drawing, causing it be drawn larger than requested.

    public float ExpandMarginTop { get; set; }

Expands the top margin of this style box when drawing, causing it be drawn larger than requested.

    public float MarginBottom { get; set; }

Increases the bottom margin of the 3x3 texture box.

A higher value means more of the source texture is considered to be part of the bottom border of the 3x3 box.

This is also the value used as fallback for StyleBox.ContentMarginBottom if it is negative.

    public float MarginLeft { get; set; }

Increases the left margin of the 3x3 texture box.

A higher value means more of the source texture is considered to be part of the left border of the 3x3 box.

This is also the value used as fallback for StyleBox.ContentMarginLeft if it is negative.

    public float MarginRight { get; set; }

Increases the right margin of the 3x3 texture box.

A higher value means more of the source texture is considered to be part of the right border of the 3x3 box.

This is also the value used as fallback for StyleBox.ContentMarginRight if it is negative.

    public float MarginTop { get; set; }

Increases the top margin of the 3x3 texture box.

A higher value means more of the source texture is considered to be part of the top border of the 3x3 box.

This is also the value used as fallback for StyleBox.ContentMarginTop if it is negative.

    public Color ModulateColor { get; set; }

Modulates the color of the texture when this style box is drawn.

    public Texture NormalMap { get; set; }

The normal map to use when drawing this style box.

    public Rect2 RegionRect { get; set; }

Species a sub region of the texture to use.

This is equivalent to first wrapping the texture in an AtlasTexture with the same region.

    public Texture Texture { get; set; }

The texture to use when drawing this style box.

Methods

    public float GetExpandMarginSize(Margin margin)

    public AxisStretchMode GetHAxisStretchMode()

Getter for AxisStretchHorizontal

    public float GetMarginSize(Margin margin)

    public Color GetModulate()

Getter for ModulateColor

    public Texture GetNormalMap()

Getter for NormalMap

    public Rect2 GetRegionRect()

Getter for RegionRect

    public Texture GetTexture()

Getter for Texture

    public AxisStretchMode GetVAxisStretchMode()

Getter for AxisStretchVertical

    public bool IsDrawCenterEnabled()

Getter for DrawCenter

    public void SetDrawCenter(bool enable)

Setter for DrawCenter

    public void SetExpandMarginAll(float size)

    public void SetExpandMarginIndividual(float sizeLeft, float sizeTop, float sizeRight, float sizeBottom)

    public void SetExpandMarginSize(Margin margin, float size)

    public void SetHAxisStretchMode(AxisStretchMode mode)

Setter for AxisStretchHorizontal

    public void SetMarginSize(Margin margin, float size)

    public void SetModulate(Color color)

Setter for ModulateColor

    public void SetNormalMap(Texture normalMap)

Setter for NormalMap

    public void SetRegionRect(Rect2 region)

Setter for RegionRect

    public void SetTexture(Texture texture)

Setter for Texture

    public void SetVAxisStretchMode(AxisStretchMode mode)

Setter for AxisStretchVertical

Inner Types

AxisStretchMode

Name Value Description
Stretch 0  
Tile 1  
TileFit 2  
Tags: