|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--newton.NS
NS is an auxillary class for various convenience functions and necessities which don't fit elsewhere. Presently, NS allows you to get ahold of your Waba window and drawing area, grab protos from the ROM, and make common kinds of frame objects. It also contains a few functions useful in printing stuff to the screen or to the NTK inspector, for debugging purposes.
| Field Summary | |
static int |
NEWTONTYPE
What kind of Newton we have. |
static int |
T_EMATE
Emate 300 |
static int |
T_ERROR
Error in Determining Type -- unlikely to happen! |
static int |
T_MP120
MessagePad 120 |
static int |
T_MP130
MessagePad 130 |
static int |
T_MP2000
MessagePad 2000, unupgraded |
static int |
T_MP2100
MessagePad 2100 or upgraded MessagePad 2000 |
static int |
T_OTHER
Some other Weird Newton -- unlikely to happen! |
static int |
VM
The four-byte tag used to identify the C++ VM in memory (as opposed to other running VMs) |
static int |
WINDOW
The main window for our VM. |
| Constructor Summary | |
NS()
|
|
| Method Summary | |
static Ref |
bounds(int left,
int top,
int right,
int bottom)
Returns a bounds rect. |
static Ref |
frameWithProto(String symbol)
Returns a Ref to a frame with its _proto slot set to the ROM proto requested by symbol name in the NOS Platform file. |
static void |
notify(String title,
String data)
Pops up a notify dialog, useful for debugging. |
static Ref |
object(int obj)
Returns a Ref to the object requested. |
static void |
print(Ref data)
Prints a Ref to the NTK inspector, useful for debugging. |
static void |
print(String data)
Prints a String to the NTK inspector, useful for debugging. |
static Ref |
proto(String symbol)
Returns a Ref to the proto requested by symbol name in the NOS Platform file. |
static int |
version()
Returns the version number for this implementation of the Waba for the Newton VM |
static Ref |
wabaDrawingArea()
Returns a Ref to the Waba drawing area. |
| Methods inherited from class java.lang.Object |
equals, hashCode, toString |
| Field Detail |
public static final int VM
public static final int WINDOW
public static final int NEWTONTYPE
public static final int T_MP2100
public static final int T_MP2000
public static final int T_EMATE
public static final int T_MP130
public static final int T_MP120
public static final int T_ERROR
public static final int T_OTHER
| Constructor Detail |
public NS()
| Method Detail |
public static Ref object(int obj)
public static Ref proto(String symbol)
public static Ref wabaDrawingArea()
public static Ref frameWithProto(String symbol)
public static Ref bounds(int left,
int top,
int right,
int bottom)
public static void notify(String title,
String data)
public static void print(String data)
public static void print(Ref data)
public static int version()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||