Ignore:
Timestamp:
May 7, 2012, 10:32:41 AM (13 years ago)
Author:
chronos
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Generics/TemplateGenerics/Generic/GenericRectangle.inc

    r342 r360  
    3939  procedure UnionWith(Rect: TGRectangle);
    4040
     41  procedure SetRect(Left, Top, Width, Height: TGRectangleDimension);
     42  procedure SetBounds(Left, Top, Right, Bottom: TGRectangleDimension);
     43
    4144  property Left: TGRectangleDimension read FLeft write SetLeft;
    4245  property Top: TGRectangleDimension read FTop write SetTop;
     
    246249end;
    247250
     251procedure TGRectangle.SetRect(Left, Top, Width, Height: TGRectangleDimension);
     252begin
     253  Self.Left := Left;
     254  Self.Top := Top;
     255  Self.Width := Width;
     256  Self.Height := Height;
     257end;
     258
     259procedure TGRectangle.SetBounds(Left, Top, Right, Bottom: TGRectangleDimension);
     260begin
     261  Self.Left := Left;
     262  Self.Top := Top;
     263  Self.Right := Right;
     264  Self.Bottom := Bottom;
     265end;
     266
    248267function TGRectangle.GetEmpty: Boolean;
    249268begin
Note: See TracChangeset for help on using the changeset viewer.