예제 #1
0
 /// <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>();
 }
예제 #2
0
        /// <summary>
        /// Gets a new game window.
        /// </summary>
        /// <returns>A window.</returns>
        public VirtualWindow GetNewWindow()
        {
            VirtualWindow virt = new VirtualWindow(MainWindow);

            CreateNewWindow(virt);
            return(virt);
        }
예제 #3
0
        /// <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;
        }
예제 #4
0
        /// <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();
        }
예제 #5
0
 protected void CreateNewWindow(VirtualWindow vir)
 {
 }
예제 #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="vir"></param>
 /// <returns></returns>
 public IWindow GetHandler(VirtualWindow vir)
 {
     return(Handlers[vir]);
 }