Changeset 166 for Include/Classes/System/Drawing/SizeF.ab
- Timestamp:
- Mar 13, 2007, 11:55:49 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Drawing/SizeF.ab
r104 r166 40 40 End Sub 41 41 42 Function Operator + 42 Function Operator +(sz As SizeF) As SizeF 43 43 Dim ret As SizeF(width + sz.width, height + sz.height) 44 44 Return ret 45 45 End Function 46 46 47 Function Operator - 47 Function Operator -(sz As SizeF) As SizeF 48 48 Dim ret As SizeF(width - sz.width, height - sz.height) 49 49 Return ret 50 50 End Function 51 51 52 Function Operator == 52 Function Operator ==(sz As SizeF) As Boolean 53 53 Return Equals(sz) 54 54 End Function 55 55 56 Function Operator <> 56 Function Operator <>(sz As SizeF) As Boolean 57 57 Return Not Equals(sz) 58 58 End Function 59 59 60 Sub Operator = 60 Sub Operator =(ByRef sz As SizeF) 61 61 width = sz.width 62 62 height = sz.height … … 70 70 End If 71 71 End Function 72 73 Override Function GetHashCode() As Long 74 Return VarPtr(GetDWord(width)) Xor _System_BSwap(VarPtr(GetDWord(height))) 72 75 73 76 Function IsEmpty() As Boolean
Note:
See TracChangeset
for help on using the changeset viewer.