Changeset 30 for trunk/UGeometric.pas
- Timestamp:
- Apr 18, 2015, 6:17:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGeometric.pas
r29 r30 24 24 function RectEquals(A, B: TRect): Boolean; 25 25 function RectEnlarge(Rect: TRect; Value: Integer): TRect; 26 function ShiftRect(ARect: TRect; Delta: TPoint): TRect; 26 27 27 28 implementation … … 135 136 function RectEnlarge(Rect: TRect; Value: Integer): TRect; 136 137 begin 137 Rect.Left := Rect.Left - Value; 138 Rect.Right := Rect.Right + Value; 139 Rect.Top := Rect.Top - Value; 140 Rect.Bottom := Rect.Bottom + Value; 138 Result.Left := Rect.Left - Value; 139 Result.Right := Rect.Right + Value; 140 Result.Top := Rect.Top - Value; 141 Result.Bottom := Rect.Bottom + Value; 142 end; 143 144 function ShiftRect(ARect: TRect; Delta: TPoint): TRect; 145 begin 146 Result := Rect(ARect.Left + Delta.X, ARect.Top + Delta.Y, 147 ARect.Right + Delta.X, ARect.Bottom + Delta.Y); 141 148 end; 142 149
Note:
See TracChangeset
for help on using the changeset viewer.