Changeset 21 for branches/overos/UTypes.pas
- Timestamp:
- Dec 29, 2018, 10:12:23 PM (5 years ago)
- Location:
- branches/overos
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/overos
-
Property svn:ignore
set to
overos
lib
overos.lps
overos.res
-
Property svn:ignore
set to
-
branches/overos/UTypes.pas
r20 r21 16 16 Height: Integer; 17 17 function Create(Width, Height: Integer): TSize; 18 class operator Add(A, B: TSize): TSize; 19 class operator Subtract(A, B: TSize): TSize; 18 20 end; 19 21 … … 36 38 function Contains(Position: TPosition): Boolean; 37 39 end; 38 39 TColor = Integer;40 40 41 41 … … 86 86 end; 87 87 88 class operator TSize.Add(A, B: TSize): TSize; 89 begin 90 Result.Width := A.Width + B.Width; 91 Result.Height := A.Height + B.Height; 92 end; 93 94 class operator TSize.Subtract(A, B: TSize): TSize; 95 begin 96 Result.Width := A.Width - B.Width; 97 Result.Height := A.Height - B.Height; 98 end; 99 88 100 89 101 end.
Note:
See TracChangeset
for help on using the changeset viewer.