public interface PSurface
Modifier and Type | Field and Description |
---|---|
static int |
MIN_WINDOW_HEIGHT |
static int |
MIN_WINDOW_WIDTH
Minimum dimensions for the window holding an applet.
|
Modifier and Type | Method and Description |
---|---|
Object |
getNative()
Get the native window object associated with this drawing surface.
|
void |
hideCursor() |
void |
initFrame(PApplet sketch) |
void |
initOffscreen(PApplet sketch) |
boolean |
isStopped() |
void |
pauseThread()
On the next trip through the animation thread, things should go sleepy-bye.
|
void |
placePresent(int stopColor) |
void |
placeWindow(int[] location,
int[] editorLocation) |
void |
resumeThread() |
void |
setAlwaysOnTop(boolean always)
Dumb name, but inherited from Frame and no better ideas.
|
void |
setCursor(int kind) |
void |
setCursor(PImage image,
int hotspotX,
int hotspotY) |
void |
setFrameRate(float fps) |
void |
setIcon(PImage icon) |
void |
setLocation(int x,
int y) |
void |
setResizable(boolean resizable)
Set true if we want to resize things (default is not resizable)
|
void |
setSize(int width,
int height) |
void |
setTitle(String title)
Set the window (and dock, or whatever necessary) title.
|
void |
setupExternalMessages() |
void |
setVisible(boolean visible)
Show or hide the window.
|
void |
showCursor() |
void |
startThread()
Start the animation thread
|
boolean |
stopThread()
Stop the animation thread (set it null)
|
static final int MIN_WINDOW_WIDTH
static final int MIN_WINDOW_HEIGHT
void initOffscreen(PApplet sketch)
void initFrame(PApplet sketch)
Object getNative()
void setTitle(String title)
void setVisible(boolean visible)
void setResizable(boolean resizable)
void setAlwaysOnTop(boolean always)
void setIcon(PImage icon)
void placeWindow(int[] location, int[] editorLocation)
void placePresent(int stopColor)
void setupExternalMessages()
void setLocation(int x, int y)
void setSize(int width, int height)
void setFrameRate(float fps)
void setCursor(int kind)
void setCursor(PImage image, int hotspotX, int hotspotY)
void showCursor()
void hideCursor()
void startThread()
void pauseThread()
void resumeThread()
boolean stopThread()
boolean isStopped()