using System;
using System.Text;
namespace DevComponents.DotNetBar.Presentation
{
///
/// Describes the shape location.
///
internal class Location
{
public Location() { }
public Location(int x, int y)
{
this.X = x;
this.Y = y;
}
public Location(int x, int y, eRelativeLocation relativeX, eRelativeLocation relativeY)
{
this.X = x;
this.Y = y;
this.RelativeX = relativeX;
this.RelativeY = relativeY;
}
///
/// Gets or sets the X location of the shape relative to it's parent.
///
public int X = 0;
///
/// Gets or sets the Y location of the shape relative to it's parent.
///
public int Y = 0;
///
/// Gets or sets the relative X position.
///
public eRelativeLocation RelativeX = eRelativeLocation.NotSet;
///
/// Gets or sets the relative Y position.
///
public eRelativeLocation RelativeY = eRelativeLocation.NotSet;
}
///
/// Describes the relative location.
///
internal enum eRelativeLocation
{
NotSet,
Top,
Left,
Right,
Bottom
}
}