![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Section contents
ce32base.oxh
<TBS>
this& = NewSize&:(width&,height&)
Creates a size object and returns a handle which allows the object to be manipulated.
width& |
The width of the size. |
height& |
The height of the size |
this& |
An value which represents the created size |
If the object could not be created then an error is generated
which should be trapped by an ONERR
handler.
LOCAL this& this& = NewSize&:(50,50) DeleteSize:(this&)
DeleteSize:(this&)
Destroys the size object.
this& |
A handle to a size object |
LOCAL this& this& = NewSize&:(50,50) DeleteSize:(this&)
this& = SizeAdd&:(this&,size&)
Adds the size in size&
to the size in this&
and returns the handle this&
.
this& |
A handle to a size object |
size& |
A handle to a size objec |
this& |
A handle to a size object |
this& = SizeAddPoint&:(this&,point&)
Adds the point in point&
to the size in this&
and returns the handle this&
.
this& |
A handle to a size object |
point& |
A handle to a point objec |
this& |
A handle to a size object |
point& = SizeAsPoint&:(this&)
<TBS>
this& |
A handle to a size object |
point& |
A point object created. The handle should be freed by the caller when it is no longer required. |
If the point&
object cannot be created then
an error is generated which should be trapped by an ONERR
handler.
result% = SizeEQ%:(this&,size&)
Compares the 2 sizes for equality.
this& |
A handle to a size object |
size& |
A handle to a size objec |
result% |
Returns -1 (true) if the sizes described by this&
and size& are the same, otherwise
returns 0 |
height& = SizeHeight&:(this&)
Returns the height of the size object..
this& |
A handle to a size object |
height& |
The height of the size object |
this& = SizeMinus&:(this&,size&)
Subtracts the size in size&
from the size in this&
and returns the handle this&
.
this& |
A handle to a size object |
size& |
A handle to a size objec |
this& |
A handle to a size object |
this& = SizeMinusPoint&:(this&,size&)
Subtracts the point in point&
from the size
in this&
and returns the handle this&
.
this& |
A handle to a size object |
point& |
A handle to a point objec |
this& |
A handle to a size object |
result% = SizeNE%:(this&,size&)
Compares the 2 size for inequality.
this& |
A handle to a size object |
size& |
A handle to a size objec |
result% |
Returns -1 (true) if the sizes described by this&
and size& are not the same, otherwise
returns 0 |
this& = SizeNegate&:(this&)
Negates the size in this&
and returns the
handle this&
.
this& |
A handle to a size object |
this& |
A handle to a size object |
SizeSetSize:(this&,width&,height&)
Set the width and height of the size object..
this& |
A handle to a size object |
width& |
The width |
height& |
The height |
width& = SizeWidth&:(this&)
Returns the width of the size object..
this& |
A handle to a size object |
width& |
The width of the size object |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |