beautypg.com

Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 551

background image

C H A P T E R 1 3

Drawing and Graphics

Summary of Drawing

13-25

myImageView:

ScrollBy :

function,

// scrolls an image

myImageView:

ZoomBy :

function,

// makes an image larger

or smaller

myImageView:

ZoomTo :

function,

// changes the size of

the image

myImageView:

CanZoomBy :

function,

// changes the size of

the image

myImageView:

ZoomToBox :

function,

// resizes the image

...

}

protoThumbnail

13

protoThumbnail : = {

_proto: protoThumbnail,

ImageTarget :

view,

Image :

shape

or

bitmap,

viewBounds :

boundsFrame,

viewJustify :

justificationFlags,

trackWhileScrolling :

integer,

// tracks the grey box

myThumbnail:

Setup :

function,

// prepares thumbnail

myThumbnail:

OpenThumbnail :

function,

// opens thumbnail

myThumbnail:

ToggleThumbnail :

function,

// opens or closes

thumbnail

myThumbnail:

Update :

function,

// renders thumbnail view

myThumbnail:

GetScalingInfo :

function,

// returns scaling

information

myThumbnail:

PrepareToScroll :

function,

// prepares for

scrolling

myThumbnail:

ScrollTo :

function,

// scrolls a view

myThumbnail:

DoneScrolling :

function,

// cleans up a scroll

operation

...

}

protoThumbnailPointer

13

protoThumbnailPointer : = {

_proto: protoThumbnailPointer,

ImageTarget :

view,

Image :

shape

,

viewBounds :

boundsFrame,

viewJustify :

justificationFlags,