mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 16:38:16 +02:00
61 lines
1.6 KiB
PHP
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;
|
|
|
|
|
|
|
|
|
|
|