Ignore:
Timestamp:
Apr 13, 2007, 5:12:31 PM (18 years ago)
Author:
イグトランス (egtra)
Message:

Object.ReferenceEqualsを追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/Drawing/PointF.ab

    r166 r212  
    1919    End Sub
    2020
    21     Sub PointF(ByRef pt As PointF)
     21    Sub PointF(pt As PointF)
    2222        x = pt.x
    2323        y = pt.y
    2424    End Sub
    2525
    26     Sub PointF(ByRef sz As SizeF)
     26    Sub PointF(sz As SizeF)
    2727        x = sz.Width
    2828        y = sz.Height
     
    4646
    4747    Function IsEmpty() As Boolean
    48         If x = 0 And y = 0 Then
    49             Return _System_TRUE
    50         Else
    51             Return _System_FALSE
    52         End If
     48        Return x = 0 And y = 0
    5349    End Function
    54 
     50/*
    5551    Sub Operator = (ByRef pt As PointF)
    5652        x = pt.x
    5753        y = pt.y
    5854    End Sub
    59 
    60     Function Operator () As PointF
    61         Dim ptf As PointF(X, Y)
    62         Return ptf
    63     End Function
    64 
     55*/
    6556    Function Operator + (pt As PointF) As PointF
    6657        Return Add(This, pt)
     
    126117
    127118    Function Equals(pt As PointF) As Boolean
    128         If x = pt.x And y = pt.y Then
    129             Equals = _System_TRUE
    130         Else
    131             Equals = _System_FALSE
    132         End If
     119        Return x = pt.x And y = pt.y
    133120    End Function
    134121
    135122    Override Function GetHashCode() As Long
    136         Return GetDWord(VarPtr(x)) Xor _System_BSwap(GetDWord(VarPtr(x)))
     123        Return (GetDWord(VarPtr(x)) Xor _System_BSwap(GetDWord(VarPtr(x)))) As Long
    137124    End Function
    138125
Note: See TracChangeset for help on using the changeset viewer.