mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 19:20:17 +02:00
LCL: TCanvas: added line methods with TPoint
git-svn-id: trunk@10286 -
This commit is contained in:
parent
a6a3f56624
commit
fe0a80e0e8
@ -965,6 +965,8 @@ type
|
||||
procedure FrameRect(const ARect: TRect); virtual; // border using brush
|
||||
procedure FrameRect(X1,Y1,X2,Y2: Integer); // border using brush
|
||||
procedure Line(X1,Y1,X2,Y2: Integer); virtual; // short for MoveTo();LineTo(); // already in fpcanvas
|
||||
procedure Line(const p1,p2: TPoint);
|
||||
procedure Line(const Points: TRect);
|
||||
procedure LineTo(X1,Y1: Integer); virtual; // already in fpcanvas
|
||||
procedure MoveTo(X1,Y1: Integer); virtual; // already in fpcanvas
|
||||
procedure RadialPie(x1, y1, x2, y2,
|
||||
|
@ -1123,6 +1123,17 @@ begin
|
||||
LineTo(X2, Y2);
|
||||
end;
|
||||
|
||||
procedure TCanvas.Line(const p1, p2: TPoint);
|
||||
begin
|
||||
Line(p1.x,p1.y,p2.x,p2.y);
|
||||
end;
|
||||
|
||||
procedure TCanvas.Line(const Points: TRect);
|
||||
begin
|
||||
with Points do
|
||||
Line(Left,Top,Right,Bottom);
|
||||
end;
|
||||
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Function: TCanvas.GetColor
|
||||
|
Loading…
Reference in New Issue
Block a user