using System.Runtime.InteropServices; namespace Raylib_cs; /// /// N-patch layout /// public enum NPatchLayout { /// /// Npatch defined by 3x3 tiles /// NinePatch = 0, /// /// Npatch defined by 1x3 tiles /// ThreePatchVertical, /// /// Npatch defined by 3x1 tiles /// ThreePatchHorizontal } /// /// N-Patch layout info /// [StructLayout(LayoutKind.Sequential)] public partial struct NPatchInfo { /// /// Texture source rectangle /// public Rectangle Source; /// /// Left border offset /// public int Left; /// /// Top border offset /// public int Top; /// /// Right border offset /// public int Right; /// /// Bottom border offset /// public int Bottom; /// /// Layout of the n-patch: 3x3, 1x3 or 3x1 /// public NPatchLayout Layout; }