Next: , Previous: , Up: Rectangle   [Index]


1.142.2 Rectangle: accessing

bottom

Answer the corner’s y of the receiver

bottom: aNumber

Set the corner’s y of the receiver

bottomCenter

Answer the center of the receiver’s bottom side

bottomLeft

Answer the bottom-left corner of the receiver

bottomLeft: aPoint

Answer the receiver with the bottom-left changed to aPoint

bottomRight

Answer the bottom-right corner of the receiver

bottomRight: aPoint

Change the bottom-right corner of the receiver

center

Answer the center of the receiver

corner

Answer the corner of the receiver

corner: aPoint

Set the corner of the receiver

extent

Answer the extent of the receiver

extent: aPoint

Change the size of the receiver, keeping the origin the same

height

Answer the height of the receiver

height: aNumber

Set the height of the receiver

left

Answer the x of the left edge of the receiver

left: aValue

Set the x of the left edge of the receiver

left: l top: t right: r bottom: b

Change all four the coordinates of the receiver’s corners

leftCenter

Answer the center of the receiver’s left side

origin

Answer the top-left corner of the receiver

origin: aPoint

Change the top-left corner of the receiver to aPoint

origin: pnt1 corner: pnt2

Change both the origin (top-left corner) and the corner (bottom-right corner) of the receiver

origin: pnt1 extent: pnt2

Change the top-left corner and the size of the receiver

right

Answer the x of the bottom-right corner of the receiver

right: aNumber

Change the x of the bottom-right corner of the receiver

rightCenter

Answer the center of the receiver’s right side

top

Answer the y of the receiver’s top-left corner

top: aValue

Change the y of the receiver’s top-left corner

topCenter

Answer the center of the receiver’s top side

topLeft

Answer the receiver’s top-left corner

topLeft: aPoint

Change the receiver’s top-left corner’s coordinates to aPoint

topRight

Answer the receiver’s top-right corner

topRight: aPoint

Change the receiver’s top-right corner to aPoint

width

Answer the receiver’s width

width: aNumber

Change the receiver’s width to aNumber


Next: , Previous: , Up: Rectangle   [Index]