
We have used, inside the Workspace, in the previous lesson, some Classes of the Squeak API to put the island inside the page. Let's see selected elements of them.
SystemWindow
addMorph: aMorph fullFrame: frame
aMorph is some object of a Class descendant (a subclass of a subclass of...)
of the Class Morph. Can be a Croquet island.
TIP: An island has two main Classes, one of the type
Master and another of the type World.
To create an "object island" we use the Master. Something like:
nm:= NavigatorMaster new openInWorld
frame can be an object of the
Class: LayoutFrame, by example.
fullScreen to "fullscreennize" the window.
openInWorldExtent: w@h set values for width and height.
setLabel: string
setWindowColor: color color can be an object of the Class:
Color
position
Drag the Move button of the Halo.
size
Drag the Size button of the Halo.
LayoutFrame
rightFraction:n n is a number between 0.1 and 1 defining
the limit of the object inside the window
lefttFraction:n n is a number between 0 and 0.99 defining
the limit of the object inside the window
topFraction:n n is a number between 0 and 0.99 defining
the limit of the object inside the window
bottomFraction:n n is a number between 0.1 and 1 defining
the limit of the object inside the window
Color Don't need to be created an object-reference.
We use: Color r:n g:n b:n
where n is between 0 and 1;
or we use the directly: Color:name-of-the-color
black
blue
brown
cyan
darkGray
gray
green
lightBlue
lightBrown
lightCyan
lightGray
lightGreen
lightMagenta
lightOrange
lightRed
lightYellow
magenta
orange
paleBlue
paleBuff
paleGreen
paleMagenta
paleOrange
palePeach
paleRed
paleTan
paleYellow
red
tan
veryDarkGray
veryLightGray
veryPaleRed
veryVeryDarkGray
veryVeryLightGray
white
yellow
PREVIOUS LESSON NEXT LESSON T. CONTENTS HOMEPAGE
