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; }

    public float ExpandMarginLeft { get; set; }

    public float ExpandMarginRight { get; set; }

    public float ExpandMarginTop { get; set; }

    public float MarginBottom { get; set; }

    public float MarginLeft { get; set; }

    public float MarginRight { get; set; }

    public float MarginTop { get; set; }

    public Color ModulateColor { get; set; }

    public Resource NormalMap { get; set; }

    public Rect2 RegionRect { get; set; }

    public Resource Texture { get; set; }

Methods

    public float GetExpandMarginSize(Margin margin)

    public AxisStretchMode GetHAxisStretchMode()

Getter for AxisStretchHorizontal

    public float GetMarginSize(Margin margin)

    public Color GetModulate()

Getter for ModulateColor

    public Resource GetNormalMap()

Getter for NormalMap

    public Rect2 GetRegionRect()

Getter for RegionRect

    public Resource 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(Resource normalMap)

Setter for NormalMap

    public void SetRegionRect(Rect2 region)

Setter for RegionRect

    public void SetTexture(Resource 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: