Mac OS 9
TextEdit.h File Reference

TextEdit Interfaces. More...

#include <MacTypes.h>
#include <Quickdraw.h>
#include <MixedMode.h>

Go to the source code of this file.

Data Structures

struct  TERec
 
struct  StyleRun
 
struct  STElement
 
struct  LHElement
 
struct  ScrpSTElement
 
struct  StScrpRec
 
struct  NullStRec
 
struct  TEStyleRec
 
struct  TextStyle
 

Macros

#define NewHighHookUPP(userRoutine)
 
#define NewEOLHookUPP(userRoutine)
 
#define NewCaretHookUPP(userRoutine)
 
#define NewWidthHookUPP(userRoutine)
 
#define NewTextWidthHookUPP(userRoutine)
 
#define NewNWidthHookUPP(userRoutine)
 
#define NewDrawHookUPP(userRoutine)
 
#define NewHitTestHookUPP(userRoutine)
 
#define NewTEFindWordUPP(userRoutine)
 
#define NewTERecalcUPP(userRoutine)
 
#define NewTEDoTextUPP(userRoutine)
 
#define NewTEClickLoopUPP(userRoutine)
 
#define NewWordBreakUPP(userRoutine)
 
#define DisposeHighHookUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeEOLHookUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeCaretHookUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeWidthHookUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeTextWidthHookUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeNWidthHookUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeDrawHookUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeHitTestHookUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeTEFindWordUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeTERecalcUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeTEDoTextUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeTEClickLoopUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeWordBreakUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define InvokeHighHookUPP(r, pTE, userUPP)    CALL_TWO_PARAMETER_UPP((userUPP), uppHighHookProcInfo, (r), (pTE))
 
#define InvokeEOLHookUPP(theChar, pTE, hTE, userUPP)
 
#define InvokeCaretHookUPP(r, pTE, userUPP)    CALL_TWO_PARAMETER_UPP((userUPP), uppCaretHookProcInfo, (r), (pTE))
 
#define InvokeWidthHookUPP(textLen, textOffset, textBufferPtr, pTE, hTE, userUPP)
 
#define InvokeTextWidthHookUPP(textLen, textOffset, textBufferPtr, pTE, hTE, userUPP)
 
#define InvokeNWidthHookUPP(styleRunLen, styleRunOffset, slop, direction, textBufferPtr, lineStart, pTE, hTE, userUPP)
 
#define InvokeDrawHookUPP(textOffset, drawLen, textBufferPtr, pTE, hTE, userUPP)
 
#define InvokeHitTestHookUPP(styleRunLen, styleRunOffset, slop, textBufferPtr, pTE, hTE, pixelWidth, charOffset, pixelInChar, userUPP)
 
#define InvokeTEFindWordUPP(currentPos, caller, pTE, hTE, wordStart, wordEnd, userUPP)
 
#define InvokeTERecalcUPP(pTE, changeLength, lineStart, firstChar, lastChar, userUPP)
 
#define InvokeTEDoTextUPP(pTE, firstChar, lastChar, selector, currentGrafPort, charPosition, userUPP)
 
#define InvokeTEClickLoopUPP(pTE, userUPP)    (Boolean) CALL_ONE_PARAMETER_UPP((userUPP), uppTEClickLoopProcInfo, (pTE))
 
#define InvokeWordBreakUPP(text, charPos, userUPP)
 
#define NewHighHookProc(userRoutine)   NewHighHookUPP(userRoutine)
 
#define NewEOLHookProc(userRoutine)   NewEOLHookUPP(userRoutine)
 
#define NewCaretHookProc(userRoutine)   NewCaretHookUPP(userRoutine)
 
#define NewWidthHookProc(userRoutine)   NewWidthHookUPP(userRoutine)
 
#define NewTextWidthHookProc(userRoutine)   NewTextWidthHookUPP(userRoutine)
 
#define NewNWidthHookProc(userRoutine)   NewNWidthHookUPP(userRoutine)
 
#define NewDrawHookProc(userRoutine)   NewDrawHookUPP(userRoutine)
 
#define NewHitTestHookProc(userRoutine)   NewHitTestHookUPP(userRoutine)
 
#define NewTEFindWordProc(userRoutine)   NewTEFindWordUPP(userRoutine)
 
#define NewTERecalcProc(userRoutine)   NewTERecalcUPP(userRoutine)
 
#define NewTEDoTextProc(userRoutine)   NewTEDoTextUPP(userRoutine)
 
#define NewTEClickLoopProc(userRoutine)   NewTEClickLoopUPP(userRoutine)
 
#define NewWordBreakProc(userRoutine)   NewWordBreakUPP(userRoutine)
 
#define CallHighHookProc(userRoutine, r, pTE)    InvokeHighHookUPP(r, pTE, userRoutine)
 
#define CallEOLHookProc(userRoutine, theChar, pTE, hTE)    InvokeEOLHookUPP(theChar, pTE, hTE, userRoutine)
 
#define CallCaretHookProc(userRoutine, r, pTE)    InvokeCaretHookUPP(r, pTE, userRoutine)
 
#define CallWidthHookProc(userRoutine, textLen, textOffset, textBufferPtr, pTE, hTE)    InvokeWidthHookUPP(textLen, textOffset, textBufferPtr, pTE, hTE, userRoutine)
 
#define CallTextWidthHookProc(userRoutine, textLen, textOffset, textBufferPtr, pTE, hTE)
 
#define CallNWidthHookProc(userRoutine, styleRunLen, styleRunOffset, slop, direction, textBufferPtr, lineStart, pTE, hTE)
 
#define CallDrawHookProc(userRoutine, textOffset, drawLen, textBufferPtr, pTE, hTE)    InvokeDrawHookUPP(textOffset, drawLen, textBufferPtr, pTE, hTE, userRoutine)
 
#define CallHitTestHookProc(userRoutine, styleRunLen, styleRunOffset, slop, textBufferPtr, pTE, hTE, pixelWidth, charOffset, pixelInChar)
 
#define CallTEFindWordProc(userRoutine, currentPos, caller, pTE, hTE, wordStart, wordEnd)
 
#define CallTERecalcProc(userRoutine, pTE, changeLength, lineStart, firstChar, lastChar)
 
#define CallTEDoTextProc(userRoutine, pTE, firstChar, lastChar, selector, currentGrafPort, charPosition)
 
#define CallTEClickLoopProc(userRoutine, pTE)    InvokeTEClickLoopUPP(pTE, userRoutine)
 
#define CallWordBreakProc(userRoutine, text, charPos)    InvokeWordBreakUPP(text, charPos, userRoutine)
 

Typedefs

typedef struct TERec TERec
 
typedef TERecTEPtr
 
typedef TEPtrTEHandle
 
typedef char Chars[32001]
 
typedef char * CharsPtr
 
typedef CharsPtr * CharsHandle
 
typedef struct StyleRun StyleRun
 
typedef struct STElement STElement
 
typedef STElement TEStyleTable[1777]
 
typedef STElementSTPtr
 
typedef STPtrSTHandle
 
typedef struct LHElement LHElement
 
typedef LHElement LHTable[8001]
 
typedef LHElementLHPtr
 
typedef LHPtrLHHandle
 
typedef struct ScrpSTElement ScrpSTElement
 
typedef ScrpSTElement ScrpSTTable[1601]
 
typedef struct StScrpRec StScrpRec
 
typedef StScrpRecStScrpPtr
 
typedef StScrpPtrStScrpHandle
 
typedef struct NullStRec NullStRec
 
typedef NullStRecNullStPtr
 
typedef NullStPtrNullStHandle
 
typedef struct TEStyleRec TEStyleRec
 
typedef TEStyleRecTEStylePtr
 
typedef TEStylePtrTEStyleHandle
 
typedef struct TextStyle TextStyle
 
typedef TextStyleTextStylePtr
 
typedef TextStylePtrTextStyleHandle
 
typedef short TEIntHook
 

Enumerations

enum  {
  teJustLeft = 0 , teJustCenter = 1 , teJustRight = -1 , teForceLeft ,
  teFlushDefault = 0 , teCenter = 1 , teFlushRight = -1 , teFlushLeft = -2
}
 
enum  {
  fontBit = 0 , faceBit = 1 , sizeBit = 2 , clrBit = 3 ,
  addSizeBit = 4 , toggleBit = 5
}
 
enum  {
  doFont = 1 , doFace = 2 , doSize = 4 , doColor = 8 ,
  doAll = 15 , addSize = 16 , doToggle = 32
}
 
enum  {
  EOLHook = 0 , DRAWHook = 4 , WIDTHHook = 8 , HITTESTHook = 12 ,
  nWIDTHHook = 24 , TextWidthHook = 28
}
 
enum  {
  intEOLHook = 0 , intDrawHook = 1 , intWidthHook = 2 , intHitTestHook = 3 ,
  intNWidthHook = 6 , intTextWidthHook = 7 , intInlineInputTSMTEPreUpdateHook , intInlineInputTSMTEPostUpdateHook
}
 
enum  { teFAutoScroll = 0 , teFUseWhiteBackground = 4 , teFUseInlineInput = 5 , teFInlineInputAutoScroll = 6 }
 
enum  { teFIdleWithEventLoopTimer = 7 }
 
enum  { teBitClear = 0 , teBitSet = 1 , teBitTest = -1 }
 
enum  { teWordSelect = 4 , teWordDrag = 8 , teFromFind = 12 , teFromRecal = 16 }
 
enum  { teFind = 0 , teHighlight = 1 , teDraw = -1 , teCaret = -2 }
 
enum  { uppHighHookProcInfo = 0x0000000F }
 
enum  { uppEOLHookProcInfo = 0x0000001F }
 
enum  { uppCaretHookProcInfo = 0x0000000F }
 
enum  { uppWidthHookProcInfo = 0x0000002F }
 
enum  { uppTextWidthHookProcInfo = 0x0000002F }
 
enum  { uppNWidthHookProcInfo = 0x0000003F }
 
enum  { uppDrawHookProcInfo = 0x0000004F }
 
enum  { uppHitTestHookProcInfo = 0x0000005F }
 
enum  { uppTEFindWordProcInfo = 0x0000006F }
 
enum  { uppTERecalcProcInfo = 0x0000009F }
 
enum  { uppTEDoTextProcInfo = 0x000000AF }
 
enum  { uppTEClickLoopProcInfo = 0x0000F812 }
 
enum  { uppWordBreakProcInfo = 0x00029812 }
 
enum  
 

Functions

typedef CALLBACK_API_REGISTER68K (void, HighHookProcPtr,(const Rect *r, TEPtr pTE))
 
typedef CALLBACK_API_REGISTER68K (Boolean, EOLHookProcPtr,(char theChar, TEPtr pTE, TEHandle hTE))
 
typedef CALLBACK_API_REGISTER68K (void, CaretHookProcPtr,(const Rect *r, TEPtr pTE))
 
typedef CALLBACK_API_REGISTER68K (unsigned short, WidthHookProcPtr,(unsigned short textLen, unsigned short textOffset, void *textBufferPtr, TEPtr pTE, TEHandle hTE))
 
typedef CALLBACK_API_REGISTER68K (unsigned short, TextWidthHookProcPtr,(unsigned short textLen, unsigned short textOffset, void *textBufferPtr, TEPtr pTE, TEHandle hTE))
 
typedef CALLBACK_API_REGISTER68K (unsigned short, NWidthHookProcPtr,(unsigned short styleRunLen, unsigned short styleRunOffset, short slop, short direction, void *textBufferPtr, short *lineStart, TEPtr pTE, TEHandle hTE))
 
typedef CALLBACK_API_REGISTER68K (void, DrawHookProcPtr,(unsigned short textOffset, unsigned short drawLen, void *textBufferPtr, TEPtr pTE, TEHandle hTE))
 
typedef CALLBACK_API_REGISTER68K (Boolean, HitTestHookProcPtr,(unsigned short styleRunLen, unsigned short styleRunOffset, unsigned short slop, void *textBufferPtr, TEPtr pTE, TEHandle hTE, unsigned short *pixelWidth, unsigned short *charOffset, Boolean *pixelInChar))
 
typedef CALLBACK_API_REGISTER68K (void, TEFindWordProcPtr,(unsigned short currentPos, short caller, TEPtr pTE, TEHandle hTE, unsigned short *wordStart, unsigned short *wordEnd))
 
typedef CALLBACK_API_REGISTER68K (void, TERecalcProcPtr,(TEPtr pTE, unsigned short changeLength, unsigned short *lineStart, unsigned short *firstChar, unsigned short *lastChar))
 
typedef CALLBACK_API_REGISTER68K (void, TEDoTextProcPtr,(TEPtr pTE, unsigned short firstChar, unsigned short lastChar, short selector, GrafPtr *currentGrafPort, short *charPosition))
 
typedef CALLBACK_API_REGISTER68K (Boolean, TEClickLoopProcPtr,(TEPtr pTE))
 
typedef CALLBACK_API_REGISTER68K (Boolean, WordBreakProcPtr,(Ptr text, short charPos))
 
typedef REGISTER_UPP_TYPE (HighHookProcPtr) HighHookUPP
 
typedef REGISTER_UPP_TYPE (EOLHookProcPtr) EOLHookUPP
 
typedef REGISTER_UPP_TYPE (CaretHookProcPtr) CaretHookUPP
 
typedef REGISTER_UPP_TYPE (WidthHookProcPtr) WidthHookUPP
 
typedef REGISTER_UPP_TYPE (TextWidthHookProcPtr) TextWidthHookUPP
 
typedef REGISTER_UPP_TYPE (NWidthHookProcPtr) NWidthHookUPP
 
typedef REGISTER_UPP_TYPE (DrawHookProcPtr) DrawHookUPP
 
typedef REGISTER_UPP_TYPE (HitTestHookProcPtr) HitTestHookUPP
 
typedef REGISTER_UPP_TYPE (TEFindWordProcPtr) TEFindWordUPP
 
typedef REGISTER_UPP_TYPE (TERecalcProcPtr) TERecalcUPP
 
typedef REGISTER_UPP_TYPE (TEDoTextProcPtr) TEDoTextUPP
 
typedef REGISTER_UPP_TYPE (TEClickLoopProcPtr) TEClickLoopUPP
 
typedef REGISTER_UPP_TYPE (WordBreakProcPtr) WordBreakUPP
 
HighHookUPP NewHighHookUPP (HighHookProcPtr userRoutine)
 
EOLHookUPP NewEOLHookUPP (EOLHookProcPtr userRoutine)
 
CaretHookUPP NewCaretHookUPP (CaretHookProcPtr userRoutine)
 
WidthHookUPP NewWidthHookUPP (WidthHookProcPtr userRoutine)
 
TextWidthHookUPP NewTextWidthHookUPP (TextWidthHookProcPtr userRoutine)
 
NWidthHookUPP NewNWidthHookUPP (NWidthHookProcPtr userRoutine)
 
DrawHookUPP NewDrawHookUPP (DrawHookProcPtr userRoutine)
 
HitTestHookUPP NewHitTestHookUPP (HitTestHookProcPtr userRoutine)
 
TEFindWordUPP NewTEFindWordUPP (TEFindWordProcPtr userRoutine)
 
TERecalcUPP NewTERecalcUPP (TERecalcProcPtr userRoutine)
 
TEDoTextUPP NewTEDoTextUPP (TEDoTextProcPtr userRoutine)
 
TEClickLoopUPP NewTEClickLoopUPP (TEClickLoopProcPtr userRoutine)
 
WordBreakUPP NewWordBreakUPP (WordBreakProcPtr userRoutine)
 
void DisposeHighHookUPP (HighHookUPP userUPP)
 
void DisposeEOLHookUPP (EOLHookUPP userUPP)
 
void DisposeCaretHookUPP (CaretHookUPP userUPP)
 
void DisposeWidthHookUPP (WidthHookUPP userUPP)
 
void DisposeTextWidthHookUPP (TextWidthHookUPP userUPP)
 
void DisposeNWidthHookUPP (NWidthHookUPP userUPP)
 
void DisposeDrawHookUPP (DrawHookUPP userUPP)
 
void DisposeHitTestHookUPP (HitTestHookUPP userUPP)
 
void DisposeTEFindWordUPP (TEFindWordUPP userUPP)
 
void DisposeTERecalcUPP (TERecalcUPP userUPP)
 
void DisposeTEDoTextUPP (TEDoTextUPP userUPP)
 
void DisposeTEClickLoopUPP (TEClickLoopUPP userUPP)
 
void DisposeWordBreakUPP (WordBreakUPP userUPP)
 
void InvokeHighHookUPP (const Rect *r, TEPtr pTE, HighHookUPP userUPP)
 
Boolean InvokeEOLHookUPP (char theChar, TEPtr pTE, TEHandle hTE, EOLHookUPP userUPP)
 
void InvokeCaretHookUPP (const Rect *r, TEPtr pTE, CaretHookUPP userUPP)
 
unsigned short InvokeWidthHookUPP (unsigned short textLen, unsigned short textOffset, void *textBufferPtr, TEPtr pTE, TEHandle hTE, WidthHookUPP userUPP)
 
unsigned short InvokeTextWidthHookUPP (unsigned short textLen, unsigned short textOffset, void *textBufferPtr, TEPtr pTE, TEHandle hTE, TextWidthHookUPP userUPP)
 
unsigned short InvokeNWidthHookUPP (unsigned short styleRunLen, unsigned short styleRunOffset, short slop, short direction, void *textBufferPtr, short *lineStart, TEPtr pTE, TEHandle hTE, NWidthHookUPP userUPP)
 
void InvokeDrawHookUPP (unsigned short textOffset, unsigned short drawLen, void *textBufferPtr, TEPtr pTE, TEHandle hTE, DrawHookUPP userUPP)
 
Boolean InvokeHitTestHookUPP (unsigned short styleRunLen, unsigned short styleRunOffset, unsigned short slop, void *textBufferPtr, TEPtr pTE, TEHandle hTE, unsigned short *pixelWidth, unsigned short *charOffset, Boolean *pixelInChar, HitTestHookUPP userUPP)
 
void InvokeTEFindWordUPP (unsigned short currentPos, short caller, TEPtr pTE, TEHandle hTE, unsigned short *wordStart, unsigned short *wordEnd, TEFindWordUPP userUPP)
 
void InvokeTERecalcUPP (TEPtr pTE, unsigned short changeLength, unsigned short *lineStart, unsigned short *firstChar, unsigned short *lastChar, TERecalcUPP userUPP)
 
void InvokeTEDoTextUPP (TEPtr pTE, unsigned short firstChar, unsigned short lastChar, short selector, GrafPtr *currentGrafPort, short *charPosition, TEDoTextUPP userUPP)
 
Boolean InvokeTEClickLoopUPP (TEPtr pTE, TEClickLoopUPP userUPP)
 
Boolean InvokeWordBreakUPP (Ptr text, short charPos, WordBreakUPP userUPP)
 
Handle TEScrapHandle (void)
 Obtain handle leading to TextEdit scrap. More...
 
long TEGetScrapLength (void)
 
void TEInit (void)
 
TEHandle TENew (const Rect *destRect, const Rect *viewRect)
 
void TEDispose (TEHandle hTE)
 
void TESetText (const void *text, long length, TEHandle hTE)
 
CharsHandle TEGetText (TEHandle hTE)
 
void TEIdle (TEHandle hTE)
 
void TESetSelect (long selStart, long selEnd, TEHandle hTE)
 
void TEActivate (TEHandle hTE)
 
void TEDeactivate (TEHandle hTE)
 
void TEKey (CharParameter key, TEHandle hTE)
 
void TECut (TEHandle hTE)
 
void TECopy (TEHandle hTE)
 
void TEPaste (TEHandle hTE)
 
void TEDelete (TEHandle hTE)
 
void TEInsert (const void *text, long length, TEHandle hTE)
 
void TESetAlignment (short just, TEHandle hTE)
 
void TEUpdate (const Rect *rUpdate, TEHandle hTE)
 
void TETextBox (const void *text, long length, const Rect *box, short just)
 
void TEScroll (short dh, short dv, TEHandle hTE)
 
void TESelView (TEHandle hTE)
 
void TEPinScroll (short dh, short dv, TEHandle hTE)
 
void TEAutoView (Boolean fAuto, TEHandle hTE)
 
void TECalText (TEHandle hTE)
 
short TEGetOffset (Point pt, TEHandle hTE)
 
Point TEGetPoint (short offset, TEHandle hTE)
 
void TEClick (Point pt, Boolean fExtend, TEHandle h)
 
TEHandle TEStyleNew (const Rect *destRect, const Rect *viewRect)
 
void TESetStyleHandle (TEStyleHandle theHandle, TEHandle hTE)
 
TEStyleHandle TEGetStyleHandle (TEHandle hTE)
 
void TEGetStyle (short offset, TextStyle *theStyle, short *lineHeight, short *fontAscent, TEHandle hTE)
 
void TEStylePaste (TEHandle hTE)
 
void TESetStyle (short mode, const TextStyle *newStyle, Boolean fRedraw, TEHandle hTE)
 
void TEReplaceStyle (short mode, const TextStyle *oldStyle, const TextStyle *newStyle, Boolean fRedraw, TEHandle hTE)
 
StScrpHandle TEGetStyleScrapHandle (TEHandle hTE)
 
void TEStyleInsert (const void *text, long length, StScrpHandle hST, TEHandle hTE)
 
long TEGetHeight (long endLine, long startLine, TEHandle hTE)
 
Boolean TEContinuousStyle (short *mode, TextStyle *aStyle, TEHandle hTE)
 TEContinuousStyle Check if a style element is continuous across selection. More...
 
void TEUseStyleScrap (long rangeStart, long rangeEnd, StScrpHandle newStyles, Boolean fRedraw, TEHandle hTE)
 
void TECustomHook (TEIntHook which, UniversalProcPtr *addr, TEHandle hTE)
 Install custom handlers for TextEdit bottleneck routines. More...
 
long TENumStyles (long rangeStart, long rangeEnd, TEHandle hTE)
 Obtains a count of style runs in a range of text. More...
 
The action for the new bit (un) set" interface
 
OSErr TEGetHiliteRgn (RgnHandle region, TEHandle hTE)
 
void TESetScrapLength (long length)
 
OSErr TEFromScrap (void)
 
OSErr TEToScrap (void)
 
void TESetClickLoop (TEClickLoopUPP clikProc, TEHandle hTE)
 
void TESetWordBreak (WordBreakUPP wBrkProc, TEHandle hTE)
 
TEDoTextUPP TEGetDoTextHook (void)
 
void TESetDoTextHook (TEDoTextUPP value)
 
TERecalcUPP TEGetRecalcHook (void)
 
void TESetRecalcHook (TERecalcUPP value)
 
TEFindWordUPP TEGetFindWordHook (void)
 
void TESetFindWordHook (TEFindWordUPP value)
 
Handle TEGetScrapHandle (void)
 
void TESetScrapHandle (Handle value)
 
UInt8 LMGetWordRedraw (void)
 
void LMSetWordRedraw (UInt8 value)
 
void teclick (Point *pt, Boolean fExtend, TEHandle h)
 

Variables

 teFTextBuffering = 1
 Return last setting of a specified feature's bit. More...
 
 teFOutlineHilite = 2
 
 teFInlineInput = 3
 
 teFUseTextServices = 4
 
The action for the new TEFeatureFlag is
 
The action for the new TEFeatureFlag TEBitSet
 

Detailed Description

TextEdit Interfaces.

Introduced In: System 8.5
Avaliable From: Universal Interfaces 3.4.1
Copyright: © 1985-2001 by Apple Computer, Inc., all rights reserved

For bug reports, consult the following page on the World Wide Web:

http://developer.apple.com/bugreporter/

Macro Definition Documentation

◆ CallHitTestHookProc

#define CallHitTestHookProc (   userRoutine,
  styleRunLen,
  styleRunOffset,
  slop,
  textBufferPtr,
  pTE,
  hTE,
  pixelWidth,
  charOffset,
  pixelInChar 
)
Value:
InvokeHitTestHookUPP(styleRunLen, styleRunOffset, slop, textBufferPtr, pTE, \
hTE, pixelWidth, charOffset, pixelInChar, userRoutine)
Boolean InvokeHitTestHookUPP(unsigned short styleRunLen, unsigned short styleRunOffset, unsigned short slop, void *textBufferPtr, TEPtr pTE, TEHandle hTE, unsigned short *pixelWidth, unsigned short *charOffset, Boolean *pixelInChar, HitTestHookUPP userUPP)

◆ CallNWidthHookProc

#define CallNWidthHookProc (   userRoutine,
  styleRunLen,
  styleRunOffset,
  slop,
  direction,
  textBufferPtr,
  lineStart,
  pTE,
  hTE 
)
Value:
InvokeNWidthHookUPP(styleRunLen, styleRunOffset, slop, direction, \
textBufferPtr, lineStart, pTE, hTE, userRoutine)
unsigned short InvokeNWidthHookUPP(unsigned short styleRunLen, unsigned short styleRunOffset, short slop, short direction, void *textBufferPtr, short *lineStart, TEPtr pTE, TEHandle hTE, NWidthHookUPP userUPP)

◆ CallTEDoTextProc

#define CallTEDoTextProc (   userRoutine,
  pTE,
  firstChar,
  lastChar,
  selector,
  currentGrafPort,
  charPosition 
)
Value:
InvokeTEDoTextUPP(pTE, firstChar, lastChar, selector, currentGrafPort, \
charPosition, userRoutine)
void InvokeTEDoTextUPP(TEPtr pTE, unsigned short firstChar, unsigned short lastChar, short selector, GrafPtr *currentGrafPort, short *charPosition, TEDoTextUPP userUPP)

◆ CallTEFindWordProc

#define CallTEFindWordProc (   userRoutine,
  currentPos,
  caller,
  pTE,
  hTE,
  wordStart,
  wordEnd 
)
Value:
InvokeTEFindWordUPP(currentPos, caller, pTE, hTE, wordStart, wordEnd, \
userRoutine)
void InvokeTEFindWordUPP(unsigned short currentPos, short caller, TEPtr pTE, TEHandle hTE, unsigned short *wordStart, unsigned short *wordEnd, TEFindWordUPP userUPP)

◆ CallTERecalcProc

#define CallTERecalcProc (   userRoutine,
  pTE,
  changeLength,
  lineStart,
  firstChar,
  lastChar 
)
Value:
InvokeTERecalcUPP(pTE, changeLength, lineStart, firstChar, lastChar, \
userRoutine)
void InvokeTERecalcUPP(TEPtr pTE, unsigned short changeLength, unsigned short *lineStart, unsigned short *firstChar, unsigned short *lastChar, TERecalcUPP userUPP)

◆ CallTextWidthHookProc

#define CallTextWidthHookProc (   userRoutine,
  textLen,
  textOffset,
  textBufferPtr,
  pTE,
  hTE 
)
Value:
InvokeTextWidthHookUPP(textLen, textOffset, textBufferPtr, pTE, hTE, \
userRoutine)
unsigned short InvokeTextWidthHookUPP(unsigned short textLen, unsigned short textOffset, void *textBufferPtr, TEPtr pTE, TEHandle hTE, TextWidthHookUPP userUPP)

◆ InvokeDrawHookUPP

#define InvokeDrawHookUPP (   textOffset,
  drawLen,
  textBufferPtr,
  pTE,
  hTE,
  userUPP 
)
Value:
CALL_FIVE_PARAMETER_UPP((userUPP), uppDrawHookProcInfo, (textOffset), \
(drawLen), (textBufferPtr), (pTE), (hTE))

◆ InvokeEOLHookUPP

#define InvokeEOLHookUPP (   theChar,
  pTE,
  hTE,
  userUPP 
)
Value:
(Boolean) CALL_THREE_PARAMETER_UPP((userUPP), uppEOLHookProcInfo, (theChar), \
(pTE), (hTE))
unsigned char Boolean
Definition: MacTypes.h:318

◆ InvokeHitTestHookUPP

#define InvokeHitTestHookUPP (   styleRunLen,
  styleRunOffset,
  slop,
  textBufferPtr,
  pTE,
  hTE,
  pixelWidth,
  charOffset,
  pixelInChar,
  userUPP 
)
Value:
(Boolean) CALL_NINE_PARAMETER_UPP((userUPP), uppHitTestHookProcInfo, \
(styleRunLen), (styleRunOffset), (slop), \
(textBufferPtr), (pTE), (hTE), \
(pixelWidth), (charOffset), (pixelInChar))

◆ InvokeNWidthHookUPP

#define InvokeNWidthHookUPP (   styleRunLen,
  styleRunOffset,
  slop,
  direction,
  textBufferPtr,
  lineStart,
  pTE,
  hTE,
  userUPP 
)
Value:
(unsigned short)CALL_EIGHT_PARAMETER_UPP( \
(userUPP), uppNWidthHookProcInfo, (styleRunLen), (styleRunOffset), \
(slop), (direction), (textBufferPtr), (lineStart), (pTE), (hTE))

◆ InvokeTEDoTextUPP

#define InvokeTEDoTextUPP (   pTE,
  firstChar,
  lastChar,
  selector,
  currentGrafPort,
  charPosition,
  userUPP 
)
Value:
CALL_SIX_PARAMETER_UPP((userUPP), uppTEDoTextProcInfo, (pTE), (firstChar), \
(lastChar), (selector), (currentGrafPort), \
(charPosition))

◆ InvokeTEFindWordUPP

#define InvokeTEFindWordUPP (   currentPos,
  caller,
  pTE,
  hTE,
  wordStart,
  wordEnd,
  userUPP 
)
Value:
CALL_SIX_PARAMETER_UPP((userUPP), uppTEFindWordProcInfo, (currentPos), \
(caller), (pTE), (hTE), (wordStart), (wordEnd))

◆ InvokeTERecalcUPP

#define InvokeTERecalcUPP (   pTE,
  changeLength,
  lineStart,
  firstChar,
  lastChar,
  userUPP 
)
Value:
CALL_FIVE_PARAMETER_UPP((userUPP), uppTERecalcProcInfo, (pTE), \
(changeLength), (lineStart), (firstChar), \
(lastChar))

◆ InvokeTextWidthHookUPP

#define InvokeTextWidthHookUPP (   textLen,
  textOffset,
  textBufferPtr,
  pTE,
  hTE,
  userUPP 
)
Value:
(unsigned short)CALL_FIVE_PARAMETER_UPP((userUPP), uppTextWidthHookProcInfo, \
(textLen), (textOffset), \
(textBufferPtr), (pTE), (hTE))

◆ InvokeWidthHookUPP

#define InvokeWidthHookUPP (   textLen,
  textOffset,
  textBufferPtr,
  pTE,
  hTE,
  userUPP 
)
Value:
(unsigned short)CALL_FIVE_PARAMETER_UPP((userUPP), uppWidthHookProcInfo, \
(textLen), (textOffset), \
(textBufferPtr), (pTE), (hTE))

◆ InvokeWordBreakUPP

#define InvokeWordBreakUPP (   text,
  charPos,
  userUPP 
)
Value:
(Boolean) CALL_TWO_PARAMETER_UPP((userUPP), uppWordBreakProcInfo, (text), \
(charPos))

◆ NewCaretHookUPP

#define NewCaretHookUPP (   userRoutine)
Value:
(CaretHookUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppCaretHookProcInfo, GetCurrentArchitecture())
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)

◆ NewDrawHookUPP

#define NewDrawHookUPP (   userRoutine)
Value:
(DrawHookUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppDrawHookProcInfo, GetCurrentArchitecture())

◆ NewEOLHookUPP

#define NewEOLHookUPP (   userRoutine)
Value:
(EOLHookUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppEOLHookProcInfo, GetCurrentArchitecture())

◆ NewHighHookUPP

#define NewHighHookUPP (   userRoutine)
Value:
(HighHookUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppHighHookProcInfo, GetCurrentArchitecture())

◆ NewHitTestHookUPP

#define NewHitTestHookUPP (   userRoutine)
Value:
(HitTestHookUPP) \
NewRoutineDescriptor((ProcPtr)(userRoutine), uppHitTestHookProcInfo, \
GetCurrentArchitecture())

◆ NewNWidthHookUPP

#define NewNWidthHookUPP (   userRoutine)
Value:
(NWidthHookUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppNWidthHookProcInfo, GetCurrentArchitecture())

◆ NewTEClickLoopUPP

#define NewTEClickLoopUPP (   userRoutine)
Value:
(TEClickLoopUPP) \
NewRoutineDescriptor((ProcPtr)(userRoutine), uppTEClickLoopProcInfo, \
GetCurrentArchitecture())

◆ NewTEDoTextUPP

#define NewTEDoTextUPP (   userRoutine)
Value:
(TEDoTextUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppTEDoTextProcInfo, GetCurrentArchitecture())

◆ NewTEFindWordUPP

#define NewTEFindWordUPP (   userRoutine)
Value:
(TEFindWordUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppTEFindWordProcInfo, GetCurrentArchitecture())

◆ NewTERecalcUPP

#define NewTERecalcUPP (   userRoutine)
Value:
(TERecalcUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppTERecalcProcInfo, GetCurrentArchitecture())

◆ NewTextWidthHookUPP

#define NewTextWidthHookUPP (   userRoutine)
Value:
(TextWidthHookUPP) \
NewRoutineDescriptor((ProcPtr)(userRoutine), uppTextWidthHookProcInfo, \
GetCurrentArchitecture())

◆ NewWidthHookUPP

#define NewWidthHookUPP (   userRoutine)
Value:
(WidthHookUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppWidthHookProcInfo, GetCurrentArchitecture())

◆ NewWordBreakUPP

#define NewWordBreakUPP (   userRoutine)
Value:
(WordBreakUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppWordBreakProcInfo, GetCurrentArchitecture())

Function Documentation

◆ DisposeCaretHookUPP()

void DisposeCaretHookUPP ( CaretHookUPP  userUPP)

DisposeCaretHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeDrawHookUPP()

void DisposeDrawHookUPP ( DrawHookUPP  userUPP)

DisposeDrawHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeEOLHookUPP()

void DisposeEOLHookUPP ( EOLHookUPP  userUPP)

DisposeEOLHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeHighHookUPP()

void DisposeHighHookUPP ( HighHookUPP  userUPP)

DisposeHighHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeHitTestHookUPP()

void DisposeHitTestHookUPP ( HitTestHookUPP  userUPP)

DisposeHitTestHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeNWidthHookUPP()

void DisposeNWidthHookUPP ( NWidthHookUPP  userUPP)

DisposeNWidthHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeTEClickLoopUPP()

void DisposeTEClickLoopUPP ( TEClickLoopUPP  userUPP)

DisposeTEClickLoopUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeTEDoTextUPP()

void DisposeTEDoTextUPP ( TEDoTextUPP  userUPP)

DisposeTEDoTextUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeTEFindWordUPP()

void DisposeTEFindWordUPP ( TEFindWordUPP  userUPP)

DisposeTEFindWordUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeTERecalcUPP()

void DisposeTERecalcUPP ( TERecalcUPP  userUPP)

DisposeTERecalcUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeTextWidthHookUPP()

void DisposeTextWidthHookUPP ( TextWidthHookUPP  userUPP)

DisposeTextWidthHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeWidthHookUPP()

void DisposeWidthHookUPP ( WidthHookUPP  userUPP)

DisposeWidthHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ DisposeWordBreakUPP()

void DisposeWordBreakUPP ( WordBreakUPP  userUPP)

DisposeWordBreakUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: not available
Mac OS X: not available

◆ InvokeCaretHookUPP()

void InvokeCaretHookUPP ( const Rect r,
TEPtr  pTE,
CaretHookUPP  userUPP 
)

InvokeCaretHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeDrawHookUPP()

void InvokeDrawHookUPP ( unsigned short  textOffset,
unsigned short  drawLen,
void *  textBufferPtr,
TEPtr  pTE,
TEHandle  hTE,
DrawHookUPP  userUPP 
)

InvokeDrawHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeEOLHookUPP()

Boolean InvokeEOLHookUPP ( char  theChar,
TEPtr  pTE,
TEHandle  hTE,
EOLHookUPP  userUPP 
)

InvokeEOLHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeHighHookUPP()

void InvokeHighHookUPP ( const Rect r,
TEPtr  pTE,
HighHookUPP  userUPP 
)

InvokeHighHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeHitTestHookUPP()

Boolean InvokeHitTestHookUPP ( unsigned short  styleRunLen,
unsigned short  styleRunOffset,
unsigned short  slop,
void *  textBufferPtr,
TEPtr  pTE,
TEHandle  hTE,
unsigned short *  pixelWidth,
unsigned short *  charOffset,
Boolean pixelInChar,
HitTestHookUPP  userUPP 
)

InvokeHitTestHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeNWidthHookUPP()

unsigned short InvokeNWidthHookUPP ( unsigned short  styleRunLen,
unsigned short  styleRunOffset,
short  slop,
short  direction,
void *  textBufferPtr,
short *  lineStart,
TEPtr  pTE,
TEHandle  hTE,
NWidthHookUPP  userUPP 
)

InvokeNWidthHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeTEClickLoopUPP()

Boolean InvokeTEClickLoopUPP ( TEPtr  pTE,
TEClickLoopUPP  userUPP 
)

InvokeTEClickLoopUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeTEDoTextUPP()

void InvokeTEDoTextUPP ( TEPtr  pTE,
unsigned short  firstChar,
unsigned short  lastChar,
short  selector,
GrafPtr currentGrafPort,
short *  charPosition,
TEDoTextUPP  userUPP 
)

InvokeTEDoTextUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeTEFindWordUPP()

void InvokeTEFindWordUPP ( unsigned short  currentPos,
short  caller,
TEPtr  pTE,
TEHandle  hTE,
unsigned short *  wordStart,
unsigned short *  wordEnd,
TEFindWordUPP  userUPP 
)

InvokeTEFindWordUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeTERecalcUPP()

void InvokeTERecalcUPP ( TEPtr  pTE,
unsigned short  changeLength,
unsigned short *  lineStart,
unsigned short *  firstChar,
unsigned short *  lastChar,
TERecalcUPP  userUPP 
)

InvokeTERecalcUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeTextWidthHookUPP()

unsigned short InvokeTextWidthHookUPP ( unsigned short  textLen,
unsigned short  textOffset,
void *  textBufferPtr,
TEPtr  pTE,
TEHandle  hTE,
TextWidthHookUPP  userUPP 
)

InvokeTextWidthHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeWidthHookUPP()

unsigned short InvokeWidthHookUPP ( unsigned short  textLen,
unsigned short  textOffset,
void *  textBufferPtr,
TEPtr  pTE,
TEHandle  hTE,
WidthHookUPP  userUPP 
)

InvokeWidthHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ InvokeWordBreakUPP()

Boolean InvokeWordBreakUPP ( Ptr  text,
short  charPos,
WordBreakUPP  userUPP 
)

InvokeWordBreakUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: not available
Mac OS X: not available

◆ LMGetWordRedraw()

UInt8 LMGetWordRedraw ( void  )

LMGetWordRedraw()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ LMSetWordRedraw()

void LMSetWordRedraw ( UInt8  value)

LMSetWordRedraw()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewCaretHookUPP()

CaretHookUPP NewCaretHookUPP ( CaretHookProcPtr  userRoutine)

NewCaretHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewDrawHookUPP()

DrawHookUPP NewDrawHookUPP ( DrawHookProcPtr  userRoutine)

NewDrawHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewEOLHookUPP()

EOLHookUPP NewEOLHookUPP ( EOLHookProcPtr  userRoutine)

NewEOLHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewHighHookUPP()

HighHookUPP NewHighHookUPP ( HighHookProcPtr  userRoutine)

NewHighHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewHitTestHookUPP()

HitTestHookUPP NewHitTestHookUPP ( HitTestHookProcPtr  userRoutine)

NewHitTestHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewNWidthHookUPP()

NWidthHookUPP NewNWidthHookUPP ( NWidthHookProcPtr  userRoutine)

NewNWidthHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewTEClickLoopUPP()

TEClickLoopUPP NewTEClickLoopUPP ( TEClickLoopProcPtr  userRoutine)

NewTEClickLoopUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewTEDoTextUPP()

TEDoTextUPP NewTEDoTextUPP ( TEDoTextProcPtr  userRoutine)

NewTEDoTextUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewTEFindWordUPP()

TEFindWordUPP NewTEFindWordUPP ( TEFindWordProcPtr  userRoutine)

NewTEFindWordUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewTERecalcUPP()

TERecalcUPP NewTERecalcUPP ( TERecalcProcPtr  userRoutine)

NewTERecalcUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewTextWidthHookUPP()

TextWidthHookUPP NewTextWidthHookUPP ( TextWidthHookProcPtr  userRoutine)

NewTextWidthHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewWidthHookUPP()

WidthHookUPP NewWidthHookUPP ( WidthHookProcPtr  userRoutine)

NewWidthHookUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ NewWordBreakUPP()

WordBreakUPP NewWordBreakUPP ( WordBreakProcPtr  userRoutine)

NewWordBreakUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: not available
Mac OS X: not available

◆ REGISTER_UPP_TYPE()

typedef REGISTER_UPP_TYPE ( HighHookProcPtr  )

Important note about TEClickLoopProcPtr and WordBreakProcPtr

At one point these were defined as returning the function result in the condition code Z-bit. This was correct, in that it was what the 68K implementation of TextEdit actually tested. But, MixedMode had a different idea of what returning a boolean in the Z-bit meant. MixedMode was setting the Z-bit the complement of what was wanted.

Therefore, these ProcPtrs have been changed (back) to return the result in register D0. It turns out that for register based routines, MixedMode sets the Z-bit of the 68K emulator based on the contents of the return result register. Thus we can get the Z-bit set correctly.

But, when TextEdit is recoded in PowerPC, if it calls a 68K ClickLoop or WordBreak routine, register D0 had better have the result (in addition to the Z-bit). Therefore all 68K apps should make sure their ClickLoop or WordBreak routines set register D0 at the end. There is no function to get/set the low-mem for FindWordHook at 0x07F8. This is because it is not a low-mem ProcPtr. That address is the entry in the OS TrapTable for trap 0xA0FE. You can use Get/SetTrapAddress to acccess it. The following ProcPtrs cannot be written in or called from a high-level language without the help of mixed mode or assembly glue because they use the following parameter-passing conventions:

typedef pascal void (*HighHookProcPtr)(const Rect *r, TEPtr pTE); typedef pascal void (*CaretHookProcPtr)(const Rect *r, TEPtr pTE);

In:
    =>  r                       on stack
    =>  pTE                     A3.L
Out:
    none

typedef pascal Boolean (*EOLHookProcPtr)(char theChar, TEPtr pTE, TEHandle hTE);

 In:
     =>  theChar                 D0.B
     =>  pTE                     A3.L
     =>  hTE                     A4.L
 Out:
     <=  Boolean                 Z bit of the CCR

typedef pascal unsigned short (*WidthHookProcPtr)(unsigned short textLen, unsigned short textOffset, void *textBufferPtr, TEPtr pTE, TEHandle hTE); typedef pascal unsigned short (*TextWidthHookProcPtr)(unsigned short textLen, unsigned short textOffset, void *textBufferPtr, TEPtr pTE, TEHandle hTE);

 In:
     =>  textLen                 D0.W
     =>  textOffset              D1.W
     =>  textBufferPtr           A0.L
     =>  pTE                     A3.L
     =>  hTE                     A4.L
 Out:
     <=  unsigned short          D1.W

typedef pascal unsigned short (*NWidthHookProcPtr)(unsigned short styleRunLen, unsigned short styleRunOffset, short slop, short direction, void textBufferPtr, short *lineStart, TEPtr pTE, TEHandle hTE);

In:
    =>  styleRunLen             D0.W
    =>  styleRunOffset          D1.W
    =>  slop                    D2.W (low)
    =>  direction               D2.W (high)
    =>  textBufferPtr           A0.L
    =>  lineStart               A2.L
    =>  pTE                     A3.L
    =>  hTE                     A4.L
Out:
    <=  unsigned short          D1.W

typedef pascal void (*DrawHookProcPtr)(unsigned short textOffset, unsigned short drawLen, void *textBufferPtr, TEPtr pTE, TEHandle hTE);

 In:
     =>  textOffset              D0.W
     =>  drawLen                 D1.W
     =>  textBufferPtr           A0.L
     =>  pTE                     A3.L
     =>  hTE                     A4.L
 Out:
     none

typedef pascal Boolean (*HitTestHookProcPtr)(unsigned short styleRunLen, unsigned short styleRunOffset, unsigned short slop, void *textBufferPtr, TEPtr pTE, TEHandle hTE, unsigned short *pixelWidth, unsigned short charOffset, Boolean *pixelInChar);

In:
    =>  styleRunLen             D0.W
    =>  styleRunOffset          D1.W
    =>  slop                    D2.W
    =>  textBufferPtr           A0.L
    =>  pTE                     A3.L
    =>  hTE                     A4.L
Out:
    <=  pixelWidth              D0.W (low)
    <=  Boolean                 D0.W (high)
    <=  charOffset              D1.W
    <=  pixelInChar             D2.W

typedef pascal void (*TEFindWordProcPtr)(unsigned short currentPos, short caller, TEPtr pTE, TEHandle hTE, unsigned short *wordStart, unsigned short wordEnd);

In:
    =>  currentPos              D0.W
    =>  caller                  D2.W
    =>  pTE                     A3.L
    =>  hTE                     A4.L
Out:
    <=  wordStart               D0.W
    <=  wordEnd                 D1.W

typedef pascal void (*TERecalcProcPtr)(TEPtr pTE, unsigned short changeLength, unsigned short *lineStart, unsigned short *firstChar, unsigned short *lastChar);

 In:
     =>  pTE                     A3.L
     =>  changeLength            D7.W
 Out:
     <=  lineStart               D2.W
     <=  firstChar               D3.W
     <=  lastChar                D4.W

typedef pascal void (*TEDoTextProcPtr)(TEPtr pTE, unsigned short firstChar, unsigned short lastChar, short selector, GrafPtr *currentGrafPort, short charPosition);

In:
    =>  pTE                     A3.L
    =>  firstChar               D3.W
    =>  lastChar                D4.W
    =>  selector                D7.W
Out:
    <=  currentGrafPort         A0.L
    <=  charPosition            D0.W

◆ TEActivate()

void TEActivate ( TEHandle  hTE)

TEActivate()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEAutoView()

void TEAutoView ( Boolean  fAuto,
TEHandle  hTE 
)

TEAutoView()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TECalText()

void TECalText ( TEHandle  hTE)

TECalText()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ teclick()

void teclick ( Point pt,
Boolean  fExtend,
TEHandle  h 
)

teclick()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ TEClick()

void TEClick ( Point  pt,
Boolean  fExtend,
TEHandle  h 
)

TEClick()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEContinuousStyle()

Boolean TEContinuousStyle ( short *  mode,
TextStyle aStyle,
TEHandle  hTE 
)

TEContinuousStyle Check if a style element is continuous across selection.

The TEContinuousStyle function, new with System 6.0, gives you
information about the attributes of the current selection.
TEContinuousStyle examines the current selection range and checks if a
specified style attribute is continuous across the current selection range. You
can use this as an aid in toggling styles (see TESetStyle ) or to determine
which, if any, items in your Style... menu should have a check mark.
modeis the address of a short. On entry, it specifies a style operation
mode (see Style Mode ). Bits of this value specify which
characteristics of the selected text should be examined.
Upon return, each bit that was set on entry is been cleared if that
style element was not continuous.
theStyle is the address of a 12-byte TextStyle structure. On entry, it
identifies which characteristics to examine. Upon exit, fields
corresponding to set-bits in mode are filled-in to reflect the values
of any attributes which are continuous.
hTEis a handle leading to an edit record created via TEStylNew .
The mode parameter, which takes the same values as in TESetStyle ,
specifies which attributes should be checked. When TEContinuousStyle
returns, the mode parameter indicates which of the checked attributes is
continuous over the selection range, and the aStyle parameter reflects the
continuous attributes.
TEContinuousStyle returns TRUE if all of the attributes to be checked are
continuous and returns FALSE if they are not. In other words, if the mode
parameter is the same before and after the call, then TEContinuousStyle
returns TRUE.
Listing below illustrates how TEContinuousStyle is useful for marking
the Style menu items so they correspond to the current selection.
Marking the Style menu items so they correspond to the current selection
shortmode;
TextStyle aStyle;
TEHandle myTE;
MenuHandle styleMenu;
Copyright: THINK Reference © 1991-1992 Symantec Corporation
Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TECopy()

void TECopy ( TEHandle  hTE)

TECopy()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TECustomHook()

void TECustomHook ( TEIntHook  which,
UniversalProcPtr *  addr,
TEHandle  hTE 
)

Install custom handlers for TextEdit bottleneck routines.

The TECustomHook procedure lets your application customize the features
of TextEdit by setting the TextEdit hooks .
TECustomHook installs a custom routine for TextEdit EOL handling, text
drawing, text measuring, and hit-testing.  It returns the address of the
original handler to provide a way to chain functions.
whichspecifies which bottleneck routine to install. It is one of:
intEOLHook 0Calculates text width
intDrawHook 1Draws text
intWidthHook 2Measures text
intHitTestHook 3See which character corresponds to a screen pixel
intNWidthHook 6Width measurement hook nWIDTHHook
intTextWidthHook 7Width measurement hook TextWidthHook
addris the address of a ProcPtr. On entry, it is the address of your
custom routine to take over the function identified by whichHook .
Upon return, it will contain the address of the routine that normally
handles the function.
hTEis a handle leading to an edit record created via TEStylNew .
You specify your customized hook in the addr parameter. When
TECustomHook returns, the addr parameter contains the address of the
previous hook specified by the which parameter. This address is returned so
that hooks can be daisy-chained. The two new hooks, nWIDTHHook and
TextWidthHook , specified by the intNWidthHook and intTextWidthHook
constants, are described in “TextEdit Width Hooks ”.
Two integer fields of the edit record , not used for their original purposes but
still named recalBack and recalLines , combine to hold a handle to the
TextEdit dispatch record , which contains a list of TextEdit hooks . (See the
figure in the TextEdit Data Structures description for an illustration of the
edit record , the dispatch record, and all the TextEdit data structures.) Each
edit record has its own set of such routines to provide for maximum
flexibility. You should always use the TECustomHook procedure to change
these hooks instead of modifying the edit record directly.
Warning: Do not simply copy the recalBack and recalLines fields to
another edit record . If you do, a duplicate handle to the initial
TextEdit dispatch record is stored in recalBack and recalLines in your copy
of the record. When one of the edit record s is disposed, the handle stored in
the copy becomes invalid, and TextEdit can crash if the copy is used.
EOLHook, WIDTHHook , nWIDTHHook , TextWidthHook , DRAWHook , and
Copyright: THINK Reference © 1991-1992 Symantec Corporation
Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TECut()

void TECut ( TEHandle  hTE)

TECut()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEDeactivate()

void TEDeactivate ( TEHandle  hTE)

TEDeactivate()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEDelete()

void TEDelete ( TEHandle  hTE)

TEDelete()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEDispose()

void TEDispose ( TEHandle  hTE)

TEDispose()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEFromScrap()

OSErr TEFromScrap ( void  )

TEFromScrap()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetDoTextHook()

TEDoTextUPP TEGetDoTextHook ( void  )

TEGetDoTextHook()

Non-Carbon CFM: not available
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetFindWordHook()

TEFindWordUPP TEGetFindWordHook ( void  )

TEGetFindWordHook()

Non-Carbon CFM: not available
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetHeight()

long TEGetHeight ( long  endLine,
long  startLine,
TEHandle  hTE 
)

TEGetHeight()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetHiliteRgn()

OSErr TEGetHiliteRgn ( RgnHandle  region,
TEHandle  hTE 
)

TEGetHiliteRgn()

Non-Carbon CFM: in DragLib 1.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetOffset()

short TEGetOffset ( Point  pt,
TEHandle  hTE 
)

TEGetOffset()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetPoint()

Point TEGetPoint ( short  offset,
TEHandle  hTE 
)

TEGetPoint()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetRecalcHook()

TERecalcUPP TEGetRecalcHook ( void  )

TEGetRecalcHook()

Non-Carbon CFM: not available
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetScrapHandle()

Handle TEGetScrapHandle ( void  )

TEGetScrapHandle()

Non-Carbon CFM: not available
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetScrapLength()

long TEGetScrapLength ( void  )

TEGetScrapLength()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetStyle()

void TEGetStyle ( short  offset,
TextStyle theStyle,
short *  lineHeight,
short *  fontAscent,
TEHandle  hTE 
)

TEGetStyle()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetStyleHandle()

TEStyleHandle TEGetStyleHandle ( TEHandle  hTE)

TEGetStyleHandle()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetStyleScrapHandle()

StScrpHandle TEGetStyleScrapHandle ( TEHandle  hTE)

TEGetStyleScrapHandle()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEGetText()

CharsHandle TEGetText ( TEHandle  hTE)

TEGetText()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEIdle()

void TEIdle ( TEHandle  hTE)

TEIdle()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEInit()

void TEInit ( void  )

TEInit()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ TEInsert()

void TEInsert ( const void *  text,
long  length,
TEHandle  hTE 
)

TEInsert()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEKey()

void TEKey ( CharParameter  key,
TEHandle  hTE 
)

TEKey()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TENew()

TEHandle TENew ( const Rect destRect,
const Rect viewRect 
)

TENew()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TENumStyles()

long TENumStyles ( long  rangeStart,
long  rangeEnd,
TEHandle  hTE 
)

Obtains a count of style runs in a range of text.

The TENumStyles function returns the number of style changes contained in
the given range, counting one for the start of the range. Note that this number
does not necessarily represent the number of unique styles for the range
because some styles may be repeated. For unstyled edit record s,
TENumStyles always returns 1.
TENumStyles returns the count of style changes (including one for the
initial style) existing across the specified range. Use this to calculate the
amount of memory that will be needed in a large TECut or TECopy operation.
rangeStart and...
rangeEnd identify which text to examine.
hTEis a handle leading to an edit record created via TENew or
TEStylNew .
The rangeStart and rangeEnd parameters indicate the range. The text
containing the range is specified by the hTE parameter, a handle to the
edit record .
You can use TENumStyles to calculate the amount of memory that would be
required if TECut or TECopy were called. Since the style scrap record is
linear in nature, with one element for each style change, you can multiply the
result that TENumStyles returns by SizeOf( ScrpSTElement ) and add 2 to get
the amount of memory needed.
Returns
a long integer; the number of style changes across the range.
Note
The actual amount of memory used by styles in a Cut or Copy
operation will be the return value * sizeof( ScrpSTElement ) +2.
Copyright: THINK Reference © 1991-1992 Symantec Corporation
Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEPaste()

void TEPaste ( TEHandle  hTE)

TEPaste()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEPinScroll()

void TEPinScroll ( short  dh,
short  dv,
TEHandle  hTE 
)

TEPinScroll()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEReplaceStyle()

void TEReplaceStyle ( short  mode,
const TextStyle oldStyle,
const TextStyle newStyle,
Boolean  fRedraw,
TEHandle  hTE 
)

TEReplaceStyle()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEScrapHandle()

Handle TEScrapHandle ( void  )

Obtain handle leading to TextEdit scrap.

TEScrapHandle returns a handle leading to the TextEdit internal scrap.
On systems later than 4.1, TextEdit uses the desk scrap.
Returns
a 32-bit Handle; the handle leading to the TextEdit scrap.
Note
The global variable TEScrpHandle (at 0x0AB4) contains this
same information.
Probably better than working with the TE scrap itself, you should stick to
calling TEFromScrap , TEToScrap , TECopy, TEPaste , etc.
Copyright: THINK Reference © 1991-1992 Symantec Corporation
Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEScroll()

void TEScroll ( short  dh,
short  dv,
TEHandle  hTE 
)

TEScroll()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESelView()

void TESelView ( TEHandle  hTE)

TESelView()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESetAlignment()

void TESetAlignment ( short  just,
TEHandle  hTE 
)

TESetAlignment()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESetClickLoop()

void TESetClickLoop ( TEClickLoopUPP  clikProc,
TEHandle  hTE 
)

TESetClickLoop()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESetDoTextHook()

void TESetDoTextHook ( TEDoTextUPP  value)

TESetDoTextHook()

Non-Carbon CFM: not available
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESetFindWordHook()

void TESetFindWordHook ( TEFindWordUPP  value)

TESetFindWordHook()

Non-Carbon CFM: not available
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESetRecalcHook()

void TESetRecalcHook ( TERecalcUPP  value)

TESetRecalcHook()

Non-Carbon CFM: not available
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESetScrapHandle()

void TESetScrapHandle ( Handle  value)

TESetScrapHandle()

Non-Carbon CFM: not available
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESetScrapLength()

void TESetScrapLength ( long  length)

TESetScrapLength()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESetSelect()

void TESetSelect ( long  selStart,
long  selEnd,
TEHandle  hTE 
)

TESetSelect()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESetStyle()

void TESetStyle ( short  mode,
const TextStyle newStyle,
Boolean  fRedraw,
TEHandle  hTE 
)

TESetStyle()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESetStyleHandle()

void TESetStyleHandle ( TEStyleHandle  theHandle,
TEHandle  hTE 
)

TESetStyleHandle()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESetText()

void TESetText ( const void *  text,
long  length,
TEHandle  hTE 
)

TESetText()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TESetWordBreak()

void TESetWordBreak ( WordBreakUPP  wBrkProc,
TEHandle  hTE 
)

TESetWordBreak()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: not available
Mac OS X: not available

◆ TEStyleInsert()

void TEStyleInsert ( const void *  text,
long  length,
StScrpHandle  hST,
TEHandle  hTE 
)

TEStyleInsert()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEStyleNew()

TEHandle TEStyleNew ( const Rect destRect,
const Rect viewRect 
)

TEStyleNew()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEStylePaste()

void TEStylePaste ( TEHandle  hTE)

TEStylePaste()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TETextBox()

void TETextBox ( const void *  text,
long  length,
const Rect box,
short  just 
)

TETextBox()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEToScrap()

OSErr TEToScrap ( void  )

TEToScrap()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEUpdate()

void TEUpdate ( const Rect rUpdate,
TEHandle  hTE 
)

TEUpdate()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

◆ TEUseStyleScrap()

void TEUseStyleScrap ( long  rangeStart,
long  rangeEnd,
StScrpHandle  newStyles,
Boolean  fRedraw,
TEHandle  hTE 
)

TEUseStyleScrap()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: in version 10.0 and later

Variable Documentation

◆ TEBitSet

The action for the new TEFeatureFlag TEBitSet
Initial value:
= 1
</pre>
* @par Copyright: THINK Reference © 1991-1992 Symantec Corporation
* @par Non-Carbon CFM: in InterfaceLib 7.1 and later
* @par Carbon Lib: in CarbonLib 1.0 and later
* @par Mac OS X: in version 10.0 and later
*/
short
TEFeatureFlag(short feature, short action, TEHandle hTE)
</pre > *par Copyright
Check if a specified pixel is enclosed by a region.
Definition: DateTimeUtils.h:555
Definition: TextEdit.h:272

◆ teFTextBuffering

teFTextBuffering = 1

Return last setting of a specified feature's bit.

Parameters
featureenable/disable inline input
actionlike feature, using bit constants
The TEFeatureFlag function allows you to enable outline highlighting and
text buffering in your application. You can also use this function to disable
inline input in a particular edit record and to enable several new features that
have been provided so that inline input works correctly with TextEdit .
Note: To test for the availability of these features, you can call the Gestalt
function with the gestaltTextEditVersion selector. A result of gestaltTE4 or
greater returned in the response parameter indicates that outline highlighting
and text buffering are available. A result of gestaltTE5 or greater returned in
the response parameter indicates that the two inline input features are
available. (For details, see the description about
Determining the Version of TextEdit .
The inline input features are also available on version 6.0.7 systems with
non-Roman script systems installed. However, there is no Gestalt constant
that indicates this availability.
The feature parameter allows you to disable inline input in a particular
edit record or to specify the features you want to enable-outline highlighting,
text buffering, and features provided for inline input in TextEdit . The action
parameter lets you enable and disable these features by using the TEBitSet and
TEBitClear constants and lets you test the settings of these feature bits by
using the TEBitTest constant. The hTE parameter is a handle to the edit record .
The TEFeatureFlag function returns the previous setting of the feature's
bit, either TEBitSet or TEBitClear .
Note that there is also a constant named TEFeatureFlag which has the following
values:
The feature or bit definitions for TEFeatureFlag are:
teFAutoScr = 0, /*00000001b