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

Public Types | |
| enum | thumbType { kMidPointThumb = 0, kStopThumb } |
| enum | updateType { kNormal = 0, kSelectThumb, kInsertThumbStop, kDragThumb, kDeactivatePanel, kActivatePanel, kIndeterminate, kNone } |
Public Member Functions | |
| virtual void | DoNotify ()=0 |
| virtual void | UpdateSliderData (const IGradientFill *newGradientData)=0 |
| virtual void | SetNumberOfStop (int16 stopNum)=0 |
| virtual void | SetNthThumbPosition (int16 index, PMReal thumbPosition)=0 |
| virtual void | InsertThumb (int16 index, PMReal thumbPosition)=0 |
| virtual void | SetSelectedThumbIndex (int16 thumbSelectedIndex, bool16 updateBlockIndex=kTrue)=0 |
| virtual void | SetDragDropHitThumbIndex (int16 thumbIndex)=0 |
| virtual void | SetLastEventValue (PMReal value)=0 |
| virtual void | SetLastUpdateType (int16 updateType)=0 |
| virtual void | SetLastUpdateBool (bool16 update)=0 |
| virtual void | SetLastHitPoint (PMPoint hitPoint)=0 |
| virtual void | SetNthMidPointRatio (int16 index, PMReal ratio)=0 |
| virtual void | InsertNthMidPointRatio (int16 index, PMReal ratio)=0 |
| virtual void | SetIsDragging (bool16 isDragging)=0 |
| virtual void | SetRemovedColorSave (bool16 bColorSave)=0 |
| virtual void | SetDeactivatePanel (bool16 panelDeactivate)=0 |
| virtual void | SetInGradientDialog (bool16 inDialog)=0 |
| virtual IRenderingObject * | GetGradientRenderingObject ()=0 |
| virtual IRenderingObject * | GetSliderRenderingObject ()=0 |
| virtual K2Vector< PMReal > | GetThumbList ()=0 |
| virtual int16 | GetTotalThumbNum ()=0 |
| virtual int16 | GetNumberOfStop ()=0 |
| virtual PMReal | GetNthThumbPosition (int16 index)=0 |
| virtual int16 | GetNthThumbType (int16 index)=0 |
| virtual IColorData * | QueryNthColorMetaData (int16 index)=0 |
| virtual PMRect | GetSliderRect (IControlView *sliderView)=0 |
| virtual void | RemoveThumbStop (int16 index)=0 |
| virtual int16 | GetSelectedThumbIndex ()=0 |
| virtual int16 | GetDragDropHitThumbIndex ()=0 |
| virtual int16 | GetHitThumb (IControlView *view, PMPoint hitPoint, int16 tolerance)=0 |
| virtual PMReal | GetLastEventValue ()=0 |
| virtual int16 | GetLastUpdateType ()=0 |
| virtual bool16 | GetLastUpdateBool ()=0 |
| virtual PMPoint | GetLastHitPoint ()=0 |
| virtual void | GetMidPointRatio (K2Vector< PMReal > *thumbList)=0 |
| virtual PMReal | GetNthMidPointRatio (int16 index)=0 |
| virtual bool16 | IsDragging ()=0 |
| virtual void | RelocateNthThumb (int16 thumbIndex, PMReal toPosition)=0 |
| virtual void | UpdateSlider (int16 updateType, int16 hitIndex, PMPoint hitPoint, bool16 bUpdate=kTrue)=0 |
| virtual int16 | GetPosibleThumbIndex (PMReal thumbPosition)=0 |
| virtual PMReal | MapThumbIndexToSliderPosition (int16 index, PMRect &frame)=0 |
| virtual PMReal | MapSliderPositionToThumbPosition (PMReal sliderPosition)=0 |
| virtual PMReal | MapLocalPointToSliderPosition (const PMPoint &localPoint)=0 |
| virtual bool16 | IsPanelDeactivate ()=0 |
| virtual bool16 | IsRemovedColorSave ()=0 |
| virtual bool16 | IsInDialog ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface manipulates the data and the controls on the gradient slider.
| pure virtual |
Broadcast a gradient data change message. The change is kRealChangeStateMessage and the protocol is IID_IGRADIENTSLIDERCONTROLDATA.
| pure virtual |
Return the current active thumb index hit by drag and drop action.
| pure virtual |
Return the thumb index hit by the specified point within a given tolerance.
| view | is the gradient slider control view. |
| hitPoint | is the point. |
| tolerance | is the tolerance. |
| pure virtual |
Returns the last event value. This is the slider position of the last mouse event.
| pure virtual |
Returns the last update hit point.
| pure virtual |
Returns the last update boolean.
| pure virtual |
Returns the last slider update type.
| pure virtual |
Returns the list of midpoint ratios.
| pure virtual |
Get the nth midpoint ratio.
| index | specifies the nth midpoint. |
| pure virtual |
Return the position of the nth slider thumb.
| index | specifies the nth thumb. |
| pure virtual |
Return the thumb type for the nth slider thumb.
| index | specifies the nth slider thumb. |
| pure virtual |
Return the number of slider color stops.
| pure virtual |
Given a new thumb position, determine where in the thumb list the new position will fit. The return index is the thumb position before the new thumb.
| thumbPosition | is the new thumb position. |
| pure virtual |
Return the currently selected thumb index.
| pure virtual |
Return the rectangle that is the gradient slider view area. This includes the area below and above the sliders where the color stops and midpoint thumbs are.
| sliderView | the gradient slider control view. |
| pure virtual |
Return the gradient slider gradient rendering object.
Returns the list of slider thumb positions.
| pure virtual |
Return total number of slider thumbs. This include midpoints and color stops.
| pure virtual |
Insert nth midpoint ratio.
| index | is the nth midpoint. |
| ratio | is the midpoint ratio. |
| pure virtual |
Insert the new thumb location at the specified position.
| index | is the new thumb stop. |
| thumbPosition | is the new position for the new stop. |
| pure virtual |
Return true if a slider thumb is being dragged.
| pure virtual |
Returns true if the gradient slider is used in the dialog.
| pure virtual |
Returns true if panel is being deactivated.
| pure virtual |
Returns true if color data of the removed stop index should be saved..
| pure virtual |
Return the corresponding slider position relative to the slider frame, given a point in the parent panel's coordiate.
| localPoint | is the point in the parent's coordinates. |
| pure virtual |
Return the corresponding thumb position, given a position in the coordinates of slider frame. The thumb position is normalized to values between 0.0 and 1.0.
| sliderPosition | is the position in the slider frame. |
| pure virtual |
Return the nth thumb index position relative to the gradient slider frame width.
| index | specifies the nth thumb. |
| frame | is the gradient slider frame. |
| pure virtual |
Return the color data of the nth color stop.
| index | specifies the nth color stop. |
| pure virtual |
Relocate the Nth thumb to the new location. The midpoint is automatically re-adjusted.
| thumbIndex | specifies the nth thumb. |
| toPosition | specifies the new position. |
| pure virtual |
Remove the slider thumb at the nth position.
| index | specifies the nth slider thumb. |
| pure virtual |
Set a boolean indicating the gradient panel is being deactivated.
| panelDeactivate | true if gradient panel is being deactivated. |
| pure virtual |
Set the target thumb index for the drag and drop.
| thumbIndex | is the target index. |
| pure virtual |
Set a boolean indicating the gradient slider control is a dailog control. inDialog indicates gradient slider is used a dialog control.
| pure virtual |
Set a boolean indicating that a slider thumb is being dragged.
| isDragging | is true if a thum is being dragged. |
| pure virtual |
Set the last event value. This is the slider position of the last mouse event.
| value | is the last event value. |
| pure virtual |
Sets the last hit point on the gradient slider.
| hitPoint | is the hit point. |
| pure virtual |
Set the last update boolean.
| update | specifies the boolean value. |
| pure virtual |
Set the last gradient slider update type.
| updateType | specifies the update type. This should be one of IGradientSliderControlData::updateType. |
| pure virtual |
Set the nth midpoint thumb stop's ratio.
| index | is the nth midpoint. |
| ratio | is the midpoint ratio. |
| pure virtual |
Sets the nth thumb stop at the new position. If nth stop already exists, replace it with the new position.
| index | is nth thumb stop. |
| thumbPosition | is the new position for the thumb stop. |
| pure virtual |
Set the number of slider thumbs for the gradient slider.
| stopNum | specifies the number of slider thumbs. |
| pure virtual |
Set a boolean indicating the color data should be saved when color stop is removed.
| pure virtual |
Set the current selected index to the specified index.
| thumbSelectedIndex | is the new selected thumb index. |
| updateBlockIndex | is true if this is also the color stop index being updated. |
| pure virtual |
Update the gradient slider
| upateType | specifies the update type. This is one of IGreadientSliderControldata::UpdateType. |
| hitIndex | specifies the thumb index hit. |
| hitPoint | specifies the hit point. |
| bUpdate | is true if the slider data should be updated. |
| pure virtual |
Update the gradient slider data with the new gradient data.
| newGradientData | is the new gradient data. |