InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CColorContext Class Reference

#include <CColorContext.h>

Public Member Functions

 CColorContext ()
 
 ~CColorContext ()
 
bool16 GetRGBColor (const IInterfaceColors::InterfaceColor index, RGBColor &rgb) const
 
bool16 GetRealAGMColor (const IInterfaceColors::InterfaceColor index, RealAGMColor &rgb) const
 

Protected Attributes

IInterfaceColorsfIInterfaceColors
 

Detailed Description

Simple class wrapper around IInterfaceColors. Also the base class for a pair of platform-specific helper classes, MColorContext and WColorContext

See Also
IInterfaceColors
MColorContext
WColorContext

Constructor & Destructor Documentation

CColorContext::CColorContext ()

Default constructor. Acquires session's IInterfaceColors interface

CColorContext::~CColorContext ()

Destructor. Releases IInterfaceColor acquired in constructor

Member Function Documentation

bool16 CColorContext::GetRealAGMColor (const IInterfaceColors::InterfaceColor index,
RealAGMColorrgb 
) const

Gets the RGB color specified by the given UI color selector as a RealAGMColor.

Parameters
indexIN The selector for the UI color to return
rgbOUT The color being requested
Returns
kTrue if method succeeds, else kFalse
See Also
IInterfaceColors::InterfaceColor
IInterfaceColors::GetRealAGMColor
bool16 CColorContext::GetRGBColor (const IInterfaceColors::InterfaceColor index,
RGBColorrgb 
) const

Gets the RGB color specified by the given UI color selector as an RGBColor.

Parameters
indexIN The selector for the UI color to return
rgbOUT The color being requested
Returns
kTrue if method succeeds, else kFalse
See Also
IInterfaceColors::InterfaceColor
IInterfaceColors::GetRGBColor