Esempio n. 1
0
 protected IWindowImp GetWindowImp()
 {
     if (this.implementation == null)
     {
         this.implementation = WindowSystemFactory.Instance().GetWindowImp();
     }
     return this.implementation;
 }
        public override void DrawContents()
        {
            IWindowImp imp = this.GetWindowImpl();

            if (imp != null)
            {
                imp.DeviceBitmap(bitmapName, new Coord(0.0), new Coord(0.0));
            }
        }
Esempio n. 3
0
        public Window(Implementors implementors)
        {
            switch (implementors)
            {
            case Implementors.XWindow:
                windowImp = new XWindowImp();
                break;

            case Implementors.PMWindow:
                windowImp = new PMWindowImp();
                break;
            }
        }
Esempio n. 4
0
        private View contents; // the window's contents

        public Window(View contents)
        {
            this.imp      = null;
            this.contents = contents;
        }
Esempio n. 5
0
        public virtual void DrawRect(Point point1, Point point2)
        {
            IWindowImp imp = this.GetWindowImpl();

            imp.DeviceRect(new Coord(point1.X), new Coord(point1.Y), new Coord(point2.X), new Coord(point2.Y));
        }