|
| CGUIRichText (const CGUIObject *const pkParentObject, const eC_String &kText, const eC_Value &vXPos=eC_FromInt(0), const eC_Value &vYPos=eC_FromInt(0), const eC_Bool &bSingleLine=true) |
|
| CGUIRichText (const CGUIObject *const pkParentObject, const eC_String *const pkText, const eC_Value &vXPos=eC_FromInt(0), const eC_Value &vYPos=eC_FromInt(0), const eC_Bool &bSingleLine=true) |
|
| CGUIRichText (const CGUIObject *const pkParentObject, const TextResource_t &eTextID, const eC_Value &vXPos=eC_FromInt(0), const eC_Value &vYPos=eC_FromInt(0), const eC_Bool &bSingleLine=true) |
|
| CGUIRichText (const CGUIRichText &kTextToBeCopied) |
|
virtual | ~CGUIRichText () |
|
virtual CGUIRichText * | Clone () const |
|
void | EnablePreformatting (const eC_Bool &bPreformatText) |
|
const eC_String & | GetFormatTagBold () const |
|
const eC_String & | GetFormatTagClosing () const |
|
const eC_String & | GetFormatTagColor () const |
|
const eC_String & | GetFormatTagFinished () const |
|
const eC_String & | GetFormatTagItalic () const |
|
const eC_String & | GetFormatTagLineBreak () const |
|
const eC_String & | GetFormatTagListItem () const |
|
const eC_String & | GetFormatTagNoBreak () const |
|
const eC_String & | GetFormatTagOpening () const |
|
const eC_String & | GetFormatTagOrderedList () const |
|
const eC_String & | GetFormatTagUnderlined () const |
|
const eC_String & | GetFormatTagUnorderedList () const |
|
virtual void | GetRequiredOrgTextSpace (eC_Value &vTextWidth, eC_Value &vTextHeight) |
|
eC_Bool | IsTextPreformatted () |
|
CGUIRichText & | operator= (const CGUIRichText &kSource) |
|
virtual void | PrintText () |
|
virtual void | SetFont (const FontResource_t &eFontID) |
|
void | SetFormatTagBold (const eC_String &kTag) |
|
void | SetFormatTagClosing (const eC_String &kTag) |
|
void | SetFormatTagColor (const eC_String &kTag) |
|
void | SetFormatTagFinished (const eC_String &kTag) |
|
void | SetFormatTagItalic (const eC_String &kTag) |
|
void | SetFormatTagLineBreak (const eC_String &kTag) |
|
void | SetFormatTagListItem (const eC_String &kTag) |
|
void | SetFormatTagNoBreak (const eC_String &kTag) |
|
void | SetFormatTagOpening (const eC_String &kTag) |
|
void | SetFormatTagOrderedList (const eC_String &kTag) |
|
void | SetFormatTagUnderlined (const eC_String &kTag) |
|
void | SetFormatTagUnorderedList (const eC_String &kTag) |
|
virtual void | SetRichFonts (const FontResource_t &eFontNormal=DUMMY_FONT, const FontResource_t &eFontBold=DUMMY_FONT, const FontResource_t &eFontItalic=DUMMY_FONT, const FontResource_t &eFontBoldItalic=DUMMY_FONT) |
|
virtual void | SetTextColor (const eC_UInt &uiTextColorStandard, const eC_UInt &uiTextColorHighlighted, const eC_UInt &uiTextColorGrayedOut, const eC_UInt &uiTextColorPressed) |
|
virtual void | SetTextID (const TextResource_t &eTextID) |
|
virtual void | SetTextString (const eC_String &kTextString) |
|
| CGUIText (const CGUIObject *const pkParentObject, const eC_String &kText, const eC_Value &vXPos=eC_FromInt(0), const eC_Value &vYPos=eC_FromInt(0), const eC_Bool &bSingleLine=true) |
|
| CGUIText (const CGUIObject *const pkParentObject, const eC_String *const pkText, const eC_Value &vXPos=eC_FromInt(0), const eC_Value &vYPos=eC_FromInt(0), const eC_Bool &bSingleLine=true) |
|
| CGUIText (const CGUIObject *const pkParentObject, const TextResource_t &eTextID, const eC_Value &vXPos=eC_FromInt(0), const eC_Value &vYPos=eC_FromInt(0), const eC_Bool &bSingleLine=true) |
|
| CGUIText (const CGUIText &kTextToBeCopied) |
|
virtual | ~CGUIText () |
| Destructor.
|
|
virtual CGUIText * | Clone () const |
|
void | FitHeightToContainedText () |
|
void | GetAdjustment (eC_Value &vXAdjustment, eC_Value &vYAdjustment) const |
|
eC_Bool | GetAutoSize () const |
|
const CGUIObject * | GetContainingObject () const |
|
FontResource_t | GetFont () const |
|
eC_Int | GetFontSize () const |
|
eC_Float | GetFontSpacing () const |
|
HorAligned_t | GetHorAlign () const |
|
virtual eC_Value | GetLineSpacing () const |
|
eC_UInt | GetNumberOfLines () |
|
virtual eC_Value | GetRelXPos () const |
|
virtual eC_Value | GetRelYPos () const |
|
virtual void | GetRequiredOrgTextSpace (eC_Value &vTextWidth, eC_Value &vTextHeight) |
|
virtual eC_Value | GetRequiredTextHeightForWidth (eC_Value vAvailableWidth=0) |
|
virtual void | GetRequiredTextSpace (eC_Value &vTextWidth, eC_Value &vTextHeight) |
|
CGUICommonEnums::Rotation_t | GetRotation () const |
|
const CGUIRect & | GetSpecificClipRect () const |
|
const eC_String * | GetText () const |
|
void | GetTextColor (eC_UInt &uiTextColorStandard, eC_UInt &uiTextColorHighlighted, eC_UInt &uiTextColorGrayedOut, eC_UInt &uiTextColorPressed) const |
|
void | GetTextColor (GlobalProperty_t &eTextColorStandard, GlobalProperty_t &eTextColorHighlighted, GlobalProperty_t &eTextColorGrayedOut, GlobalProperty_t &eTextColorPressed) const |
|
eC_UInt | GetTextColorGrayedOut () const |
|
eC_UInt | GetTextColorHighlighted () const |
|
eC_UInt | GetTextColorPressed () const |
|
eC_UInt | GetTextColorStandard () const |
|
virtual eC_Value | GetTextHeight () const |
|
TextResource_t | GetTextID () const |
|
virtual eC_Value | GetTextWidth () const |
|
VerAligned_t | GetVerAlign () const |
|
void | InvalidateArea () |
|
eC_Bool | IsBidi () const |
|
eC_Bool | IsTextCut () |
|
eC_Bool | IsTextID () const |
|
eC_Bool | IsTextSingleLine () const |
|
CGUIText & | operator= (const CGUIText &kSource) |
|
virtual void | PrintText () |
|
virtual void | ReadFromStream () |
|
void | SetAdjustment (const eC_Value &vXAdjustment, const eC_Value &vYAdjustment) |
|
void | SetAligned (const VerAligned_t &eVerAligned=V_TOP, const HorAligned_t &eHorAligned=H_LEFT) |
|
void | SetAlignedHorizontal (const HorAligned_t &eHorAligned=H_LEFT) |
|
void | SetAlignedVertical (const VerAligned_t &eVerAligned=V_TOP) |
|
void | SetAutoSize (const eC_Bool &bAutoSize) |
|
void | SetContainingObject (const CGUIObject *const pkParent) |
|
virtual void | SetFont (const FontResource_t &eFontID) |
|
void | SetFontSpacing (const eC_Float &fFontSpacing) |
|
virtual void | SetLineSpacing (const eC_Value vLineSpacing) |
|
void | SetRelRect (const CGUIRect &kRect) |
|
virtual void | SetRelXPos (const eC_Value &vRelXPos) |
|
virtual void | SetRelYPos (const eC_Value &vRelYPos) |
|
void | SetRotation (const CGUICommonEnums::Rotation_t eRotation) |
|
void | SetSpecificClipRect (const CGUIRect &kRect) |
|
void | SetTextAlignmentProperty (const GlobalProperty_t &eTextAlignmentProperty) |
|
virtual void | SetTextColor (const eC_UInt &uiTextColorStandard, const eC_UInt &uiTextColorHighlighted, const eC_UInt &uiTextColorGrayedOut, const eC_UInt &uiTextColorPressed) |
|
virtual void | SetTextColor (const GlobalProperty_t &eTextColorStandard, const GlobalProperty_t &eTextColorHighlighted, const GlobalProperty_t &eTextColorGrayedOut, const GlobalProperty_t &eTextColorPressed) |
|
void | SetTextColorGrayedOut (const eC_UInt &uiTextColorGrayedOut) |
|
void | SetTextColorGrayedOut (const GlobalProperty_t &eTextColorPropertyGrayedOut) |
|
void | SetTextColorHighlighted (const eC_UInt &uiTextColorHighlighted) |
|
void | SetTextColorHighlighted (const GlobalProperty_t &eTextColorPropertyHighlighted) |
|
void | SetTextColorPressed (const eC_UInt &uiTextColorPressed) |
|
void | SetTextColorPressed (const GlobalProperty_t &eTextColorPropertyPressed) |
|
void | SetTextColorStandard (const eC_UInt &uiTextColorStandard) |
|
void | SetTextColorStandard (const GlobalProperty_t &eTextColorPropertyStandard) |
|
virtual void | SetTextHeight (const eC_Value &vTextHeight) |
|
virtual void | SetTextID (const TextResource_t &eTextID) |
|
virtual void | SetTextSingleLine (const eC_Bool &bSingleLine) |
|
virtual void | SetTextString (const eC_String &kTextString) |
|
void | SetTextString (const eC_String *pkTextString) |
|
virtual void | SetTextWidth (const eC_Value &vTextWidth) |
|
virtual void | WriteToStream (const eC_Bool bWriteTextType=false) |
|
| CGUIColorPropertyObserver () |
| default-constructor
|
|
| ~CGUIColorPropertyObserver () |
| destructor
|
|
eC_UInt | AddColorProperty (const eC_Bool &bColorIsProperty, const eC_UInt &uiColorValue, const GlobalProperty_t &eColorProperty) |
|
void | AddColorProperty (const eC_UInt &uiIndex, const eC_Bool &bColorIsProperty, const eC_UInt &uiColorValue, const GlobalProperty_t &eColorProperty) |
|
ColorValue_t | GetColorProperty (const eC_UInt &uiIndex) const |
|
eC_UInt | GetColorValue (const eC_UInt &uiIndex) const |
|
virtual void | OnColorPropertyChange () |
|
virtual void | OnNotification () |
| Called by CGUISubject whenever an observed object triggers an update. More...
|
|
void | RemoveColorProperty (const eC_UInt &uiIndex) |
|
void | SetColorProperty (const eC_UInt &uiIndex, const ColorValue_t &kColorValue) |
|
void | SetColorProperty (const eC_UInt &uiIndex, const eC_UInt &uiColorValue) |
|
void | SetColorProperty (const eC_UInt &uiIndex, const GlobalProperty_t &eColorProperty) |
|
| CGUIObserver () |
| Default constructor.
|
|
virtual | ~CGUIObserver () |
| Default destructor. Notifies all subjects of destruction.
|
|
const eC_TListDoubleLinked< CGUISubject * > & | GetSubjectList () const |
|
virtual void | OnNotification () |
| Called by CGUISubject whenever an observed object triggers an update. More...
|
|
virtual void | OnNotification (const CGUIObject *const pkUpdatedObject) |
|
virtual void | OnNotification (const CGUIValue &kObservedValue, const CGUIObject *const pkUpdatedObject, const eC_UInt uiX=0, const eC_UInt uiY=0) |
|
virtual void | OnNotification (const eC_String &kMessage) |
|
void | SetAutoDelete (const eC_Bool bAutoDelete) |
|
const eC_String & | GetXMLTag () const |
|
virtual void | ReadFromStream () |
|
void | SetXMLTag (const eC_String &kXMLTag) |
|
virtual void | WriteToStream (const eC_Bool bWriteClassID=false) |
|
|
void | AdaptText () |
|
void | FitFragmentWithEllipsis (CRichTextFragment &TextFragment, eC_Value vMaxWidth) |
|
void | OnNotification () |
|
void | ParseTextToRich () |
|
void | PreformatText () |
|
void | PreparePrintForFragment (const CRichTextFragment &Fragment) |
|
virtual void | ReadFromStream () |
|
void | SplitFragment (CRichTextFragment &FirstTextFragment, CRichTextFragment &SecondTextFragment, eC_Value vMaxWidth, eC_UInt uiCharOffsetFromStart) |
|
virtual void | WriteToStream (const eC_Bool bWriteTextType=false) |
|
virtual void | AdaptText () |
|
virtual void | CollectHyphenationMarks (eC_String &rkStr, eC_UInt uiOffset) |
|
eC_Bool | ContainsHyphenationMarks (const eC_String &kStr) const |
|
void | CreateLocalTextCopy () |
|
virtual void | FitString (ExtendedString_t &rkResultStrData, const eC_String &rkStrToAnalyse, eC_String &rkRestStr, eC_UInt &uiOffset) |
|
virtual eC_Value | GetHorStartAbsXPos () |
|
virtual eC_Value | GetPrintLineAbsXPos () |
|
virtual eC_Value | GetPrintLineAbsXPos (const eC_UInt uiLine) |
|
virtual eC_Value | GetPrintLineAbsXPos (const eC_Value &vWidth, const eC_Value &vHeight) |
|
virtual eC_Value | GetPrintLineAbsYPos () |
|
virtual eC_Value | GetPrintLineAbsYPos (const eC_UInt uiLine) |
|
virtual eC_Value | GetPrintLineAbsYPos (const eC_Value &vWidth, const eC_Value &vHeight) |
|
eC_Value | GetRequiredTextHeight () const |
|
eC_Value | GetRequiredTextWidth () const |
|
virtual eC_Value | GetVerStartAbsYPos () |
|
virtual void | OnNotification () |
|
eC_Bool | PrepareClipRect () |
|
virtual void | PreparePrint () |
|
void | ReadFontColors (const eC_UInt uiVersion) |
|
void | SetRequiredTextHeight (eC_Value vRequiredTextHeight) |
|
void | SetRequiredTextWidth (eC_Value vRequiredTextWidth) |
|
void | SetTextCut (const eC_Bool bIsCut) |
|
void | WriteFontColors () |
| Helper function for WriteStream().
|
|
virtual void | AddSubject (CGUISubject *pSubjectToAdd) |
|
virtual void | RemoveSubject (CGUISubject *pSubjectToRemove) |
|
eC_UInt | ReadStreamingHeader (const eC_UInt &uiClassVersion, const eC_UInt &uiClassMinVersion=0) const |
|
void | WriteStreamingFooter (const eC_Bool &bWriteClassID) const |
|
void | WriteStreamingHeader (const eC_Bool &bWriteClassID, const eC_Char *const pkClassIDTag, const eC_Int &iClassID, const eC_UInt &uiClassVersion) const |
|
|
eC_Bool | m_bPreformatText |
| Controls whether PreformatText() is called.
|
|
FontResource_t | m_eFontBold |
| font resource: bold
|
|
FontResource_t | m_eFontBoldItalic |
| font resource: bold italic
|
|
FontResource_t | m_eFontItalic |
| font resource: italic
|
|
eC_TArray< eC_Value > | m_kLineWidths |
| Width of each line of text (required for X-Alignments)
|
|
RichTextFragmentList | m_kOriginalRichTextFragments |
| Original list of all Text-fragments within this text.
|
|
RichTextFragmentList | m_kRichTextFragments |
|
eC_String | m_kTagBold |
| Format tag: bold.
|
|
eC_String | m_kTagClosing |
| Format tag: closing.
|
|
eC_String | m_kTagColor |
| Format tag: color.
|
|
eC_String | m_kTagFinished |
| Format tag: finished.
|
|
eC_String | m_kTagItalic |
| Format tag: italic.
|
|
eC_String | m_kTagLineBreak |
| Format tag: line break.
|
|
eC_String | m_kTagListItem |
| Format tag: list item.
|
|
eC_String | m_kTagNoBreak |
| Format tag: no break.
|
|
eC_String | m_kTagOpening |
| Format tag: opening.
|
|
eC_String | m_kTagOrderedList |
| Format tag: ordered list.
|
|
eC_String | m_kTagUnderlined |
| Format tag: underlined.
|
|
eC_String | m_kTagUnorderedList |
| Format tag: unordered list.
|
|
eC_String | m_kUnorderedListSign |
| The unordered list sign.
|
|
eC_Value | m_vListIndentation |
| Default list indentation.
|
|
eC_Value | m_vSpaceWidth |
| Width of a space to avoid calling RequiredSpace() too often.
|
|
eC_Value | m_vUnorderedListSignWidth |
| Width of the unordered list sign.
|
|
eC_Bool | m_bAdaptText |
|
eC_Bool | m_bSingleLine |
| Indicates whether this text is single- or multi-line.
|
|
eC_Bool | m_bTextCut |
| Indicates whether the text is cut and has an appended ellipsis.
|
|
eC_Bool | m_bTextIDLocalCopy |
|
eC_Bool | m_bTextIsBiDi |
| Indicates whether the text is a BiDi-text.
|
|
eC_Bool | m_bUseEllipsis |
| use ellipsis if text is too long
|
|
FontResource_t | m_eFont |
| Font ID for this text object.
|
|
HorAligned_t | m_eHorAligned |
| Horizontal alignment.
|
|
CGUICommonEnums::Rotation_t | m_eRotation |
| rotation for the text
|
|
GlobalProperty_t | m_eTextAlignmentProperty |
| Property used for the text color for alignment. By default, this value is DUMMY_PROPERTY, i.e. a fixed alignment is used.
|
|
TextResource_t | m_eTextID |
|
VerAligned_t | m_eVerAligned |
| Vertical alignment.
|
|
eC_Float | m_fFontSpacing |
| Font spacing for the text object.
|
|
UIntList | m_kHyphens |
| List of hyphen positions in the original text.
|
|
ExtendedStringList_t | m_kListStringsExtended |
| List of strings to be printed, and their cached width and height.
|
|
const CGUIObject * | m_pkParentObject |
| The object containing (and printing) this text.
|
|
eC_String * | m_pkText |
|
eC_Value | m_vLineHeight |
| The height of one text line with this text's font.
|
|
eC_Value | m_vLineSpacing |
| The line spacing factor.
|
|
eC_Value | m_vRelXPos |
| X position of this text's printing area relative to the parent object.
|
|
eC_Value | m_vRelYPos |
| Y position of this text's printing area relative to the parent object.
|
|
eC_Value | m_vRequiredOrgTextHeight |
|
eC_Value | m_vRequiredOrgTextWidth |
|
eC_Value | m_vTextHeight |
| Height of this text's printing area.
|
|
eC_Value | m_vTextWidth |
| Width of this text's printing area.
|
|
eC_Value | m_vXAdjustment |
| Printing adjustment for m_vRelXPos.
|
|
eC_Value | m_vYAdjustment |
| Printing adjustment for m_vRelYPos.
|
|
|
enum | HorAligned_t { H_LEFT
, H_CENTERED
, H_RIGHT
, H_PROPERTY
} |
| Possible horizontal alignments. More...
|
|
enum | TextColorTypeFlags_t { TEXT_COLOR_STANDARD_IS_PROPERTY = 1
, TEXT_COLOR_HIGHLIGHTED_IS_PROPERTY = 2
, TEXT_COLOR_GRAYED_OUT_IS_PROPERTY = 4
, TEXT_COLOR_PRESSED_IS_PROPERTY = 8
} |
| Enumeration indicating if a property or a color value is used for each text color.
|
|
enum | VerAligned_t { V_TOP
, V_CENTERED
, V_BOTTOM
} |
| Possible vertical alignments. More...
|
|
static eC_String | GetEllipsisString () |
|
static eC_String | GetHyphenString () |
|
static void | SetEllipsisString (const eC_String &kEllipsis) |
|
static void | SetHyphenString (const eC_String &kHyphen) |
|
static const eC_Char | XMLTAG_TEXT_COLOR_GRAYEDOUT [] |
| xml-tag for grayedout-color
|
|
static const eC_Char | XMLTAG_TEXT_COLOR_HIGHLIGHTED [] |
| xml-tag for highlighted-color
|
|
static const eC_Char | XMLTAG_TEXT_COLOR_PRESSED [] |
| xml-tag for pressed-color
|
|
static const eC_Char | XMLTAG_TEXT_COLOR_PROPERTY_FLAGS [] |
| XML tag to be used when writing text colors into a stream. More...
|
|
static const eC_Char | XMLTAG_TEXT_COLOR_STANDARD [] |
| xml-tag for standard-color
|
|
static const eC_Char | XMLTAG_TEXTID [] |
| XML tag to be used when writing a text ID into a stream.
|
|
static const eC_Char | XMLTAG_TEXTTYPEID [] |
| XML tag to be used when writing a text type ID into a stream.
|
|
static const eC_Char | XMLTAG_CLASSVERSION [] |
|
static const ExtendedString_t | ms_ckEmptyExtendedString |
| An empty Extended String.
|
|
static const eC_String | ms_ckEmptyString |
| An empty string.
|
|
static const eC_String | ms_ckSingleSpace |
| A single space character for text size calculations.
|
|
Text implementation which supports rich text.
Text implementation which supports rich text (bold, italic, underlined, color...) via tags embedded in the supplied text string. It is recommended to only use rich text where necessary, since it requires significantly more performance that Guiliani's plain standard texts. Prior to using the rich text object you need to supply it with one font each for "bold", "italic" and "bold-italic". Otherwise, the text's default font identifier will be used instead.
Format tags must be embedded in the following syntax (equal to normal HTML syntax):
<[FORMAT_TAG1]><[FORMAT_TAG2]>[STRING TO OUTPUT]</[FORMAT_TAG1]></[FORMAT_TAG2]>
The following format tags are supported:
"<colorFFFFFF55>some string</colorFFFFFF55>" Sets the color used for printing the given string. Color format is AARRGGBB.
"<b>some string</b>" Prints the given string using the bold-font.
"<i>some string</i>" Prints the given string using the italic-font.
"<u>some string</u>" Prints the given string using the underlined-font.
"<nobr>some string</nobr>" Avoids line breaking the string.
Example:
eC_String kRichText("This is a <colorFFFFFF55>text</colorFFFFFF55> which shall Wg demonstrate the use of <b>rich Wg text</b> features within <i><colorFFFF0000>Guiliani</colorFFFF0000></i>.");
FontResource_t FontNormal = GETRESMANAGER.RegisterDynamicFont(
"DejaVuSerifCondensed.ttf", 15, CFntWrap::FNT_NORMAL,
true);
GETRESMANAGER.RequestFontResource(FontNormal);
FontResource_t FontBold = GETRESMANAGER.RegisterDynamicFont(
"DejaVuSerifCondensed-Bold.ttf", 17, CFntWrap::FNT_BOLD,
true);
GETRESMANAGER.RequestFontResource(FontBold);
FontResource_t FontItalic = GETRESMANAGER.RegisterDynamicFont(
"DejaVuSerifCondensed-Italic.ttf", 15, CFntWrap::FNT_ITALIC,
true);
GETRESMANAGER.RequestFontResource(FontItalic);
FontResource_t FontBoldItalic = GETRESMANAGER.RegisterDynamicFont(
"DejaVuSerifCondensed-BoldItalic.ttf", 15,
static_cast<CFntWrap::GUIFont_t>(CFntWrap::FNT_BOLD | CFntWrap::FNT_ITALIC),
true);
GETRESMANAGER.RequestFontResource(FontBoldItalic);
pRichText->
SetRichFonts(FontNormal, FontBold, FontItalic, FontBoldItalic);
FontResource_t
List of font resource ids.
Definition: GUIFontResource.h:54
GUIFont_t
Definition: FntWrap.h:44
Represents a simple GUI object containing a text.
Definition: GUIBaseTextField.h:64
void SetText(CGUIText *pkText)
eC_Value GetWidth() const
Definition: GUIObject.h:324
eC_Value GetHeight() const
Definition: GUIObject.h:330
Text implementation which supports rich text.
Definition: GUIRichText.h:116
virtual void SetRichFonts(const FontResource_t &eFontNormal=DUMMY_FONT, const FontResource_t &eFontBold=DUMMY_FONT, const FontResource_t &eFontItalic=DUMMY_FONT, const FontResource_t &eFontBoldItalic=DUMMY_FONT)
@ H_CENTERED
The text is horizontally centered.
Definition: GUIText.h:126
virtual void SetTextSingleLine(const eC_Bool &bSingleLine)
virtual void SetTextHeight(const eC_Value &vTextHeight)
@ V_CENTERED
The text is vertically centered in its area.
Definition: GUIText.h:118
void SetAligned(const VerAligned_t &eVerAligned=V_TOP, const HorAligned_t &eHorAligned=H_LEFT)
virtual void SetTextWidth(const eC_Value &vTextWidth)