Graffiti.h
.
Err GrfAddMacro (Char* nameP, UInt8* macroDataP, UInt16 dataLen)
  |
|
Name of macro. |
  |
|
Data of macro. |
  |
|
Size of macro data in bytes. |
grfErrNoMacros, grfErrMacroPtrTooSmall, dmErrNotValidRecord, dmErrWriteOutOfBounds
if an error occurs.
GrfGetMacro
,
GrfGetMacroName
,
GrfDeleteMacro
Err GrfAddPoint (PointType* pt)
grfErrPointBufferFull
if an error occurs.
GrfFlushPoints
Err GrfCleanState (void)
grfErrNoDictionary
if an error occurs.
GrfInitState
Err GrfDeleteMacro (UInt16 index)
grfErrNoMacros
, grfErrMacroNotFound
if an error occurs.
GrfAddMacro
Err GrfFilterPoints (void)
GrfMatch
Err GrfFindBranch (UInt16 flags)
grfErrNoDictionary
or grfErrBranchNotFound
if an error occurs.
GrfCleanState
,
GrfInitState
Err GrfFlushPoints (void)
GrfAddPoint
Err GrfGetAndExpandMacro (Char* nameP, UInt8* macroDataP, UInt16* dataLenP)
  |
|
Name of macro to look up. |
  |
|
Macro contents returned here. |
  |
|
On entry, size of macroDataP buffer; on exit, number of bytes in macro data. |
grfErrNoMacros
or grfErrMacroNotFound
if an error occurs.
GrfAddMacro
,
GrfGetMacro
Err GrfGetGlyphMapping (UInt16 glyphID, UInt16* flagsP, void* dataPtrP, UInt16* dataLenP, UInt16* uncertainLenP)
  |
|
Glyph ID to look up. |
  |
|
Returned dictionary flags. |
  |
|
Where returned text goes. |
  |
|
On entry, size of dataPtrP ; on exit, number of bytes returned. |
  |
|
Return number of uncertain characters in text. |
grfErrNoDictionary
or grfErrNoMapping
if an error occurs.
GrfMatch
Err GrfGetMacro (Char* nameP, UInt8* macroDataP, UInt16* dataLenP)
  |
|
Name of macro to lookup. |
  |
|
Macro contents returned here. |
  |
|
On entry: size of macroDataP buffer. On exit: number of bytes in macro data. |
grfErrNoMacros
, grfErrMacroNotFound
.
GrfAddMacro
Err GrfGetMacroName (UInt16 index, Char* nameP)
grfErrNoMacros
or grfErrMacroNotFound
if an error occurs.
GrfAddMacro
,
GrfGetMacro
Err GrfGetNumPoints (UInt16* numPtsP)
GrfAddPoint
Err GrfGetPoint (UInt16 index, PointType* pointP)
grfErrBadParam
if an error occurs.
GrfAddPoint
,
GrfGetNumPoints
Err GrfGetState (Boolean* capsLockP, Boolean* numLockP, UInt16* tempShiftP, Boolean* autoShiftedP)
  |
|
Returns true if caps lock on. |
  |
|
Returns true if num lock on. |
  |
|
Current temporary shift. |
  |
|
Returns TRUE if shift not set by the user but by the system, for example, at the beginning of a line. |
Err GrfInitState (void)
GrfGetState
,
GrfSetState
Err GrfMatch (UInt16* flagsP, void* dataPtrP, UInt16* dataLenP, UInt16* uncertainLenP, GrfMatchInfoPtr matchInfoP)
  |
|
Glyph flags are returned here. |
  |
|
Return text is placed here. |
  |
|
Size of dataPtrP on exit; number of characters returned on exit. |
  |
|
Return number of uncertain characters. |
  |
|
Array of grfMaxMatches , or nil. |
grfErrNoGlyphTable
, grfErrNoDictionary
, or grfErrNoMapping
if an error occurs.
GrfAddPoint
,
GrfFlushPoints
Err GrfMatchGlyph (GrfMatchInfoPtr matchInfoP, Int16 maxUnCertainty, UInt16 maxMatches)
  |
|
Pointer to array of matches to fill in. |
  |
|
Maximum number of errors to tolerate. |
  |
|
Size of matchInfoP array. |
grfErrNoGlyphTable
if an error occurs.
GrfMatch
Err GrfProcessStroke (PointType* startPtP, PointType* endPtP, Boolean upShift)
  |
|
Start point of stroke. |
  |
|
End point of stroke. |
  |
|
Set to true to feed an artificial upshift into the engine. |
SysHandleEvent
when a penUpEvent
is detected in the writing area. This routine recognizes the stroke and sends the recognized characters into the key queue. It also flushes the stroke out of the pen queue after recognition.
SysHandleEvent
Err GrfSetState (Boolean capsLock, Boolean numLock, Boolean upperShift)
  |
|
Set to true to turn on caps lock. |
  |
|
Set to true to turn on num lock. |
  |
|
Set to true to put into upper shift. |
GrfGetState
  |   |