|
Mac OS 9
|
TypeSelect Utilties. More...
#include <Events.h>Go to the source code of this file.
Data Structures | |
| struct | TypeSelectRecord |
Macros | |
| #define | NewIndexToStringUPP(userRoutine) |
| #define | DisposeIndexToStringUPP(userUPP) DisposeRoutineDescriptor(userUPP) |
| #define | InvokeIndexToStringUPP(item, itemsScript, itemsStringPtr, yourDataPtr, userUPP) |
| #define | NewIndexToStringProc(userRoutine) NewIndexToStringUPP(userRoutine) |
| #define | CallIndexToStringProc(userRoutine, item, itemsScript, itemsStringPtr, yourDataPtr) |
Typedefs | |
| typedef SInt16 | TSCode |
| typedef struct TypeSelectRecord | TypeSelectRecord |
| typedef ScriptCode * | itemsScript |
| typedef ScriptCode StringPtr * | itemsStringPtr |
| typedef ScriptCode StringPtr void * | yourDataPtr |
Enumerations | |
| enum | { tsPreviousSelectMode = -1 , tsNormalSelectMode = 0 , tsNextSelectMode = 1 } |
| enum | { uppIndexToStringProcInfo = 0x00003F90 } |
Functions | |
| typedef | CALLBACK_API (Boolean, IndexToStringProcPtr)(short item |
| typedef | STACK_UPP_TYPE (IndexToStringProcPtr) IndexToStringUPP |
| void | TypeSelectClear (TypeSelectRecord *tsr) |
| Boolean | TypeSelectNewKey (const EventRecord *theEvent, TypeSelectRecord *tsr) |
| short | TypeSelectFindItem (const TypeSelectRecord *tsr, short listSize, TSCode selectMode, IndexToStringUPP getStringProc, void *yourDataPtr) |
| short | TypeSelectCompare (const TypeSelectRecord *tsr, ScriptCode testStringScript, StringPtr testStringPtr) |
| IndexToStringUPP | NewIndexToStringUPP (IndexToStringProcPtr userRoutine) |
| void | DisposeIndexToStringUPP (IndexToStringUPP userUPP) |
| Boolean | InvokeIndexToStringUPP (short item, ScriptCode *itemsScript, StringPtr *itemsStringPtr, void *yourDataPtr, IndexToStringUPP userUPP) |
TypeSelect Utilties.
For bug reports, consult the following page on the World Wide Web:
http://developer.apple.com/bugreporter/
| #define CallIndexToStringProc | ( | userRoutine, | |
| item, | |||
| itemsScript, | |||
| itemsStringPtr, | |||
| yourDataPtr | |||
| ) |
| #define InvokeIndexToStringUPP | ( | item, | |
| itemsScript, | |||
| itemsStringPtr, | |||
| yourDataPtr, | |||
| userUPP | |||
| ) |
| #define NewIndexToStringUPP | ( | userRoutine | ) |
| void DisposeIndexToStringUPP | ( | IndexToStringUPP | userUPP | ) |
| Boolean InvokeIndexToStringUPP | ( | short | item, |
| ScriptCode * | itemsScript, | ||
| StringPtr * | itemsStringPtr, | ||
| void * | yourDataPtr, | ||
| IndexToStringUPP | userUPP | ||
| ) |
| IndexToStringUPP NewIndexToStringUPP | ( | IndexToStringProcPtr | userRoutine | ) |
| void TypeSelectClear | ( | TypeSelectRecord * | tsr | ) |
| short TypeSelectCompare | ( | const TypeSelectRecord * | tsr, |
| ScriptCode | testStringScript, | ||
| StringPtr | testStringPtr | ||
| ) |
| short TypeSelectFindItem | ( | const TypeSelectRecord * | tsr, |
| short | listSize, | ||
| TSCode | selectMode, | ||
| IndexToStringUPP | getStringProc, | ||
| void * | yourDataPtr | ||
| ) |
| Boolean TypeSelectNewKey | ( | const EventRecord * | theEvent, |
| TypeSelectRecord * | tsr | ||
| ) |
Long ago the implementation of TypeSelectNewKey had a bug that required the high word of D0 to be zero or the function did not work. Although fixed now, we are continuing to clear the high word just in case someone tries to run on an older system. TypeSelectNewKey()