lazarus/lcl/include/mouse.inc
lazarus d78e403562 MG: changed license to LGPL
git-svn-id: trunk@997 -
2002-02-09 01:47:36 +00:00

61 lines
1.6 KiB
PHP

{******************************************************************************
TMouse
******************************************************************************
*****************************************************************************
* *
* This file is part of the Lazarus Component Library (LCL) *
* *
* See the file COPYING.LCL, included in this distribution, *
* for details about the copyright. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* *
*****************************************************************************
}
constructor TMouse.Create;
begin
inherited Create;
end;
destructor TMouse.destroy;
begin
inherited destroy;
end;
Function TMouse.GetCapture : HWND;
Begin
Result := FCapture;
End;
Procedure TMouse.SetCapture(const Value : HWND);
Begin
FCapture := Value;
if Value = 0 then ReleaseCapture else LCLLinux.SetCapture(Value);
end;
Procedure TMouse.SetCursorPos(Value : Tpoint);
Begin
end;
Function TMouse.GetCursorPos : TPoint;
var
p : TPoint;
Begin
GetCaretPos(p);
Result := P;
end;