Carbon


TextWidthHookProcPtr

Header: TextEdit.h Carbon status: Not Recommended

typedef UInt16(* TextWidthHookProcPtr) (
    UInt16 textLen, 
    UInt16 textOffset, 
    void *textBufferPtr, 
    TEPtr pTE, 
    TEHandle hTE
);

You would declare your function like this if you were to name it MyTextWidthHookCallback:

UInt16 MyTextWidthHookCallback (
    UInt16 textLen, 
    UInt16 textOffset, 
    void *textBufferPtr, 
    TEPtr pTE, 
    TEHandle hTE
);

© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)