From dad09c9e7c1ff68a157836b636f13f25d27e050a Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 2 Jul 2017 13:31:39 -0400 Subject: Render text onscreen --- ShiftOS.Frontend/Desktop/WindowManager.cs | 92 +++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 ShiftOS.Frontend/Desktop/WindowManager.cs (limited to 'ShiftOS.Frontend/Desktop') diff --git a/ShiftOS.Frontend/Desktop/WindowManager.cs b/ShiftOS.Frontend/Desktop/WindowManager.cs new file mode 100644 index 0000000..d17cd37 --- /dev/null +++ b/ShiftOS.Frontend/Desktop/WindowManager.cs @@ -0,0 +1,92 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ShiftOS.Engine; +using ShiftOS.Frontend.GraphicsSubsystem; + +namespace ShiftOS.Frontend.Desktop +{ + public class WindowManager : Engine.WindowManager + { + public override void Close(IShiftOSWindow win) + { + + } + + public override void InvokeAction(Action act) + { + act?.Invoke(); + } + + public override void Maximize(IWindowBorder border) + { + throw new NotImplementedException(); + } + + public override void Minimize(IWindowBorder border) + { + throw new NotImplementedException(); + } + + public override void SetTitle(IShiftOSWindow win, string title) + { + throw new NotImplementedException(); + } + + public override void SetupDialog(IShiftOSWindow win) + { + throw new NotImplementedException(); + } + + public override void SetupWindow(IShiftOSWindow win) + { + throw new NotImplementedException(); + } + } + + public class WindowBorder : GUI.Control, IWindowBorder + { + private string _text = "ShiftOS window"; + private GUI.Control _hostedwindow = null; + + public IShiftOSWindow ParentWindow + { + get + { + return (IShiftOSWindow)_hostedwindow; + } + + set + { + _hostedwindow = (GUI.Control)value; + } + } + + public string Text + { + get + { + return _text; + } + + set + { + _text = value; + } + } + + public void Close() + { + Visible = false; + UIManager.StopHandling(this); + } + + public override void MouseStateChanged() + { + //todo: close, minimize, maximize, drag, resize + + } + } +} -- cgit v1.2.3