Interface IBGRAPath
Unit
Declaration
type IBGRAPath = interface(IInterface)
Description
Interface for path functions.
A path is the ability to define a contour with moveTo, lineTo...
Even if it is an interface, it must not implement reference counting.
Hierarchy
- IInterface
- IBGRAPath
Overview
Methods
![]() |
function getCursor: TBGRACustomPathCursor; |
![]() |
function getPoints: ArrayOfTPointF; overload; |
![]() |
function getPoints(AMatrix: TAffineMatrix): ArrayOfTPointF; overload; |
![]() |
procedure arc(constref arcDef: TArcDef); |
![]() |
procedure bezierCurveTo(constref cp1,cp2,pt: TPointF); |
![]() |
procedure closedSpline(const pts: array of TPointF; style: TSplineStyle); |
![]() |
procedure closePath; |
![]() |
procedure copyTo(dest: IBGRAPath); |
![]() |
procedure fill(AFillProc: TBGRAPathFillProc; AData: pointer); overload; |
![]() |
procedure fill(AFillProc: TBGRAPathFillProc; const AMatrix: TAffineMatrix; AData: pointer); overload; |
![]() |
procedure lineTo(constref pt: TPointF); |
![]() |
procedure moveTo(constref pt: TPointF); |
![]() |
procedure openedSpline(const pts: array of TPointF; style: TSplineStyle); |
![]() |
procedure polylineTo(const pts: array of TPointF); |
![]() |
procedure quadraticCurveTo(constref cp,pt: TPointF); |
![]() |
procedure stroke(ADrawProc: TBGRAPathDrawProc; AData: pointer); overload; |
![]() |
procedure stroke(ADrawProc: TBGRAPathDrawProc; const AMatrix: TAffineMatrix; AData: pointer); overload; |
Description
Methods
![]() |
function getCursor: TBGRACustomPathCursor; |
Returns a cursor to go through the path. The cursor must be freed by calling Free. |
![]() |
function getPoints: ArrayOfTPointF; overload; |
Returns the content of the path as an array of points |
![]() |
function getPoints(AMatrix: TAffineMatrix): ArrayOfTPointF; overload; |
Returns the content of the path as an array of points with the transformation specified by AMatrix |
![]() |
procedure arc(constref arcDef: TArcDef); |
Adds an |
![]() |
procedure bezierCurveTo(constref cp1,cp2,pt: TPointF); |
Adds a cubic Bézier curve from the current point |
![]() |
procedure closedSpline(const pts: array of TPointF; style: TSplineStyle); |
Adds an closed spline. If there is a current point, it is connected to the beginning of the spline |
![]() |
procedure closePath; |
Closes the current path with a line to the starting point |
![]() |
procedure copyTo(dest: IBGRAPath); |
Copy the content of this path to the specified destination |
![]() |
procedure fill(AFillProc: TBGRAPathFillProc; AData: pointer); overload; |
Calls a given fill procedure for each sub path with computed coordinates for rendering |
![]() |
procedure fill(AFillProc: TBGRAPathFillProc; const AMatrix: TAffineMatrix; AData: pointer); overload; |
Calls a given |
![]() |
procedure lineTo(constref pt: TPointF); |
Adds a line from the current point |
![]() |
procedure moveTo(constref pt: TPointF); |
Moves to a location, disconnected from previous points |
![]() |
procedure openedSpline(const pts: array of TPointF; style: TSplineStyle); |
Adds an opened spline. If there is a current point, it is connected to the beginning of the spline |
![]() |
procedure polylineTo(const pts: array of TPointF); |
Adds a polyline from the current point |
![]() |
procedure quadraticCurveTo(constref cp,pt: TPointF); |
Adds a quadratic Bézier curve from the current point |
![]() |
procedure stroke(ADrawProc: TBGRAPathDrawProc; AData: pointer); overload; |
Calls a given draw procedure for each sub path with computed coordinates for rendering |
![]() |
procedure stroke(ADrawProc: TBGRAPathDrawProc; const AMatrix: TAffineMatrix; AData: pointer); overload; |
Calls a given draw procedure for each sub path with computed coordinates using given AMatrix transformation |