Changes in Include/Classes/System/Drawing/Point.ab [29:11]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Drawing/Point.ab
r29 r11 4 4 #define __SYSTEM_DRAWING_POINT_AB__ 5 5 6 #include <Classes/System/Drawing/PointF.ab>7 6 #include <Classes/System/Drawing/Size.ab> 8 7 #include <Classes/System/Drawing/SizeF.ab> … … 65 64 66 65 Function Operator + (pt As Point) As Point 67 Return Add( This,pt)66 Return Add(pt) 68 67 End Function 69 68 70 69 Function Operator + (sz As Size) As Point 71 Return Add( This,sz)70 Return Add(sz) 72 71 End Function 73 72 74 73 Function Operator - (pt As Point) As Point 75 Return Substract( This,pt)74 Return Substract(pt) 76 75 End Function 77 76 78 77 Function Operator - (sz As Size) As Point 79 Return Substract( This,sz)78 Return Substract(sz) 80 79 End Function 81 80 … … 88 87 End Function 89 88 90 Static Function Add(pt1 As Point, pt2As Point) As Point91 Dim ret As Point( pt1.x + pt2.x, pt1.y + pt2.y)89 Function Add(pt As Point) As Point 90 Dim ret As Point(x + pt.x, y + pt.y) 92 91 Return ret 93 92 End Function 94 93 95 Static Function Add(pt As Point,sz As Size) As Point96 Dim ret As Point( pt.x + sz.Width, pt.y + sz.Height)94 Function Add(sz As Size) As Point 95 Dim ret As Point(x + sz.width, y + sz.height) 97 96 Return ret 98 97 End Function … … 100 99 Function Offset(pt As Point) As Point 101 100 Dim ret As Point(x + pt.x, y + pt.y) 101 End Function 102 103 Function Offset(dx As Long, dy As Long) As Point 104 Dim ret As Point(x + dx, y + dy) 105 End Function 106 107 Function Substract(pt As Point) As Point 108 Dim ret As Point(x - pt.x, y - pt.y) 102 109 Return ret 103 110 End Function 104 111 105 Sub Offset(dx As Long, dy As Long) 106 x += dx 107 y += dy 108 End Sub 109 110 Static Function Substract(pt1 As Point, pt2 As Point) As Point 111 Dim ret As Point(pt1.x - pt2.x, pt1.y - pt2.y) 112 Return ret 113 End Function 114 115 Static Function Substract(pt As Point, sz As Size) As Point 116 Dim ret As Point(pt.x - sz.Width, pt.y - sz.Height) 112 Function Substract(sz As Size) As Point 113 Dim ret As Point(x - sz.width, y - sz.height) 117 114 Return ret 118 115 End Function
Note:
See TracChangeset
for help on using the changeset viewer.