gcn::UTF8TextField Class Reference

#include <utf8textfield.h>

Inheritance diagram for gcn::UTF8TextField:
Inheritance graph
[legend]
Collaboration diagram for gcn::UTF8TextField:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 UTF8TextField (const std::string &text="")
virtual ~UTF8TextField ()
virtual void keyPressed (KeyEvent &keyEvent)

Protected Attributes

UTF8StringEditormStringEditor

Detailed Description

UTF-8 aware version of the TextField class.

Using UTF8StringEditor, it is able to correctly edit UTF-8 text line.

You will also need an UTF-8 aware font to be able to correctly display such text (so gcn::ImageFont can not be used).

Author:
Przemyslaw Grzywacz

Definition at line 48 of file utf8textfield.h.


Constructor & Destructor Documentation

gcn::UTF8TextField::UTF8TextField ( const std::string &  text = ""  ) 

UTF8TextField constructor.

Parameters:
text Initial text.

Definition at line 34 of file utf8textfield.cpp.

References mStringEditor.

gcn::UTF8TextField::~UTF8TextField (  )  [virtual]

Destructor.

Definition at line 40 of file utf8textfield.cpp.

References mStringEditor.


Member Function Documentation

void gcn::UTF8TextField::keyPressed ( KeyEvent &  keyEvent  )  [virtual]

Key pressed handler.

Overides gcn::TextField to handle UTF-8 character codes.

Parameters:
keyEvent Keyboard event.

Definition at line 45 of file utf8textfield.cpp.

References gcn::UTF8StringEditor::eraseChar(), gcn::UTF8StringEditor::insertChar(), mStringEditor, gcn::UTF8StringEditor::nextChar(), and gcn::UTF8StringEditor::prevChar().


Member Data Documentation

UTF-8 string editor suppor.

It allows the UTF8TextField to easly traverse UTF-8 strings as well as inserting and deleting characters.

Definition at line 78 of file utf8textfield.h.

Referenced by keyPressed(), UTF8TextField(), and ~UTF8TextField().


The documentation for this class was generated from the following files:
Generated on Wed Nov 23 13:05:24 2011 for FIFE by  doxygen 1.6.3