|
Public Member Functions |
|
| | CP_TextBlock (CP_Canvas &inDestCanvas, const CP_String &inText, const CP_Rect &inBounds, SInt16 inLineSpacing=-1) |
| | Constructor.
|
| | CP_TextBlock (const CP_TextBlock &inTextBlock) |
| virtual | ~CP_TextBlock () throw () |
| | Destructor.
|
|
| void | DrawText (SInt16 inHorJustification, SInt16 inVerJustification) |
|
| SInt16 | GetLineSpacing () |
| SInt32 | GetLongestLineLength () |
| SInt32 | GetActualTextDepth () |
|
| void | SetLineSpacing (SInt16 inLineSpacing) |
|
| void | DrawTrunc (SInt16 inHorAlign=CP_E_TextAlign_HorLeft, SInt16 inVerAlign=CP_E_TextAlign_VerTop) |
Protected Attributes |
| CP_Canvas | fDestCanvas |
| CP_String | fText |
| CP_Rect | fBounds |
| CP_SInt32s_Array | fLineStarts |
| CP_SInt32s_Array | fLineLengths |
| SInt16 | fLineSpacing |
| GdkFont * | fCanvasGdkFont |
| CP_FontMetrics * | fDestCanvasFontMetrics |
Private Member Functions |
|
| void | CalcLineEndings () |
| SInt32 | CalcVerStartPosn (SInt16 inVerJustification, SInt16 inLineHeight, SInt16 inLeading, SInt32 inNumberLines, SInt32 inAscentHeight) |
| SInt32 | CalcHorStartPosn (SInt16 inHorJustification, char *inText, SInt32 inLineStart, SInt32 inlineLength) |
| bool | IsWordBreakChar (char inCharacter) |
|
| void | DrawLine (SInt32 inHorPosn, SInt32 inVerPosn, char *inText, SInt32 inTextStart, SInt32 inLineLength) |
|
| void | DrawLine (SInt32 inHorPosn, SInt32 inVerPosn, char *inText, SInt32 inTextStart, SInt32 inLineLength) |
|
| void | DrawLine (SInt32 inHorPosn, SInt32 inVerPosn, char *inText, SInt32 inTextStart, SInt32 inLineLength) |