DotNet 4.8.1 build of DotNetBar

This commit is contained in:
2025-02-07 10:35:23 -05:00
parent 33439b63a0
commit 6b0a5d60f4
2609 changed files with 989814 additions and 7 deletions

View File

@@ -0,0 +1,54 @@
using System;
using System.Text;
namespace DevComponents.DotNetBar.Presentation
{
/// <summary>
/// Describes the shape location.
/// </summary>
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;
}
/// <summary>
/// Gets or sets the X location of the shape relative to it's parent.
/// </summary>
public int X = 0;
/// <summary>
/// Gets or sets the Y location of the shape relative to it's parent.
/// </summary>
public int Y = 0;
/// <summary>
/// Gets or sets the relative X position.
/// </summary>
public eRelativeLocation RelativeX = eRelativeLocation.NotSet;
/// <summary>
/// Gets or sets the relative Y position.
/// </summary>
public eRelativeLocation RelativeY = eRelativeLocation.NotSet;
}
/// <summary>
/// Describes the relative location.
/// </summary>
internal enum eRelativeLocation
{
NotSet,
Top,
Left,
Right,
Bottom
}
}