mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 17:37:21 +01:00
62 lines
1.7 KiB
PHP
62 lines
1.7 KiB
PHP
// included by controls.pp
|
|
|
|
{******************************************************************************
|
|
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
|
|
{$IFDEF VerboseMouseCapture}
|
|
writeln('TMouse.SetCapture ');
|
|
{$ENDIF}
|
|
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;
|
|
|
|
// included by controls.pp
|
|
|