![]() | InDesign SDK 20.5 |
#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 | |
| IInterfaceColors * | fIInterfaceColors |
Simple class wrapper around IInterfaceColors. Also the base class for a pair of platform-specific helper classes, MColorContext and WColorContext
| CColorContext::CColorContext | ( | ) |
Default constructor. Acquires session's IInterfaceColors interface
| CColorContext::~CColorContext | ( | ) |
Destructor. Releases IInterfaceColor acquired in constructor
| bool16 CColorContext::GetRealAGMColor | ( | const IInterfaceColors::InterfaceColor | index, |
| RealAGMColor & | rgb | ||
| ) | const |
Gets the RGB color specified by the given UI color selector as a RealAGMColor.
| index | IN The selector for the UI color to return |
| rgb | OUT The color being requested |
| bool16 CColorContext::GetRGBColor | ( | const IInterfaceColors::InterfaceColor | index, |
| RGBColor & | rgb | ||
| ) | const |
Gets the RGB color specified by the given UI color selector as an RGBColor.
| index | IN The selector for the UI color to return |
| rgb | OUT The color being requested |