Changeset 213 for Docking/CoolDocking/Common/URectangle.pas
- Timestamp:
- Mar 21, 2011, 10:23:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Common/URectangle.pas
r204 r213 1 1 unit URectangle; 2 2 3 {$mode objfpc}{$H+} 3 // Date: 2011-03-20 4 5 {$mode Delphi}{$H+} 4 6 5 7 interface … … 34 36 35 37 procedure Assign(Source: TRectangle); 38 function IsInside(Pos: TPoint): Boolean; 36 39 37 40 property Width: Integer read GetWidth write SetWidth; … … 142 145 end; 143 146 147 function TRectangle.IsInside(Pos: TPoint): Boolean; 148 begin 149 Result := (Pos.X >= Left) and (Pos.Y >= Top) and 150 (Pos.X <= Right) and (Pos.Y <= Bottom); 151 end; 152 144 153 end. 145 154
Note:
See TracChangeset
for help on using the changeset viewer.