Inherits IMEManagerInterface.
Classes | |
| struct | MessageInfo |
Public Member Functions | |
| IMEManager () | |
| ~IMEManager () | |
| virtual void | init (void) |
| virtual void | reset (void) |
| virtual void | update (void) |
| virtual void | attach (GameWindow *window) |
| attach IME to specified window | |
| virtual void | detatch (void) |
| detatch IME from current window | |
| virtual void | enable (void) |
| Enable IME. | |
| virtual void | disable (void) |
| Disable IME. | |
| virtual Bool | isEnabled (void) |
| Is IME enabled. | |
| virtual Bool | isAttachedTo (GameWindow *window) |
| Is the manager attached toa window. | |
| virtual GameWindow * | getWindow (void) |
| Returns the window we are currently attached to. | |
| virtual Bool | isComposing (void) |
| Manager is currently composing new input string. | |
| virtual void | getCompositionString (UnicodeString &string) |
| Return the current composition string. | |
| virtual Int | getCompositionCursorPosition (void) |
| Returns the composition cursor position. | |
| virtual Int | getIndexBase (void) |
| Get index base for candidate list. | |
| virtual Int | getCandidateCount () |
| Returns the total number of candidates. | |
| virtual UnicodeString * | getCandidate (Int index) |
| Returns the candidate string. | |
| virtual Int | getSelectedCandidateIndex () |
| Returns the indexed of the currently selected candidate. | |
| virtual Int | getCandidatePageSize () |
| Returns the page size for the candidates list. | |
| virtual Int | getCandidatePageStart () |
| Returns the index of the first visibel candidate. | |
| virtual Bool | serviceIMEMessage (void *windowsHandle, UnsignedInt message, Int wParam, Int lParam) |
| Checks for and services IME messages. Returns TRUE if message serviced. | |
| virtual Int | result (void) |
| result return value of last serviced IME message | |
Public Member Functions inherited from IMEManagerInterface | |
| virtual | ~IMEManagerInterface () |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Protected Types | |
| enum | { MAX_COMPSTRINGLEN = 2*1024 } |
Protected Member Functions | |
| WideChar | convertCharToWide (WPARAM mbchar) |
| Convert multibyte character to wide. | |
| void | updateCompositionString (void) |
| Update the context of the composition string from the IMM. | |
| void | getResultsString (void) |
| Get the final composition string result. | |
| void | updateProperties (void) |
| Read the current IME properties. | |
| void | openCandidateList (Int candidateFlags) |
| open candidate window | |
| void | closeCandidateList (Int candidateFlags) |
| Close candidate window. | |
| void | updateCandidateList (Int candidateFlags) |
| Update candidate window. | |
| void | updateListBox (CANDIDATELIST *candidateList) |
| Update candidate list box gadget. | |
| void | convertToUnicode (Char *mbcs, UnicodeString &unicode) |
| void | resizeCandidateWindow (Int pageSize) |
| void | openStatusWindow (void) |
| void | closeStatusWindow (void) |
| void | updateStatusWindow (void) |
Protected Attributes | |
| Int | m_result |
| last IME message's winProc return code | |
| GameWindow * | m_window |
| window we are accepting input for | |
| HIMC | m_context |
| Imput Manager Context. | |
| HIMC | m_oldContext |
| Previous IME comtext. | |
| Int | m_disabled |
| IME disable count 0 = enabled. | |
| Bool | m_composing |
| Are we currently composing a new string. | |
| WideChar | m_compositionString [MAX_COMPSTRINGLEN+1] |
| WideChar | m_resultsString [MAX_COMPSTRINGLEN+1] |
| Int | m_compositionCursorPos |
| Int | m_compositionStringLength |
| Int | m_indexBase |
| Int | m_pageStart |
| index of first visible candidate | |
| Int | m_pageSize |
| Number of candidate per page. | |
| Int | m_selectedIndex |
| Index of the currently selected candidate. | |
| Int | m_candidateCount |
| Total number of candidate strings. | |
| UnicodeString * | m_candidateString |
| table of canidate strings | |
| Bool | m_unicodeIME |
| Is this an unicode IME. | |
| Int | m_compositionCharsDisplayed |
| number of temporary composition characters displayed that need to be replaced with result string. | |
| GameWindow * | m_candidateWindow |
| IME candidate window interface. | |
| GameWindow * | m_statusWindow |
| IME status window interface. | |
| GameWindow * | m_candidateTextArea |
| list box area | |
| GameWindow * | m_candidateUpArrow |
| up arrow | |
| GameWindow * | m_candidateDownArrow |
| down arrow | |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
Definition at line 93 of file IMEManager.cpp.
|
protected |
| Enumerator | |
|---|---|
| MAX_COMPSTRINGLEN | |
Definition at line 134 of file IMEManager.cpp.
| IMEManager::IMEManager | ( | ) |
Definition at line 502 of file IMEManager.cpp.
| IMEManager::~IMEManager | ( | ) |
Definition at line 534 of file IMEManager.cpp.
|
virtual |
attach IME to specified window
Implements IMEManagerInterface.
Definition at line 642 of file IMEManager.cpp.
|
protected |
Close candidate window.
Definition at line 1319 of file IMEManager.cpp.
|
protected |
Definition at line 1597 of file IMEManager.cpp.
|
protected |
Convert multibyte character to wide.
Definition at line 1046 of file IMEManager.cpp.
|
protected |
Definition at line 1215 of file IMEManager.cpp.
|
virtual |
detatch IME from current window
Implements IMEManagerInterface.
Definition at line 661 of file IMEManager.cpp.
|
virtual |
|
virtual |
|
virtual |
Returns the candidate string.
Implements IMEManagerInterface.
Definition at line 1543 of file IMEManager.cpp.
|
virtual |
Returns the total number of candidates.
Implements IMEManagerInterface.
Definition at line 1534 of file IMEManager.cpp.
|
virtual |
Returns the page size for the candidates list.
Implements IMEManagerInterface.
Definition at line 1566 of file IMEManager.cpp.
|
virtual |
Returns the index of the first visibel candidate.
Implements IMEManagerInterface.
Definition at line 1575 of file IMEManager.cpp.
|
virtual |
Returns the composition cursor position.
Implements IMEManagerInterface.
Definition at line 1092 of file IMEManager.cpp.
|
virtual |
Return the current composition string.
Implements IMEManagerInterface.
Definition at line 1083 of file IMEManager.cpp.
|
virtual |
Get index base for candidate list.
Implements IMEManagerInterface.
Definition at line 1485 of file IMEManager.cpp.
|
protected |
Get the final composition string result.
Definition at line 1170 of file IMEManager.cpp.
|
virtual |
Returns the indexed of the currently selected candidate.
Implements IMEManagerInterface.
Definition at line 1557 of file IMEManager.cpp.
|
virtual |
Returns the window we are currently attached to.
Implements IMEManagerInterface.
Definition at line 1036 of file IMEManager.cpp.
|
virtual |
Implements SubsystemInterface.
Definition at line 564 of file IMEManager.cpp.
|
virtual |
Is the manager attached toa window.
Implements IMEManagerInterface.
Definition at line 1027 of file IMEManager.cpp.
|
virtual |
Manager is currently composing new input string.
Implements IMEManagerInterface.
Definition at line 1077 of file IMEManager.cpp.
|
virtual |
|
protected |
open candidate window
Definition at line 1250 of file IMEManager.cpp.
|
protected |
Definition at line 1584 of file IMEManager.cpp.
|
virtual |
Implements SubsystemInterface.
Definition at line 624 of file IMEManager.cpp.
|
protected |
Definition at line 1494 of file IMEManager.cpp.
|
virtual |
result return value of last serviced IME message
Implements IMEManagerInterface.
Definition at line 986 of file IMEManager.cpp.
|
virtual |
Checks for and services IME messages. Returns TRUE if message serviced.
Implements IMEManagerInterface.
Definition at line 672 of file IMEManager.cpp.
|
virtual |
Implements SubsystemInterface.
Definition at line 633 of file IMEManager.cpp.
|
protected |
Update candidate window.
Definition at line 1341 of file IMEManager.cpp.
|
protected |
Update the context of the composition string from the IMM.
Definition at line 1101 of file IMEManager.cpp.
|
protected |
Update candidate list box gadget.
|
protected |
Read the current IME properties.
Definition at line 1473 of file IMEManager.cpp.
|
protected |
Definition at line 1611 of file IMEManager.cpp.
|
protected |
Total number of candidate strings.
Definition at line 160 of file IMEManager.cpp.
|
protected |
down arrow
Definition at line 184 of file IMEManager.cpp.
|
protected |
table of canidate strings
Definition at line 161 of file IMEManager.cpp.
|
protected |
list box area
Definition at line 182 of file IMEManager.cpp.
|
protected |
up arrow
Definition at line 183 of file IMEManager.cpp.
|
protected |
IME candidate window interface.
Definition at line 180 of file IMEManager.cpp.
|
protected |
Are we currently composing a new string.
Definition at line 150 of file IMEManager.cpp.
|
protected |
number of temporary composition characters displayed that need to be replaced with result string.
Definition at line 163 of file IMEManager.cpp.
|
protected |
Definition at line 153 of file IMEManager.cpp.
|
protected |
Definition at line 151 of file IMEManager.cpp.
|
protected |
Definition at line 154 of file IMEManager.cpp.
|
protected |
Imput Manager Context.
Definition at line 147 of file IMEManager.cpp.
|
protected |
IME disable count 0 = enabled.
Definition at line 149 of file IMEManager.cpp.
|
protected |
Definition at line 155 of file IMEManager.cpp.
|
protected |
Previous IME comtext.
Definition at line 148 of file IMEManager.cpp.
|
protected |
Number of candidate per page.
Definition at line 158 of file IMEManager.cpp.
|
protected |
index of first visible candidate
Definition at line 157 of file IMEManager.cpp.
|
protected |
last IME message's winProc return code
Definition at line 145 of file IMEManager.cpp.
|
protected |
Definition at line 152 of file IMEManager.cpp.
|
protected |
Index of the currently selected candidate.
Definition at line 159 of file IMEManager.cpp.
|
protected |
IME status window interface.
Definition at line 181 of file IMEManager.cpp.
|
protected |
Is this an unicode IME.
Definition at line 162 of file IMEManager.cpp.
|
protected |
window we are accepting input for
Definition at line 146 of file IMEManager.cpp.