From acea7b2e728787a0d83bbf83c8c1f042d2c32e7e Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Mon, 3 Jun 2024 10:15:45 +0800 Subject: + plugins project --- .../source/MonoGame.Extended.Gui/Window.cs | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Plugins/MonoGame.Extended/source/MonoGame.Extended.Gui/Window.cs (limited to 'Plugins/MonoGame.Extended/source/MonoGame.Extended.Gui/Window.cs') diff --git a/Plugins/MonoGame.Extended/source/MonoGame.Extended.Gui/Window.cs b/Plugins/MonoGame.Extended/source/MonoGame.Extended.Gui/Window.cs new file mode 100644 index 0000000..12f4dcf --- /dev/null +++ b/Plugins/MonoGame.Extended/source/MonoGame.Extended.Gui/Window.cs @@ -0,0 +1,42 @@ +using System; +using Microsoft.Xna.Framework; +using MonoGame.Extended.Gui.Controls; + +namespace MonoGame.Extended.Gui +{ + //public class Window : Element + //{ + // public Window(Screen parent) + // { + // Parent = parent; + // } + + // public ControlCollection Controls { get; } = new ControlCollection(); + + // public void Show() + // { + // Parent.Windows.Add(this); + // } + + // public void Hide() + // { + // Parent.Windows.Remove(this); + // } + + // public override void Draw(IGuiContext context, IGuiRenderer renderer, float deltaSeconds) + // { + // renderer.FillRectangle(BoundingRectangle, Color.Magenta); + // } + + // public Size2 GetDesiredSize(IGuiContext context, Size2 availableSize) + // { + // return new Size2(Width, Height); + // } + + // public void Layout(IGuiContext context, RectangleF rectangle) + // { + // foreach (var control in Controls) + // LayoutHelper.PlaceControl(context, control, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height); + // } + //} +} \ No newline at end of file -- cgit v1.1-26-g67d0