2019-01-14 07:26:46 +00:00
|
|
|
|
using RecrownedAthenaeum.Pipeline.TextureAtlas;
|
|
|
|
|
|
2019-01-15 23:33:55 +00:00
|
|
|
|
namespace RecrownedAthenaeum.Pipeline
|
2018-12-05 01:19:31 +00:00
|
|
|
|
{
|
2019-01-14 07:26:46 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a data structure for 9patches.
|
|
|
|
|
/// </summary>
|
2018-12-05 08:28:09 +00:00
|
|
|
|
public class NinePatchData
|
2018-12-05 01:19:31 +00:00
|
|
|
|
{
|
2019-01-14 07:26:46 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Name of texture associated with patch. May be null in the case of being apart of a <see cref="TextureAtlasData"/>
|
|
|
|
|
/// </summary>
|
2018-12-07 23:58:59 +00:00
|
|
|
|
public string textureName;
|
|
|
|
|
|
2019-01-14 07:26:46 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// the boundaries of the patch.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int left, right, bottom, top;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Constructs patch.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="textureName">Name of the texture. May be null.</param>
|
|
|
|
|
/// <param name="left">Left bound.</param>
|
|
|
|
|
/// <param name="right">Right bound.</param>
|
|
|
|
|
/// <param name="bottom">Bottom bound.</param>
|
|
|
|
|
/// <param name="Top">Top bound.</param>
|
|
|
|
|
public NinePatchData(string textureName, int left, int right, int bottom, int Top)
|
2018-12-07 23:58:59 +00:00
|
|
|
|
{
|
|
|
|
|
this.textureName = textureName;
|
2018-12-29 06:29:31 +00:00
|
|
|
|
this.left = left;
|
|
|
|
|
this.right = right;
|
2019-01-14 07:26:46 +00:00
|
|
|
|
this.bottom = bottom;
|
|
|
|
|
this.top = Top;
|
2018-12-07 23:58:59 +00:00
|
|
|
|
}
|
2018-12-05 01:19:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|