Changeset 473 for trunk/Include/Classes/System/Drawing/SizeF.ab
- Timestamp:
- Mar 12, 2008, 9:54:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Drawing/SizeF.ab
r303 r473 1 1 ' Classes/System/Drawing/SizeF.ab 2 2 3 #ifndef __SYSTEM_DRAWING_SIZEF_AB__ 4 #define __SYSTEM_DRAWING_SIZEF_AB__ 5 6 #include <Classes/System/Drawing/Size.ab> 7 #include <Classes/System/Drawing/PointF.ab> 3 Namespace System 4 Namespace Drawing 8 5 9 6 Class SizeF … … 41 38 42 39 Function Operator +(sz As SizeF) As SizeF 43 Dim ret As SizeF(width + sz.width, height + sz.height) 44 Return ret 40 Return New SizeF(width + sz.width, height + sz.height) 45 41 End Function 46 42 47 43 Function Operator -(sz As SizeF) As SizeF 48 Dim ret As SizeF(width - sz.width, height - sz.height) 49 Return ret 44 Return New SizeF(width - sz.width, height - sz.height) 50 45 End Function 51 46 … … 57 52 Return Not Equals(sz) 58 53 End Function 59 /* 60 Sub Operator =(ByRef sz As SizeF) 61 width = sz.width 62 height = sz.height 63 End Sub 64 */ 54 65 55 Function Equals(sz As SizeF) As Boolean 66 56 Return width = sz.width And height = sz.height … … 88 78 89 79 Function ToPointF() As PointF 90 Dim pt As PointF(width, height) 91 Return pt 80 Return New PointF(width, height) 92 81 End Function 93 82 Private … … 96 85 End Class 97 86 98 #endif '__SYSTEM_DRAWING_SIZEF_AB__ 87 End Namespace 88 End Namespace
Note:
See TracChangeset
for help on using the changeset viewer.