using RemSox.UI.GUI.Rendering; using System.Drawing; namespace RemSox.UI.GUI.UIEelements.Controls; public class Panel() : Control("Panel") { public override IEnumerable ToPrimitives(int windowId) { yield return new RenderCommand { WindowId = windowId, ElementId = PrimitiveId(0), Type = RenderCommandType.DrawFilledRect, Position = Position, Properties = new Dictionary { ["Color"] = BackgroundColor, ["Size"] = Size, } }; } }