![]() | InDesign SDK 20.5 |

Public Types | |
| enum | AdornmentDrawOrder { kBeforeShape = 1, kAfterShape = 2, kAllAdornmentFlags = 3 } |
| enum | AdornmentDrawNumber { kNumberOfAdornments = 2 } |
| enum | AdornmentDrawMode { kNonTouchDrawMode = 0, kTouchDrawMode, kBothDrawMode } |
Public Member Functions | |
| virtual AdornmentDrawOrder | GetDrawOrderBits ()=0 |
| virtual void | DrawAdornmentHandleShape (IHandleShape *iHandleShape, AdornmentDrawOrder adornmentDrawOrder, GraphicsData *gd, IConcreteSelection *concreteSelection, int32 flags=0)=0 |
| virtual void | DrawControlPointPath (IHandleShape *iHandleShape, AdornmentDrawOrder adornmentDrawOrder, GraphicsData *gd, int32 flags=0)=0 |
| virtual bool16 | HitTest (IHandleShape *iHandleShape, AdornmentDrawOrder adornmentDrawOrder, GraphicsData *gd, const PMRect &r, PointSelector *handleIndex, bool16 bDragging=kFalse)=0 |
| virtual bool16 | HitTestControlPointPath (IHandleShape *iHandleShape, AdornmentDrawOrder adornmentDrawOrder, GraphicsData *gd, const PMRect &r)=0 |
| virtual PMRect | GetPaintedAdornmentHandleBounds (IHandleShape *iHandleShape, AdornmentDrawOrder adornmentDrawOrder, const PMRect &itemBounds, const PMMatrix &innertoview)=0 |
| virtual ITracker * | QueryTracker (IHandleShape *iHandleShape, AdornmentDrawOrder adornmentDrawOrder, IControlView *layView, const PBPMPoint &where, int32 selectionMode, const PointSelector &index)=0 |
| virtual ITip * | QueryTip (const PointSelector *handleIndex)=0 |
| virtual AdornmentDrawMode | GetAdornmentDrawMode ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Protected Member Functions | |
| virtual void | DrawAdornmentHandleShapeModeChecked (IHandleShape *iHandleShape, AdornmentDrawOrder adornmentDrawOrder, GraphicsData *gd, IConcreteSelection *concreteSelection, int32 flags=0)=0 |
| pure virtual |
Draw the adorment handle shape. It is up to the adornment to save and restore the graphic state.
| iHandleShape[IN] | the owning page item. |
| adornmentDrawOrder[IN] | the draw order of the adornment, in case this adornment is used more than once. |
| gd[IN] | the graphics context used for drawing. |
| concretSelection[IN] | the selection boss. |
| flags[IN] | default as kNoFlags and serves as a drawing flag. |
| protectedpure virtual |
Draw the adorment handle shape. It is up to the adornment to save and restore the graphic state.
| iHandleShape[IN] | the owning page item. |
| adornmentDrawOrder[IN] | the draw order of the adornment, in case this adornment is used more than once. |
| gd[IN] | the graphics context used for drawing. |
| concretSelection[IN] | the selection boss. |
| flags[IN] | default as kNoFlags and serves as a drawing flag. |
| pure virtual |
Draw the path based on item's control points.
| iHandleShape[IN] | the owning page item. |
| adornmentDrawOrder[IN] | the draw order of the adornment, in case this adornment is used more than once. |
| gd[IN] | the graphics context used for drawing. |
| flags[IN] | default as kNoFlags and serves as a drawing flag. |
| pure virtual |
Obtain the adornment draw mode kNonTouchDrawMode - Draw only in non touch mode kTouchDrawMode - Draw only in touch mode kBothDrawMode - Draw in both modes
| pure virtual |
Retrieve the draw order flags
| pure virtual |
Returns the bounding box by computing it in pasteboard coords and then transforming it by inner to view.
| iHandleShape[IN] | the owning page item. |
| adornmentDrawOrder[IN] | the draw order of the adornment, in case this adornment is used more than once. |
| itemBounds[IN] | the painted bounds of the page item. |
| innertoview[IN] | inner to view matrix. |
| pure virtual |
Check if a particular adornment handle of the item has been hit or not within the specified area.
| iHandleShape[IN] | the owning page item. |
| adornmentDrawOrder[IN] | the draw order of the adornment, in case this adornment is used more than once. |
| gd[IN] | the graphics context used for hit testing. |
| r[IN] | the area for checking hit test. |
| handleIndex[IN] | the index of adornment handle. |
| bDragging[IN] | the flag which indicates whether dragging is on or not. |
| pure virtual |
Check if the control point path has been hit or not.
| iHandleShape[IN] | the owning page item. |
| adornmentDrawOrder[IN] | the draw order of the adornment, in case this adornment is used more than once. |
| gd[IN] | the graphics context used for hit testing. |
| r[IN] | the area for checking hit test. |
| pure virtual |
Query for any tip implemented on the Adornment. If there is any tip on the Adornment then the ITip interface Ptr will be returned else nil is returned in the default implementation.
| handleIndex[IN] | the index of the handle for the adornment. |
| pure virtual |
Query the tracker based on the given mouse position, hit test mode and adornment handle index.
| iHandleShape[IN] | the owning page item. |
| adornmentDrawOrder[IN] | the draw order of the adornment, in case this adornment is used more than once. |
| layView[IN] | the active layout view where mouse is on. |
| where[IN] | the mouse position based on pasteboard coordinate. |
| selectionMode[IN] | the hit test flags. |
| index[IN] | specifies the index of adornment handle. |