// Copyright (c) 2014 Robert Rouhani and other contributors (see CONTRIBUTORS file). // Licensed under the MIT License - https://raw.github.com/Robmaister/SharpNav/master/LICENSE using System.Runtime.InteropServices; namespace SharpNav { /// /// References a within a . /// [StructLayout(LayoutKind.Sequential)] public struct SpanReference { private int x; private int y; private int index; /// /// Initializes a new instance of the struct. /// /// The X coordinate of the the is contained in. /// The Y coordinate of the the is contained in. /// The index of the within the specified . public SpanReference(int x, int y, int i) { this.x = x; this.y = y; this.index = i; } /// /// Gets the X coordinate of the that contains the referenced . /// public int X { get { return x; } } /// /// Gets the Y coordinate of the that contains the referenced . /// public int Y { get { return y; } } /// /// Gets the index of the within the it is contained in. /// public int Index { get { return index; } } } }