|
Public Member Functions |
|
| CP_ATSUI_TextBlock () |
| Constructor.
|
| CP_ATSUI_TextBlock (const CP_String &inText, const CP_Rect &inBounds, const CP_FontSpec &inFontSpec) |
virtual | ~CP_ATSUI_TextBlock () throw () |
| Destructor.
|
|
void | DrawString (CPLAT::CP_Canvas &inDestCanvas, const CP_String &inText, const CP_Rect &inBounds, const CP_FontSpec &inFontSpec) |
void | DrawText () |
void | DrawText (const CP_String &inText, const CP_Rect &inBounds, const CP_FontSpec &inFontSpec) |
Protected Member Functions |
|
OSStatus | ATSUI_GetOneAttribute (ATSUStyle iStyle, ATSUAttributeTag iTag, ByteCount iExpectedValueSize, ATSUAttributeValuePtr oValue) |
OSStatus | ATSUI_GetOneLayoutControl (ATSUTextLayout iLayout, ATSUAttributeTag iTag, ByteCount iExpectedValueSize, ATSUAttributeValuePtr oValue) |
Fract | ATSUI_FlushFactorFromTEAlignment (SInt16 alignment) |
ATSUFontID | GetFontIDFromMacFontName (Str255 fontName) |
|
OSStatus | ATSUI_SetBooleanAttribute (ATSUStyle iStyle, Boolean iSetting, ATSUAttributeTag iTag) |
OSStatus | ATSUI_SetFixedAttribute (ATSUStyle iStyle, Fixed iValue, ATSUAttributeTag iTag) |
OSStatus | ATSUI_SetFractAttribute (ATSUStyle iStyle, Fract iValue, ATSUAttributeTag iTag) |
OSStatus | ATSUI_SetIntAttribute (ATSUStyle iStyle, SInt32 iValue, ATSUAttributeTag iTag) |
OSStatus | ATSUI_SetShortAttribute (ATSUStyle iStyle, SInt16 iValue, ATSUAttributeTag iTag) |
OSStatus | ATSUI_SetPtrAttribute (ATSUStyle iStyle, void *iValue, ATSUAttributeTag iTag) |
OSStatus | ATSUI_SetBooleanLayoutControl (ATSUTextLayout iLayout, Boolean iValue, ATSUAttributeTag iTag) |
OSStatus | ATSUI_SetFixedLayoutControl (ATSUTextLayout iLayout, Fixed iValue, ATSUAttributeTag iTag) |
OSStatus | ATSUI_SetFractLayoutControl (ATSUTextLayout iLayout, Fract iValue, ATSUAttributeTag iTag) |
OSStatus | ATSUI_SetShortLayoutControl (ATSUTextLayout iLayout, SInt16 iValue, ATSUAttributeTag iTag) |
OSStatus | ATSUI_SetPtrLayoutControl (ATSUTextLayout iLayout, void *iValue, ATSUAttributeTag iTag) |
Private Member Functions |
void | Init () |
void | InitATSUIStyle () |
void | SetFont (ATSUStyle theStyle, Str255 fontName) |
void | BreakTextInLines () |
Private Attributes |
CP_String | fText |
CP_Rect | fBounds |
CP_FontSpec | fFontSpec |
UniCharArrayPtr | fUnicodeText |
UniCharCount | fTextLength |
ATSUTextMeasurement | fHorLocation |
ATSUTextMeasurement | fVerLocation |
ATSUTextMeasurement | fMaxAscent |
ATSUTextMeasurement | fMaxDescent |
ATSUTextMeasurement | fLineHeight |
ItemCount | fNumberOfLines |
UniCharArrayOffset * | fEndOfLines |
ItemCount | fNumberOfRuns |
UniCharCount * | fRunLengths |
ATSUStyle * | fStyles |
ATSUTextLayout | fTextLayout |