Section contents
ce32base.oxh
this& =
NewRect&:(X1&,Y1&,X2&,Y2&)
Creates a rectangle object and returns a handle which allows the object to be manipulated.
X1& |
The X co-ordinate of the left side of the rectnagle. |
Y1& |
The Y co-ordinate of the top side of the rectangle |
X2& |
The X co-ordinate of the right side of the rectangle |
Y2& |
The Y co-ordinate of the bottom of the rectangle |
this& |
An value which represents the created rectangle |
If the object could not be created then an error is generated
which should be trapped by an ONERR
handler.
LOCAL this& this& = NewRect&:(50,50,20,20) DeleteRect:(this&)
DeleteRect:(BYREF this&)
Destroys the rectangle object.
this& |
A handle to a rectangle object |
LOCAL this& this& = NewRect&:(50,50,20,20) DeleteRect:(this&)
this& = RectAssign&:(this&,rect&)
Assigns the rectangle in rect&
to the
rectangle in this&
and returns the handle this&
.
this& |
A handle to a rectangle object |
rect& |
A handle to a rectangle objec |
this& |
A handle to a rectangle object |
result% = RectEQ%:(this&,rect&)
Compares the 2 rectangle for equality.
this& |
A handle to a rectangle object |
rect& |
A handle to a rectangle objec |
result% |
Returns -1 (true) if the rectangles described by this&
and rect& are the same, otherwise
returns 0 |
result% = RectNE%:(this&,rect&)
Compares the 2 rectangle for inequality.
this& |
A handle to a rectangle object |
rect& |
A handle to a rectangle objec |
result% |
Returns -1 (true) if the rectangles described by this&
and rect& are not the same, otherwise
returns 0 |
RectSetRect:(this&,X1&,Y1,X2&,Y2&)
Set the rectangle from (X1&
,Y1&
)
to (X2&
,Y2&
)..
this& |
A handle to a rectangle object |
X1& |
The X co-ordinate of the left of the rectangle |
Y1& |
The Y co-ordinate of the top of the rectangle |
X2& |
The X co-ordinate of the right of the rectangle |
Y2& |
The Y co-ordinate of the bottom of the rectangle |