beautypg.com

Protos 13 – Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 550

background image

C H A P T E R 1 3

Drawing and Graphics

13-24

Summary of Drawing

clRemoteView

13

clRemoteView := {

stepChildren :

int,

// specifies a single view

viewBounds:

int

, // size and location of the view

viewFlags :

const,

// controls the recognition behavior of

the view

viewFormat :

const

, // controls appearance of the view

Protos

13

protoImageView

13

aProtoImageView := {

_proto: ProtoImageView,

Image :

shape,

Annotations :

array,

scalingInfo :

frame,

viewBounds :

boundsFrame,

viewJustify:

justificationFlags,

viewFormat :

formatFlags,

zoomStops :

array,

dragCorridor :

integer,

grabbyHand :

shape,

myImageView:

penDown :

function,

// drags image

myImageView:

ScalingInfoChanged :

function,

// called when

scaling changes

myImageView:

Setup :

function,

// initializes the image

myImageView:

OpenImage :

function,

// opens image

myImageView:

ToggleImage :

function,

// closes image

myImageView:

GetScalingInfo :

function,

// returns scaling

information

myImageView:

HasAnnotations :

function,

// returns annotation

information

myImageView:

GetAnnotations :

function,

// returns an array of

views

myImageView:

SetAnnotationMode :

function,

// sets display

behavior

myImageView:

GetAnnotationMode :

function,

// returns a symbol

myImageView:

TargetChanged :

function,

// called when

annotation is changed

myImageView:

CanScroll :

function,

// returns scrolling

information

myImageView:

ScrollTo :

function,

// scrolls an image