55 #if PRAGMA_STRUCT_ALIGN
56 #pragma options align = mac68k
57 #elif PRAGMA_STRUCT_PACKPUSH
59 #elif PRAGMA_STRUCT_PACK
73 kTopLeftTipPointsLeftVariant = 0,
74 kTopLeftTipPointsUpVariant = 1,
75 kTopRightTipPointsUpVariant = 2,
76 kTopRightTipPointsRightVariant = 3,
77 kBottomRightTipPointsRightVariant = 4,
78 kBottomRightTipPointsDownVariant = 5,
79 kBottomLeftTipPointsDownVariant = 6,
80 kBottomLeftTipPointsLeftVariant = 7,
81 kBalloonVariantCount = 8
86 hmBalloonHelpVersion = 0x0002
91 kHMHelpMenuID = -16490,
93 kHMShowBalloonsItem = 3
115 hmDefaultOptions = 0,
117 hmAbsoluteCoordsBit = 1,
118 hmSaveBitsNoWindowBit = 2,
119 hmSaveBitsWindowBit = 3,
120 hmMatchInTitleBit = 4,
122 (1 << hmUseSubIDBit),
124 hmAbsoluteCoordsMask =
125 (1 << hmAbsoluteCoordsBit),
128 hmSaveBitsNoWindowMask =
129 (1 << hmSaveBitsNoWindowBit),
131 hmSaveBitsWindowMask =
132 (1 << hmSaveBitsWindowBit),
136 (1 << hmMatchInTitleBit)
143 hmUseSubID = hmUseSubIDMask,
144 hmAbsoluteCoords = hmAbsoluteCoordsMask,
145 hmSaveBitsNoWindow = hmSaveBitsNoWindowMask,
146 hmSaveBitsWindow = hmSaveBitsWindowMask,
147 hmMatchInTitle = hmMatchInTitleMask
158 kHMStringResItem = 3,
163 kHMCompareItem = 512,
165 kHMNamedResourceItem = 1024,
167 kHMTrackCntlItem = 2048
189 FOUR_CHAR_CODE(
'TEXT'),
191 kHMTEStyleResType = FOUR_CHAR_CODE(
202 kHMRegularWindow = 0,
203 kHMSaveBitsNoWindow = 1,
212 kHMMenuResType = FOUR_CHAR_CODE(
214 kHMDialogResType = FOUR_CHAR_CODE(
216 kHMWindListResType = FOUR_CHAR_CODE(
218 kHMRectListResType = FOUR_CHAR_CODE(
220 kHMOverrideResType = FOUR_CHAR_CODE(
222 kHMFinderApplResType = FOUR_CHAR_CODE(
253 #if CALL_NOT_IN_CARBON
264 #if !OPAQUE_UPP_TYPES
267 uppTipFunctionProcInfo = 0x00003FE0
273 (ProcPtr)(userRoutine), uppTipFunctionProcInfo, GetCurrentArchitecture());
276 #define NewTipFunctionUPP(userRoutine) \
278 NewRoutineDescriptor((ProcPtr)(userRoutine), uppTipFunctionProcInfo, \
279 GetCurrentArchitecture())
293 #if !OPAQUE_UPP_TYPES
300 #define DisposeTipFunctionUPP(userUPP) DisposeRoutineDescriptor(userUPP)
315 #if !OPAQUE_UPP_TYPES
319 TipFunctionUPP userUPP)
321 return (OSErr)CALL_FOUR_PARAMETER_UPP(userUPP, uppTipFunctionProcInfo, tip,
325 #define InvokeTipFunctionUPP(tip, structure, r, balloonVariant, userUPP) \
326 (OSErr) CALL_FOUR_PARAMETER_UPP((userUPP), uppTipFunctionProcInfo, (tip), \
327 (structure), (r), (balloonVariant))
333 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
335 #define NewTipFunctionProc(userRoutine) NewTipFunctionUPP(userRoutine)
336 #define CallTipFunctionProc(userRoutine, tip, structure, r, balloonVariant) \
337 InvokeTipFunctionUPP(tip, structure, r, balloonVariant, userRoutine)
341 #if CALL_NOT_IN_CARBON
353 #define HMGetHelpMenuRef HMGetHelpMenuHandle
365 TipFunctionUPP inTipProc, SInt16 inWindowProcID,
378 SInt32 itemReserved,
Point tip,
380 TipFunctionUPP tipProc, SInt16 theProc,
404 SInt16 inMessageIndex, SInt16 inMessageState,
405 UInt32 *outOptions,
Point *outTip,
Rect *outHotRect,
607 #if PRAGMA_STRUCT_ALIGN
608 #pragma options align = reset
609 #elif PRAGMA_STRUCT_PACKPUSH
611 #elif PRAGMA_STRUCT_PACK
615 #ifdef PRAGMA_IMPORT_OFF
OSErr HMShowBalloon(const HMMessageRecord *inHelpMessage, Point inTip, Rect *inHotRect, TipFunctionUPP inTipProc, SInt16 inWindowProcID, BalloonVariant inBalloonVariant, SInt16 inMethod)
OSErr HMRemoveBalloon(void)
OSErr HMSetFont(SInt16 font)
OSErr HMSetBalloons(Boolean flag)
OSErr HMSetMenuResID(SInt16 menuID, SInt16 resID)
OSErr HMGetMenuResID(SInt16 menuID, SInt16 *resID)
OSErr HMExtractHelpMsg(ResType inType, SInt16 inResID, SInt16 inMessageIndex, SInt16 inMessageState, HMMessageRecord *outMessage)
OSErr HMBalloonRect(const HMMessageRecord *inMessage, Rect *outRect)
OSErr InvokeTipFunctionUPP(Point tip, RgnHandle structure, Rect *r, BalloonVariant *balloonVariant, TipFunctionUPP userUPP)
void DisposeTipFunctionUPP(TipFunctionUPP userUPP)
TipFunctionUPP NewTipFunctionUPP(TipFunctionProcPtr userRoutine)
OSErr HMGetFontSize(UInt16 *fontSize)
OSErr HMGetBalloonWindow(WindowRef *window)
OSErr HMGetIndHelpMsg(ResType inWhichResType, SInt16 inWhichResID, SInt16 inMessageIndex, SInt16 inMessageState, UInt32 *outOptions, Point *outTip, Rect *outHotRect, SInt16 *outWindowProcID, BalloonVariant *outBalloonVariant, HMMessageRecord *outHelpMessage, SInt16 *outMessageCount)
OSErr HMGetFont(SInt16 *font)
SInt16 BalloonVariant
Definition: Balloons.h:70
OSErr HMSetFontSize(UInt16 fontSize)
Boolean HMIsBalloon(void)
OSErr HMGetHelpMenuHandle(MenuRef *mh)
OSErr HMBalloonPict(const HMMessageRecord *inMessage, PicHandle *outPict)
OSErr HMGetDialogResID(SInt16 *resID)
OSErr HMScanTemplateItems(SInt16 whichID, SInt16 whichResFile, ResType whichType)
OSErr HMSetDialogResID(SInt16 resID)
Boolean HMGetBalloons(void)
Is Balloon Help on or off?
OSErr HMShowMenuBalloon(SInt16 itemNum, SInt16 itemMenuID, SInt32 itemFlags, SInt32 itemReserved, Point tip, Rect *alternateRect, TipFunctionUPP tipProc, SInt16 theProc, BalloonVariant balloonVariant)
FrameRect & r
Lock a handle's data area (keep it from moving)
Definition: MacMemory.h:927
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Interface to Quickdraw Graphics.
Definition: Quickdraw.h:1648
Definition: Balloons.h:233
Definition: Balloons.h:227
Definition: Quickdraw.h:306
Definition: Quickdraw.h:326
Definition: MacTypes.h:520
Definition: MacTypes.h:527
Definition: TextEdit.h:272