📄 gfunc.pas
字号:
unit GFunc;
interface
uses Types;
function IsInRect(AObj, ARegion: TRect): boolean;
implementation
function IsInRect(AObj, ARegion: TRect): boolean;
var
Lx, Ly: integer;
begin
result := false;
Lx := (AObj.Left + AObj.Right) div 2;
Ly := (AObj.Top + AObj.Bottom) div 2;
if (Lx > ARegion.Left) and (Lx < Aregion.Right) and
(Ly > ARegion.Top) and (Ly < ARegion.Bottom) then
result := true;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -