|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fullscreen.FullScreenBase
public abstract class FullScreenBase
The base class FullScreen
and SoftFullScreen
inherit from.
It defines some common methods that you might wanna dig through (like setShortcutsEnabled(boolean)
)
Nested Class Summary | |
---|---|
class |
FullScreenBase.DelayedAction
A sweet little helper. |
Constructor Summary | |
---|---|
FullScreenBase(PApplet dad)
Create a fullscreen thingie |
Method Summary | |
---|---|
void |
enter()
Enters fullscreen mode |
PApplet |
getSketch()
Returns the sketch |
abstract boolean |
isFullScreen()
Are we currently in fullscreen mode? |
boolean |
isGL()
Is opengl somehow being used in this sketch? |
void |
keyEvent(KeyEvent e)
Implement keyEvent to listen to processing's key events |
void |
leave()
Leaves fullscreen mode |
void |
requestFocus()
Requests focus for the sketch.. |
abstract void |
setFullScreen(boolean state)
Enters/Leaves fullscreen mode |
abstract void |
setResolution(int xRes,
int yRes)
Set resolution |
void |
setShortcutsEnabled(boolean state)
Allow shortcuts? |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FullScreenBase(PApplet dad)
Method Detail |
---|
public abstract void setFullScreen(boolean state)
public abstract boolean isFullScreen()
public abstract void setResolution(int xRes, int yRes)
xRes
- x resolutionyRes
- y resolutionpublic void enter()
public void leave()
public void setShortcutsEnabled(boolean state)
state
- yes if true, no if false.public void keyEvent(KeyEvent e)
e
- public void requestFocus()
public boolean isGL()
public PApplet getSketch()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |