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

Public Types | |
| enum | { kDefaultIID = IID_IRENDERINGOBJECTUI } |
| enum | ApplyAction { kNone = -1, kApplyToStroke, kApplyToFill } |
Public Member Functions | |
| virtual void | DrawProxy (IGraphicsPort *gPort, const PMRect &r) const =0 |
| virtual bool16 | SupportsStroke () const =0 |
| virtual bool16 | SupportsFill () const =0 |
| virtual void | SelectSwatchHelper (UID gfxRenderUID, ApplyAction applyAction, bool16 swatchSelectionIsUnique=kFalse) const =0 |
| virtual bool16 | CustomDrawProxy ()=0 |
| virtual bool16 | GetProxyIconID (RsrcID &iconLarge, RsrcID &iconSmall)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Unless you have created your own form of rendering object – the equal of a color, gradient, tint, etc – you are unlikely to be interested in this interface. It allows the UI behavior of a rendering object to be refined.
Parameter used in SelectSwatchHelper().
| Enumerator | |
|---|---|
| kNone | Unknown Action (error condition). |
| kApplyToStroke | Action is to be applied to current stroke. |
| kApplyToFill | Action is to be applied to current fill. |
| pure virtual |
Whether or not DrawProxy should be called to draw the proxy for this rendering object. If false, then the redering object is simply installed in the port and drawn.
| pure virtual |
By default, a rendering object is assumed to be a paint that can be installed on a port, and then 'filled.' This mechanism is used to draw the proxy control into the specified rectangle. This function, however, allows the implementation to override the proxy draw, painting an image, icon, etc.
| gPort | the port to draw into. |
| r | the rect to draw into. |
| pure virtual |
Returns an icon ID to draw in the proxy view. If there is none, the function returns false and the icon id is not modified.
| pure virtual |
Help determine how this swatch should be selected given the current active swatch selection in the graphic state and whether the selection applies to the current fill or stroke.
| gfxRenderUID | the current active swatch UID in the graphic state. |
| applyAction | whether the action is to be applied to fill or stroke. |
| swatchSelectionIsUnique | indicate if the current selection already has the same swatch, gfxRenderUID, applied before this swatch is applied. |
| pure virtual |
Should return true if this rendering object can be applied to a fill.
| pure virtual |
Should return true if this rendering object can be applied to a stroke.