Changeset 473 for trunk/Include/Classes/System/Drawing/PointF.ab
- Timestamp:
- Mar 12, 2008, 9:54:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Drawing/PointF.ab
r303 r473 1 1 ' Classes/System/Drawing/PointF.ab 2 2 3 #ifndef __SYSTEM_DRAWING_POINTF_AB__ 4 #define __SYSTEM_DRAWING_POINTF_AB__ 5 6 #include <Classes/System/Drawing/Size.ab> 7 #include <Classes/System/Drawing/SizeF.ab> 3 Namespace System 4 Namespace Drawing 8 5 9 6 Class PointF … … 30 27 31 28 Function X() As Single 32 Returnx29 X = x 33 30 End Function 34 31 … … 38 35 39 36 Function Y() As Single 40 Returny37 Y = y 41 38 End Function 42 39 … … 82 79 83 80 Static Function Add(pt1 As PointF, pt2 As PointF) As PointF 84 Dim ret As PointF(pt1.x + pt2.x, pt1.y + pt2.y) 85 Return ret 81 Return New PointF(pt1.x + pt2.x, pt1.y + pt2.y) 86 82 End Function 87 83 88 84 Static Function Add(pt As PointF, sz As Size) As PointF 89 Dim ret As PointF(pt.x + sz.Width, pt.y + sz.Height) 90 Return ret 85 Return New PointF(pt.x + sz.Width, pt.y + sz.Height) 91 86 End Function 92 87 93 88 Static Function Add(pt As PointF, sz As SizeF) As PointF 94 Dim ret As PointF(pt.x + sz.Width, pt.y + sz.Height) 95 Return ret 89 Return New PointF(pt.x + sz.Width, pt.y + sz.Height) 96 90 End Function 97 91 98 92 Static Function Substract(pt1 As PointF, pt2 As PointF) As PointF 99 Dim ret As PointF(pt1.x - pt2.x, pt1.y - pt2.y) 100 Return ret 93 Return New PointF(pt1.x - pt2.x, pt1.y - pt2.y) 101 94 End Function 102 95 103 96 Static Function Substract(pt As PointF, sz As Size) As PointF 104 Dim ret As PointF(pt.x - sz.Width, pt.y - sz.Height) 105 Return ret 97 Return New PointF(pt.x - sz.Width, pt.y - sz.Height) 106 98 End Function 107 99 108 100 Static Function Substract(pt As PointF, sz As SizeF) As PointF 109 Dim ret As PointF(pt.x - sz.Width, pt.y - sz.Height) 110 Return ret 101 Return New PointF(pt.x - sz.Width, pt.y - sz.Height) 111 102 End Function 112 103 … … 124 115 End Class 125 116 126 #endif '__SYSTEM_DRAWING_POINTF_AB__ 117 End Namespace 118 End Namespace
Note:
See TracChangeset
for help on using the changeset viewer.