|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xwt.PixelBuffer org.xwt.Surface
A Surface, as described in the XWT Reference. Platform subclasses should include an inner class subclass of Surface to return from the Platform._createSurface() method Note that the members in the section 'state variables' are either in real-time (the actual size/position/state), or in Scheduler-time (the size/position/state at the time that the now-executing message was enqueued). This distinction is important.
Nested Class Summary | |
static class |
Surface.DoubleBufferedSurface
|
class |
Surface.SimpleMessage
|
Field Summary | |
static Vec |
allSurfaces
all instances of Surface which need to be refreshed by the Scheduler |
static boolean |
alt
|
static boolean |
button1
|
static boolean |
button2
|
static boolean |
button3
|
static boolean |
control
|
java.lang.String |
cursor
< The Box at the root of this surface |
boolean |
maximized
|
boolean |
minimized
|
int |
mousex
|
int |
mousey
|
Box |
root
|
static boolean |
shift
|
Constructor Summary | |
Surface(Box root)
|
Method Summary | |
abstract void |
_dispose()
|
protected abstract void |
_setMaximized(boolean b)
|
protected abstract void |
_setMinimized(boolean b)
|
protected abstract void |
_setSize(int width,
int height)
|
protected void |
Click(int button)
|
protected void |
Close()
|
void |
dirty(int x,
int y,
int w,
int h)
|
void |
dispose(boolean quitIfAllSurfacesGone)
Indicates that the Surface is no longer needed |
protected void |
DoubleClick(int button)
|
protected void |
Focused(boolean b)
|
int |
getHeight()
|
int |
getWidth()
|
protected void |
KeyPressed(java.lang.String key)
sends a KeyPressed message; subclasses should not add the C- or A- prefixes, nor should they capitalize alphabet characters |
protected void |
KeyReleased(java.lang.String key)
sends a KeyReleased message; subclasses should not add the C- or A- prefixes, nor should they capitalize alphabet characters |
protected void |
Maximized(boolean b)
|
protected void |
Minimized(boolean b)
|
protected void |
Move(int newmousex,
int newmousey)
Notify XWT that the mouse has moved. |
protected void |
PosChange(int x,
int y)
|
protected void |
Press(int button)
|
static void |
Refresh()
|
protected void |
Release(int button)
|
void |
render()
runs the prerender() and render() pipelines in the root Box to regenerate the backbuffer, then blits it to the screen |
abstract void |
setIcon(Picture i)
|
abstract void |
setInvisible(boolean b)
|
void |
setLimits(int min_width,
int min_height,
int max_width,
int max_height)
|
abstract void |
setLocation()
|
void |
setMaximized(boolean b)
|
void |
setMinimized(boolean b)
|
protected void |
setSize(int width,
int height)
|
abstract void |
setTitleBarText(java.lang.String s)
|
protected void |
SizeChange(int width,
int height)
|
abstract void |
syncCursor()
|
abstract void |
toBack()
|
abstract void |
toFront()
|
Methods inherited from class org.xwt.PixelBuffer |
drawLine, drawPicture, drawPictureAlphaOnly, fillTrapezoid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static Vec allSurfaces
public static boolean alt
public static boolean control
public static boolean shift
public static boolean button1
public static boolean button2
public static boolean button3
public Box root
public java.lang.String cursor
public int mousex
public int mousey
public boolean minimized
public boolean maximized
Constructor Detail |
public Surface(Box root)
Method Detail |
public int getWidth()
public int getHeight()
public abstract void toBack()
public abstract void toFront()
public abstract void syncCursor()
public abstract void setInvisible(boolean b)
protected abstract void _setMaximized(boolean b)
protected abstract void _setMinimized(boolean b)
public abstract void setLocation()
public abstract void setTitleBarText(java.lang.String s)
public abstract void setIcon(Picture i)
public abstract void _dispose()
public void setLimits(int min_width, int min_height, int max_width, int max_height)
protected abstract void _setSize(int width, int height)
protected final void setSize(int width, int height)
protected final void Press(int button)
protected final void Release(int button)
protected final void Click(int button)
protected final void DoubleClick(int button)
protected final void KeyPressed(java.lang.String key)
protected final void KeyReleased(java.lang.String key)
protected final void Move(int newmousex, int newmousey)
protected final void SizeChange(int width, int height)
protected final void PosChange(int x, int y)
protected final void Close()
protected final void Minimized(boolean b)
protected final void Maximized(boolean b)
protected final void Focused(boolean b)
public static void Refresh()
public final void setMaximized(boolean b)
public final void setMinimized(boolean b)
public final void dispose(boolean quitIfAllSurfacesGone)
public void dirty(int x, int y, int w, int h)
public void render()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |