Code cleanup

This commit is contained in:
Stone_Red
2026-06-16 20:14:15 +02:00
parent f049a43dfd
commit 5265f2b574
7 changed files with 21 additions and 18 deletions
-2
View File
@@ -1,7 +1,5 @@
using RemSox.UI.GUI.Rendering;
using System.Drawing;
namespace RemSox.UI.GUI.UIEelements.Controls;
public class Panel() : Control("Panel")
-2
View File
@@ -1,7 +1,5 @@
using RemSox.UI.GUI.Rendering;
using System.Drawing;
namespace RemSox.UI.GUI.UIEelements.Shapes;
public class Circle() : Shape("Circle")
-2
View File
@@ -1,7 +1,5 @@
using RemSox.UI.GUI.Rendering;
using System.Drawing;
namespace RemSox.UI.GUI.UIEelements.Shapes;
public class Pixel() : Shape("Pixel")
+4 -1
View File
@@ -23,5 +23,8 @@ public abstract class UIElement(string type) : ChangedPropertiesTracker
public abstract IEnumerable<RenderCommand> ToPrimitives(int windowId);
/// <summary> Builds a stable primitive ID from element ID and sub-index. </summary>
protected int PrimitiveId(int subIndex) => (Id << PrimitiveIdShift) | subIndex;
protected int PrimitiveId(int subIndex)
{
return (Id << PrimitiveIdShift) | subIndex;
}
}