Changeset 360 for Generics/TemplateGenerics/Generic/GenericRectangle.inc
- Timestamp:
- May 7, 2012, 10:32:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Generic/GenericRectangle.inc
r342 r360 39 39 procedure UnionWith(Rect: TGRectangle); 40 40 41 procedure SetRect(Left, Top, Width, Height: TGRectangleDimension); 42 procedure SetBounds(Left, Top, Right, Bottom: TGRectangleDimension); 43 41 44 property Left: TGRectangleDimension read FLeft write SetLeft; 42 45 property Top: TGRectangleDimension read FTop write SetTop; … … 246 249 end; 247 250 251 procedure TGRectangle.SetRect(Left, Top, Width, Height: TGRectangleDimension); 252 begin 253 Self.Left := Left; 254 Self.Top := Top; 255 Self.Width := Width; 256 Self.Height := Height; 257 end; 258 259 procedure TGRectangle.SetBounds(Left, Top, Right, Bottom: TGRectangleDimension); 260 begin 261 Self.Left := Left; 262 Self.Top := Top; 263 Self.Right := Right; 264 Self.Bottom := Bottom; 265 end; 266 248 267 function TGRectangle.GetEmpty: Boolean; 249 268 begin
Note:
See TracChangeset
for help on using the changeset viewer.