fullscreen
Class SoftFullScreen

java.lang.Object
  extended by fullscreen.FullScreenBase
      extended by fullscreen.SoftFullScreen

public class SoftFullScreen
extends FullScreenBase

Creates a new softfullscreen object.
This will use undecorated frames to bring your sketch to the screen.
The advantages are:

The drawbacks are:


Nested Class Summary
 
Nested classes/interfaces inherited from class fullscreen.FullScreenBase
FullScreenBase.DelayedAction
 
Constructor Summary
SoftFullScreen(PApplet dad)
          Creates a new softfullscreen object.
SoftFullScreen(PApplet dad, int screenNr)
          Creates a new softfullscreen object on a specific screen (numbering starts at 0)
 
Method Summary
 boolean available()
          FullScreen is only available is applications, not in applets!
 boolean isFullScreen()
          Are we in FullScreen mode?
 void minimize()
          Allow for minimizing the frame
 void restore()
          Restores the frame after it has been minimized.
 void setFullScreen(boolean fullScreen)
          Enters/Leaves fullScreen mode.
 void setResolution(int xRes, int yRes)
          Setting resolution is not possible with the SoftFullScreen object.
 
Methods inherited from class fullscreen.FullScreenBase
enter, getSketch, isGL, keyEvent, leave, requestFocus, setShortcutsEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoftFullScreen

public SoftFullScreen(PApplet dad)
Creates a new softfullscreen object.

Parameters:
dad - The parent sketch (aka "this")

SoftFullScreen

public SoftFullScreen(PApplet dad,
                      int screenNr)
Creates a new softfullscreen object on a specific screen (numbering starts at 0)

Parameters:
dad - The parent sketch (usually "this")
screenNr - The screen number.
Method Detail

isFullScreen

public boolean isFullScreen()
Are we in FullScreen mode?

Specified by:
isFullScreen in class FullScreenBase
Returns:
true if so, yes if not

minimize

public void minimize()
Allow for minimizing the frame


restore

public void restore()
Restores the frame after it has been minimized. If it wasn't minimized this doesn't do much!


available

public boolean available()
FullScreen is only available is applications, not in applets!

Returns:
true if fullScreen mode is available

setFullScreen

public void setFullScreen(boolean fullScreen)
Enters/Leaves fullScreen mode.

Specified by:
setFullScreen in class FullScreenBase
Parameters:
fullScreen - true or false

setResolution

public void setResolution(int xRes,
                          int yRes)
Setting resolution is not possible with the SoftFullScreen object.

Specified by:
setResolution in class FullScreenBase
Parameters:
xRes - x resolution
yRes - y resolution


processing fullscreen api library by hansi, 2009.