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

Public Types | |
| enum | { kDefaultIID = IID_ICOLORPICKERPANELMODKEYSTATEDATA } |
| enum | { kPickerPanel_AltOptKeyPressed = 0x04, kPickerPanel_CmdKeyPressed = 0x02, kPickerPanel_ShiftKeyPressed = 0x01 } |
Public Member Functions | |
| virtual void | SetKeyState (int32 keyState)=0 |
| virtual void | SetStrokeUID (UID strokeColorUID)=0 |
| virtual void | SetStrokeTint (PMReal strokeTint)=0 |
| virtual void | SetStrokeIsGlobal (bool16 isGlobal)=0 |
| virtual void | SetFillUID (UID fillColorUID)=0 |
| virtual void | SetFillTint (PMReal fillTint)=0 |
| virtual void | SetFillIsGlobal (bool16)=0 |
| virtual void | UpdateStrokeColorspaceColorData (int32 colorspace, const ColorArray &colorValues, const PMReal &tint)=0 |
| virtual void | UpdateFillColorspaceColorData (int32 colorspace, const ColorArray &colorValues, const PMReal &tint)=0 |
| virtual void | ResetCachedColorValues ()=0 |
| virtual int32 | GetKeyState (void) const =0 |
| virtual UID | GetStrokeUID (void) const =0 |
| virtual PMReal | GetStrokeTint (void) const =0 |
| virtual bool16 | StrokeIsGlobal (void) const =0 |
| virtual UID | GetFillUID (void) const =0 |
| virtual PMReal | GetFillTint (void) const =0 |
| virtual bool16 | FillIsGlobal (void) const =0 |
| virtual ColorArray | GetStrokeColorspaceColorData (int32 colorspace)=0 |
| virtual ColorArray | GetFillColorspaceColorData (int32 colorspace)=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 is a helper interface which keeps track of some KBSC key state and states of stroke or fill color data for Color Panel. This is mainly used for processing user action with modifier keys in the Color Panel such as switching color space using shift-click.
| anonymous enum |
| pure virtual |
Returns true if current fill color UID is a global color swatch.
| pure virtual |
Returns the cached fill color value corresponding the specified color space.
| colorspace | is the color space for the fill color value being returned. |
| pure virtual |
Returns the current fill color UID.
| pure virtual |
Returns the current fill color UID.
| pure virtual |
Returns the current key state.
| pure virtual |
Returns the cached stroke color value corresponding the specified color space.
| colorspace | is the color space for the stroke color value being returned. |
| pure virtual |
Returns the current stroke tint percent.
| pure virtual |
Returns the current stroke color UID.
| pure virtual |
Reset the cached color values for stroke and fill color.
| pure virtual |
Sets to true to indicate that current fill color is a global swatch.
| isGlobal | is set to true to indicate that the current fill color is a global color swtach. |
| pure virtual |
Sets the current fill tint percent.
| fillTint | the fill tint percent. |
| pure virtual |
Sets the current fill color UID.
| fillColorUID | the fill color UID. |
| pure virtual |
Sets the current key state. Key states is one of kPickerPanel_AltOptKeyPressed, kPickerPanel_CmdKeyPressed, or kPickerPanel_ShiftKeyPressed.
| keyState | the current key state. |
| pure virtual |
Sets to true to indicate that current stroke color is a global swatch.
| isGlobal | is set to true to indicate that the current stroke color is a global color swtach. |
| pure virtual |
Sets the current stroke tint percent.
| strokeTint | the stroke tint percent. |
| pure virtual |
Sets the current stroke color UID.
| strokeColorUID | the stroke color UID. |
| pure virtual |
Returns true if current stroke color UID is a global color swatch.
| pure virtual |
Update the current fill color.
| colorspace | is the color space to update to. |
| colorValue | is the color values corresponding to the color space. |
| tint | is the tint percent to apply to. |
| pure virtual |
Update the current stroke color.
| colorspace | is the color space to update to. |
| colorValue | is the color values corresponding to the color space. |
| tint | is the tint percent to apply to. |