mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-08 07:46:29 +02:00
Reorganize project structure
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using RemSox.Shared.UI.GUI.Rendering;
|
||||
|
||||
using System.Drawing;
|
||||
|
||||
namespace RemSox.Kernel.UI.GUI.UIEelements.Shapes;
|
||||
|
||||
public class Line() : Shape("Line")
|
||||
{
|
||||
public Point EndPosition
|
||||
{
|
||||
get;
|
||||
set => SetProperty(nameof(EndPosition), ref field, value);
|
||||
}
|
||||
|
||||
public override IEnumerable<RenderCommand> ToPrimitives(int windowId)
|
||||
{
|
||||
yield return new RenderCommand
|
||||
{
|
||||
WindowId = windowId,
|
||||
ElementId = PrimitiveId(0),
|
||||
Type = RenderCommandType.DrawLine,
|
||||
Position = Position,
|
||||
Properties = new Dictionary<string, object?>
|
||||
{
|
||||
["Color"] = Color,
|
||||
["EndPosition"] = EndPosition,
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user