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

The Draw application is implemented as stationery in the Newton Works framework. It is accessed by choosing "Drawing" from the Newton Works New picker. This chapter describes how you can programmatically create and edit the graphic objects in the current drawing, and add tools, stamps, and patterns to this application.

This chapter assumes familiarity with the Newton object-based graphic system, as defined in Chapter 6, "Drawing and Graphics 2.1," of this document, and Chapter 13, "Drawing and Graphics," in Newton Programmer's Guide.

You may wish to read Chapter 1, "Newton Works," before reading this chapter.


Chapter Contents
About the Draw Application
User Interface
Programmer's Overview
Using the Drawing Application Interface
Adding Custom Drawing Tools
Adding Patterns and Gray Tones to the Fill Tool
Adding Stamps to the Stamp Tool
Draw Application Methods
The Canvas and Its Methods
Draw Application Reference
Proto
protoDrawTool
MakeObject
SetAttribute
MakeDragObject
AdjustBounds
ScaleShape
CanvasClickScript
ToolClickScript
ToolBegin
ToolEnd
Data Structures
The Canvas
AddShape
AddShapeToSelection
ClearSelection
SelectAll
GetSelectedShapes
DirtyShape
EditGroup
EditUnGroup
EditCopy
EditCut
EditPaste
EditDelete
EditDuplicate
EditUndo
Functions and Methods
Draw Application viewDef Methods
GetCanvas
GetContents
SetContents
RegPatterns
UnRegPatterns
RegStamps
UnRegStamps
RegTool
UnRegTool
Summary
Proto
protoDrawTool
Data Structures
The Canvas
Draw Application viewDef

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