Word

* Represents one word in the text.

Constructors

this
this(float fontSize)

* Create a new empty word. * fontSize: * - the font size of the text which this word is in.

Members

Functions

addCharacter
typeof(this) addCharacter(Character character)

* Add a new character to the end of the current word. * It increases the width of the word. * character: * - the character to be added. * Returns reference to this so it can be used in a stream.

getCharacters
Character[] getCharacters()

* Returns the list of characters in the word.

getWidth
float getWidth()

* Returns the width of the word relative to screen size.

Meta