Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QIMPenChar class handles a single character for the stroke recognition libraries. More...
#include <QIMPenChar>
This class is under development and is subject to change.
The QIMPenChar class handles a single character for the stroke recognition libraries.
Each QIMPenChar associates a unicode character with a series of strokes.
QIMPenChar can calculate closeness of match to another character.
This enum specifies how split() should behave with respect to empty strings.
Constant | Value | Description |
---|---|---|
QIMPenChar::System | 0x01 | The character is a system character, and should be turned off rather than deleted when disabled |
QIMPenChar::Deleted | 0x02 | The character is a system character that has been disabled. |
QIMPenChar::CombineRight | 0x04 | The character is aligned to the right when combining characters to create some interantional characters like áâä, etc.. |
QIMPenChar::Data | 0x08 | Kept in order to read old files |
This enum is used to refer to several special characters used by Qtopia. It includes modifiers like the shift and control keys, as well as system spefic values used to indicate actions to the system like SymbolPopup.
Constant | Value | Description | ||
---|---|---|---|---|
QIMPenChar::ModeBase | 0x4000 | Base value for all Modes | ||
QIMPenChar::Caps | 0x4001 | Shift | ||
QIMPenChar::Shortcut | 0x4002 | Used by the system | ||
QIMPenChar::CapsLock | 0x4003 | Caps lock | ||
QIMPenChar::Punctuation | 0x4004 | Used by the system | ||
QIMPenChar::Symbol | 0x4005 | Used by the system | ||
QIMPenChar::NextWord | 0x4007 | Used by the system | ||
QIMPenChar::WordPopup | 0x4008 | Used by the system | ||
QIMPenChar::SymbolPopup | 0x4009 | Used by the system | ||
QIMPenChar::ModePopup | 0x400A | Used by the system enum | Value | |
ModeBase | 0x4000 | |||
Caps | 0x4001 | |||
Shortcut | 0x4002 | |||
CapsLock | 0x4003 | |||
Punctuation | 0x4004 | |||
Symbol | 0x4005 | |||
NextWord | 0x4007 | |||
WordPopup | 0x4008 | |||
SymbolPopup | 0x4009 | |||
ModePopup | 0x400A |
Constructs an empty QIMPenChar.
Constructs a copy of the given character.
Destroys this character and cleans up.
Adds stroke to the character
Return the bounding rect of this character. It may have sides with negative coords since its origin is where the user started drawing the character.
Clears the data of this character.
Clear flag f for this character.
Return true if this character has no strokes, otherwise return false.
Return the key for this character.
See also setKey() and repCharacter().
Return an indicator of the closeness of this character to pen. Lower value is better.
Returns the name of this character. This is usually the unicode of the character. However, the following special keys have the following names:
Key Code | Name |
---|---|
Qt::Key_Escape | "[Esc]" |
Qt::Key_Tab | "[Tab]" |
Qt::Key_Backspace | "[BackSpace]" |
Qt::Key_Return | "[Return]" |
QIMPenChar::Caps | "[Uppercase]" |
QIMPenChar::CapsLock | "[Caps Lock]" |
QIMPenChar::Shortcut | "[Shortcut]" |
QIMPenChar::Punctuation | "[Punctuation]" |
QIMPenChar::Symbol | "[Symbol]" |
QIMPenChar::NextWord | "[Next Word]" |
QIMPenChar::WordPopup | "[Word Menu]" |
QIMPenChar::SymbolPopup | "[Symbol Menu]" |
QIMPenChar::ModePopup | "[Mode Menu]" |
Returns the list of penStrokes for this character.
Returns the QChar this character represents.
See also key() and setRepCharacter().
Set flag f for this character.
If code is in the set of qimpen_specialKeys, sets the key code for the character to code and clear the unicode value. Otherwise does nothing.
See also key().
Sets the unicode for the character to code and clears the key value.
See also repCharacter().
Returns the starting point of the first stroke of this character.
See also strokeLength(), addStroke(), strokeCount(), and isEmpty().
Returns the number of strokes in this character.
Returns the length of stroke n. Returns 0 if this character has less then n strokes.
Return true if flag f is set for this character, otherwise return false.
Assigns a copy of the given character to this character and returns a refernece to this character.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |