Changeset 303 for trunk/Include/Classes/System/Drawing/Size.ab
- Timestamp:
- Aug 24, 2007, 11:14:46 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Drawing/Size.ab
r223 r303 70 70 Function Equals(sz As Size) As Boolean 71 71 If width = sz.width And height = sz.height Then 72 Equals = _System_TRUE72 Equals = True 73 73 Else 74 Equals = _System_FALSE74 Equals = False 75 75 End If 76 76 End Function … … 93 93 94 94 Static Function Ceiling(szf As SizeF) As Size 95 Dim sz As Size( Math.Ceiling(szf.width), Math.Ceiling(szf.height))95 Dim sz As Size(System.Math.Ceiling(szf.Width) As Long, System.Math.Ceiling(szf.Height) As Long) 96 96 Return sz 97 97 End Function 98 98 99 99 Static Function Round(szf As SizeF) As Size 100 Dim sz As Size( Math.Round(szf.width), Math.Round(szf.height))100 Dim sz As Size(System.Math.Round(szf.Width) As Long, System.Math.Round(szf.Height) As Long) 101 101 Return sz 102 102 End Function 103 103 104 104 Static Function Truncate(szf As SizeF) As Size 105 Dim sz As Size( Math.Truncate(szf.width), Math.Truncate(szf.height))105 Dim sz As Size(System.Math.Truncate(szf.Width) As Long, System.Math.Truncate(szf.Height) As Long) 106 106 Return sz 107 107 End Function
Note:
See TracChangeset
for help on using the changeset viewer.