Changeset 212 for Include/Classes/System/Drawing/Point.ab
- Timestamp:
- Apr 13, 2007, 5:12:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Drawing/Point.ab
r166 r212 20 20 End Sub 21 21 22 Sub Point( ByRefpt As Point)22 Sub Point(pt As Point) 23 23 x = pt.x 24 24 y = pt.y … … 52 52 53 53 Function IsEmpty() As Boolean 54 If x = 0 And y = 0 Then 55 Return _System_TRUE 56 Else 57 Return _System_FALSE 58 End If 54 Return x = 0 And y = 0 59 55 End Function 60 56 /* 61 57 Sub Operator = (ByRef pt As Point) 62 58 x = pt.x 63 59 y = pt.y 64 60 End Sub 65 61 */ 66 62 Function Operator + (pt As Point) As Point 67 63 Return Add(This, pt) … … 119 115 120 116 Function Equals(pt As Point) As Boolean 121 If x = pt.x And y = pt.y Then 122 Equals = _System_TRUE 123 Else 124 Equals = _System_FALSE 125 End If 117 Return x = pt.x And y = pt.y 126 118 End Function 127 119 … … 145 137 End Function 146 138 139 Function Operator () As PointF 140 Return Return PointF(X, Y) 141 End Function 142 147 143 Private 148 144 x As Long
Note:
See TracChangeset
for help on using the changeset viewer.