40 #ifndef _uitextcursor_h
41 #define _uitextcursor_h
43 #include "colourvalue.h"
46 #include "UI/textlayer.h"
67 Timer FlickerTimer;// */
97 virtual void SetFlicker(Boole Flicker);
100 virtual Boole GetFlicker() const;// */
std::pair< Boole, Vector2 > CharOffsetPair
An std::pair type used as a return for index-offset conversions.
Boole Visibility
Stores the cursors current visibility state.
Integer IndexPosition
The index of the character this TextCursor is to the left of.
bool Boole
Generally acts a single bit, true or false.
virtual ~TextCursor()
Class destructor.
virtual void InsertCharacterAtCursor(const UInt32 GlyphID)
Creates a character from a Glyph ID and inserts it at the cursor position.
virtual void ProtoSerialize(XML::Node &ParentNode) const
Convert this class to an XML::Node ready for serialization.
virtual void MoveCursorLeft()
Decrements this cursors index position, moving it to the left.
int Integer
A datatype used to represent any integer close to.
virtual void MoveCursorRight()
Increments this cursors index position, moving it to the right.
This class represents a box shaped area on the screen.
This is a simple class for holding 4 reals representing the colour any give object or lightsource can...
ColourValue CursorColour
The colour to be given to the TextCursor.
TextCursor(TextLayer *Creator)
Class constructor.
char Char8
A datatype to represent one character.
virtual void SetColour(const ColourValue &Colour)
Sets the colour that the Text Cursor should be rendered as.
virtual Rect GetCursorRect() const
Gets a rect representing this cursors dimentions.
virtual void RemoveLeftCharacter()
Removes the character to the left (and decrements the index position) of this cursor.
A light-weight handle for manipulating nodes in DOM tree.
uint32_t UInt32
An 32-bit unsigned integer.
This is used to represent a point on a 2 dimentional area, such as a screen.
virtual Integer GetCursorIndex() const
Gets the index position of this cursor.
Class for encapsulating the functionality of the text cursor/carat navigation in text layers...
virtual Boole GetVisible() const
Gets the visibility of this cursor.
virtual void SetOffsetPosition(const Vector2 &Offset)
Sets the offset position of this cursor to the nearest appropriate point.
virtual void InsertCharactersAtCursor(const Char8 *Characters, const UInt32 BufSize)
Creates a series of characters from a UTF-8 encoded string to be inserted at the cursor position...
virtual TextLayer::CharOffsetPair GetOffsetPosition() const
Gets the current offset position of this cursor.
virtual void RemoveRightCharacter()
Removes the character to the right of this cursor.
virtual void SetCursorIndex(const Integer &Index)
Sets the index position of this cursor.
The bulk of the engine components go in this namspace.
virtual void ProtoDeSerialize(const XML::Node &SelfRoot)
Take the data stored in an XML Node and overwrite this object with it.
static String GetSerializableName()
Get the name of the the XML tag the Renderable class will leave behind as its instances are serialize...
TextLayer * Layer
The layer this TextCursor belongs to.
virtual const ColourValue & GetColour() const
Gets the colour that the Text Cursor will be rendered as.
std::string String
A datatype used to a series of characters.
virtual void SetVisible(Boole Visible)
Sets the visibility of this cursor.
This is a base class for render layers that render text.