mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-04-05 11:19:39 -04:00
Breaking change to update naming across Raylib-cs to make it more consistent with C# naming conventions. --------- Co-authored-by: MrScautHD <65916181+MrScautHD@users.noreply.github.com>
63 lines
1.3 KiB
C#
63 lines
1.3 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace Raylib_cs
|
|
{
|
|
/// <summary>
|
|
/// N-patch layout
|
|
/// </summary>
|
|
public enum NPatchLayout
|
|
{
|
|
/// <summary>
|
|
/// Npatch defined by 3x3 tiles
|
|
/// </summary>
|
|
NPATCH_NINE_PATCH = 0,
|
|
|
|
/// <summary>
|
|
/// Npatch defined by 1x3 tiles
|
|
/// </summary>
|
|
NPATCH_THREE_PATCH_VERTICAL,
|
|
|
|
/// <summary>
|
|
/// Npatch defined by 3x1 tiles
|
|
/// </summary>
|
|
NPATCH_THREE_PATCH_HORIZONTAL
|
|
}
|
|
|
|
/// <summary>
|
|
/// N-Patch layout info
|
|
/// </summary>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct NPatchInfo
|
|
{
|
|
/// <summary>
|
|
/// Texture source rectangle
|
|
/// </summary>
|
|
public Rectangle Source;
|
|
|
|
/// <summary>
|
|
/// Left border offset
|
|
/// </summary>
|
|
public int Left;
|
|
|
|
/// <summary>
|
|
/// Top border offset
|
|
/// </summary>
|
|
public int Top;
|
|
|
|
/// <summary>
|
|
/// Right border offset
|
|
/// </summary>
|
|
public int Right;
|
|
|
|
/// <summary>
|
|
/// Bottom border offset
|
|
/// </summary>
|
|
public int Bottom;
|
|
|
|
/// <summary>
|
|
/// Layout of the n-patch: 3x3, 1x3 or 3x1
|
|
/// </summary>
|
|
public NPatchLayout Layout;
|
|
}
|
|
}
|