InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IRenderingObjectDrawer Class Referenceabstract

#include <IRenderingObjectDrawer.h>

Inheritance diagram for IRenderingObjectDrawer:
IPMUnknownCPMUnknown< IRenderingObjectDrawer >CRenderingObjectDrawer

Public Types

enum  { kDefaultIID = IID_IRENDERINGOBJECTDRAWER }
 

Public Member Functions

virtual void DrawRenderObjectUI (IViewPort *viewPort, IControlView *view, SysRgn updateRgn, PMRect frame) const =0
 
virtual void DrawRenderObjectUIName (IGraphicsContext *gc, const InterfaceFontInfo &fontInfo, const PMRect &frame, const int16 &alignment, const bool16 &isHilited, const bool16 &isEnabled) const =0
 
virtual void DrawRenderObjectUISwatch (IGraphicsPort *gPort, const PMRect &frame) const =0
 
virtual void DrawRenderObjectUIIcons (IViewPort *viewPort, const SysRect &sysFrame, const bool16 &brightnessAware=kTrue) const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

A reqruied interface for all InDesign rendering objects. All rendering objects are represented by swatches. ISwatchList

Member Function Documentation

virtual void IRenderingObjectDrawer::DrawRenderObjectUI (IViewPortviewPort,
IControlViewview,
SysRgn updateRgn,
PMRect frame 
) const
pure virtual

Draw this rendering object UI.

Parameters
viewPortthe view port in which the rendering object UI will be drawn.
viewthe control view in which the rendering object UI will be drawn.
updateRgnthe affected updateRgn.

Implemented in CRenderingObjectDrawer.

virtual void IRenderingObjectDrawer::DrawRenderObjectUIIcons (IViewPortviewPort,
const SysRectsysFrame,
const bool16 & brightnessAware = kTrue 
) const
pure virtual

Draw the icons for the rendering object.

Parameters
gPortthe graphic port in which to draw the color swatch.
sysFramethe size of the frame to draw one or more icons to.
brightnessAwaredefault kTrue, icons will be brightness aware.

Implemented in CRenderingObjectDrawer.

virtual void IRenderingObjectDrawer::DrawRenderObjectUIName (IGraphicsContextgc,
const InterfaceFontInfofontInfo,
const PMRectframe,
const int16 & alignment,
const bool16 & isHilited,
const bool16 & isEnabled 
) const
pure virtual

Draw the rendering object UI name in the specified graphic context.

Parameters
fontInfothe font to use to draw the name.
framethe rectangular frame in which the name should be drawn.
alignmentwhere the name should be aligned.
isHilitedkTrue if the name should be drawn as highlighted.
isEnabledkTrue if the name should be drawn as enabled.

Implemented in CRenderingObjectDrawer.

virtual void IRenderingObjectDrawer::DrawRenderObjectUISwatch (IGraphicsPortgPort,
const PMRectframe 
) const
pure virtual

Draw the color swatch representing the rendering object.

Parameters
gPortthe graphic port in which to draw the color swatch.
framethe size of the color swatch.

Implemented in CRenderingObjectDrawer.