General | |
| virtual iGraphics * | GetGraphics () const =0 |
| Get the graphics object that created the text object. {Property}. More... | |
| virtual void | SetDefaultFont (iFont *apFont)=0 |
| Set the default font used by the text object. {Property}. More... | |
| virtual iFont * | GetDefaultFont () const =0 |
| Get the default font used by the text object. {Property}. More... | |
| virtual void | SetLoadFontCallback (iCallback *apLoadFontCallback)=0 |
| Set the load font callback used by the text object. {Property}. More... | |
| virtual iCallback * | GetLoadFontCallback () const =0 |
| Get the load font callback used by the text object. {Property}. More... | |
| virtual void | SetSize (const sVec2f &avSize)=0 |
| Set the size of the text object. {Property}. More... | |
| virtual sVec2f | GetSize () const =0 |
| Get the size of the text object. {Property}. More... | |
| virtual void | SetTruncation (eTextTruncation aType)=0 |
| Set the word truncation mode. {Property}. More... | |
| virtual eTextTruncation | GetTruncation () const =0 |
| Get the word truncation mode. {Property}. More... | |
| virtual void | SetTruncationText (const achar *aaszString)=0 |
| Set the truncation text. {Property}. More... | |
| virtual const achar * | GetTruncationText () const =0 |
| Get the truncation text. {Property}. More... | |
| virtual void | SetTrimLeadingSpaces (tBool abTrimLeadingSpaces)=0 |
| Set whether to trim the leading spaces. {Property}. More... | |
| virtual tBool | GetTrimLeadingSpaces () const =0 |
| Get whether to trim the leading spaces. {Property}. More... | |
| virtual void | SetKerning (tBool abKerning)=0 |
| Set whether to use kerning. {Property}. More... | |
| virtual tBool | GetKerning () const =0 |
| Get whether to use kerning. {Property}. More... | |
| virtual sVec2f | GetTextSize () const =0 |
| Get the computed size of the text after layout. {Property}. More... | |
| virtual void | SetExpressionContext (iExpressionContext *apContext)=0 |
| Set the expression context used for the <expr> tags. {Property}. More... | |
| virtual iExpressionContext * | GetExpressionContext () const =0 |
| Get the expression context used for the <expr> tags. {Property}. More... | |
| virtual void | Update ()=0 |
| Update. More... | |
| virtual tBool | Draw (iCanvas *apCanvas, const sRectf &aClippingRect)=0 |
| Draw the text object in the specified canvas. More... | |
Text occluders | |
| virtual iTextOccluder * | AddOccluder (const sRectf &aRect, const Var &aUserData)=0 |
| Add a text occluder. More... | |
| virtual tBool | RemoveOccluder (tU32 anIndex)=0 |
| Remove the text occluder at the specified index. More... | |
| virtual void | ClearOccluders ()=0 |
| Removes all text occluders. More... | |
| virtual tU32 | GetNumOccluders () const =0 |
| Get number of occluders. {Property}. More... | |
| virtual iTextOccluder * | GetOccluder (tU32 anIndex) const =0 |
| Get occluder from index. {Property}. More... | |
Text manipulation | |
| virtual void | SetText (const achar *aaszText)=0 |
| Set the text of the text object. {Property}. More... | |
| virtual const achar * | GetText () const =0 |
| Get the text of the text object. {Property}. More... | |
| virtual void | AddText (const achar *aaszString)=0 |
| Add Text the the widget. More... | |
| virtual void | SetSelectionColor (sVec4f avColor)=0 |
| Set the selection background color. {Property}. More... | |
| virtual sVec4f | GetSelectionColor () const =0 |
| Get the selection background color. {Property}. More... | |
| virtual cString | GetSelectedString () const =0 |
| Get the selected string. {Property}. More... | |
| virtual void | ClearSelection ()=0 |
| Clear the current selection. More... | |
| virtual void | SelectRange (tU32 anBegin, tU32 anEnd)=0 |
| Select the specified word range. More... | |
| virtual tU32 | FindWordIndexFromPosition (sVec2f avPosition) const =0 |
| Find the index of the word nearest of the specified position. More... | |
Additional Inherited Members | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Get the graphics object that created the text object. {Property}.
Set the default font used by the text object. {Property}.
|
pure virtual |
Get the default font used by the text object. {Property}.
Set the load font callback used by the text object. {Property}.
|
pure virtual |
Get the load font callback used by the text object. {Property}.
Set the size of the text object. {Property}.
|
pure virtual |
Get the size of the text object. {Property}.
|
pure virtual |
Set the word truncation mode. {Property}.
|
pure virtual |
Get the word truncation mode. {Property}.
Set the truncation text. {Property}.
|
pure virtual |
Get the truncation text. {Property}.
Set whether to trim the leading spaces. {Property}.
|
pure virtual |
Get whether to trim the leading spaces. {Property}.
|
pure virtual |
Get whether to use kerning. {Property}.
|
pure virtual |
Get the computed size of the text after layout. {Property}.
|
pure virtual |
Set the expression context used for the <expr> tags. {Property}.
|
pure virtual |
Get the expression context used for the <expr> tags. {Property}.
|
pure virtual |
Update.
Draw the text object in the specified canvas.
|
pure virtual |
Add a text occluder.
Remove the text occluder at the specified index.
|
pure virtual |
Removes all text occluders.
|
pure virtual |
Get number of occluders. {Property}.
|
pure virtual |
Get occluder from index. {Property}.
Set the text of the text object. {Property}.
|
pure virtual |
Get the text of the text object. {Property}.
Add Text the the widget.
Set the selection background color. {Property}.
|
pure virtual |
Get the selection background color. {Property}.
|
pure virtual |
Get the selected string. {Property}.
|
pure virtual |
Clear the current selection.
1.8.7