Class TBGRACustomPath
Unit
Declaration
type TBGRACustomPath = class(IBGRAPath)
Description
Generic class representing a path, providing methods for creation and exploration
Hierarchy
- IInterface
- IBGRAPath
- TBGRACustomPath
Overview
Methods
constructor Create; virtual; abstract; |
|
function getCursor: TBGRACustomPathCursor; virtual; abstract; |
|
function getLength: single; virtual; abstract; |
|
function getPoints(AMatrix: TAffineMatrix): ArrayOfTPointF; overload; virtual; abstract; |
|
function getPoints: ArrayOfTPointF; overload; virtual; abstract; |
|
function QueryInterface(const IID: TGUID; out Obj): HResult; stdcall; |
|
function _AddRef: Integer; stdcall; |
|
function _Release: Integer; stdcall; |
|
procedure arc(constref arcDef: TArcDef); virtual; abstract; |
|
procedure beginPath; virtual; abstract; |
|
procedure bezierCurveTo(constref cp1, cp2, pt: TPointF); virtual; abstract; |
|
procedure closedSpline(const pts: array of TPointF; style: TSplineStyle); virtual; abstract; |
|
procedure closePath; virtual; abstract; |
|
procedure copyTo(dest: IBGRAPath); virtual; abstract; |
|
procedure lineTo(constref pt: TPointF); virtual; abstract; |
|
procedure moveTo(constref pt: TPointF); virtual; abstract; |
|
procedure openedSpline(const pts: array of TPointF; style: TSplineStyle); virtual; abstract; |
|
procedure polylineTo(const pts: array of TPointF); virtual; abstract; |
|
procedure quadraticCurveTo(constref cp, pt: TPointF); virtual; abstract; |
|
procedure fill(AFillProc: TBGRAPathFillProc; AData: pointer); overload; virtual; abstract; |
|
procedure fill(AFillProc: TBGRAPathFillProc; const AMatrix: TAffineMatrix; AData: pointer); overload; virtual; abstract; |
|
procedure stroke(ADrawProc: TBGRAPathDrawProc; AData: pointer); overload; virtual; abstract; |
|
procedure stroke(ADrawProc: TBGRAPathDrawProc; const AMatrix: TAffineMatrix; AData: pointer); overload; virtual; abstract; |
Description
Methods
constructor Create; virtual; abstract; |
|
Constructor to |
function getCursor: TBGRACustomPathCursor; virtual; abstract; |
|
Retrieves a cursor for navigating the path |
function getLength: single; virtual; abstract; |
|
Retrieves the length of the path |
function getPoints(AMatrix: TAffineMatrix): ArrayOfTPointF; overload; virtual; abstract; |
|
Retrieves the points of the path, transformed by a specified matrix |
function getPoints: ArrayOfTPointF; overload; virtual; abstract; |
|
Retrieves the points of the path |
function QueryInterface(const IID: TGUID; out Obj): HResult; stdcall; |
|
This item has no description. |
function _AddRef: Integer; stdcall; |
|
This item has no description. |
function _Release: Integer; stdcall; |
|
This item has no description. |
procedure arc(constref arcDef: TArcDef); virtual; abstract; |
|
Adds an |
procedure beginPath; virtual; abstract; |
|
Begins a new path |
procedure bezierCurveTo(constref cp1, cp2, pt: TPointF); virtual; abstract; |
|
Adds a cubic Bézier curve to the path |
procedure closedSpline(const pts: array of TPointF; style: TSplineStyle); virtual; abstract; |
|
Adds a closed spline to the path based on a series of points and a spline style |
procedure closePath; virtual; abstract; |
|
Closes the current path |
procedure copyTo(dest: IBGRAPath); virtual; abstract; |
|
Copies the path to another path object |
procedure lineTo(constref pt: TPointF); virtual; abstract; |
|
procedure moveTo(constref pt: TPointF); virtual; abstract; |
|
Moves the current point to a specified location, starting a new sub-path |
procedure openedSpline(const pts: array of TPointF; style: TSplineStyle); virtual; abstract; |
|
Adds an open spline to the path based on a series of points and a spline style |
procedure polylineTo(const pts: array of TPointF); virtual; abstract; |
|
Adds a series of lines to the path based on an array of points |
procedure quadraticCurveTo(constref cp, pt: TPointF); virtual; abstract; |
|
Adds a quadratic Bézier curve to the path |
procedure fill(AFillProc: TBGRAPathFillProc; AData: pointer); overload; virtual; abstract; |
|
Fills the path with a specified filling procedure |
procedure fill(AFillProc: TBGRAPathFillProc; const AMatrix: TAffineMatrix; AData: pointer); overload; virtual; abstract; |
|
Fills the path with a specified filling procedure and transformation matrix |
procedure stroke(ADrawProc: TBGRAPathDrawProc; AData: pointer); overload; virtual; abstract; |
|
Strokes the path with a specified drawing procedure |
procedure stroke(ADrawProc: TBGRAPathDrawProc; const AMatrix: TAffineMatrix; AData: pointer); overload; virtual; abstract; |
|
Strokes the path with a specified drawing procedure and transformation matrix |