/* AngelCode bitmap font parsing using C#
* http://www.cyotek.com/blog/angelcode-bitmap-font-parsing-using-csharp
*
* Copyright © 2012-2015 Cyotek Ltd.
*
* Licensed under the MIT License. See license.txt for the full text.
*/
using System.IO;
namespace Cyotek.Drawing.BitmapFont
{
///
/// Represents a texture page.
///
internal struct Page
{
#region Constructors
///
/// Creates a texture page using the specified ID and source file name.
///
/// The identifier.
/// Filename of the texture image.
public Page(int id, string fileName)
: this()
{
FileName = fileName;
Id = id;
}
#endregion
#region Properties
///
/// Gets or sets the filename of the source texture image.
///
///
/// The name of the file containing the source texture image.
///
public string FileName { get; set; }
///
/// Gets or sets the page identifier.
///
///
/// The page identifier.
///
public int Id { get; set; }
#endregion
#region Methods
///
/// Returns the fully qualified type name of this instance.
///
///
/// A containing a fully qualified type name.
///
///
public override string ToString()
{
return string.Format("{0} ({1})", Id, Path.GetFileName(FileName));
}
#endregion
}
}