C H A P T E R 3
As the grid lines are infinitely thin, so a point is infinitely small. Pixels, by contrast,
lie between the lines of the coordinate grid, not at their intersections.
This relationship gives them a definite physical extent, so that they can be seen on
Defining View Characteristics
A template that describes a view is stored as a frame that has slots for view
characteristics. Here is a NewtonScript example of a template that describes a view:
viewBounds: RelBounds( 20, 50, 94, 142 ),
Briefly, the syntax for defining a frame is:
where slotName is the name of a slot, and slotValue is the value of a slot. For more
details on NewtonScript syntax, refer to The NewtonScript Programming Language.
Frames serving as view templates have slots that define the following kinds of view
slot defines the class of graphic object from
which the view is constructed.
slot defines other primary view behaviors
and controls recognition behavior.
Location, size, and alignment
slots define the
location, size, and alignment of the view and its contents.
slot defines the frame and fill
slots control custom patterns.
Transfer modes used in drawing the view are controlled