![]() | InDesign SDK 20.5 |
#include <IPathEndStroker.h>

Public Types | |
| enum | { kDefaultIID = IID_IPATHENDSTROKER } |
| enum | PathEndLocation { kPathEndAtNeitherEnd = 0, kPathEndAtEnd = 1, kPathEndAtStart = 2, kPathEndAtBothEnds = 3 } |
Public Member Functions | |
| virtual void | StrokeLineToPathEnd (IGraphicStyleDescriptor *styleDescriptor, int32 endLocation, const PMPoint &startPt, const PMPoint &endPt, IGraphicsPort *gPort) const =0 |
| virtual bool16 | InLineToPathEnd (IGraphicStyleDescriptor *styleDescriptor, int32 endLocation, const PMPoint &startPt, const PMPoint &endPt, const PMRect &r, IGraphicsPort *gPort) const =0 |
| virtual PMRect | GetLineToPathEndBBox (IGraphicStyleDescriptor *styleDescriptor, int32 endLocation, const PMPoint &startPt, const PMPoint &endPt, const PMMatrix &matrix) const =0 |
| virtual void | StrokeCurveToPathEnd (IGraphicStyleDescriptor *styleDescriptor, int32 endLocation, const PMPoint &P0, const PMPoint &P1, const PMPoint &P2, const PMPoint &P3, IGraphicsPort *gPort) const =0 |
| virtual bool16 | InCurveToPathEnd (IGraphicStyleDescriptor *styleDescriptor, int32 endLocation, const PMPoint &P0, const PMPoint &P1, const PMPoint &P2, const PMPoint &P3, const PMRect &r, IGraphicsPort *gPort) const =0 |
| virtual PMRect | GetCurveToPathEndBBox (IGraphicStyleDescriptor *styleDescriptor, int32 endLocation, const PMPoint &P0, const PMPoint &P1, const PMPoint &P2, const PMPoint &P3, const PMMatrix &matrix) const =0 |
| virtual PMPathPoint | StrokePathEndAdjust (const PMPathPoint &pt0, const PMPathPoint &pt1, IGraphicStyleDescriptor *styleDescriptor, int32 endLocation) const =0 |
| virtual void | GetPathEndName (PMString *pathendName) const =0 |
| virtual void | StrokeLineToPathEndForUI (int32 endLocation, const PMPoint &startPt, const PMPoint &endPt, IGraphicsPort *gPort, const PMReal &strokeWidth, PMReal arrowHeadScale) const =0 |
| virtual void | CreateLineEndPath (int32 endLocation, const PMPoint &startPt, const PMPoint &endPt, IGraphicsPort *gPort, const PMReal &strokeWidth, PMReal arrowHeadScale) const =0 |
| virtual ScriptID | GetScriptID (const ScriptInfo::RequestContext &context) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
IPathStroker defines the interface to be implemented by installable path end strokers (i.e., arrowheads)
This enum describes the location of the end cap(s) to draw
| pure virtual |
Creates the end path for a line. Typically called at a higher level via StrokeLineToPathEnd, but this function allows path end stroking to be done when no IGraphicStyleDescriptor is available, e.g. in an handle shape adornment.
| endLocation | IN The location for the path ends |
| startPt | IN The starting point for the line |
| endPt | IN The ending point for the line |
| gPort | IN The port to draw into |
| strokeWidth | IN Width of the stroke to use |
| arrowHeadScale | IN Percentage Scaling of the arrowHead |
| pure virtual |
Returns the bounding box of the path end for a curve using the supplied matrix If the item has no stroke, compute the bbox using a stroke weight of 0, i.e. return the bounds of the path
| styleDescriptor | IN The graphic style descriptor to use |
| endLocation | IN The location for the path ends |
| P0 | IN The curve's first control point |
| P1 | IN The curve's second control point |
| P2 | IN The curve's third control point |
| P3 | IN The curve's fourth control point |
| matrix | IN The matrix to transform the bounding box by |
| pure virtual |
Returns the bounding box of the path end for a line using the supplied matrix If the item has no stroke, compute the bbox using a stroke weight of 0, i.e. return the bounds of the path
| styleDescriptor | IN The graphic style descriptor to use |
| endLocation | IN The location for the path ends |
| startPt | IN The starting point for the path end |
| endPt | IN The ending point for the path end |
| matrix | IN The matrix to transform the bounding box by |
| pure virtual |
Fills in the text string that describes this type of end
| pathendName | OUT The name of the path end |
| pure virtual |
Returns the ScriptID associated with this path end in the given scripting DOM
| pure virtual |
Does the rect intersect the path end for a curve?
Note: Won't be called if the item has no stroke.
| styleDescriptor | IN The graphic style descriptor to use |
| endLocation | IN The location for the path ends |
| P0 | IN The curve's first control point |
| P1 | IN The curve's second control point |
| P2 | IN The curve's third control point |
| P3 | IN The curve's fourth control point |
| r | IN The rectangle to test |
| gPort | IN The port to draw into |
| pure virtual |
Does the rect intersect the path end for a line?
Note: Won't be called if the item has no stroke.
| styleDescriptor | IN The graphic style descriptor to use |
| endLocation | IN The location for the path ends |
| startPt | IN The starting point for the path end |
| endPt | IN The ending point for the path end |
| r | IN The rectangle to test |
| gPort | IN The port to draw into |
| pure virtual |
Strokes the end path for a curve. Assume that the correct rendering object was setup during the stroking of the curve except for the no stroke case.
Note: Won't be called if the item has no stroke.
| styleDescriptor | IN The graphic style descriptor to use |
| endLocation | IN The location for the path ends |
| P0 | IN The curve's first control point |
| P1 | IN The curve's second control point |
| P2 | IN The curve's third control point |
| P3 | IN The curve's fourth control point |
| gPort | IN The port to draw into |
| pure virtual |
Strokes the end path for a line. Assume that the correct rendering object was setup during the stroking of the line except for the no stroke case.
Note: Won't be called if the item has no stroke.
| styleDescriptor | IN The graphic style descriptor to use |
| endLocation | IN The location for the path ends |
| startPt | IN The starting point for the line |
| endPt | IN The ending point for the line |
| gPort | IN The port to draw into |
| pure virtual |
Stroke the end path for UI purposes. Assume that the correct rendering object was setup during the stroking of the line except for the no stroke case. In the no stroke case StrokePathEnd won't be called.
| endLocation | Which end(s) to stroke |
| startPt | Start point for line |
| endPt | End point for line |
| gPort | Port to stroke to |
| strokeWidth | Width of the stroke to use |
| arrowHeadScale | Percentage Scaling of the arrowHead |
| pure virtual |
Gets the adjusted path point for stroking a line
| pt0 | IN The line's start point |
| pt1 | IN The line's end point |
| styleDescriptor | IN The graphic style descriptor to use |
| endLocation | IN The location for the path ends |