getWidth() 공개 메소드

public getWidth ( ) : int
리턴 int
예제 #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];
        }