Changeset 166 for Include/Classes/System/Drawing/Size.ab
- Timestamp:
- Mar 13, 2007, 11:55:49 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Drawing/Size.ab
r104 r166 40 40 End Sub 41 41 42 Function Operator + 42 Function Operator +(sz As Size) As Size 43 43 Dim ret As Size(width + sz.width, height + sz.height) 44 44 Return ret 45 45 End Function 46 46 47 Function Operator - 47 Function Operator -(sz As Size) As Size 48 48 Dim ret As Size(width - sz.width, height - sz.height) 49 49 Return ret … … 55 55 End Function 56 56 57 Function Operator == 57 Function Operator ==(sz As Size) As Boolean 58 58 Return Equals(sz) 59 59 End Function 60 60 61 Function Operator <> 61 Function Operator <>(sz As Size) As Boolean 62 62 Return Not Equals(sz) 63 63 End Function 64 64 65 Sub Operator = 65 Sub Operator =(ByRef sz As Size) 66 66 width = sz.width 67 67 height = sz.height … … 74 74 Equals = _System_FALSE 75 75 End If 76 End Function 77 78 Override Function GetHashCode() As Long 79 Return width Xor _System_BSwap(height) 76 80 End Function 77 81
Note:
See TracChangeset
for help on using the changeset viewer.