Пример #1
0
        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
 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;
 }