Exemplo n.º 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>();
 }
Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 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();
        }
Exemplo n.º 5
0
 protected void CreateNewWindow(VirtualWindow vir)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="vir"></param>
 /// <returns></returns>
 public IWindow GetHandler(VirtualWindow vir)
 {
     return(Handlers[vir]);
 }