/* 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.
*/
namespace Cyotek.Drawing.BitmapFont
{
///
/// Represents padding or margin information associated with an element.
///
internal struct Padding
{
#region Constructors
///
/// Initializes a new instance of the stricture using a separate padding size for each edge.
///
/// The padding size, in pixels, for the left edge.
/// The padding size, in pixels, for the top edge.
/// The padding size, in pixels, for the right edge.
/// The padding size, in pixels, for the bottom edge.
public Padding(int left, int top, int right, int bottom)
: this()
{
Top = top;
Left = left;
Right = right;
Bottom = bottom;
}
#endregion
#region Properties
///
/// Gets or sets the padding value for the bottom edge.
///
///
/// The padding, in pixels, for the bottom edge.
///
public int Bottom { get; set; }
///
/// Gets or sets the padding value for the left edge.
///
///
/// The padding, in pixels, for the left edge.
///
public int Left { get; set; }
///
/// Gets or sets the padding value for the right edge.
///
///
/// The padding, in pixels, for the right edge.
///
public int Right { get; set; }
///
/// Gets or sets the padding value for the top edge.
///
///
/// The padding, in pixels, for the top edge.
///
public int Top { 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}, {2}, {3}", Left, Top, Right, Bottom);
}
#endregion
}
}