Title Banner

Previous Book Contents Book Index Next

Newton Developer Technical Information: Newton Programmer's Guide: 2.1 OS Addendum /
Chapter 2 - Newton Works Draw Application / Draw Application Reference
Proto


protoDrawTool

This proto provides the basic functionality of a tool template. You must override the class, icon, *MakeObject, and *SetAttribute slots.

slot description

class
Symbol that uniquely identifies the tool and the graphic objects created by this tool. This symbol should include your developer signature.
icon
Pix family that represents this tool in the toolbar. Note that the tool border is drawn for you--this image should supply only the interior bits.
createByTapping
The value true specifies that the user can tap to create an object. The default value is nil.
createByDragging
The value true specifies that the user can drag out bounds for an object. That is, the first tap specifies the top and left slots of the object's bounds, and where the pen is lifted specifies the right and bottom slots. The default value is true.
dragARectangle
The value true specifies that the user drags out a plain rectangle when creating an object. If the value of this slot is nil, the template's *MakeDragObject method is invoked. The default value is true.
The methods of *protoDrawTool are described in the following sections.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
26 APR 1997



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help