예제 #1
0
파일: Kernel.cs 프로젝트: vogon101/BasicOS
        protected override void BeforeRun()
        {
            //This function is called before COSMOS starts
            //Console.WriteLine("Cosmos booted sucessfully, now starting Kernel");
            display = new BufferedDisplayDriver();
            PrintDebug("After display create");
            display.init();
            PrintDebug("After display init");

            mouse = new MouseDriver(display.getHeight(), display.getWidth());
            mr = new MouseRenderer(mouse, display, 2);
        }
예제 #2
0
        public WindowManager(DisplayDriver dd, Desktop desk, FontRenderer fr)
        {
            display = dd;
            desktop = desk;
            fontRenderer = fr;

            sX = 10;
            sY = 10;
            eX = display.getWidth() - 10;
            eY = display.getHeight() - 10;

            backGroundWindows = new Window[0];
        }
예제 #3
0
파일: Desktop.cs 프로젝트: vogon101/BasicOS
 public Desktop(DisplayDriver d)
 {
     display = d;
 }
예제 #4
0
 public MouseRenderer(MouseDriver m, DisplayDriver d, int c=2)
 {
     mouse = m;
     display = d;
     color = c;
 }
예제 #5
0
 public MouseRenderer(MouseDriver m, DisplayDriver d, int c)
 {
     mouse   = m;
     display = d;
     color   = c;
 }
예제 #6
0
 public FontRenderer(DisplayDriver dd, Font f, int sc = 2)
 {
     driver = dd;
     font = f;
     stdColor = sc;
 }