Changeset 104 for Include/Classes/System/Drawing/Rectangle.ab
- Timestamp:
- Feb 16, 2007, 7:34:38 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Drawing/Rectangle.ab
r77 r104 110 110 End Function 111 111 112 Function IsEmpty() As B OOL112 Function IsEmpty() As Boolean 113 113 If Width <= 0 Or Height <= 0 Then 114 114 IsEmpty = _System_TRUE … … 140 140 End Function 141 141 142 Function Equals(ByRef rc As Rectangle) As B OOL142 Function Equals(ByRef rc As Rectangle) As Boolean 143 143 If X = rc.X And Y = rc.Y And Width = rc.Width And Height = rc.Height Then 144 144 Equals = _System_TRUE … … 153 153 End Function 154 154 155 Function Contains(x As Long, y As Long) As B OOL155 Function Contains(x As Long, y As Long) As Boolean 156 156 If x >= X And x < X + Width And y >= Y And y < Y + Height Then 157 157 Contains = _System_TRUE … … 161 161 End Function 162 162 163 Function Contains(ByRef pt As Point) As B OOL163 Function Contains(ByRef pt As Point) As Boolean 164 164 ContainsPTF = Contains(pt.X, pt.Y) 165 165 End Function 166 166 167 Function Contains(ByRef rc As Rectangle) As B OOL167 Function Contains(ByRef rc As Rectangle) As Boolean 168 168 If X <= rc.X And rc.Right <= Right And Y <= rc.Y And rc.Bottom <= Bottom Then 169 169 ContainsRCF = _System_TRUE … … 202 202 End Function 203 203 204 Function IntersectsWith(ByRef rc As Rectangle) As B OOL204 Function IntersectsWith(ByRef rc As Rectangle) As Boolean 205 205 If Left < rc.Right And _ 206 206 Top < rc.Bottom And _
Note:
See TracChangeset
for help on using the changeset viewer.