InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CRenderingObjectDrawer Class Reference
Inheritance diagram for CRenderingObjectDrawer:
CPMUnknown< IRenderingObjectDrawer >IRenderingObjectDrawerIPMUnknown

Public Types

enum  { kRenderObjectSwatchStart = 4, kSwatchNameStart = kRenderObjectSwatchStart + 3, kIconInset = 3, kSwatchesPanelIconWidth = 13 }
 

Public Member Functions

 CRenderingObjectDrawer (IPMUnknown *boss)
 
virtual void DrawRenderObjectUI (IViewPort *viewPort, IControlView *view, SysRgn updateRgn, PMRect frame) const
 
virtual void DrawRenderObjectUIName (IGraphicsContext *gc, const InterfaceFontInfo &fontInfo, const PMRect &frame, const int16 &alignment, const bool16 &isHilited, const bool16 &isEnabled) const
 
virtual void DrawRenderObjectUISwatch (IGraphicsPort *gPort, const PMRect &frame) const
 
virtual void DrawRenderObjectUIIcons (IViewPort *viewPort, const SysRect &sysFrame, const bool16 &brightnessAware=kTrue) const
 
- Public Member Functions inherited from CPMUnknown< IRenderingObjectDrawer >
IPMUnknownQueryInterface (PMIID interfaceID) const
 
void AddRef () const
 
void Release () const
 
void PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue)
 
void PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue)
 
 CPMUnknown (const CPMUnknown &)=delete
 
CPMUnknownoperator= (const CPMUnknown &)=delete
 

Protected Member Functions

void DrawNoEditIcon (IViewPort *viewPort, const SysRect &bbox, const bool16 &brightnessAware=kTrue) const
 
void DrawBackground (IGraphicsPort *gPort, const IControlView *widget, const PMRect &frame, const bool16 &isHilited, const bool16 &bInsetHilite) const
 
- Protected Member Functions inherited from CPMUnknown< IRenderingObjectDrawer >
 CPMUnknown (IPMUnknown *boss)
 

Additional Inherited Members

- Protected Attributes inherited from CPMUnknown< IRenderingObjectDrawer >
HelperInterface fHelperInterface
 

Member Function Documentation

virtual void CRenderingObjectDrawer::DrawRenderObjectUI (IViewPortviewPort,
IControlViewview,
SysRgn updateRgn,
PMRect frame 
) const
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.

Implements IRenderingObjectDrawer.

virtual void CRenderingObjectDrawer::DrawRenderObjectUIIcons (IViewPortviewPort,
const SysRectsysFrame,
const bool16 & brightnessAware = kTrue 
) const
inlinevirtual

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.

Implements IRenderingObjectDrawer.

virtual void CRenderingObjectDrawer::DrawRenderObjectUIName (IGraphicsContextgc,
const InterfaceFontInfofontInfo,
const PMRectframe,
const int16 & alignment,
const bool16 & isHilited,
const bool16 & isEnabled 
) const
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.

Implements IRenderingObjectDrawer.

virtual void CRenderingObjectDrawer::DrawRenderObjectUISwatch (IGraphicsPortgPort,
const PMRectframe 
) const
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.

Implements IRenderingObjectDrawer.