Revision [273]

This is an old revision of ioSetFullScreen made by JohnMcIntosh on 2008-10-19 06:05:06.

 

sqInt ioSetFullScreen(sqInt fullScreen))


Parms:
fullScreen 1 if full screen, 0 if not full screen.
return: NONE, fake return of zero
From: Interpreter
Why:
To set the squeak display to full screen mode.
Responsibility:

Normally Squeak runs in an operating system window, but what if you throw away the operating system window ornaments, the menu bar, status areas, desktop. Dedicate the entire screen to squeak? Well that is full Screen mode.

Also see SqueakNOS http://sourceforge.net/projects/squeaknos/

Typically this is a piece of ugly code, even more so if you run Squeak in a Browser, and don't forget what to do if you have more than one
screen attached to that hardware.

MacIntosh
os-9/OSXCarbon
There are many ways to do this, most are painful and usually break betwen operating system versions. Even more so if Squeak running in the browser.

Currently we find the dominate screen, then we hide the menu bar, remember the old screen size, then move and resize the window to cover the entire screen. This is although primitive works quite well. There was code to use BeginFullScreen but Apple broke that in some version of os-x, there is also code to use CGDisplayCapture but that was not successfully implemented.

When we revert back we restore the menu bar and resize, re-place the window.

For squeak running as a sub-process in browser we must do a nasty bit of work, first we make squeak the forground process, then show the window, menu bar etc, then hide it and move and resize the window. We also then direct drawing and UI events to the window,versus to the browser. When later we revert back we need to hide the window, put the browser window as the foreground process, redirect UI and drawing to the browser.


Cocoa:
TBD

iPhone
This is not required on the iPhone

Unix
Use X11 to resize and raise the window, to revert back, a similar process

Windows
make the window full screen, or not using attributes on the stWindow. For squeak as a browser plugin it has to take the window out of the browser and make it the foreground window on the top. To revert back, a similar process
BUGS

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki