![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_IOPACITYGRADIENTSTOPS } |
Public Member Functions | |
| virtual void | ResetToDefault ()=0 |
| virtual void | DeleteAllStops ()=0 |
| virtual int32 | GetNumStops () const =0 |
| virtual int32 | InsertStop (int32 beforeStop=-1)=0 |
| virtual bool32 | DeleteStop (int32 whichStop)=0 |
| virtual void | SetStopOpacity (int32 whichStop, PMReal opacity)=0 |
| virtual PMReal | GetStopOpacity (int32 whichStop) const =0 |
| virtual int32 | SetStopPosition (int32 whichStop, PMReal position, bool32 autoRearrange=kTrue)=0 |
| virtual PMReal | GetStopPosition (int32 whichStop) const =0 |
| virtual void | SetStopMidpoint (int32 whichStop, PMReal midpoint)=0 |
| virtual PMReal | GetStopMidpoint (int32 whichStop) const =0 |
| virtual void | SetStopMidpointRelativeLocation (int32 whichStop, PMReal relLoc)=0 |
| virtual PMReal | GetStopMidpointRelativeLocation (int32 whichStop) const =0 |
| virtual bool16 | Equals (const IOpacityGradientStops *iOther) const =0 |
| virtual void | CopyFrom (const IOpacityGradientStops *iOther)=0 |
| virtual IDataBase * | GetDataBase (void) 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 |
| pure virtual |
Makes a copy of another gradient's data. Any existing data in this gradient is wiped.
| pSrc | The gradient data from which to copy. |
| pure virtual |
Resets the gradient to a no-stop configuration. Note that this isn't technically a valid gradient state; you'll need to add at least two stops for it to be valid.
| pure virtual |
Removes the stop at the specified location.
| whichStop | IN The stop you want to delete. |
| pure virtual |
Return kTrue if both sets of gradient data are equal.
| iOther | The gradient to compare. |
| pure virtual |
Return the data base associated with this gradient data.
| pure virtual |
Returns the number of stops in the gradient.
| pure virtual |
Get the midpoint for a particular stop.
| whichStop | IN Which stop to set. |
| pure virtual |
Get the relative location for a particular stop.
| whichStop | IN Which stop to set. |
| pure virtual |
Get the opacity for a particular stop.
| whichStop | IN Which stop to set. |
| pure virtual |
Get the position for a particular stop.
| whichStop | IN Which stop to set. |
| pure virtual |
Adds a new stop at the specified location.
| beforeStop | IN The stop before which you want to add the new stop; -1 adds at the end. |
| pure virtual |
Resets the gradient to the default configuration (100% opacity to 0% opacity).
| pure virtual |
Set the midpoint for a particular stop.
| whichStop | IN Which stop to set. |
| midpoint | IN The midpoint to assign to the stop. |
| pure virtual |
Set the relative location for a particular stop.
| whichStop | IN Which stop to set. |
| relLoc | IN The relative location to assign to the stop. |
| pure virtual |
Set the opacity for a particular stop.
| whichStop | IN Which stop to set. |
| opacity | IN The opacity to assign to the stop. |
| pure virtual |
Set the position for a particular stop.
| whichStop | IN Which stop to set. |
| position | IN The position to assign to the stop. |
| autoRearrange | IN True to rearrange stop indices automatically based on location comparisons. If False, the position will be set without any checking; the caller is responsible for maintaining correct ordering. This is useful if you want to create a particular arrangement of stops (legal, of course) without the auto-rearranging switching indices around on you. |