|
| CGUIEditableText (const CGUIObject *const pkParentObject, const eC_String &kText, const eC_Value &vXPos=eC_FromInt(0), const eC_Value &vYPos=eC_FromInt(0), const eC_Value &vTextWidth=eC_FromInt(0), eC_Bool bWordWrap=false) |
|
| CGUIEditableText (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_Value &vTextWidth=eC_FromInt(0), eC_Bool bWordWrap=false) |
|
| CGUIEditableText (const CGUIObject *const pkParentObject, const TextResource_t &eTextID, const eC_Value &vXPos=eC_FromInt(0), const eC_Value &vYPos=eC_FromInt(0), const eC_Value &vTextWidth=eC_FromInt(0), eC_Bool bWordWrap=false) |
|
| CGUIEditableText (const CGUIEditableText &rkSource) |
|
| ~CGUIEditableText () |
|
virtual CGUIEditableText * | Clone () const |
|
void | Delete (eC_UInt uiCursorPosAtStartLine, eC_UInt uiCursorPosAtEndLine, eC_UInt uiStartLine=0, eC_UInt uiEndLine=0) |
|
void | DeleteSelection () |
|
void | ExtendSelection (eC_UInt uiCharIndex, eC_UInt uiLineIndex=0) |
|
CursorPos_t | GetBestCursorPosition (const eC_Value &vRelXPos, const eC_Value &vRelYPos) |
|
CGUIRect | GetCursorAbsRect () |
|
CursorPos_t | GetCursorPosByCharIndex (eC_UInt uiCharIndex) |
|
CursorPos_t | GetCursorPosition () |
|
eC_Value | GetCursorWidth () const |
|
CursorPos_t | GetLastCursorPos () |
|
eC_Value | GetLineHeight () |
|
eC_Bool | GetLTRpivotField (eC_UInt currentIndex, LeftEmbedding <rPivotPair) |
|
eC_UInt | GetLtrTurnPnt (eC_UInt currentIndex) |
|
virtual const eC_String *const | GetPassword () |
|
eC_Bool | GetRectOfIndex (eC_UInt uiIndex, CGUIRect &rect) |
|
eC_UInt | GetRtlTurnPnt (eC_UInt currentIndex) |
|
eC_String | GetSelectedText () |
|
eC_UInt | GetSelectionColor () const |
|
CursorPos_t | GetSelectionEnd () |
|
CursorPos_t | GetSelectionStart () |
|
eC_String | GetStrOfLine (eC_UInt uiCurrentLine) const |
|
eC_Bool | HasSelection () |
|
void | Insert (const eC_String &kInsChars) |
|
eC_Bool | IsCursorVisible () const |
|
eC_Bool | IsInLtRField (eC_UInt currentIndex) |
|
eC_Bool | IsLeftToRightEmbedding () |
|
CGUIEditableText & | operator= (const CGUIEditableText &rkSource) |
|
virtual void | PrintText () |
|
void | ReadFromStream () |
|
void | ResetSelection () |
|
void | ResetTurningPoints () |
|
void | SelectAll () |
|
void | SetCursorPosition (eC_UInt uiCursorPosAtLine, eC_UInt uiCurrentLine=0) |
|
void | SetCursorVisible (eC_Bool bVisible) |
|
void | SetCursorWidth (eC_Value vWidth) |
|
void | SetEmbeddingDirection (const eC_Bool bRightToLeft) |
|
virtual void | SetFont (const FontResource_t &eFontID) |
|
void | SetPasswordCharacter (eC_String &kPwdStr) |
|
void | SetPasswordMode (eC_Bool bPasswordMode) |
|
void | SetSelectionColor (const eC_UInt &uiSelectionColor) |
|
void | SetSelectionColor (const GlobalProperty_t &uiSelectionColor) |
|
virtual void | SetTextString (const eC_String &rkTextString) |
|
void | SetWordWrap (eC_Bool bWordWrap, const eC_Value &vWidth=eC_FromInt(0)) |
|
void | ToggleCursor () |
|
virtual void | WriteToStream (const eC_Bool bWriteTextType=false) |
|
| 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.
|
|
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) |
|
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) |
|
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) |
|
void | SetTextString (const eC_String *pkTextString) |
|
virtual void | SetTextWidth (const eC_Value &vTextWidth) |
|
| 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 () |
|
void | RemoveColorProperty (const eC_UInt &uiIndex) |
|
void | SetColorProperty (const eC_UInt &uiIndex, const eC_UInt &uiColorValue) |
|
void | SetColorProperty (const eC_UInt &uiIndex, const GlobalProperty_t &eColorProperty) |
|
void | SetColorProperty (const eC_UInt &uiIndex, const ColorValue_t &kColorValue) |
|
| CGUIObserver () |
| Default constructor.
|
|
virtual | ~CGUIObserver () |
| Default destructor. Notifies all subjects of destruction.
|
|
const eC_TListDoubleLinked
< CGUISubject * > & | GetSubjectList () const |
|
virtual void | OnNotification (const eC_String &kMessage) |
|
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) |
|
void | SetAutoDelete (const eC_Bool bAutoDelete) |
|
const eC_String & | GetXMLTag () const |
|
void | SetXMLTag (const eC_String &kXMLTag) |
|
|
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 [] = "TextColorGrayedOut" |
| xml-tag for grayedout-color
|
|
static const eC_Char | XMLTAG_TEXT_COLOR_HIGHLIGHTED [] = "TextColorHighlighted" |
| xml-tag for highlighted-color
|
|
static const eC_Char | XMLTAG_TEXT_COLOR_PRESSED [] = "TextColorPressed" |
| xml-tag for pressed-color
|
|
static const eC_Char | XMLTAG_TEXT_COLOR_PROPERTY_FLAGS [] = "ColorPropertyFlags" |
| XML tag to be used when writing text colors into a stream. More...
|
|
static const eC_Char | XMLTAG_TEXT_COLOR_STANDARD [] = "TextColorStandard" |
| xml-tag for standard-color
|
|
static const eC_Char | XMLTAG_TEXTID [] = "TextID" |
| XML tag to be used when writing a text ID into a stream.
|
|
static const eC_Char | XMLTAG_TEXTTYPEID [] = "TextTypeID" |
| XML tag to be used when writing a text type ID into a stream.
|
|
typedef eC_TListDoubleLinked
< ExtendedString_t > | ExtendedStringList_t |
| The extended string list is a double-linked list of extended strings.
|
|
typedef eC_TListDoubleLinked
< eC_UInt > | UIntList |
| Double linked List of unsigned integers.
|
|
virtual void | AdaptText () |
|
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 (const eC_Value &vWidth, const eC_Value &vHeight) |
|
virtual eC_Value | GetPrintLineAbsXPos (const eC_UInt uiLine) |
|
virtual eC_Value | GetPrintLineAbsXPos () |
|
virtual eC_Value | GetPrintLineAbsYPos (const eC_Value &vWidth, const eC_Value &vHeight) |
|
virtual eC_Value | GetPrintLineAbsYPos (const eC_UInt uiLine) |
|
virtual eC_Value | GetPrintLineAbsYPos () |
|
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().
|
|
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.
|
|
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.
|
|
Specialization of CGUIText that allows for modification and selection of text.
This text maintains a cursor position and a selection, which can be thought of as two cursor positions. A cursor position is defined as a point (described by CursorPos_t) denoting the position of a character. Cursor position (W, Y) indicates that the cursor is to the left of the W-th character in Line Y. The default cursor position after constructing an instance of this class is at the end of the text.
The cursor position can be visualized by drawing a cursor whose width and visibility can be influenced. The cursor is represented by a vertical line that has the same height as one text line and a configurable width (default is 1 pixel).
The color of the base class (CGUIText) standard text is used. Note that since this text is no CGUIObject it does not perform a blinking animation for the cursor, it rather draws the cursor or not. See CGUIEdit or CGUIMultiLineEdit for controls that use this text to display a blinking cursor.
A continuous portion of the text can be selected. The selection range is described by two cursor positions, a 'start' and an 'end' position relative to the cursor position. If these two values are the same, no text is selected. If they differ, the text from 'start' to 'end' is selected and is marked visually by a different background color, which is also configurable, see SetSelectionColor(). There are various methods to influence the selection from outside and to obtain information about the current selection.
It is possible to insert a string into the text at current cursor position or delete string from the text by giving start and end cursor positions.
The word wrap functionality is enabled at construction time. It can also be configured with SetWordWrap().
The password mode enables the editable text to obfuscate the input using a specified character that is displayed instead of the actual user input.
Note that only left-aligned text is allowed within GUIEditableText.