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

#include <IUIFontSpec.h>

Inheritance diagram for IUIFontSpec:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IUIFONTSPEC }
 

Public Member Functions

virtual void SetFontID (const int32 &interfaceElementId)=0
 
virtual int32 GetFontID () const =0
 
virtual void SetHiliteFontID (const int32 &interfaceElementId)=0
 
virtual int32 GetHiliteFontID () 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

Interface for specifying which UI font to use for a control. Default fonts for controls are determined by the window the control is in.

See Also
IWindow::GetFont This interface is used to override this default behavior.

Member Function Documentation

virtual int32 IUIFontSpec::GetFontID () const
pure virtual

Get the font ID. This is an ID that can be used to look up the corresponding interface font in IInterfaceFonts interface.

See Also
ShuksanID.h for interface font IDs
Returns
which UI font to use for this widget, i.e. kPaletteWindowFontId
virtual int32 IUIFontSpec::GetHiliteFontID () const
pure virtual

Get the hilite font ID. This is an ID that can be used to look up the corresponding interface font in IInterfaceFonts interface.

See Also
ShuksanID.h for interface font IDs. The hilite font is used when drawing some widgets in a selected state.
Returns
which UI font to use for this widget when selected, i.e. kPaletteWindowHiliteFontId
virtual void IUIFontSpec::SetFontID (const int32 & interfaceElementId)
pure virtual

Set the font ID. This is an ID that can be used to look up the corresponding interface font in IInterfaceFonts interface.

See Also
ShuksanID.h for interface font IDs
Parameters
interfaceElementIdspecifies which UI font to use for this widget, i.e. kPaletteWindowFontId
virtual void IUIFontSpec::SetHiliteFontID (const int32 & interfaceElementId)
pure virtual

Set the hilite font ID. This is an ID that can be used to look up the corresponding interface font in IInterfaceFonts interface.

See Also
ShuksanID.h for interface font IDs. The hilite font is used when drawing some widgets in a selected state.
Parameters
interfaceElementIdspecifies which UI font to use for this widget when selected, i.e. kPaletteWindowHiliteFontId