Changeset 184 for Docking/CoolDocking/URectangle.pas
- Timestamp:
- Mar 10, 2011, 9:57:21 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/URectangle.pas
r178 r184 18 18 function GetTopLeft: TPoint; 19 19 function GetTopRight: TPoint; 20 function GetTRect: TRect; 20 21 function GetWidth: Integer; 21 22 procedure SetBottomLeft(const AValue: TPoint); … … 24 25 procedure SetTopLeft(const AValue: TPoint); 25 26 procedure SetTopRight(const AValue: TPoint); 27 procedure SetTRect(const AValue: TRect); 26 28 procedure SetWidth(const AValue: Integer); 27 29 public … … 38 40 property BottomLeft: TPoint read GetBottomLeft write SetBottomLeft; 39 41 property BottomRight: TPoint read GetBottomRight write SetBottomRight; 42 43 property AsTRect: TRect read GetTRect write SetTRect; 40 44 end; 41 45 … … 71 75 Result.X := Right; 72 76 Result.Y := Top; 77 end; 78 79 function TRectangle.GetTRect: TRect; 80 begin 81 Result.Left := Left; 82 Result.Top := Top; 83 Result.Bottom := Bottom; 84 Result.Right := Right; 73 85 end; 74 86 … … 107 119 end; 108 120 121 procedure TRectangle.SetTRect(const AValue: TRect); 122 begin 123 Left := AValue.Left; 124 Top := AValue.Top; 125 Bottom := AValue.Bottom; 126 Right := AValue.Right; 127 end; 128 109 129 procedure TRectangle.SetWidth(const AValue: Integer); 110 130 begin
Note:
See TracChangeset
for help on using the changeset viewer.