41 #ifndef _uitextcursor_cpp
42 #define _uitextcursor_cpp
44 #include "UI/textcursor.h"
45 #include "UI/textline.h"
46 #include "UI/character.h"
48 #include "stringtool.h"
56 IndexPosition(0), Layer(Creator)
80 if( ResultPair.first ) {
94 Ret.
Position.
Y = (*Last)->GetPositionOffset();
95 Ret.
Position.
X = (*Last)->GetOffsetAtIndex(-1);
96 Ret.
Size.
Y = (*Last)->GetLineHeight();
104 IndexCount += (*LineIt)->GetNumCharacters();
108 Ret.
Position.
Y = (*LineIt)->GetPositionOffset();
110 Ret.
Size.
Y = (*LineIt)->GetLineHeight();
164 if( this->IndexPosition < 0 || this->
IndexPosition > NumChars ) {
196 if( !SelfRoot.
Empty() ) {
199 if( !CurrAttrib.
Empty() )
203 if( !CurrAttrib.
Empty() )
207 if( !CursorColourNode.
Empty() )
218 {
return "TextCursor"; }