beautypg.com

Summary 2, View classes and protos 2, Functions 2 – Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 84

background image

C H A P T E R 2

Getting Started

2-12

Summary

Summary

2

View Classes and Protos

2

clView

2

aView := {

viewClass: clView, // base view class

viewBounds:

boundsFrame

, // location and size

viewJustify:

integer

, // viewJustify flags

viewFlags:

integer

, // viewFlags flags

viewFormat:

integer

, // viewFormat flags

...

}

protoApp

2

anApp := {

_proto: protoApp, // proto application

title:

string

, // application name

viewBounds:

boundsFrame

, // location and size

viewJustify:

integer

, // viewJustify flags

viewFlags:

integer

, // viewFlags flags

viewFormat:

integer

, // viewFormat flags

declareSelf: 'base, // do not change

...

}

Functions

2

Application-Defined Functions

2

InstallScript(

partFrame

) // for application parts

InstallScript(

partFrame

,

removeFrame

) // for auto parts

DeletionScript()

DoNotInstallScript()

RemoveScript(

frame

)