/// <summary> /// Makes a new instance of <see cref="VirtualWindow"/> class. /// </summary> /// <param name="parent">Parent window.</param> internal VirtualWindow(VirtualWindow parent) { Parent = parent; PropertyChanged += propChanged; outboundActions = new Queue <Action <IPlatformWindow> >(); inboundActions = new Queue <Action>(); }
/// <summary> /// Gets a new game window. /// </summary> /// <returns>A window.</returns> public VirtualWindow GetNewWindow() { VirtualWindow virt = new VirtualWindow(MainWindow); CreateNewWindow(virt); return(virt); }
/// <summary> /// Makes a new game window. /// </summary> public void CreateNewWindow(VirtualWindow vir) { // - Gets the real window for this reference IPlatformWindow win = Host.Platform.GetWindow(Handlers[MainWindow]); Handlers.Add(vir, win); vir.RealWindow = win; }
/// <summary> /// Initialize this module. /// </summary> public override void Initialize() { base.Initialize(); // - Make main window MainWindow = new VirtualWindow(); // - Gets the real window for this reference IPlatformWindow win = Host.Platform.GetWindow(); Handlers.Add(MainWindow, win); MainContext = win; MainWindow.RealWindow = win; // - Make the main window win.Make(); }
protected void CreateNewWindow(VirtualWindow vir) { }
/// <summary> /// /// </summary> /// <param name="vir"></param> /// <returns></returns> public IWindow GetHandler(VirtualWindow vir) { return(Handlers[vir]); }