示例#1
0
        //TODO: Protect the display
        public Window(WindowManager wm)
        {
            startX = wm.sX;
            startY = wm.sY;
            endX = wm.eX;
            endY = wm.eY;

            windowManager = wm;
            renderer = new WindowRenderer(this, wm);
        }
示例#2
0
        protected override void Run()
        {
            Font f = new BasicFont();
            FontRenderer fr = new FontRenderer(display, f);
            Desktop desktop = null;
            WindowManager windowManager = new WindowManager(display, desktop, fr);
            //windowManager.addWindow(new HelloWorldProgram(windowManager));
            int status = 0;
            while (true) {
                PrintDebug("Before Step");
                status = windowManager.step();
                PrintDebug("After Step");
                mr.renderMouse();
                display.step();

            }
        }
示例#3
0
 public WindowRenderer(Window w, WindowManager wm, int bg = 0)
 {
     window = w;
     windowManager = wm;
     bgColour = bg;
 }
示例#4
0
 public HelloWorldProgram(WindowManager wm)
     : base(wm)
 {
 }