Ignore:
Timestamp:
Jul 11, 2022, 1:36:18 PM (23 months ago)
Author:
chronos
Message:
  • Modified: Fixed build with Lazarus 2.2.0.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/overos/UTypes.pas

    r22 r33  
    1515    Width: Integer;
    1616    Height: Integer;
    17     function Create(Width, Height: Integer): TSize;
     17    class function Create(Width, Height: Integer): TSize; static;
    1818    class operator Add(A, B: TSize): TSize;
    1919    class operator Subtract(A, B: TSize): TSize;
     
    2626    Left: Integer;
    2727    Top: Integer;
    28     function Create(Left, Top: Integer): TPosition;
     28    class function Create(Left, Top: Integer): TPosition; static;
    2929    class operator Add(A, B: TPosition): TPosition;
    3030    class operator Subtract(A, B: TPosition): TPosition;
     
    3737    Position: TPosition;
    3838    Size: TSize;
    39     function Create(Position: TPosition; Size: TSize): TRectangle;
     39    class function Create(Position: TPosition; Size: TSize): TRectangle; static;
    4040    function Contains(Position: TPosition): Boolean;
    4141    class operator Equal(A, B: TRectangle): Boolean;
     
    5151{ TRectangle }
    5252
    53 function TRectangle.Create(Position: TPosition; Size: TSize): TRectangle;
     53class function TRectangle.Create(Position: TPosition; Size: TSize): TRectangle;
    5454begin
    5555  Result.Position := Position;
     
    7272{ TPosition }
    7373
    74 function TPosition.Create(Left, Top: Integer): TPosition;
     74class function TPosition.Create(Left, Top: Integer): TPosition;
    7575begin
    7676  Result.Left := Left;
     
    9797{ TSize }
    9898
    99 function TSize.Create(Width, Height: Integer): TSize;
     99class function TSize.Create(Width, Height: Integer): TSize; static;
    100100begin
    101101  Result.Width := Width;
Note: See TracChangeset for help on using the changeset viewer.