blob: 12f4dcf3c7177436cfb6fb448899df4ae9404fdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
using System;
using Microsoft.Xna.Framework;
using MonoGame.Extended.Gui.Controls;
namespace MonoGame.Extended.Gui
{
//public class Window : Element<Screen>
//{
// 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);
// }
//}
}
|